Caused by: org.springframework.messaging.converter.MessageConversionException: Could not read JSON: Could not resolve type id ‘AckRemoteApplicationEvent’ as a subtype of [simple type, class org.springframework.cloud.bus.event.RemoteApplicationEvent]: known type ids = []
at [Source: (String)"{“type”:“AckRemoteApplicationEvent”,“timestamp”:1558664833161,“originService”:“config:0:762678107507a3db5e7faa0c4430b96c”,“destinationService”:"",“id”:“89c78769-ff1e-4d16-bc5b-db1e0d138cc2”,“ackId”:“86f07bbf-f431-4dab-bdc1-4f890bf205ec”,“ackDestinationService”:"",“event”:“org.springframework.cloud.bus.event.RefreshRemoteApplicationEvent”}"; line: 1, column: 9]; nested exception is com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Could not resolve type id ‘AckRemoteApplicationEvent’ as a subtype of [simple type, class org.springframework.cloud.bus.event.RemoteApplicationEvent]: known type ids = []
at [Source: (String)"{“type”:“AckRemoteApplicationEvent”,“timestamp”:1558664833161,“originService”:“config:0:762678107507a3db5e7faa0c4430b96c”,“destinationService”:"",“id”:“89c78769-ff1e-4d16-bc5b-db1e0d138cc2”,“ackId”:“86f07bbf-f431-4dab-bdc1-4f890bf205ec”,“ackDestinationService”:"",“event”:“org.springframework.cloud.bus.event.RefreshRemoteApplicationEvent”}"; line: 1, column: 9]
at org.springframework.messaging.converter.MappingJackson2MessageConverter.convertFromInternal(MappingJackson2MessageConverter.java:232) ~[spring-messaging-5.0.0.RC3.jar:5.0.0.RC3]
at org.springframework.messaging.converter.AbstractMessageConverter.fromMessage(AbstractMessageConverter.java:179) ~[spring-messaging-5.0.0.RC3.jar:5.0.0.RC3]
at org.springframework.messaging.converter.CompositeMessageConverter.fromMessage(CompositeMessageConverter.java:68) ~[spring-messaging-5.0.0.RC3.jar:5.0.0.RC3]
at org.springframework.messaging.converter.CompositeMessageConverter.fromMessage(CompositeMessageConverter.java:68) ~[spring-messaging-5.0.0.RC3.jar:5.0.0.RC3]
at org.springframework.messaging.handler.annotation.support.PayloadArgumentResolver.resolveArgument(PayloadArgumentResolver.java:136) ~[spring-messaging-5.0.0.RC3.jar:5.0.0.RC3]
at org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:113) ~[spring-messaging-5.0.0.RC3.jar:5.0.0.RC3]
at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:137) ~[spring-messaging-5.0.0.RC3.jar:5.0.0.RC3]
at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:109) ~[spring-messaging-5.0.0.RC3.jar:5.0.0.RC3]
at org.springframework.cloud.stream.binding.StreamListenerMessageHandler.handleRequestMessage(StreamListenerMessageHandler.java:48) ~[spring-cloud-stream-2.0.0.M1.jar:2.0.0.M1]
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:109) ~[spring-integration-core-5.0.0.M6.jar:5.0.0.M6]
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:132) ~[spring-integration-core-5.0.0.M6.jar:5.0.0.M6]
at org.springframework.cloud.stream.binding.DispatchingStreamListenerMessageHandler$ConditionalStreamListenerHandler.handleMessage(DispatchingStreamListenerMessageHandler.java:122) ~[spring-cloud-stream-2.0.0.M1.jar:2.0.0.M1]
at org.springframework.cloud.stream.binding.DispatchingStreamListenerMessageHandler.handleRequestMessage(DispatchingStreamListenerMessageHandler.java:75) ~[spring-cloud-stream-2.0.0.M1.jar:2.0.0.M1]
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:109) ~[spring-integration-core-5.0.0.M6.jar:5.0.0.M6]
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:132) ~[spring-integration-core-5.0.0.M6.jar:5.0.0.M6]
at org.springframework.integration.dispatcher.AbstractDispatcher.tryOptimizedDispatch(AbstractDispatcher.java:116) ~[spring-integration-core-5.0.0.M6.jar:5.0.0.M6]
at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:132) ~[spring-integration-core-5.0.0.M6.jar:5.0.0.M6]
at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:105) ~[spring-integration-core-5.0.0.M6.jar:5.0.0.M6]
at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:73) ~[spring-integration-core-5.0.0.M6.jar:5.0.0.M6]
at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:423) ~[spring-integration-core-5.0.0.M6.jar:5.0.0.M6]
at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:373) ~[spring-integration-core-5.0.0.M6.jar:5.0.0.M6]
at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:183) ~[spring-messaging-5.0.0.RC3.jar:5.0.0.RC3]
at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:162) ~[spring-messaging-5.0.0.RC3.jar:5.0.0.RC3]
at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:47) ~[spring-messaging-5.0.0.RC3.jar:5.0.0.RC3]
at org.springframework.messaging.core.AbstractMessageSendingTemplate.send(AbstractMessageSendingTemplate.java:108) ~[spring-messaging-5.0.0.RC3.jar:5.0.0.RC3]
at org.springframework.integration.handler.AbstractMessageProducingHandler.sendOutput(AbstractMessageProducingHandler.java:393) ~[spring-integration-core-5.0.0.M6.jar:5.0.0.M6]
at org.springframework.integration.handler.AbstractMessageProducingHandler.produceOutput(AbstractMessageProducingHandler.java:304) ~[spring-integration-core-5.0.0.M6.jar:5.0.0.M6]
at org.springframework.integration.handler.AbstractMessageProducingHandler.sendOutputs(AbstractMessageProducingHandler.java:195) ~[spring-integration-core-5.0.0.M6.jar:5.0.0.M6]
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:115) ~[spring-integration-core-5.0.0.M6.jar:5.0.0.M6]
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:132) ~[spring-integration-core-5.0.0.M6.jar:5.0.0.M6]
at org.springframework.integration.channel.FixedSubscriberChannel.send(FixedSubscriberChannel.java:70) ~[spring-integration-core-5.0.0.M6.jar:5.0.0.M6]
at org.springframework.integration.channel.FixedSubscriberChannel.send(FixedSubscriberChannel.java:64) ~[spring-integration-core-5.0.0.M6.jar:5.0.0.M6]
at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:183) ~[spring-messaging-5.0.0.RC3.jar:5.0.0.RC3]
at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:162) ~[spring-messaging-5.0.0.RC3.jar:5.0.0.RC3]
at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:47) ~[spring-messaging-5.0.0.RC3.jar:5.0.0.RC3]
at org.springframework.messaging.core.AbstractMessageSendingTemplate.send(AbstractMessageSendingTemplate.java:108) ~[spring-messaging-5.0.0.RC3.jar:5.0.0.RC3]
at org.springframework.integration.endpoint.MessageProducerSupport.sendMessage(MessageProducerSupport.java:188) ~[spring-integration-core-5.0.0.M6.jar:5.0.0.M6]
at org.springframework.integration.amqp.inbound.AmqpInboundChannelAdapter.access1000(AmqpInboundChannelAdapter.java:56) [spring−integration−amqp−5.0.0.M6.jar:5.0.0.M6]atorg.springframework.integration.amqp.inbound.AmqpInboundChannelAdapter1000(AmqpInboundChannelAdapter.java:56) ~[spring-integration-amqp-5.0.0.M6.jar:5.0.0.M6]
at org.springframework.integration.amqp.inbound.AmqpInboundChannelAdapter1000(AmqpInboundChannelAdapter.java:56) [spring−integration−amqp−5.0.0.M6.jar:5.0.0.M6]atorg.springframework.integration.amqp.inbound.AmqpInboundChannelAdapterListener.processMessage(AmqpInboundChannelAdapter.java:242) ~[spring-integration-amqp-5.0.0.M6.jar:5.0.0.M6]
at org.springframework.integration.amqp.inbound.AmqpInboundChannelAdapter$Listener.onMessage(AmqpInboundChannelAdapter.java:203) ~[spring-integration-amqp-5.0.0.M6.jar:5.0.0.M6]
at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:1382) ~[spring-rabbit-2.0.0.M5.jar:na]
… 21 common frames omitted
Caused by: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Could not resolve type id ‘AckRemoteApplicationEvent’ as a subtype of [simple type, class org.springframework.cloud.bus.event.RemoteApplicationEvent]: known type ids = []
at [Source: (String)"{“type”:“AckRemoteApplicationEvent”,“timestamp”:1558664833161,“originService”:“config:0:762678107507a3db5e7faa0c4430b96c”,“destinationService”:"",“id”:“89c78769-ff1e-4d16-bc5b-db1e0d138cc2”,“ackId”:“86f07bbf-f431-4dab-bdc1-4f890bf205ec”,“ackDestinationService”:"",“event”:“org.springframework.cloud.bus.event.RefreshRemoteApplicationEvent”}"; line: 1, column: 9]
at com.fasterxml.jackson.databind.exc.InvalidTypeIdException.from(InvalidTypeIdException.java:43) ~[jackson-databind-2.9.0.pr4.jar:2.9.0.pr4]
at com.fasterxml.jackson.databind.DeserializationContext.invalidTypeIdException(DeserializationContext.java:1566) ~[jackson-databind-2.9.0.pr4.jar:2.9.0.pr4]
at com.fasterxml.jackson.databind.DeserializationContext.handleUnknownTypeId(DeserializationContext.java:1164) ~[jackson-databind-2.9.0.pr4.jar:2.9.0.pr4]
at com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase._handleUnknownTypeId(TypeDeserializerBase.java:291) ~[jackson-databind-2.9.0.pr4.jar:2.9.0.pr4]
at com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase._findDeserializer(TypeDeserializerBase.java:162) ~[jackson-databind-2.9.0.pr4.jar:2.9.0.pr4]
at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedForId(AsPropertyTypeDeserializer.java:113) ~[jackson-databind-2.9.0.pr4.jar:2.9.0.pr4]
at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:97) ~[jackson-databind-2.9.0.pr4.jar:2.9.0.pr4]
at com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:254) ~[jackson-databind-2.9.0.pr4.jar:2.9.0.pr4]
at com.fasterxml.jackson.databind.deser.impl.TypeWrappedDeserializer.deserialize(TypeWrappedDeserializer.java:68) ~[jackson-databind-2.9.0.pr4.jar:2.9.0.pr4]
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4011) ~[jackson-databind-2.9.0.pr4.jar:2.9.0.pr4]
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3030) ~[jackson-databind-2.9.0.pr4.jar:2.9.0.pr4]
at org.springframework.messaging.converter.MappingJackson2MessageConverter.convertFromInternal(MappingJackson2MessageConverter.java:227) ~[spring-messaging-5.0.0.RC3.jar:5.0.0.RC3]
… 61 common frames omitted
没有人遇到这个错误吗!rabbitMQ连接上了,但发出actuator/bus-refresh时order报错。rabbitmq和docker都跟老师的版本一样了
登录后可查看更多问答,登录/注册
SpringCloud组件实现微服务,【已升级Finchley.Release】
了解课程