5 Replies Latest reply on Sep 2, 2010 10:21 PM by jessica leahy

    Camel error in fuse esb

    Wille Keltikangas Newbie

      Hi!

       

      I have edited my activemq-broker.xml to create a route between Oracle AQ and ActiveMQ using camel. This configuration works in a standalone Fuse Message Broker (ActiveMQ) by just adding some oracle jars in /lib, but when I try to use this in Fuse ESB, I get all sorts of errors.

       

      Some of these errors were fixed by wrapping the oracle jars (aqapi13_g.jar,dms.jar, ojdbc6dms.jar) and enabling dynamic import on the bundles, but I still have one error that I have spent two days trying to figure out.

       

      12:22:29,053 | INFO  | tenerContainer-1 | DefaultMessageListenerContainer  | .DefaultMessageListenerContainer  801 | Could not refresh JMS Connection for destination 'QueueName' - retrying in 5000 ms. Cause: OAUTH-järjestelyvirhe
      oracle.jms.AQjmsException: OAUTH-järjestelyvirhe
           at oracle.jms.AQjmsDBConnMgr.checkForSecurityException(AQjmsDBConnMgr.java:926)
           at oracle.jms.AQjmsDBConnMgr.getConnection(AQjmsDBConnMgr.java:605)
           at oracle.jms.AQjmsDBConnMgr.<init>(AQjmsDBConnMgr.java:239)
           at oracle.jms.AQjmsConnection.<init>(AQjmsConnection.java:183)
           at oracle.jms.AQjmsConnectionFactory.createConnection(AQjmsConnectionFactory.java:464)
           at org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter.doCreateConnection(UserCredentialsConnectionFactoryAdapter.java:174)
           at org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter.createConnection(UserCredentialsConnectionFactoryAdapter.java:149)
           at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184)
           at org.springframework.jms.listener.AbstractJmsListeningContainer.createSharedConnection(AbstractJmsListeningContainer.java:378)
           at org.springframework.jms.listener.AbstractJmsListeningContainer.refreshSharedConnection(AbstractJmsListeningContainer.java:363)
           at org.springframework.jms.listener.DefaultMessageListenerContainer.refreshConnectionUntilSuccessful(DefaultMessageListenerContainer.java:785)
           at org.springframework.jms.listener.DefaultMessageListenerContainer.recoverAfterListenerSetupFailure(DefaultMessageListenerContainer.java:767)
           at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:898)
           at java.lang.Thread.run(Thread.java:619)
      
      [Linked-exception]
      java.sql.SQLException: OAUTH-järjestelyvirhe
           at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:714)
           at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:368)
           at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:663)
           at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:223)
           at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
           at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:543)
           at java.sql.DriverManager.getConnection(DriverManager.java:582)
           at java.sql.DriverManager.getConnection(DriverManager.java:154)
           at oracle.jms.AQjmsDBConnMgr.getConnection(AQjmsDBConnMgr.java:568)
           at oracle.jms.AQjmsDBConnMgr.<init>(AQjmsDBConnMgr.java:239)
           at oracle.jms.AQjmsConnection.<init>(AQjmsConnection.java:183)
           at oracle.jms.AQjmsConnectionFactory.createConnection(AQjmsConnectionFactory.java:464)
           at org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter.doCreateConnection(UserCredentialsConnectionFactoryAdapter.java:174)
           at org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter.createConnection(UserCredentialsConnectionFactoryAdapter.java:149)
           at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184)
           at org.springframework.jms.listener.AbstractJmsListeningContainer.createSharedConnection(AbstractJmsListeningContainer.java:378)
           at org.springframework.jms.listener.AbstractJmsListeningContainer.refreshSharedConnection(AbstractJmsListeningContainer.java:363)
           at org.springframework.jms.listener.DefaultMessageListenerContainer.refreshConnectionUntilSuccessful(DefaultMessageListenerContainer.java:785)
           at org.springframework.jms.listener.DefaultMessageListenerContainer.recoverAfterListenerSetupFailure(DefaultMessageListenerContainer.java:767)
           at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:898)
           at java.lang.Thread.run(Thread.java:619)

       

      I have attached my activemq-broker.xml file and I can also post my full debug log, if it would help. It would be nice to get this working, any ideas?

       

      -Will K.