永发信息网

java.lang.reflect.InvocationTargetException

答案:5  悬赏:10  手机版
解决时间 2021-04-30 03:29
java.lang.reflect.InvocationTargetException sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:441) com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:243) com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:165) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:252) org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:179) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:130) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:179) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52) org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488) org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)

root cause java.lang.OutOfMemoryError: Java heap space com.mysql.jdbc.Buffer.getBytes(Buffer.java:198) com.mysql.jdbc.Buffer.readLenByteArray(Buffer.java:318) com.mysql.jdbc.MysqlIO.extractNativeEncodedColumn(MysqlIO.java:3415) com.mysql.jdbc.MysqlIO.unpackBinaryResultSetRow(MysqlIO.java:3331) com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1326) com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:2262) com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:439) com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:1970) com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:1387) com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1186) com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:685) com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1262) org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208) org.hibernate.loader.Loader.getResultSet(Loader.java:1808) org.hibernate.loader.Loader.doQuery(Loader.java:697) org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259) org.hibernate.loader.Loader.loadEntity(Loader.java:1881) org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:71) org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:65) org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3072) org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:434) org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:415) org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:165) org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:223) org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:126) org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:905) org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:873) org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:590) org.hibernate.type.EntityType.resolve(EntityType.java:412) org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:139) org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:877) org.hibernate.loader.Loader.doQuery(Loader.java:752)

 

这个异常怎么处理

最佳答案
发一下你的源代码 包括调用 及配置 还有实体类的代码
全部回答

struts错误

你用的是myeclipse?然后用的自动导包?

如果是这样的话 就是包本身的问题了 手动导下struts spring hibernate的包

错误提示很明确:root cause java.lang.OutOfMemoryError: Java heap space com.mysql.jdbc.Buffer.getBytes(Buffer.java:198) 你给的heap大小不足以存放你从database里取出来的数据。

是不是调用了method.invoke方法。

我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
nike鞋子的型号
要参加日语等级考试,武汉有没有好一点的培训
食客来地址在哪,我要去那里办事
球妖精的旋律要3GP格式额。。
诺基亚手机内存卡怎么能看出来是原长的
网页上的FLASH不能播放,控件不能安装
幻灵游侠2.5进入的时候出现驱动问题,avi文件
得了麦粒肿用吃消炎药吗?吃什么药?
哪有犬夜叉200集以后的动画
大家帮忙推荐一部八百左右的音乐手机吧,能扩
哀悼日游戏暂停,游戏装备到期时间会延后吗?
阳历1991年1月7号出生是什么星座吗?
2010年中职毕业生,应去哪里更好找工作一些呢
大家帮帮忙,解道数学题!!谢谢了
汽车美容培训光碟
推荐资讯
地下城与勇士元素怎么加点
学生物要多做练习还是多看书?
门牙不整齐、如何解决?
N95 8GB手机适合什么软件?地图可以吗?
我傻么?是我做错了什么还是选错了?我一直都
QQ影音打开后三秒就自动关闭,NOD32查过没毒,
怎样和陌生人说话
为什么我mp4插电脑上,p4有反应,但右下角没跳
炫舞里怎么得炫舞精灵啊
小蒋装璜门市部在什么地方啊,我要过去处理事
二年级把句子写完整,赞美牡丹花的句子
夏天看雪,冬天看啥?
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?