vipjoey / doe Goto Github PK
View Code? Open in Web Editor NEW自己编写dubbo客户端实现rpc调用,在线调试dubbo接口、dubbo接口可视化测试、自动化测试工具。
自己编写dubbo客户端实现rpc调用,在线调试dubbo接口、dubbo接口可视化测试、自动化测试工具。
错误信息:occur an error when get methods : can't found the interface from classpath, please add the dependency first.
过程描述:
版本1.1.0
1,把deploy下面的pom.xml文件拷贝到/app/doe路径下。
2,将打包的api-1.0-RELEASE.jar dubbo-doe.jar 拷贝到/app/doe/lib下
3,在【新增依赖】中添加了依赖,但是解析完成后在/app/doe/lib下面没有见到下载到的jar
一选择接口就报这个错,为啥啊
no provider for com.windoer.ytsoa.service.GwcService in this zookeeper registry
telnet可以连接上,但是发送消息时报java.net.SocketException: Socket closed异常。麻烦帮忙看一下,谢谢您!!
只支持zookeeper么
感谢大佬的开源 已经成功用上了
新增pom依赖后,pom列表不显示
不能再pom管理列表看到刚加的依赖
访问地址:http://localhost:9876/doe/home/index
报错信息如下:
2020-05-11 17:17:17.226 [http-nio-9876-exec-5] ERROR org.thymeleaf.TemplateEngine - [THYMELEAF][http-nio-9876-exec-5] Exception processing template "/pages/v3/easyCnt.html": Error resolving template "/pages/v3/easyCnt.html", template might not exist or might not be accessible by any of the configured Template Resolvers
org.thymeleaf.exceptions.TemplateInputException: Error resolving template "/pages/v3/easyCnt.html", template might not exist or might not be accessible by any of the configured Template Resolvers
at org.thymeleaf.engine.TemplateManager.resolveTemplate(TemplateManager.java:870)
at org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:607)
at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1098)
at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1072)
at org.thymeleaf.spring5.view.ThymeleafView.renderFragment(ThymeleafView.java:354)
at org.thymeleaf.spring5.view.ThymeleafView.render(ThymeleafView.java:187)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1325)
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1069)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1008)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1468)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
大佬,你的博客有意思;期待后面的呢!!!
mmc-dubbo-doe 目录下build 报错,什么原因
adEventExecutor.java:321)
at io.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThre
adEventExecutor.java:765)
at io.netty.util.concurrent.DefaultPromise.safeExecute(DefaultPromise.ja
va:764)
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromis
e.java:432)
at io.netty.util.concurrent.DefaultPromise.trySuccess(DefaultPromise.jav
a:103)
at io.netty.channel.DefaultChannelPromise.trySuccess(DefaultChannelPromi
se.java:84)
at io.netty.channel.AbstractChannel$CloseFuture.setClosed(AbstractChanne
l.java:1148)
at io.netty.channel.AbstractChannel$AbstractUnsafe.register(AbstractChan
nel.java:490)
at io.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop
.java:80)
at io.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop
.java:74)
at io.netty.channel.MultithreadEventLoopGroup.register(MultithreadEventL
oopGroup.java:86)
at io.netty.bootstrap.AbstractBootstrap.initAndRegister(AbstractBootstra
p.java:333)
at io.netty.bootstrap.Bootstrap.doResolveAndConnect(Bootstrap.java:163)
at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:145)
at io.lettuce.core.AbstractRedisClient.initializeChannelAsync(AbstractRe
disClient.java:267)
at io.lettuce.core.RedisClient.connectStatefulAsync(RedisClient.java:318
)
at io.lettuce.core.RedisClient.connectStandaloneAsync(RedisClient.java:2
76)
at io.lettuce.core.RedisClient.connectStandalone(RedisClient.java:252)
at io.lettuce.core.RedisClient.connect(RedisClient.java:202)
at org.springframework.data.redis.connection.lettuce.StandaloneConnectio
nProvider.getConnection(StandaloneConnectionProvider.java:56)
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFa
ctory$SharedConnection.getNativeConnection(LettuceConnectionFactory.java:957)
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFa
ctory$SharedConnection.getConnection(LettuceConnectionFactory.java:932)
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFa
ctory.getSharedConnection(LettuceConnectionFactory.java:785)
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFa
ctory.getConnection(LettuceConnectionFactory.java:299)
at org.springframework.data.redis.core.RedisConnectionUtils.doGetConnect
ion(RedisConnectionUtils.java:132)
at org.springframework.data.redis.core.RedisConnectionUtils.getConnectio
n(RedisConnectionUtils.java:95)
at org.springframework.data.redis.core.RedisConnectionUtils.getConnectio
n(RedisConnectionUtils.java:82)
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTempla
te.java:211)
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTempla
te.java:184)
at org.springframework.data.redis.core.AbstractOperations.execute(Abstra
ctOperations.java:95)
at org.springframework.data.redis.core.DefaultListOperations.rightPush(D
efaultListOperations.java:230)
at com.mmc.dubbo.doe.cache.DoeRedisResolver.rPush(DoeRedisResolver.java:
384)
at com.mmc.dubbo.doe.handler.StreamHandler.putToRedis(StreamHandler.java
:105)
at com.mmc.dubbo.doe.handler.StreamHandler.run(StreamHandler.java:73)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:624)
at java.lang.Thread.run(Thread.java:748)
2019-08-12 19:20:37.379 [pool-13-thread-1] ERROR i.n.u.concurrent.DefaultPromise
.rejectedExecution - Failed to submit a listener notification task. Event loop s
hut down?
java.util.concurrent.RejectedExecutionException: event executor terminated
at io.netty.util.concurrent.SingleThreadEventExecutor.reject(SingleThrea
dEventExecutor.java:842)
at io.netty.util.concurrent.SingleThreadEventExecutor.offerTask(SingleTh
readEventExecutor.java:328)
at io.netty.util.concurrent.SingleThreadEventExecutor.addTask(SingleThre
adEventExecutor.java:321)
at io.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThre
adEventExecutor.java:765)
at io.netty.util.concurrent.DefaultPromise.safeExecute(DefaultPromise.ja
va:764)
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromis
e.java:432)
at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.jav
a:121)
at io.netty.channel.AbstractChannel$AbstractUnsafe.safeSetFailure(Abstra
ctChannel.java:987)
at io.netty.channel.AbstractChannel$AbstractUnsafe.register(AbstractChan
nel.java:491)
at io.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop
.java:80)
at io.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop
.java:74)
at io.netty.channel.MultithreadEventLoopGroup.register(MultithreadEventL
oopGroup.java:86)
at io.netty.bootstrap.AbstractBootstrap.initAndRegister(AbstractBootstra
p.java:333)
at io.netty.bootstrap.Bootstrap.doResolveAndConnect(Bootstrap.java:163)
at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:145)
at io.lettuce.core.AbstractRedisClient.initializeChannelAsync(AbstractRe
disClient.java:267)
at io.lettuce.core.RedisClient.connectStatefulAsync(RedisClient.java:318
)
at io.lettuce.core.RedisClient.connectStandaloneAsync(RedisClient.java:2
76)
at io.lettuce.core.RedisClient.connectStandalone(RedisClient.java:252)
at io.lettuce.core.RedisClient.connect(RedisClient.java:202)
at org.springframework.data.redis.connection.lettuce.StandaloneConnectio
nProvider.getConnection(StandaloneConnectionProvider.java:56)
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFa
ctory$SharedConnection.getNativeConnection(LettuceConnectionFactory.java:957)
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFa
ctory$SharedConnection.getConnection(LettuceConnectionFactory.java:932)
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFa
ctory.getSharedConnection(LettuceConnectionFactory.java:785)
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFa
ctory.getConnection(LettuceConnectionFactory.java:299)
at org.springframework.data.redis.core.RedisConnectionUtils.doGetConnect
ion(RedisConnectionUtils.java:132)
at org.springframework.data.redis.core.RedisConnectionUtils.getConnectio
n(RedisConnectionUtils.java:95)
at org.springframework.data.redis.core.RedisConnectionUtils.getConnectio
n(RedisConnectionUtils.java:82)
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTempla
te.java:211)
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTempla
te.java:184)
at org.springframework.data.redis.core.AbstractOperations.execute(Abstra
ctOperations.java:95)
at org.springframework.data.redis.core.DefaultListOperations.rightPush(D
efaultListOperations.java:230)
at com.mmc.dubbo.doe.cache.DoeRedisResolver.rPush(DoeRedisResolver.java:
384)
at com.mmc.dubbo.doe.handler.StreamHandler.putToRedis(StreamHandler.java
:105)
at com.mmc.dubbo.doe.handler.StreamHandler.run(StreamHandler.java:73)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:624)
at java.lang.Thread.run(Thread.java:748)
2019-08-12 19:20:37.379 [pool-13-thread-1] ERROR i.n.u.concurrent.DefaultPromise
.rejectedExecution - Failed to submit a listener notification task. Event loop s
hut down?
java.util.concurrent.RejectedExecutionException: event executor terminated
at io.netty.util.concurrent.SingleThreadEventExecutor.reject(SingleThrea
dEventExecutor.java:842)
at io.netty.util.concurrent.SingleThreadEventExecutor.offerTask(SingleTh
readEventExecutor.java:328)
at io.netty.util.concurrent.SingleThreadEventExecutor.addTask(SingleThre
adEventExecutor.java:321)
at io.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThre
adEventExecutor.java:765)
at io.netty.util.concurrent.DefaultPromise.safeExecute(DefaultPromise.ja
va:764)
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromis
e.java:432)
at io.netty.util.concurrent.DefaultPromise.addListener(DefaultPromise.ja
va:162)
at io.netty.channel.DefaultChannelPromise.addListener(DefaultChannelProm
ise.java:95)
at io.netty.channel.DefaultChannelPromise.addListener(DefaultChannelProm
ise.java:30)
at io.lettuce.core.AbstractRedisClient.initializeChannelAsync(AbstractRe
disClient.java:269)
at io.lettuce.core.RedisClient.connectStatefulAsync(RedisClient.java:318
)
at io.lettuce.core.RedisClient.connectStandaloneAsync(RedisClient.java:2
76)
at io.lettuce.core.RedisClient.connectStandalone(RedisClient.java:252)
at io.lettuce.core.RedisClient.connect(RedisClient.java:202)
at org.springframework.data.redis.connection.lettuce.StandaloneConnectio
nProvider.getConnection(StandaloneConnectionProvider.java:56)
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFa
ctory$SharedConnection.getNativeConnection(LettuceConnectionFactory.java:957)
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFa
ctory$SharedConnection.getConnection(LettuceConnectionFactory.java:932)
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFa
ctory.getSharedConnection(LettuceConnectionFactory.java:785)
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFa
ctory.getConnection(LettuceConnectionFactory.java:299)
at org.springframework.data.redis.core.RedisConnectionUtils.doGetConnect
ion(RedisConnectionUtils.java:132)
at org.springframework.data.redis.core.RedisConnectionUtils.getConnectio
n(RedisConnectionUtils.java:95)
at org.springframework.data.redis.core.RedisConnectionUtils.getConnectio
n(RedisConnectionUtils.java:82)
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTempla
te.java:211)
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTempla
te.java:184)
at org.springframework.data.redis.core.AbstractOperations.execute(Abstra
ctOperations.java:95)
at org.springframework.data.redis.core.DefaultListOperations.rightPush(D
efaultListOperations.java:230)
at com.mmc.dubbo.doe.cache.DoeRedisResolver.rPush(DoeRedisResolver.java:
384)
at com.mmc.dubbo.doe.handler.StreamHandler.putToRedis(StreamHandler.java
:105)
at com.mmc.dubbo.doe.handler.StreamHandler.run(StreamHandler.java:73)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:624)
at java.lang.Thread.run(Thread.java:748)
2019-08-12 19:20:37.494 [main-SendThread(127.0.0.1:2181)] INFO org.apache.zooke
eper.ClientCnxn - Opening socket connection to server 127.0.0.1/127.0.0.1:2181.
Will not attempt to authenticate using SASL (unknown error)
2019-08-12 19:20:37.799 [main-SendThread(127.0.0.1:2181)] WARN org.apache.zooke
eper.ClientCnxn - Session 0x0 for server null, unexpected error, closing socket
connection and attempting reconnect
java.net.ConnectException: Connection refused: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717
)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocket
NIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)
2019-08-12 19:20:37.865 [main-SendThread(127.0.0.1:2181)] WARN org.apache.zooke
eper.ClientCnxn - Session 0x0 for server null, unexpected error, closing socket
connection and attempting reconnect
java.net.ConnectException: Connection refused: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717
)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocket
NIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)
2019-08-12 19:20:38.078 [main-SendThread(127.0.0.1:2181)] WARN org.apache.zooke
eper.ClientCnxn - Session 0x0 for server null, unexpected error, closing socket
connection and attempting reconnect
java.net.ConnectException: Connection refused: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717
)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocket
NIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)
2019-08-12 19:20:38.474 [Thread-5] INFO c.a.d.c.s.b.f.a.ReferenceAnnotationBean
PostProcessor - class com.alibaba.dubbo.config.spring.beans.factory.annotation.R
eferenceAnnotationBeanPostProcessor was destroying!
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] TestConfigService.testAddRegistry:78
[ERROR] TestConfigService.testListRegistry:41
[ERROR] TestPomService.testLoad:109
[ERROR] TestProcessClient.testDownload:49
[ERROR] TestTelnetService.testSend:50
[ERROR] Errors:
[ERROR] TestCaseService.testSave:47 ? NullPointer
[ERROR] TestClassService.testListMethods:71 ? RedisConnectionFailure Unable to
connect...
[ERROR] TestConnectService.testSend:48 ? Doe can't connect to 127.0.0.1:2181
[ERROR] TestCuratorHandler.testGetInterfaces:43 ? IllegalState KeeperErrorCode
= Conne...
[ERROR] TestCuratorHandler.testGetProviders:61 ? Rpc Failed to lookup zookeepe
r://127....
[ERROR] TestDemo.testDemo:53 ? Rpc Failed to lookup dubbo://127.0.0.1:2181?int
erface=c...
[ERROR] TestDoeClassLoader.testLoad:28 ? Doe the path[F:\app\doe\lib] is not e
xists.
[ERROR] TestDoeClient.testConnect:42 ? Runtime can't not connect to server.
[ERROR] TestPomService.testAppend:97 ? SAXParse 尾随节中不允许有内容。
[ERROR] TestPomService.testInvoke:147 ? FileNotFound D:\app\doe\pom.xml (系统
找不到指定的文件。)
[ERROR] TestPomService.testListJars:130 ? SAXParse 尾随节中不允许有内容。
[ERROR] TestRedisResolver.testString:41 ? RedisConnectionFailure Unable to con
nect to ...
[ERROR] TestRedisTemplate.testRedis:38 ? RedisConnectionFailure Unable to conn
ect to R...
[INFO]
[ERROR] Tests run: 31, Failures: 5, Errors: 13, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:55 min
[INFO] Finished at: 2019-08-12T19:20:39+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
21.0:test (default-test) on project dubbo-doe: There are test failures.
[ERROR]
[ERROR] Please refer to D:\03_code\doe\mmc-dubbo-doe\target\surefire-reports for
the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].
dumpstream and [date]-jvmRun[N].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
D:\03_code\doe\mmc-dubbo-doe>
2018-10-30 17:09:06.799 ERROR [http-nio-9876-exec-1] org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[dispatcherServlet].log (DirectJDKLog.java:182) - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException: Error resolving template "/pages/v3/easyCnt.html", template might not exist or might not be accessible by any of the configured Template Resolvers] with root cause
org.thymeleaf.exceptions.TemplateInputException: Error resolving template "/pages/v3/easyCnt.html", template might not exist or might not be accessible by any of the configured Template Resolvers
at org.thymeleaf.engine.TemplateManager.resolveTemplate(TemplateManager.java:870)
at org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:607)
at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1098)
at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1072)
at org.thymeleaf.spring5.view.ThymeleafView.renderFragment(ThymeleafView.java:354)
at org.thymeleaf.spring5.view.ThymeleafView.render(ThymeleafView.java:187)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1325)
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1069)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1008)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
本地调试mmc-dubbo-doe模块是访问页面是正常的。但是mvn clean package -Dmaven.test.skip=true 打包后,按照wiki上将包拷贝到/app/doe/路径下,执行./deploy.sh start,启动正常没有报错,但是访问页面的时候就报404,后台错误如下:
2019-08-15 14:34:00.895 [main] INFO com.mmc.dubbo.doe.service.impl.PomServiceImpl - begin to load jars from /app/doe/lib/.
2019-08-15 14:34:00.896 [main] INFO c.m.d.doe.context.ApplicationReadyEventListener - finished load jars.
2019-08-15 14:34:12.529 [http-nio-9876-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring FrameworkServlet 'dispatcherServlet'
2019-08-15 14:34:12.529 [http-nio-9876-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'dispatcherServlet': initialization started
2019-08-15 14:34:12.545 [http-nio-9876-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'dispatcherServlet': initialization completed in 15 ms
2019-08-15 14:34:12.703 [http-nio-9876-exec-1] ERROR org.thymeleaf.TemplateEngine - [THYMELEAF][http-nio-9876-exec-1] Exception processing template "/pages/v3/easyCnt.html": Error resolving template "/pages/v3/easyCnt.html", template might not exist or might not be accessible by any of the configured Template Resolvers
org.thymeleaf.exceptions.TemplateInputException: Error resolving template "/pages/v3/easyCnt.html", template might not exist or might not be accessible by any of the configured Template Resolvers
at org.thymeleaf.engine.TemplateManager.resolveTemplate(TemplateManager.java:870)
at org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:607)
at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1098)
at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1072)
at org.thymeleaf.spring5.view.ThymeleafView.renderFragment(ThymeleafView.java:354)
at org.thymeleaf.spring5.view.ThymeleafView.render(ThymeleafView.java:187)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1325)
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1069)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1008)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1468)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
我在doev1.2中的修改pom中的依赖的版本号进行测试.我在版本号为1.2依赖中的有个新增的方法,版本号为1.0依赖中没有这个方法。我在pom中把版本号为1.2依赖修改为版本号为1.0依赖后重新加载了jar。但是在普通请求中拉取方法还是显示1.2中的方法,请求也是可以正常进行的。
怎么升级dubbo版本,比如升级为2.8.4a
com.mmc.dubbo.doe.util.StringUtil 这个方法有问题
json为{}的时候会报错
line:31 的while里加上判断条件i < param.length 可以解决
Error:(39, 12) java: 找不到符号
符号: 方法 setCode(int)
位置: 类型为com.mmc.dubbo.doe.dto.ResultDTO的变量 ret
occur an error when get methods : can't found the interface from classpath, please add the dependency first.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.