This discussion is archived
1 Reply Latest reply: Jul 8, 2013 1:43 AM by pabhat RSS

java.lang.UnsatisfiedLinkError: oracle.jms.AQjmsSession.ociinit([JII)J

1012115 Newbie
Currently Being Moderated
I am getting the following exception while dequeing the JMS text payload from Oracle AQ.
Exception in thread "main" java.lang.UnsatisfiedLinkError: oracle.jms.AQjmsSession.ociinit([JII)J
     at oracle.jms.AQjmsSession.ociinit(Native Method)
     at oracle.jms.AQjmsSession.getOCIHandles(AQjmsSession.java:5470)
     at oracle.jms.AQjmsSession.<init>(AQjmsSession.java:300)
     at oracle.jms.AQjmsConnection.createQueueSession(AQjmsConnection.java:983)
     at com.multiplan.test.OracleAQJMSTest.createSession(OracleAQJMSTest.java:78)
     at com.multiplan.test.OracleAQJMSTest.main(OracleAQJMSTest.java:29)

I am using the below code
1. QueueConnectionFactory qcfact = AQjmsFactory.getQueueConnectionFactory("10.0.0.44", "orcl", 1521, "oci8");
2. QueueConnection qconn = qcfact.createQueueConnection( "scott","tiger");          
3. QueueSession qsess = qconn.createQueueSession(true, Session.CLIENT_ACKNOWLEDGE);
4. qconn.start() ;

I am getting this problem at step 3 and because of OCI driver and it working fine with thin driver.
we are using Oracle client 11.2.0. I am using aqapi13.jar in classpath.
when we use the jar aqapi.jar from Oracle_Home\RDBMS\jlib folder, getting the below exception
org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation com.inprise.vbroker.orb.ORB vmcid: 0x0 minor code: 0 completed: No

Please help me. Thanks in advance.

Edited by: 1009112 on May 31, 2013 5:35 AM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points