Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Upgrade 9.2 to 10g queue connection issue

168346Jul 17 2006 — edited Apr 24 2007
I have been using my standalone java application to dequeue messages using both the 9.2 and 10g queue databases during development and testing. However, when I used the 10g version of aqapi.jar, which was nearly twice the size as the 9.2 version) and ran the application (against the 10g queue), it fails immediately and displays the following:

Exception in thread "main" java.lang.NoSuchMethodError: oracle.jdbc.internal.OracleConnection.getDbCsId()S
at oracle.jms.AQjmsSession.setDBRatio(AQjmsSession.java:474)
at oracle.jms.AQjmsSession.<init>(AQjmsSession.java:343)
at oracle.jms.AQjmsConnection.createQueueSession(AQjmsConnection.java:653)

My code does not call the method getDbCsld() directly. Below is the connection code I have been using. What am I missing? Something as simple as another jar file?

qConnFactory = AQjmsFactory.getQueueConnectionFactory(server, db, port, "thin");
qConn = queueConnectionFactory.createQueueConnection(user, password);
qSession = queueConnection.createQueueSession(true, Session.AUTO_ACKNOWLEDGE);
queue = ((AQjmsSession) qSession).getQueue(aqUser, aqName);
qReceiver = qSession.createReceiver(queue);
qConn.start();

By the way, the failure is raised when createQueueSession is called.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 22 2007
Added on Jul 17 2006
3 comments
4,141 views