数字异常提示For input sring :“0x“

博客指出在Java中进行字符输入时,若输入0x数据会产生异常,不允许将0x放在数据前面。

在这里插入图片描述
看提示:对于字符输入0x数据产生异常 ,不允许放0x在数据前面

2025-09-24 17:53:19.909 [reactor-http-nio-3] DEBUG reactor.netty.http.server.HttpServerOperations - [55b83e41, L:/192.168.10.130:9000 - R:/192.168.10.130:61599] New http connection, requesting read 2025-09-24 17:53:19.909 [reactor-http-nio-3] DEBUG reactor.netty.transport.TransportConfig - [55b83e41, L:/192.168.10.130:9000 - R:/192.168.10.130:61599] Initialized pipeline DefaultChannelPipeline{(reactor.left.httpCodec = io.netty.handler.codec.http.HttpServerCodec), (reactor.left.httpTrafficHandler = reactor.netty.http.server.HttpTrafficHandler), (reactor.right.reactiveBridge = reactor.netty.channel.ChannelOperationsHandler)} 2025-09-24 17:53:19.910 [reactor-http-nio-3] DEBUG reactor.netty.http.server.HttpServerOperations - [55b83e41, L:/192.168.10.130:9000 - R:/192.168.10.130:61599] Increasing pending responses, now 1 2025-09-24 17:53:19.910 [reactor-http-nio-3] DEBUG reactor.netty.http.server.HttpServer - [55b83e41-1, L:/192.168.10.130:9000 - R:/192.168.10.130:61599] Handler is being applied: org.springframework.http.server.reactive.ReactorHttpHandlerAdapter@20d61a71 2025-09-24 17:53:19.910 [reactor-http-nio-3] DEBUG o.s.web.server.adapter.HttpWebHandlerAdapter - [55b83e41-10] HTTP GET "/master/part/download" 2025-09-24 17:53:19.910 [reactor-http-nio-3] DEBUG o.s.w.r.r.m.a.RequestMappingHandlerMapping - [55b83e41-10] Mapped to com.hvlink.controller.PartController#selectById(Integer) 2025-09-24 17:53:19.911 [reactor-http-nio-3] DEBUG org.springframework.web.method.HandlerMethod - [55b83e41-10] Could not resolve parameter [0] in public com.hvlink.common.Result<com.hvlink.entity.vo.master.PartVO> com.hvlink.controller.PartController.selectById(java.lang.Integer): 400 BAD_REQUEST "Type mismatch."; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'; nested exception is java.lang.NumberFormatException: For input string: "download" 2025-09-24 17:53:19.911 [reactor-http-nio-3] DEBUG o.s.w.r.r.m.a.RequestMappingHandlerAdapter - [55b83e41-10] Using @ExceptionHandler com.hvlink.exceptions.ExceptionHandle#handleException(Exception) 2025-09-24 17:53:19.913 [reactor-http-nio-3] ERROR com.hvlink.exceptions.ExceptionHandle - ===服务器内部错误== org.springframework.web.server.ServerWebInputException: 400 BAD_REQUEST "Type mismatch."; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'; nested exception is java.lang.NumberFormatException: For input string: "download" at org.springframework.web.reactive.result.method.annotation.AbstractNamedValueArgumentResolver.applyConversion(AbstractNamedValueArgumentResolver.java:198) at org.springframework.web.reactive.result.method.annotation.AbstractNamedValueArgumentResolver.lambda$resolveArgument$0(AbstractNamedValueArgumentResolver.java:108) at reactor.core.publisher.FluxFlatMap.trySubscribeScalarMap(FluxFlatMap.java:152) at reactor.core.publisher.MonoFlatMap.subscribeOrReturn(MonoFlatMap.java:53) at reactor.core.publisher.Mono.subscribe(Mono.java:4475) at reactor.core.publisher.MonoZip.subscribe(MonoZip.java:129) at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64) at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:53) at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext(MonoIgnoreThen.java:240) at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.onComplete(MonoIgnoreThen.java:203) at reactor.core.publisher.MonoFlatMap$FlatMapMain.onComplete(MonoFlatMap.java:181) at reactor.core.publisher.Operators.complete(Operators.java:137) at reactor.core.publisher.MonoZip.subscribe(MonoZip.java:121) at reactor.core.publisher.Mono.subscribe(Mono.java:4490) at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext(MonoIgnoreThen.java:263) at reactor.core.publisher.MonoIgnoreThen.subscribe(MonoIgnoreThen.java:51) at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64) at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:157) at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:74) at reactor.core.publisher.MonoNext$NextSubscriber.onNext(MonoNext.java:82) at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.innerNext(FluxConcatMap.java:282) at reactor.core.publisher.FluxConcatMap$ConcatMapInner.onNext(FluxConcatMap.java:863) at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:129) at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onNext(MonoPeekTerminal.java:180) at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2400) at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.request(MonoPeekTerminal.java:139) at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.request(FluxMapFuseable.java:171) at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.set(Operators.java:2196) at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onSubscribe(Operators.java:2070) at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onSubscribe(FluxMapFuseable.java:96) at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onSubscribe(MonoPeekTerminal.java:152) at reactor.core.publisher.MonoJust.subscribe(MonoJust.java:55) at reactor.core.publisher.Mono.subscribe(Mono.java:4490) at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.drain(FluxConcatMap.java:451) at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.onSubscribe(FluxConcatMap.java:219) at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:201) at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:83) at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64) at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:53) at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64) at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:53) at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64) at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:53) at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64) at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:53) at reactor.core.publisher.Mono.subscribe(Mono.java:4490) at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext(MonoIgnoreThen.java:263) at reactor.core.publisher.MonoIgnoreThen.subscribe(MonoIgnoreThen.java:51) at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64) at reactor.core.publisher.MonoDeferContextual.subscribe(MonoDeferContextual.java:55) at reactor.netty.http.server.HttpServer$HttpServerHandle.onStateChange(HttpServer.java:1112) at reactor.netty.ReactorNetty$CompositeConnectionObserver.onStateChange(ReactorNetty.java:707) at reactor.netty.transport.ServerTransport$ChildObserver.onStateChange(ServerTransport.java:481) at reactor.netty.http.server.HttpServerOperations.onInboundNext(HttpServerOperations.java:626) at reactor.netty.channel.ChannelOperationsHandler.channelRead(ChannelOperationsHandler.java:114) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) at reactor.netty.http.server.HttpTrafficHandler.channelRead(HttpTrafficHandler.java:230) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:436) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:318) at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:251) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:750) Caused by: org.springframework.beans.TypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'; nested exception is java.lang.NumberFormatException: For input string: "download" at org.springframework.beans.TypeConverterSupport.convertIfNecessary(TypeConverterSupport.java:79) at org.springframework.beans.TypeConverterSupport.convertIfNecessary(TypeConverterSupport.java:53) at org.springframework.validation.DataBinder.convertIfNecessary(DataBinder.java:729) at org.springframework.web.reactive.result.method.annotation.AbstractNamedValueArgumentResolver.applyConversion(AbstractNamedValueArgumentResolver.java:192) ... 81 common frames omitted Caused by: java.lang.NumberFormatException: For input string: "download" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at java.lang.Integer.valueOf(Integer.java:766) at org.springframework.util.NumberUtils.parseNumber(NumberUtils.java:211) at org.springframework.beans.propertyeditors.CustomNumberEditor.setAsText(CustomNumberEditor.java:115) at org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:429) at org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:402) at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:155) at org.springframework.beans.TypeConverterSupport.convertIfNecessary(TypeConverterSupport.java:73) ... 84 common frames omitted 2025-09-24 17:53:19.913 [reactor-http-nio-3] DEBUG o.s.w.r.r.m.annotation.ResponseBodyResultHandler - [55b83e41-10] Using 'application/json' given [application/json, text/plain, */*] and supported [application/json, application/*+json, application/x-ndjson, text/event-stream] 2025-09-24 17:53:19.913 [reactor-http-nio-3] DEBUG o.s.w.r.r.m.annotation.ResponseBodyResultHandler - [55b83e41-10] 0..1 [com.hvlink.common.Result<?>] 2025-09-24 17:53:19.913 [reactor-http-nio-3] DEBUG o.s.http.codec.json.Jackson2JsonEncoder - [55b83e41-10] Encoding [Result(status=500, msg=发现未知问题,请联系管理员!, data=null, timestamp=1758707599913)] 2025-09-24 17:53:19.914 [reactor-http-nio-3] DEBUG reactor.netty.http.server.HttpServerOperations - [55b83e41-1, L:/192.168.10.130:9000 - R:/192.168.10.130:61599] Detected non persistent http connection, preparing to close 2025-09-24 17:53:19.914 [reactor-http-nio-3] DEBUG reactor.netty.http.server.HttpServerOperations - [55b83e41-1, L:/192.168.10.130:9000 - R:/192.168.10.130:61599] Last HTTP packet was sent, terminating the channel 2025-09-24 17:53:19.914 [reactor-http-nio-3] DEBUG reactor.netty.channel.ChannelOperations - [55b83e41-1, L:/192.168.10.130:9000 - R:/192.168.10.130:61599] [HttpServer] Channel inbound receiver cancelled (operation cancelled). 2025-09-24 17:53:19.915 [reactor-http-nio-3] DEBUG o.s.web.server.adapter.HttpWebHandlerAdapter - [55b83e41-10] Completed 500 INTERNAL_SERVER_ERROR 2025-09-24 17:53:20.013 [scheduling-1] DEBUG io.lettuce.core.RedisChannelHandler - dispatching command SubscriptionCommand [type=GET, output=ValueOutput [output=null, error='null'], commandType=io.lettuce.core.protocol.Command] 2025-09-24 17:53:20.013 [scheduling-1] DEBUG io.lettuce.core.protocol.DefaultEndpoint - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379, epid=0x1] write() writeAndFlush command SubscriptionCommand [type=GET, output=ValueOutput [output=null, error='null'], commandType=io.lettuce.core.protocol.Command] 2025-09-24 17:53:20.013 [scheduling-1] DEBUG io.lettuce.core.protocol.DefaultEndpoint - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379, epid=0x1] write() done 2025-09-24 17:53:20.013 [lettuce-nioEventLoop-5-1] DEBUG io.lettuce.core.protocol.CommandHandler - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379, epid=0x1, chid=0x1] write(ctx, SubscriptionCommand [type=GET, output=ValueOutput [output=null, error='null'], commandType=io.lettuce.core.protocol.Command], promise) 2025-09-24 17:53:20.013 [scheduling-1] DEBUG io.lettuce.core.RedisChannelHandler - dispatching command SubscriptionCommand [type=GET, output=ValueOutput [output=null, error='null'], commandType=io.lettuce.core.protocol.Command] 2025-09-24 17:53:20.013 [lettuce-nioEventLoop-5-1] DEBUG io.lettuce.core.protocol.CommandEncoder - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379] writing command SubscriptionCommand [type=GET, output=ValueOutput [output=null, error='null'], commandType=io.lettuce.core.protocol.Command] 2025-09-24 17:53:20.013 [scheduling-1] DEBUG io.lettuce.core.protocol.DefaultEndpoint - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379, epid=0x1] write() writeAndFlush command SubscriptionCommand [type=GET, output=ValueOutput [output=null, error='null'], commandType=io.lettuce.core.protocol.Command] 2025-09-24 17:53:20.013 [scheduling-1] DEBUG io.lettuce.core.protocol.DefaultEndpoint - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379, epid=0x1] write() done 2025-09-24 17:53:20.013 [scheduling-1] DEBUG io.lettuce.core.RedisChannelHandler - dispatching command SubscriptionCommand [type=SET, output=StatusOutput [output=null, error='null'], commandType=io.lettuce.core.protocol.Command] 2025-09-24 17:53:20.013 [scheduling-1] DEBUG io.lettuce.core.protocol.DefaultEndpoint - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379, epid=0x1] write() writeAndFlush command SubscriptionCommand [type=SET, output=StatusOutput [output=null, error='null'], commandType=io.lettuce.core.protocol.Command] 2025-09-24 17:53:20.013 [lettuce-nioEventLoop-5-1] DEBUG io.lettuce.core.protocol.CommandHandler - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379, epid=0x1, chid=0x1] write(ctx, SubscriptionCommand [type=GET, output=ValueOutput [output=null, error='null'], commandType=io.lettuce.core.protocol.Command], promise) 2025-09-24 17:53:20.014 [scheduling-1] DEBUG io.lettuce.core.protocol.DefaultEndpoint - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379, epid=0x1] write() done 2025-09-24 17:53:20.014 [lettuce-nioEventLoop-5-1] DEBUG io.lettuce.core.protocol.CommandEncoder - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379] writing command SubscriptionCommand [type=GET, output=ValueOutput [output=null, error='null'], commandType=io.lettuce.core.protocol.Command] 2025-09-24 17:53:20.014 [scheduling-1] DEBUG io.lettuce.core.RedisChannelHandler - dispatching command SubscriptionCommand [type=DEL, output=IntegerOutput [output=null, error='null'], commandType=io.lettuce.core.protocol.Command] 2025-09-24 17:53:20.014 [scheduling-1] DEBUG io.lettuce.core.protocol.DefaultEndpoint - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379, epid=0x1] write() writeAndFlush command SubscriptionCommand [type=DEL, output=IntegerOutput [output=null, error='null'], commandType=io.lettuce.core.protocol.Command] 2025-09-24 17:53:20.014 [scheduling-1] DEBUG io.lettuce.core.protocol.DefaultEndpoint - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379, epid=0x1] write() done 2025-09-24 17:53:20.014 [lettuce-nioEventLoop-5-1] DEBUG io.lettuce.core.protocol.CommandHandler - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379, epid=0x1, chid=0x1] write(ctx, SubscriptionCommand [type=SET, output=StatusOutput [output=null, error='null'], commandType=io.lettuce.core.protocol.Command], promise) 2025-09-24 17:53:20.014 [lettuce-nioEventLoop-5-1] DEBUG io.lettuce.core.protocol.CommandEncoder - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379] writing command SubscriptionCommand [type=SET, output=StatusOutput [output=null, error='null'], commandType=io.lettuce.core.protocol.Command] 2025-09-24 17:53:20.014 [lettuce-nioEventLoop-5-1] DEBUG io.lettuce.core.protocol.CommandHandler - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379, epid=0x1, chid=0x1] write(ctx, SubscriptionCommand [type=DEL, output=IntegerOutput [output=null, error='null'], commandType=io.lettuce.core.protocol.Command], promise) 2025-09-24 17:53:20.014 [lettuce-nioEventLoop-5-1] DEBUG io.lettuce.core.protocol.CommandEncoder - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379] writing command SubscriptionCommand [type=DEL, output=IntegerOutput [output=null, error='null'], commandType=io.lettuce.core.protocol.Command] 2025-09-24 17:53:20.014 [lettuce-nioEventLoop-5-1] DEBUG io.lettuce.core.protocol.CommandHandler - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379, epid=0x1, chid=0x1] Received: 27 bytes, 4 commands in the stack 2025-09-24 17:53:20.014 [lettuce-nioEventLoop-5-1] DEBUG io.lettuce.core.protocol.CommandHandler - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379, epid=0x1, chid=0x1] Stack contains: 4 commands 2025-09-24 17:53:20.014 [lettuce-nioEventLoop-5-1] DEBUG io.lettuce.core.protocol.RedisStateMachine - Decode done, empty stack: true 2025-09-24 17:53:20.014 [lettuce-nioEventLoop-5-1] DEBUG io.lettuce.core.protocol.CommandHandler - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379, epid=0x1, chid=0x1] Completing command LatencyMeteredCommand [type=GET, output=ValueOutput [output=null, error='null'], commandType=io.lettuce.core.RedisPublisher$SubscriptionCommand] 2025-09-24 17:53:20.014 [lettuce-nioEventLoop-5-1] DEBUG io.lettuce.core.protocol.CommandHandler - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379, epid=0x1, chid=0x1] Stack contains: 3 commands 2025-09-24 17:53:20.014 [lettuce-nioEventLoop-5-1] DEBUG io.lettuce.core.protocol.RedisStateMachine - Decode done, empty stack: true 2025-09-24 17:53:20.014 [lettuce-nioEventLoop-5-1] DEBUG io.lettuce.core.protocol.CommandHandler - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379, epid=0x1, chid=0x1] Completing command LatencyMeteredCommand [type=GET, output=ValueOutput [output=java.nio.HeapByteBuffer[pos=0 lim=10 cap=10], error='null'], commandType=io.lettuce.core.RedisPublisher$SubscriptionCommand] 2022-09-11 2025-09-24 17:53:20.014 [lettuce-nioEventLoop-5-1] DEBUG io.lettuce.core.protocol.CommandHandler - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379, epid=0x1, chid=0x1] Stack contains: 2 commands 2025-09-24 17:53:20.014 [lettuce-nioEventLoop-5-1] DEBUG io.lettuce.core.protocol.RedisStateMachine - Decode done, empty stack: true 2025-09-24 17:53:20.014 [lettuce-nioEventLoop-5-1] DEBUG io.lettuce.core.protocol.CommandHandler - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379, epid=0x1, chid=0x1] Completing command LatencyMeteredCommand [type=SET, output=StatusOutput [output=OK, error='null'], commandType=io.lettuce.core.RedisPublisher$SubscriptionCommand] 2025-09-24 17:53:20.014 [lettuce-nioEventLoop-5-1] DEBUG io.lettuce.core.protocol.CommandHandler - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379, epid=0x1, chid=0x1] Received: 4 bytes, 1 commands in the stack 2025-09-24 17:53:20.014 [lettuce-nioEventLoop-5-1] DEBUG io.lettuce.core.protocol.CommandHandler - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379, epid=0x1, chid=0x1] Stack contains: 1 commands 2025-09-24 17:53:20.014 [lettuce-nioEventLoop-5-1] DEBUG io.lettuce.core.protocol.RedisStateMachine - Decode done, empty stack: true 2025-09-24 17:53:20.014 [lettuce-nioEventLoop-5-1] DEBUG io.lettuce.core.protocol.CommandHandler - [channel=0x376bb0c8, /127.0.0.1:55621 -> localhost/127.0.0.1:6379, epid=0x1, chid=0x1] Completing command LatencyMeteredCommand [type=DEL, output=IntegerOutput [output=1, error='null'], commandType=io.lettuce.core.RedisPublisher$SubscriptionCommand] 2025-09-24 17:53:20.014 [lettuce-nioEventLoop-5-1] INFO com.hvlink.service.batch.MasterDataSyncJob - 删除KEY数量:true
09-25
14:25:21.623 [rmFlowTaskDataTaskCli-1] DEBUG org.springframework.orm.jpa.JpaTransactionManager - Closing JPA EntityManager [SessionImpl(347877159<open>)] after transaction 14:25:21.623 [rmEsRmDataTaskCli-1] ERROR com.hd.rcugrc.product.oa.data.handle.task.InitYearDataTableCatTask - 处理RM_ES_TABLE数据失败,rmDataYearId:TEST_1762151121301 javax.persistence.TransactionRequiredException: Executing an update/delete query at org.hibernate.internal.AbstractSharedSessionContract.checkTransactionNeededForUpdateOperation(AbstractSharedSessionContract.java:413) at org.hibernate.query.internal.AbstractProducedQuery.executeUpdate(AbstractProducedQuery.java:1608) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.orm.jpa.SharedEntityManagerCreator$DeferredQueryInvocationHandler.invoke(SharedEntityManagerCreator.java:409) at com.sun.proxy.$Proxy113.executeUpdate(Unknown Source) at com.hd.rcugrc.product.oa.data.service.impl.RmCommonService.exceuteSql(RmCommonService.java:168) at com.hd.rcugrc.product.oa.data.handle.service.impl.EsDataInitHandleServiceImpl.updateTableDataInitStatus(EsDataInitHandleServiceImpl.java:98) at com.hd.rcugrc.product.oa.data.handle.service.impl.EsDataInitHandleServiceImpl.initRmEsData(EsDataInitHandleServiceImpl.java:48) at com.hd.rcugrc.product.oa.data.handle.service.impl.DataInitializationServiceImpl.initRemoveEsData(DataInitializationServiceImpl.java:377) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:205) at com.sun.proxy.$Proxy101.initRemoveEsData(Unknown Source) at com.hd.rcugrc.product.oa.data.handle.task.InitYearDataTableCatTask.run(InitYearDataTableCatTask.java:141) at com.hd.rcugrc.product.oa.data.handle.task.InitYearDataTableCatDelayTaskExecutorImpl.executeTask(InitYearDataTableCatDelayTaskExecutorImpl.java:164) at com.hd.rcugrc.product.oa.data.handle.task.InitYearDataTableCatDelayTaskExecutorImpl.lambda$0(InitYearDataTableCatDelayTaskExecutorImpl.java:134) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) 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) 14:25:21.623 [rmFlowTaskDataTaskCli-1] ERROR com.hd.rcugrc.product.oa.data.handle.task.InitYearDataTableCatTask - 处理FLOW_TASK_TABLE数据失败,rmDataYearId:TEST_1762151121301 java.lang.NullPointerException: null at java.util.Arrays.stream(Arrays.java:5004) at java.util.stream.Stream.of(Stream.java:1000) at com.hd.rcugrc.product.oa.data.handle.service.impl.CommonDataInitHandleServiceImpl.initAllTableData(CommonDataInitHandleServiceImpl.java:86) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:366) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:118) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212) at com.sun.proxy.$Proxy98.initAllTableData(Unknown Source) at com.hd.rcugrc.product.oa.data.handle.service.impl.DataInitializationServiceImpl.initFlowTaskData(DataInitializationServiceImpl.java:397) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:205) at com.sun.proxy.$Proxy101.initFlowTaskData(Unknown Source) at com.hd.rcugrc.product.oa.data.handle.task.InitYearDataTableCatTask.run(InitYearDataTableCatTask.java:137) at com.hd.rcugrc.product.oa.data.handle.task.InitYearDataTableCatDelayTaskExecutorImpl.executeTask(InitYearDataTableCatDelayTaskExecutorImpl.java:164) at com.hd.rcugrc.product.oa.data.handle.task.InitYearDataTableCatDelayTaskExecutorImpl.lambda$0(InitYearDataTableCatDelayTaskExecutorImpl.java:134) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) 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) 14:25:21.624 [rmEsRmDataTaskCli-1] DEBUG com.hd.rcugrc.product.oa.data.handle.task.InitYearDataTableCatDelayTaskExecutorImpl - inner finally, unlock rmEsRmDataTaskLock. 14:25:21.624 [rmFlowTaskDataTaskCli-1] DEBUG com.hd.rcugrc.product.oa.data.handle.task.InitYearDataTableCatDelayTaskExecutorImpl - inner finally, unlock rmFlowTaskDataTaskLock. 14:25:21.624 [rmEsRmDataTaskCli-1] DEBUG com.hd.rcugrc.product.oa.data.handle.task.InitYearDataTableCatDelayTaskExecutorImpl - outer finally, unlock rmEsRmDataTaskLock. 14:25:21.624 [rmFlowTaskDataTaskCli-1] DEBUG com.hd.rcugrc.product.oa.data.handle.task.InitYearDataTableCatDelayTaskExecutorImpl - outer finally, unlock rmFlowTaskDataTaskLock. 14:25:21.624 [rmEsRmDataTaskCli-1] ERROR org.springframework.scheduling.support.TaskUtils$LoggingErrorHandler - Unexpected error occurred in scheduled task org.redisson.RedissonShutdownException: Redisson is shutdown at org.redisson.command.RedisExecutor.execute(RedisExecutor.java:110) at org.redisson.command.CommandAsyncService.async(CommandAsyncService.java:606) at org.redisson.command.CommandAsyncService.writeAsync(CommandAsyncService.java:591) at org.redisson.RedissonBaseLock.isExistsAsync(RedissonBaseLock.java:263) at org.redisson.RedissonObject.isExists(RedissonObject.java:231) at org.redisson.RedissonBaseLock.isLocked(RedissonBaseLock.java:253) at com.hd.rcugrc.product.oa.data.handle.task.InitYearDataTableCatDelayTaskExecutorImpl.executeTask(InitYearDataTableCatDelayTaskExecutorImpl.java:178) at com.hd.rcugrc.product.oa.data.handle.task.InitYearDataTableCatDelayTaskExecutorImpl.lambda$0(InitYearDataTableCatDelayTaskExecutorImpl.java:134) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) 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) 14:25:21.624 [rmFlowTaskDataTaskCli-1] ERROR org.springframework.scheduling.support.TaskUtils$LoggingErrorHandler - Unexpected error occurred in scheduled task org.redisson.RedissonShutdownException: Redisson is shutdown at org.redisson.command.RedisExecutor.execute(RedisExecutor.java:110) at org.redisson.command.CommandAsyncService.async(CommandAsyncService.java:606) at org.redisson.command.CommandAsyncService.writeAsync(CommandAsyncService.java:591) at org.redisson.RedissonBaseLock.isExistsAsync(RedissonBaseLock.java:263) at org.redisson.RedissonObject.isExists(RedissonObject.java:231) at org.redisson.RedissonBaseLock.isLocked(RedissonBaseLock.java:253) at com.hd.rcugrc.product.oa.data.handle.task.InitYearDataTableCatDelayTaskExecutorImpl.executeTask(InitYearDataTableCatDelayTaskExecutorImpl.java:178) at com.hd.rcugrc.product.oa.data.handle.task.InitYearDataTableCatDelayTaskExecutorImpl.lambda$0(InitYearDataTableCatDelayTaskExecutorImpl.java:134) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) 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) 14:25:23.176 [redisson-timer-4-1] DEBUG org.redisson.command.RedisExecutor - connection released for command (HGET) and params [oaRmDataTableCache, PooledUnsafeDirectByteBuf(ridx: 0, widx: 16, cap: 256)] from slot NodeSource [slot=0, addr=null, redisClient=null, redirect=null, entry=null] using connection RedisConnection@1009181943 [redisClient=[addr=redis://redistest.hd.com:6379], channel=[id: 0x4337e552, L:/127.0.0.1:61209 ! R:redistest.hd.com/127.0.0.1:6379], currentCommand=CommandData [promise=RedissonPromise [promise=ImmediateEventExecutor$ImmediatePromise@41c62416(incomplete)], command=(QUIT), params=[], codec=null]] 14:25:23.176 [redisson-timer-4-1] DEBUG org.redisson.command.RedisExecutor - attempt 1 for command (HGET) and params [oaRmDataTableCache, PooledUnsafeDirectByteBuf(ridx: 0, widx: 16, cap: 256)] 14:25:23.177 [redisson-timer-4-1] DEBUG org.redisson.command.RedisExecutor - connection released for command (HGET) and params [oaRmDataTableCache, PooledUnsafeDirectByteBuf(ridx: 0, widx: 16, cap: 256)] from slot NodeSource [slot=0, addr=null, redisClient=null, redirect=null, entry=null] using connection RedisConnection@1745450943 [redisClient=[addr=redis://redistest.hd.com:6379], channel=[id: 0x11494f8b, L:/127.0.0.1:61211 ! R:redistest.hd.com/127.0.0.1:6379], currentCommand=CommandData [promise=RedissonPromise [promise=ImmediateEventExecutor$ImmediatePromise@310584cf(incomplete)], command=(QUIT), params=[], codec=null]] 14:25:23.177 [redisson-timer-4-1] DEBUG org.redisson.command.RedisExecutor - attempt 1 for command (HGET) and params [oaRmDataTableCache, PooledUnsafeDirectByteBuf(ridx: 0, widx: 16, cap: 256)] 14:25:23.177 [redisson-timer-4-1] DEBUG org.redisson.command.RedisExecutor - connection released for command (HGET) and params [oaRmDataTableCache, PooledUnsafeDirectByteBuf(ridx: 0, widx: 16, cap: 256)] from slot NodeSource [slot=0, addr=null, redisClient=null, redirect=null, entry=null] using connection RedisConnection@233290384 [redisClient=[addr=redis://redistest.hd.com:6379], channel=[id: 0x167bc4ff, L:/127.0.0.1:61212 ! R:redistest.hd.com/127.0.0.1:6379], currentCommand=CommandData [promise=RedissonPromise [promise=ImmediateEventExecutor$ImmediatePromise@4ffd80d8(incomplete)], command=(QUIT), params=[], codec=null]] 14:25:23.177 [redisson-timer-4-1] DEBUG org.redisson.command.RedisExecutor - attempt 1 for command (HGET) and params [oaRmDataTableCache, PooledUnsafeDirectByteBuf(ridx: 0, widx: 16, cap: 256)] 14:25:23.177 [redisson-timer-4-1] DEBUG org.redisson.command.RedisExecutor - connection released for command (EVAL) and params [if ARGV[4] == '1' then redis.call('publish', KEYS[2], ARGV[3]); end;if ARGV[4] == '2' then redis.cal..., 3, oaRmDataTableCache, {oaRmDataTableCache}:topic, redisson__cache_updates_log:{oaRmDataTableCache}, PooledUnsafeDirectByteBuf(ridx: 0, widx: 16, cap: 256), PooledUnsafeDirectByteBuf(ridx: 0, widx: 369, cap: 512), PooledUnsafeDirectByteBuf(ridx: 0, widx: 37, cap: 256), 2, 1762151121599, ...] from slot NodeSource [slot=0, addr=null, redisClient=null, redirect=null, entry=null] using connection RedisConnection@1272847902 [redisClient=[addr=redis://redistest.hd.com:6379], channel=[id: 0x2e68157d, L:/127.0.0.1:61210 ! R:redistest.hd.com/127.0.0.1:6379], currentCommand=CommandData [promise=RedissonPromise [promise=ImmediateEventExecutor$ImmediatePromise@44bc7c77(incomplete)], command=(QUIT), params=[], codec=null]] 14:25:23.177 [redisson-timer-4-1] DEBUG org.redisson.command.RedisExecutor - attempt 1 for command (EVAL) and params [if ARGV[4] == '1' then redis.call('publish', KEYS[2], ARGV[3]); end;if ARGV[4] == '2' then redis.cal..., 3, oaRmDataTableCache, {oaRmDataTableCache}:topic, redisson__cache_updates_log:{oaRmDataTableCache}, PooledUnsafeDirectByteBuf(ridx: 0, widx: 16, cap: 256), PooledUnsafeDirectByteBuf(ridx: 0, widx: 369, cap: 512), PooledUnsafeDirectByteBuf(ridx: 0, widx: 37, cap: 256), 2, 1762151121599, ...] 14:25:23.179 [redisson-netty-2-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 4 thread-local buffer(s) from thread: redisson-netty-2-1
最新发布
11-04
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值