2022-09-30 09:10

最不行都要用tomcat8.谁还用tomcat7?

2022-07-11 14:37

2022-07-11 14:30:00
[ERROR]-[Thread: XNIO-1 task-13]-[io.undertow.server.HttpServerExchange.endExchange()]: UT005090: Unexpected failure
java.util.concurrent.RejectedExecutionException: XNIO007007: Thread is terminating
at org.xnio.nio.WorkerThread.execute(WorkerThread.java:590)
at org.xnio.channels.EmptyStreamSourceChannel.shutdownReads(EmptyStreamSourceChannel.java:184)
at io.undertow.servlet.spec.ServletInputStreamImpl.close(ServletInputStreamImpl.java:269)
at io.undertow.servlet.spec.HttpServletRequestImpl.closeAndDrainRequest(HttpServletRequestImpl.java:682)
at io.undertow.servlet.core.ServletBlockingHttpExchange.close(ServletBlockingHttpExchange.java:89)
at io.undertow.server.HttpServerExchange.endExchange(HttpServerExchange.java:1624)
at io.undertow.server.AbstractServerConnection$CloseSetter.handleEvent(AbstractServerConnection.java:316)
at io.undertow.server.AbstractServerConnection$CloseSetter.handleEvent(AbstractServerConnection.java:296)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.StreamConnection.invokeCloseListener(StreamConnection.java:80)
at org.xnio.Connection.close(Connection.java:142)
at io.undertow.server.AbstractServerConnection.close(AbstractServerConnection.java:159)
at org.xnio.IoUtils.safeClose(IoUtils.java:134)
at io.undertow.server.protocol.http.HttpResponseConduit.write(HttpResponseConduit.java:616)
at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.write(AbstractFixedLengthStreamSinkConduit.java:106)
at org.xnio.conduits.Conduits.writeFinalBasic(Conduits.java:132)
at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.writeFinal(AbstractFixedLengthStreamSinkConduit.java:175)
at org.xnio.conduits.ConduitStreamSinkChannel.writeFinal(ConduitStreamSinkChannel.java:104)
at io.undertow.channels.DetachableStreamSinkChannel.writeFinal(DetachableStreamSinkChannel.java:195)
at io.undertow.server.HttpServerExchange$WriteDispatchChannel.writeFinal(HttpServerExchange.java:2082)
at io.undertow.servlet.spec.ServletOutputStreamImpl.writeBufferBlocking(ServletOutputStreamImpl.java:572)
at io.undertow.servlet.spec.ServletOutputStreamImpl.close(ServletOutputStreamImpl.java:609)
at io.undertow.servlet.spec.ServletPrintWriter.close(ServletPrintWriter.java:117)
at io.undertow.servlet.spec.ServletPrintWriterDelegate.close(ServletPrintWriterDelegate.java:81)
at io.undertow.servlet.spec.HttpServletResponseImpl.closeStreamAndWriter(HttpServletResponseImpl.java:480)
at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:575)
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:351)
at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:364)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
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)

2022-04-21 13:34

debug的时候先是接口1先返回,接口2后返回。不打断点的时候,就不行了

2022-04-21 08:59

@杜福忠 先save后发消息的,但是实际上感觉是异步了

2022-04-20 10:56

由于websocket很快,save操作还没进行玩,用户都已经调用接口2,就会导致数据不一致的问题,就是不可重复读。

2022-04-20 10:54

接口1是save某个表的操作,完成后通过websocket通知用户端,用户端接收到消息后去请求接口2。接口2为列表该表展示接口。

2022-02-11 14:14

Model.set(Record r) 可以将Record转为实体类,Model类有一个方法toRecord可以将实体转为Record对象

2022-02-11 11:57

项目打包后的目录如上,在这个目录下运行Docker build构建镜像,启动镜像后找不到启动类

2022-02-11 11:50

@A8187 改成自己的启动类,但是运行镜像的时候找不到这个类。

2022-02-09 13:53

ENTRYPOINT -cp 的jar是maven打包生成的那个jar吧。"com.ruyi.Config"这个启动类访问不了。

2021-12-22 13:46

log4j2-2.16.0据说还爆出漏洞,现在最新是2.17.0了

2021-12-20 14:25

其实只要用过spring框架,都习惯写service.复用性很高

2021-12-16 09:01

me.setLogFactory(new Log4j2LogFactory());这句执行后LogKit就直接可以用log4j2了