java.lang.RuntimeException
2015-12-30 12:02
706 查看
今天启动项目测试接口的时候一直报这个错误,最后弄明白原来是序列化的原因 因为我在入参的时候使用了int类型
解决办法将int改为Integer就行。错误信息如下
</pre><pre name="code" class="java">
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener java.lang.RuntimeException: Inconsistent args count operand in invokeinterface in method com.alibaba.dubbo.common.bytecode.Wrapper36.invokeMethod(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object; at offset 372 at com.alibaba.dubbo.common.bytecode.Wrapper.makeWrapper(Wrapper.java:363) at com.alibaba.dubbo.common.bytecode.Wrapper.getWrapper(Wrapper.java:89) at com.alibaba.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:426) at com.alibaba.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:281) at com.alibaba.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:242) at com.alibaba.dubbo.config.ServiceConfig.export(ServiceConfig.java:143) at com.alibaba.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:109) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:948) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.VerifyError: Inconsistent args count operand in invokeinterface in method com.alibaba.dubbo.common.bytecode.Wrapper36.invokeMethod(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object; at offset 372 at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2317) at java.lang.Class.getField0(Class.java:2642) at java.lang.Class.getField(Class.java:1537) at com.alibaba.dubbo.common.bytecode.Wrapper.makeWrapper(Wrapper.java:348) ... 23 more
相关文章推荐
- java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
- 解决-LogCat:Binary XML file line # : Error inflating class fragment
- 在线程里面出现异常需要处理UI的细节
- java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
- java.lang.RuntimeException: eglCreateContext,failed:EGL_BAD_ALLOC
- java.lang.RuntimeException: Value <pre>bool(false) of type java.lang.String cannot be converted to J
- java.lang.RuntimeException: Unable to destroy activity
- java.lang.RuntimeException: invoke method
- java.lang.RuntimeException: Unable to instantiate application
- java.lang.RuntimeException: Unable to destroy activity
- java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- 静态注册Fragemnt
- myeclipse10 svn: E175002 svn:unable to connect to a repository at URL
- 我的世界游戏服务器搭建
- JAVA序列化与反序列化基础 Serializable
- java自带的MessageDigest实现文本的md5加密算法
- java基础知识总结
- Java中synchronized的使用实例
- Java中synchronized的使用实例
- Java中synchronized的使用实例