16:18:52.860 DEBUG (Markdowns.java:161) toHtml - cnt[len=4] time=5ms
16:18:52.862 DEBUG (LogTimeProcessor.java:24) process - [GET ]URI=/yvr/t/6s4jhltm42gthr611u5cmnjvr7 200 55ms
16:18:53.209 DEBUG (UrlMappingImpl.java:110) get - Search mapping for [GET] path=/websocket : NOT Action match
16:18:53.210 DEBUG (NutIoc.java:173) get - Get 'nutzbookWebsocket'<class net.wendal.nutzbook.core.websocket.NutzbookWebsocket>
[WARNING] /websocket
javax.servlet.ServletException: javax.servlet.ServletException: Filtered request failed.
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:138)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:564)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590)
at java.lang.Thread.run(Thread.java:748)
Caused by: javax.servlet.ServletException: Filtered request failed.
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:384)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1613)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:541)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1593)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1239)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:481)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1562)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1141)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:118)
... 10 more
Caused by: org.eclipse.jetty.websocket.api.InvalidWebSocketException: org.eclipse.jetty.websocket.jsr356.endpoints.EndpointInstance is not a valid WebSocket object. Object must obey one of the following rules:
(1) class implements org.eclipse.jetty.websocket.api.WebSocketListener or
(2) class is annotated with @org.eclipse.jetty.websocket.api.annotations.WebSocket or
(3) class is annotated with @javax.websocket.server.ServerEndpoint or
(4) class extends javax.websocket.Endpoint
at org.eclipse.jetty.websocket.common.events.EventDriverFactory.wrap(EventDriverFactory.java:147)
at org.eclipse.jetty.websocket.server.WebSocketServerFactory.acceptWebSocket(WebSocketServerFactory.java:231)
at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:237)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1621)
at org.nutz.mvc.NutFilter.nextChain(NutFilter.java:230)
at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:205)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1621)
at org.nutz.plugins.hotplug.HotplugFilter.doFilter(HotplugFilter.java:73)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1621)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
... 28 more
50 回复
root下install日志,有几个模块过去不
[INFO]
[INFO] NutzCN的根项目 ......................................... SUCCESS [ 1.355 s]
[INFO] nutzcn-core ........................................ SUCCESS [ 2.938 s]
[INFO] nutzcn-adminlte .................................... SUCCESS [ 0.722 s]
[INFO] nutzcn-yvr ......................................... SUCCESS [ 3.179 s]
[INFO] nutzcn-webapp ...................................... SUCCESS [ 12.831 s]
[INFO] nutzcn-oauth ....................................... SUCCESS [ 0.571 s]
[INFO] nutzcn-ngrok ....................................... SUCCESS [ 0.149 s]
[INFO] nutzcn-beepay ...................................... SUCCESS [ 1.486 s]
[INFO] nutzcn-webhook ..................................... SUCCESS [ 0.027 s]
[INFO] nutzcn-dwmaster .................................... SUCCESS [ 0.144 s]
[INFO] nutzcn-sysinfo ..................................... SUCCESS [ 0.027 s]
[INFO] nutzcn-shortit ..................................... SUCCESS [ 0.046 s]
[INFO] nutzcn-weixin ...................................... SUCCESS [ 0.032 s]
[INFO] nutzcn-qqrobot ..................................... SUCCESS [ 0.027 s]
[INFO] nutzcn-cxfdemo ..................................... FAILURE [ 2.174 s]
[INFO] nutzcn-swagger ..................................... SKIPPED
[INFO] nutzcn-uflo ........................................ SKIPPED
[INFO] nutzcn-starter ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.872 s
[INFO] Finished at: 2017-12-21T18:18:00+08:00
[INFO] Final Memory: 82M/758M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "QunarNexus" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project nutzcn-cxfdemo: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/guolifei/Documents/codespace/nutz-book-project/nutzcn-cxfdemo/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :nutzcn-cxfdemo
VM364:164 WebSocket connection to 'ws://127.0.0.1:8080/websocket' failed: Error during WebSocket handshake: Unexpected response code: 404 则是浏览器的异常
我发现规律了
如果endpoint类在jar包里面, 必须继承EndPoint才能在maven jetty plugins中使用
如果把它放在nutzcn-webapp的源文件夹, 不需要继承EndPoint就能使用
我进入
http://127.0.0.1:8080/yvr/u/admin这个时候就报错
For example:> "select DISTINCT topicId from t_topic_reply WHERE u_id=1 ORDER BY ct DESC LIMIT 0, 5"
10:34:49.543 DEBUG (NutDaoExecutor.java:97) exec - SQLException
java.sql.SQLException: Expression #1 of ORDER BY clause is not in SELECT list, references column 'nutzbook.t_topic_reply.ct' which is not in SELECT list; this is incompatible with DISTINCT
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:964) ~[nutzcn-core-3.1.0.jar:3.1.0]
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3973) ~[nutzcn-core-3.1.0.jar:3.1.0]
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3909) ~[nutzcn-core-3.1.0.jar:3.1.0]
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2527) ~[nutzcn-core-3.1.0.jar:3.1.0]
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2680) ~[nutzcn-core-3.1.0.jar:3.1.0]
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2501) ~[nutzcn-core-3.1.0.jar:3.1.0]
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1858) ~[nutzcn-core-3.1.0.jar:3.1.0]
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1966) ~[nutzcn-core-3.1.0.jar:3.1.0]
at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_executeQuery(FilterChainImpl.java:2714) ~[nutzcn-core-3.1.0.jar:3.1.0]
at com.alibaba.druid.filter.FilterEventAdapter.preparedStatement_executeQuery(FilterEventAdapter.java:465) ~[nutzcn-core-3.1.0.jar:3.1.0]
at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_executeQuery(FilterChainImpl.java:2711) ~[nutzcn-core-3.1.0.jar:3.1.0]
at com.alibaba.druid.proxy.jdbc.PreparedStatementProxyImpl.executeQuery(PreparedStatementProxyImpl.java:145) ~[nutzcn-core-3.1.0.jar:3.1.0]
at com.alibaba.druid.pool.DruidPooledPreparedStatement.executeQuery(DruidPooledPreparedStatement.java:227) ~[nutzcn-core-3.1.0.jar:3.1.0]
at org.nutz.dao.impl.sql.run.NutDaoExecutor._runSelect(NutDaoExecutor.java:272) ~[nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.dao.impl.sql.run.NutDaoExecutor.exec(NutDaoExecutor.java:53) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:66) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.dao.impl.interceptor.DaoTimeInterceptor.filter(DaoTimeInterceptor.java:23) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:64) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.dao.impl.interceptor.DaoLogInterceptor.filter(DaoLogInterceptor.java:22) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:64) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.plugins.cache.dao.DaoCacheInterceptor._exec(DaoCacheInterceptor.java:28) [nutzcn-core-3.1.0.jar:3.1.0]
at org.nutz.plugins.cache.dao.CachedNutDaoExecutor.exec(CachedNutDaoExecutor.java:170) [nutzcn-core-3.1.0.jar:3.1.0]
at org.nutz.plugins.cache.dao.DaoCacheInterceptor.filter(DaoCacheInterceptor.java:18) [nutzcn-core-3.1.0.jar:3.1.0]
at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:64) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.dao.DaoInterceptorChain.invoke(DaoInterceptorChain.java:139) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.dao.impl.sql.run.NutDaoRunner.runCallback(NutDaoRunner.java:158) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.dao.impl.sql.run.NutDaoRunner._runWithoutTransaction(NutDaoRunner.java:125) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.dao.impl.sql.run.NutDaoRunner._run(NutDaoRunner.java:92) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.dao.impl.sql.run.NutDaoRunner.run(NutDaoRunner.java:81) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.dao.impl.DaoSupport.run(DaoSupport.java:240) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.dao.impl.DaoSupport._exec(DaoSupport.java:252) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.dao.impl.DaoSupport.execute(DaoSupport.java:236) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.dao.impl.NutDao.execute(NutDao.java:1008) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at net.wendal.nutzbook.yvr.service.YvrService.getRecentReplyTopics(YvrService.java:359) [nutzcn-yvr-3.1.0.jar:3.1.0]
at net.wendal.nutzbook.yvr.module.YvrUserModule.userHome(YvrUserModule.java:101) [nutzcn-yvr-3.1.0.jar:3.1.0]
at net.wendal.nutzbook.yvr.module.YvrUserModule$FM$userHome$8ca68ff379736e775d8f0116d4dbb445.invoke(YvrUserModule.java) [nutz-1.r.65-SNAPSHOT.jar:3.1.0]
at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:31) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:30) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:58) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.integration.shiro.NutShiroProcessor.process(NutShiroProcessor.java:126) [nutzcn-core-3.1.0.jar:3.1.0]
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at net.wendal.nutzbook.common.mvc.DailyUniqueUsersProcessor.process(DailyUniqueUsersProcessor.java:45) [nutzcn-core-3.1.0.jar:3.1.0]
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at net.wendal.nutzbook.common.mvc.LogTimeProcessor.process(LogTimeProcessor.java:19) [nutzcn-core-3.1.0.jar:3.1.0]
at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637) [jetty-servlet-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.nutz.plugins.hotplug.HotplugFilter.doFilter(HotplugFilter.java:73) [nutzcn-core-3.1.0.jar:3.1.0]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637) [jetty-servlet-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449) [nutzcn-core-3.1.0.jar:3.1.0]
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365) [nutzcn-core-3.1.0.jar:3.1.0]
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) [nutzcn-core-3.1.0.jar:3.1.0]
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) [nutzcn-core-3.1.0.jar:3.1.0]
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383) [nutzcn-core-3.1.0.jar:3.1.0]
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362) [nutzcn-core-3.1.0.jar:3.1.0]
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) [nutzcn-core-3.1.0.jar:3.1.0]
添加回复
请先登陆