Hi

Maybe try to package your apps separated as two .war files with their
own JARs so you dont use shared libs in Tomcat - as that is not a good
practice.

On Mon, Jun 15, 2020 at 7:35 PM Arthur Rubin <arthur.ru...@stagrp.com> wrote:
>
> Hi
> I don't have super, deep experience with Camel but I've been using it very 
> successfully for years.  I have a very simple route that is failing.  The 
> problem below seems to be occurring at the very last step when the message is 
> being written to an MQ.
>
> I have another route running in a separate .war file on the same box and same 
> Tomcat installation which successfully writes to this exact same MQ.  I made 
> sure the pom files are identical so that all the versions of SW are 
> identical.  I checked the two libs folder down under /opt/tomcat/webapps and 
> all the lib versions are the same.  The MQ libs are up in /opt/tomcat/lib and 
> should be shared between the two .war files.  I suspect some sort of 
> classloader issue but I don't know how that could be different across the two 
> .war files.
>
> Any help or insights would be extremely greatly appreciated.
>
> Thanks in advance,
> Arthur.
>
> Here is my version info:
>
> Camel version: 2.15.3
> MQ version: WebSphere MQ 7.5.0.2
> Tomcat version: Apache Tomcat/8.5.9
> Spring version: 5.0.4.RELEASE
> OS:  64 Bit CentOS 7.3
>
> Here is my output and error stack trace:
>
> 2020-06-15 11:15:20,138 INFO  zzzFllRouterForxxxxxxxxx - <?xml version="1.0" 
> encoding="UTF-8"?> <ACARSUplinkMsg>
>   <Header>
>     <Version>1</Version>
>     <TrackingID>414d5120504443353050485331202020135b555eeccf3523</TrackingID>
>     <SourceSystem>ZZZ</SourceSystem>
>     <MessageType>ZZZ_PF</MessageType>
>     <Timestamp>2020-06-03T15:07:44</Timestamp>
>     <FltHubTimeStamp>2020-02-27T19:36:59</FltHubTimeStamp>
>   </Header>
>   <OrigDTG>031507</OrigDTG>
>   <Flight>
>     <Key>
>       <AirlineCode>
>         <IATA>XX</IATA>
>       </AirlineCode>
>       <FltNum>XXnnnn</FltNum>
>       <ArrSta>KDTW</ArrSta>
>       <Rwy>22R</Rwy>
>     </Key>
>   </Flight>
>   <Aircraft>
>     <AircraftRegNum>Nxxxxx </AircraftRegNum>
>   </Aircraft>
>   <MessageText>
>     <FreeText><![CDATA[
> ZZZ FRICTION LIMIT REPORT
> MEDIUM OR LESS
> XX2559 ****-****
>
>  TIME  STA  RWY FRICTION LIMIT
>  1506Z KDTW 22R FL3
>
> AUTOMATED ZZZ RESPONSE
> ]]>
> </FreeText>
>   </MessageText>
> </ACARSUplinkMsg>
> 2020-06-15 11:15:20,199 INFO  zzzFllRouterForxxxxxxxxx - Message has 
> CARRIER_ICAO Header = XXL
> 2020-06-15 11:15:20,209 INFO  zzzFllRouterForxxxxxxxxx - About to send 
> message to 
> jms:queue:ZZZ.ACARS.UPLINK?connectionFactory=xx1AcarsConnectionFactory
> 2020-06-15 11:15:20,548 INFO  error - Exchange[ExchangePattern: InOnly, 
> BodyType: String, Body: <?xml version="1.0" 
> encoding="UTF-8"?><ACARSUplinkMsg>  <Header>    <Version>1</Version>
>
> <TrackingID>414d5120504443353050485331202020135b555eeccf3523</TrackingID>    
> <SourceSystem>ZZZ</SourceSystem>    <MessageType>ZZZ_PF</MessageType>    
> <Timestamp>2020-06-03T15:07:44</Timestamp>    <FltHubTimeStamp>2020-02
>
> -27T19:36:59</FltHubTimeStamp>  </Header>  <OrigDTG>031507</OrigDTG>  
> <Flight>    <Key>      <AirlineCode>        <IATA>XX</IATA>      
> </AirlineCode>      <FltNum>XXnnnn</FltNum>      <ArrSta>KDTW</ArrSta>
>
> <Rwy>22R</Rwy>    </Key>  </Flight>  <Aircraft>    <AircraftRegNum>Nxxxxx 
> </AircraftRegNum>  </Aircraft>  <MessageText>    <FreeText><![CDATA[ZZZ 
> FRICTION LIMIT REPORTMEDI]]></FreeText>  </MessageText></ACARSUplinkMsg>,
>
> CaughtExceptionType: org.springframework.aop.AopInvocationException, 
> CaughtExceptionMessage: AOP configuration seems to be invalid: tried calling 
> method [public abstract javax.jms.Connection
>
> javax.jms.ConnectionFactory.createConnection() throws javax.jms.JMSException] 
> on target [|   com.ibm.mq.jms.MQQueueConnectionFactory  :-
> |   |   XMSC_ADMIN_OBJECT_TYPE             :-  17
> |   |   XMSC_ASYNC_EXCEPTIONS              :-  -1
> |   |   XMSC_CLIENT_ID                     :-  <null>
> |   |   XMSC_CONNECTION_TYPE               :-  1
> |   |   XMSC_CONNECTION_TYPE_NAME          :-  com.ibm.msg.client.wmq
> |   |   XMSC_RTT_DIRECT_AUTH               :-  0
> |   |   XMSC_RTT_PROXY_HOSTNAME            :-  <null>
> |   |   XMSC_RTT_PROXY_PORT                :-  443
> |   |   XMSC_WMQ_BROKER_CC_SUBQ            :-  
> SYSTEM.JMS.ND.CC.SUBSCRIBER.QUEUE
> |   |   XMSC_WMQ_BROKER_CONTROLQ           :-  SYSTEM.BROKER.CONTROL.QUEUE
> |   |   XMSC_WMQ_BROKER_PUBQ               :-  SYSTEM.BROKER.DEFAULT.STREAM
> |   |   XMSC_WMQ_BROKER_QMGR               :-
> |   |   XMSC_WMQ_BROKER_SUBQ               :-  SYSTEM.JMS.ND.SUBSCRIBER.QUEUE
> |   |   XMSC_WMQ_CCDTURL                   :-  <null>
> |   |   XMSC_WMQ_CF_DESCRIPTION            :-  <null>
> |   |   XMSC_WMQ_CHANNEL                   :-  AST.SVRCONN
> |   |   XMSC_WMQ_CLEANUP_INTERVAL          :-  3600000
> |   |   XMSC_WMQ_CLEANUP_LEVEL             :-  1
> |   |   XMSC_WMQ_CLIENT_RECONNECT_OPTIONS  :-  0
> |   |   XMSC_WMQ_CLIENT_RECONNECT_TIMEOUT  :-  1800
> |   |   XMSC_WMQ_CLONE_SUPPORT             :-  0
> |   |   XMSC_WMQ_CONNECTION_MODE           :-  1
> |   |   XMSC_WMQ_CONNECTION_NAME_LIST_INT  :-
> |   |   |   0  :-  144.9.57.94(5120)
> |   |   XMSC_WMQ_CONNECTION_TAG            :-  [B@33eaacb0
> |   |   XMSC_WMQ_CONNECT_OPTIONS           :-  0
> |   |   XMSC_WMQ_HEADER_COMP               :-
> |   |   |   0  :-  0
> |   |   XMSC_WMQ_LOCAL_ADDRESS             :-
> |   |   XMSC_WMQ_MAP_NAME_STYLE            :-  true
> |   |   XMSC_WMQ_MAX_BUFFER_SIZE           :-  1000
> |   |   XMSC_WMQ_MESSAGE_RETENTION         :-  1
> |   |   XMSC_WMQ_MESSAGE_SELECTION         :-  0
> |   |   XMSC_WMQ_MSG_BATCH_SIZE            :-  10
> |   |   XMSC_WMQ_MSG_COMP                  :-
> |   |   |   0  :-  0
> |   |   XMSC_WMQ_OPT_PUB                   :-  false
> |   |   XMSC_WMQ_OUTCOME_NOTIFICATION      :-  true
> |   |   XMSC_WMQ_POLLING_INTERVAL          :-  5000
> |   |   XMSC_WMQ_PROCESS_DURATION          :-  0
> |   |   XMSC_WMQ_PROVIDER_VERSION          :-  unspecified
> |   |   XMSC_WMQ_PUB_ACK_INTERVAL          :-  25
> |   |   XMSC_WMQ_QMGR_CCSID                :-  819
> |   |   XMSC_WMQ_QUEUE_MANAGER             :-
> |   |   XMSC_WMQ_RECEIVE_EXIT              :-  <null>
> |   |   XMSC_WMQ_RECEIVE_EXIT_INIT         :-  <null>
> |   |   XMSC_WMQ_RECEIVE_ISOLATION         :-  0
> |   |   XMSC_WMQ_RESCAN_INTERVAL           :-  5000
> |   |   XMSC_WMQ_SECURITY_EXIT             :-  <null>
> |   |   XMSC_WMQ_SECURITY_EXIT_INIT        :-  <null>
> |   |   XMSC_WMQ_SEND_CHECK_COUNT          :-  0
> |   |   XMSC_WMQ_SEND_EXIT                 :-  <null>
> |   |   XMSC_WMQ_SEND_EXIT_INIT            :-  <null>
> |   |   XMSC_WMQ_SHARE_CONV_ALLOWED        :-  1
> |   |   XMSC_WMQ_SPARSE_SUBSCRIPTIONS      :-  false
> |   |   XMSC_WMQ_SSL_CERT_STORES_COL       :-  <null>
> |   |   XMSC_WMQ_SSL_CERT_STORES_STR       :-  <null>
> |   |   XMSC_WMQ_SSL_CIPHER_SUITE          :-  <null>
> |   |   XMSC_WMQ_SSL_FIPS_REQUIRED         :-  false
> |   |   XMSC_WMQ_SSL_KEY_RESETCOUNT        :-  0
> |   |   XMSC_WMQ_SSL_PEER_NAME             :-  <null>
> |   |   XMSC_WMQ_SSL_SOCKET_FACTORY        :-  <null>
> |   |   XMSC_WMQ_STATUS_REFRESH_INTERVAL   :-  60000
> |   |   XMSC_WMQ_SUBSCRIPTION_STORE        :-  1
> |   |   XMSC_WMQ_SYNCPOINT_ALL_GETS        :-  false
> |   |   XMSC_WMQ_TARGET_CLIENT_MATCHING    :-  true
> |   |   XMSC_WMQ_TEMPORARY_MODEL           :-  SYSTEM.DEFAULT.MODEL.QUEUE
> |   |   XMSC_WMQ_TEMP_Q_PREFIX             :-
> |   |   XMSC_WMQ_TEMP_TOPIC_PREFIX         :-
> |   |   XMSC_WMQ_USE_CONNECTION_POOLING    :-  true
> |   |   brokerVersion                      :-  -1
> |   |   failIfQuiesce                      :-  1
> |   |   multicast                          :-  0
> |   |   version                            :-  7
> |   |   wildcardFormat                     :-  0]; nested exception is 
> java.lang.IllegalArgumentException: object is not an instance of declaring 
> class, StackTrace: org.springframework.aop.AopInvocationException: AOP
>
> configuration seems to be invalid: tried calling method [public abstract 
> javax.jms.Connection javax.jms.ConnectionFactory.createConnection() throws 
> javax.jms.JMSException] on target [|
>
> com.ibm.mq.jms.MQQueueConnectionFactory  :-
> |   |   XMSC_ADMIN_OBJECT_TYPE             :-  17
> |   |   XMSC_ASYNC_EXCEPTIONS              :-  -1
> |   |   XMSC_CLIENT_ID                     :-  <null>
> |   |   XMSC_CONNECTION_TYPE               :-  1
> |   |   XMSC_CONNECTION_TYPE_NAME          :-  com.ibm.msg.client.wmq
> |   |   XMSC_RTT_DIRECT_AUTH               :-  0
> |   |   XMSC_RTT_PROXY_HOSTNAME            :-  <null>
> |   |   XMSC_RTT_PROXY_PORT                :-  443
> |   |   XMSC_WMQ_BROKER_CC_SUBQ            :-  
> SYSTEM.JMS.ND.CC.SUBSCRIBER.QUEUE
> |   |   XMSC_WMQ_BROKER_CONTROLQ           :-  SYSTEM.BROKER.CONTROL.QUEUE
> |   |   XMSC_WMQ_BROKER_PUBQ               :-  SYSTEM.BROKER.DEFAULT.STREAM
> |   |   XMSC_WMQ_BROKER_QMGR               :-
> |   |   XMSC_WMQ_BROKER_SUBQ               :-  SYSTEM.JMS.ND.SUBSCRIBER.QUEUE
> |   |   XMSC_WMQ_CCDTURL                   :-  <null>
> |   |   XMSC_WMQ_CF_DESCRIPTION            :-  <null>
> |   |   XMSC_WMQ_CHANNEL                   :-  ZZZ.SVRCONN
> |   |   XMSC_WMQ_CLEANUP_INTERVAL          :-  3600000
> |   |   XMSC_WMQ_CLEANUP_LEVEL             :-  1
> |   |   XMSC_WMQ_CLIENT_RECONNECT_OPTIONS  :-  0
> |   |   XMSC_WMQ_CLIENT_RECONNECT_TIMEOUT  :-  1800
> |   |   XMSC_WMQ_CLONE_SUPPORT             :-  0
> |   |   XMSC_WMQ_CONNECTION_MODE           :-  1
> |   |   XMSC_WMQ_CONNECTION_NAME_LIST_INT  :-
> |   |   |   0  :-  144.9.57.94(5120)
> |   |   XMSC_WMQ_CONNECTION_TAG            :-  [B@33eaacb0
> |   |   XMSC_WMQ_CONNECT_OPTIONS           :-  0
> |   |   XMSC_WMQ_HEADER_COMP               :-
> |   |   |   0  :-  0
> |   |   XMSC_WMQ_LOCAL_ADDRESS             :-
> |   |   XMSC_WMQ_MAP_NAME_STYLE            :-  true
> |   |   XMSC_WMQ_MAX_BUFFER_SIZE           :-  1000
> |   |   XMSC_WMQ_MESSAGE_RETENTION         :-  1
> |   |   XMSC_WMQ_MESSAGE_SELECTION         :-  0
> |   |   XMSC_WMQ_MSG_BATCH_SIZE            :-  10
> |   |   XMSC_WMQ_MSG_COMP                  :-
> |   |   |   0  :-  0
> |   |   XMSC_WMQ_OPT_PUB                   :-  false
> |   |   XMSC_WMQ_OUTCOME_NOTIFICATION      :-  true
> |   |   XMSC_WMQ_POLLING_INTERVAL          :-  5000
> |   |   XMSC_WMQ_PROCESS_DURATION          :-  0
> |   |   XMSC_WMQ_PROVIDER_VERSION          :-  unspecified
> |   |   XMSC_WMQ_PUB_ACK_INTERVAL          :-  25
> |   |   XMSC_WMQ_QMGR_CCSID                :-  819
> |   |   XMSC_WMQ_QUEUE_MANAGER             :-
> |   |   XMSC_WMQ_RECEIVE_EXIT              :-  <null>
> |   |   XMSC_WMQ_RECEIVE_EXIT_INIT         :-  <null>
> |   |   XMSC_WMQ_RECEIVE_ISOLATION         :-  0
> |   |   XMSC_WMQ_RESCAN_INTERVAL           :-  5000
> |   |   XMSC_WMQ_SECURITY_EXIT             :-  <null>
> |   |   XMSC_WMQ_SECURITY_EXIT_INIT        :-  <null>
> |   |   XMSC_WMQ_SEND_CHECK_COUNT          :-  0
> |   |   XMSC_WMQ_SEND_EXIT                 :-  <null>
> |   |   XMSC_WMQ_SEND_EXIT_INIT            :-  <null>
> |   |   XMSC_WMQ_SHARE_CONV_ALLOWED        :-  1
> |   |   XMSC_WMQ_SPARSE_SUBSCRIPTIONS      :-  false
> |   |   XMSC_WMQ_SSL_CERT_STORES_COL       :-  <null>
> |   |   XMSC_WMQ_SSL_CERT_STORES_STR       :-  <null>
> |   |   XMSC_WMQ_SSL_CIPHER_SUITE          :-  <null>
> |   |   XMSC_WMQ_SSL_FIPS_REQUIRED         :-  false
> |   |   XMSC_WMQ_SSL_KEY_RESETCOUNT        :-  0
> |   |   XMSC_WMQ_SSL_PEER_NAME             :-  <null>
> |   |   XMSC_WMQ_SSL_SOCKET_FACTORY        :-  <null>
> |   |   XMSC_WMQ_STATUS_REFRESH_INTERVAL   :-  60000
> |   |   XMSC_WMQ_SUBSCRIPTION_STORE        :-  1
> |   |   XMSC_WMQ_SYNCPOINT_ALL_GETS        :-  false
> |   |   XMSC_WMQ_TARGET_CLIENT_MATCHING    :-  true
> |   |   XMSC_WMQ_TEMPORARY_MODEL           :-  SYSTEM.DEFAULT.MODEL.QUEUE
> |   |   XMSC_WMQ_TEMP_Q_PREFIX             :-
> |   |   XMSC_WMQ_TEMP_TOPIC_PREFIX         :-
> |   |   XMSC_WMQ_USE_CONNECTION_POOLING    :-  true
> |   |   brokerVersion                      :-  -1
> |   |   failIfQuiesce                      :-  1
> |   |   multicast                          :-  0
> |   |   version                            :-  7
> |   |   wildcardFormat                     :-  0]; nested exception is 
> java.lang.IllegalArgumentException: object is not an instance of declaring 
> class
>         at 
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:346)
>         at 
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:206)
>         at com.sun.proxy.$Proxy1161.createConnection(Unknown Source)
>         at 
> org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:180)
>         at 
> org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:474)
>         at org.apach...]
>
> Disclaimer:
>
> This e-mail message and any documents attached to it are confidential and may 
> contain information that is protected from disclosure by various federal and 
> state laws, including the HIPAA privacy rule (45 C.F.R., Part 164). This 
> information is intended to be used solely by the entity or individual to whom 
> this message is addressed. If you are not the intended recipient, be advised 
> that any use, dissemination, forwarding, printing, or copying of this message 
> without the sender's written permission is strictly prohibited and may be 
> unlawful. Accordingly, if you have received this message in error, please 
> notify the sender immediately by return e-mail and delete this message.
>


-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2
  • Camel Help Arthur Rubin
    • Re: Camel Help Claus Ibsen

Reply via email to