java.lang.reflect.InvocationTargetException
解决时间 2021-04-30 03:29
- 提问者网友:蓝莓格格巫
- 2021-04-29 06:15
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)
这个异常怎么处理
最佳答案
- 五星知识达人网友:行路难
- 2021-04-29 07:53
发一下你的源代码 包括调用 及配置 还有实体类的代码
全部回答
- 1楼网友:woshuo
- 2021-04-29 09:41
- 2楼网友:轻雾山林
- 2021-04-29 09:20
你用的是myeclipse?然后用的自动导包?
如果是这样的话 就是包本身的问题了 手动导下struts spring hibernate的包
- 3楼网友:woshuo
- 2021-04-29 08:56
错误提示很明确:root cause java.lang.OutOfMemoryError: Java heap space com.mysql.jdbc.Buffer.getBytes(Buffer.java:198)
你给的heap大小不足以存放你从database里取出来的数据。
我要举报
大家都在看
推荐资讯