我在尝试发送消息时遇到异常javax.jms.invaliddestinationexception
。已经在IBM Websphere中配置了所有队列。
2018-10-29 20:43:37,968 [WebContainer : 0] DEBUG com.schawk.gcs.image.workflow.subsystem.request.ShotCreationRequest - Dispatching shot creation request for photo id 1350108
2018-10-29 20:43:37,969 [WebContainer : 0] DEBUG com.schawk.gcs.integration.AbstractDispatcherService - Error on ImageShotCreationIntegrationJmsDispatcher : CWSIA0062E: Failed to create a MessageProducer for queue://gcsToWHShotSyncQueue; nested exception is javax.jms.InvalidDestinationException: CWSIA0062E: Failed to create a MessageProducer for queue://gcsToWHShotSyncQueue; nested exception is com.ibm.ws.sib.processor.exceptions.SIMPNotPossibleInCurrentConfigurationException: CWSIK0015E: The destination gcsToWHShotSyncQueue was not found on messaging engine N4SRMGCS04LDNode01.server1-gcsBus.
com.schawk.gcs.integration.GcsIntegrationException: CWSIA0062E: Failed to create a MessageProducer for queue://gcsToWHShotSyncQueue; nested exception is javax.jms.InvalidDestinationException: CWSIA0062E: Failed to create a MessageProducer for queue://gcsToWHShotSyncQueue; nested exception is com.ibm.ws.sib.processor.exceptions.SIMPNotPossibleInCurrentConfigurationException: CWSIK0015E: The destination gcsToWHShotSyncQueue was not found on messaging engine N4SRMGCS04LDNode01.server1-gcsBus.
at com.schawk.gcs.image.shot.creation.integration.ImageShotCreationIntegrationJmsDispatcher.doDispatch(ImageShotCreationIntegrationJmsDispatcher.java:60)
at com.schawk.gcs.integration.AbstractDispatcherService.dispatchRequest(AbstractDispatcherService.java:22)
at com.schawk.gcs.image.shot.creation.integration.AbstractImageShotCreationIntegrationDispatcher.dispatchRequest(AbstractImageShotCreationIntegrationDispatcher.java:19)
at com.schawk.gcs.image.workflow.subsystem.request.ShotCreationRequest.executeRequest(ShotCreationRequest.java:48)
at com.schawk.gcs.image.workflow.impl.ImageWorkFlowInitServiceImpl.startWorkflow(ImageWorkFlowInitServiceImpl.java:114)
at com.schawk.gcs.workflow.service.web.controller.WorkflowController.workflowProcessFromJson(WorkflowController.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:746)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:687)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:915)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:822)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1661)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1602)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:149)
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:125)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
答案 0 :(得分:0)
看起来像一个棘手的问题,并且从错误看来是:
在消息传递引擎上找不到目标gcsToWHShotSyncQueue
似乎被回答here。总结:
当目的地不是目的地时必须抛出此异常 提供者理解或不再有效。
似乎与找不到目的地的原始错误相符