java.lang.NoSuchMethodError: org.apache.servicecomb.swagger.invocation.context.InvocationContext.get
–>
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:50)
2019-01-30 14:25:04.635 [pool-2-thread-2] ERROR o.a.s.s.i.e.DefaultExceptionToResponseConverter – invoke failed, invocation=PRODUCER rest studentservice.StudentInfoController.findNewStuInfoReportList
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:50)
java.lang.NoSuchMethodError: org.apache.servicecomb.swagger.invocation.context.InvocationContext.getContext(Ljava/lang/String;)Ljava/lang/String;
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:50)
at rx.Observable.unsafeSubscribe(Observable.java:8666)
at com.server.edu.common.handler.util.SessionUtils.getCurrentSession(SessionUtils.java:184)
at com.server.edu.studentservice.service.impl.StudentInfoServiceImpl.findNewStuInfoReportList(StudentInfoServiceImpl.java:1243)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:52)
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:36)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:50)
at com.server.edu.studentservice.service.impl.StudentInfoServiceImpl$$FastClassBySpringCGLIB$$538d25e3.invoke(<generated>)
at rx.Observable.subscribe(Observable.java:8759)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:50)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:667)
at rx.Observable.subscribe(Observable.java:8726)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
at rx.Observable.subscribe(Observable.java:8619)
at com.server.edu.studentservice.service.impl.StudentInfoServiceImpl$$EnhancerBySpringCGLIB$$fb372b07.findNewStuInfoReportList(<generated>)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:50)
at com.server.edu.studentservice.controller.StudentInfoController.findNewStuInfoReportList(StudentInfoController.java:394)
at org.apache.servicecomb.bizkeeper.BizkeeperHandler.handle(BizkeeperHandler.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at org.apache.servicecomb.core.Invocation.next(Invocation.java:152)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
at rx.Observable.unsafeSubscribe(Observable.java:8666)
at com.huawei.paas.cse.tcc.handler.ProviderTccTransactionHandler.handle(ProviderTccTransactionHandler.java:58)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at org.apache.servicecomb.core.Invocation.next(Invocation.java:152)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:52)
at org.apache.servicecomb.qps.ProviderQpsFlowControlHandler.handle(ProviderQpsFlowControlHandler.java:49)
at java.lang.reflect.Method.invoke(Method.java:498)
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:36)
at org.apache.servicecomb.core.Invocation.next(Invocation.java:152)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:50)
at org.apache.servicecomb.swagger.engine.SwaggerProducerOperation.doInvoke(SwaggerProducerOperation.java:160)
at org.apache.servicecomb.core.handler.ShutdownHookHandler.handle(ShutdownHookHandler.java:68)
at org.apache.servicecomb.swagger.engine.SwaggerProducerOperation.syncInvoke(SwaggerProducerOperation.java:148)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
at org.apache.servicecomb.core.Invocation.next(Invocation.java:152)
at org.apache.servicecomb.swagger.engine.SwaggerProducerOperation.invoke(SwaggerProducerOperation.java:115)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:50)
at org.apache.servicecomb.common.rest.AbstractRestInvocation.doInvoke(AbstractRestInvocation.java:179)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
at org.apache.servicecomb.core.handler.impl.ProducerOperationHandler.handle(ProducerOperationHandler.java:40)
at org.apache.servicecomb.core.Invocation.next(Invocation.java:152)
at org.apache.servicecomb.common.rest.AbstractRestInvocation.invoke(AbstractRestInvocation.java:155)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:50)
at org.apache.servicecomb.bizkeeper.BizkeeperCommand.lambda$construct$2(BizkeeperCommand.java:79)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
at org.apache.servicecomb.common.rest.AbstractRestInvocation.runOnExecutor(AbstractRestInvocation.java:139)
at org.apache.servicecomb.common.rest.AbstractRestInvocation.lambda$scheduleInvocation$0(AbstractRestInvocation.java:127)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:50)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:50)
at java.lang.Thread.run(Thread.java:748)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
2019-01-30 14:25:04.635 [pool-2-thread-2] WARN org.apache.servicecomb.bizkeeper.BizkeeperCommand – bizkeeper command failed due to:InvocationException: code=590;msg=CommonExceptionData [message=Cse Internal Server Error]
at rx.Observable.unsafeSubscribe(Observable.java:8666)
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:52)
2019-01-30 14:25:04.636 [pool-2-thread-2] WARN org.apache.servicecomb.bizkeeper.BizkeeperHandler – bizkeeper ex
报错原因,pom文件引用了其它maven私服的包的一些jar包,但是这些jar包都是带快照版本的-SNAPSHOT
但是maven私服上的jar包是带时间戳的,导致里面的包里的一些方法找不到。
处理办法:给pom文件中添加如下代码
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.5.4.RELEASE</version>
<configuration>
<mainClass>${main.class}</mainClass>
<layout>JAR</layout>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
本文来源 互联网收集,文章内容系作者个人观点,不代表 本站 对观点赞同或支持。如需转载,请注明文章来源,如您发现有涉嫌抄袭侵权的内容,请联系本站核实处理。