|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
JDBC connection problem |
« View previous topic :: View next topic » |
Author |
Message
|
wmqstankela |
Posted: Mon Feb 29, 2016 1:11 am Post subject: JDBC connection problem |
|
|
Voyager
Joined: 29 Feb 2016 Posts: 94
|
Hi,
I have problem to connect to Oracle database from mapping node. I created jdbc configurable service and data model for my DB, but i've got this exception:
Code: |
(0x01000000:Name):RecoverableException = (
(0x03000000:NameValue):File = 'F:\build\slot1\S900_P\src\DataFlowEngine\PluginInterface\ImbJniNode.cpp' (CHARACTER)
(0x03000000:NameValue):Line = 1304 (INTEGER)
(0x03000000:NameValue):Function = 'ImbJniNode::evaluate' (CHARACTER)
(0x03000000:NameValue):Type = 'ComIbmMSLMappingNode' (CHARACTER)
(0x03000000:NameValue):Name = 'LoggerFlow#FCMComposite_1_3' (CHARACTER)
(0x03000000:NameValue):Label = 'LoggerFlow.InsertLogIntoDB' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 2230 (INTEGER)
(0x03000000:NameValue):Text = 'Caught exception and rethrowing' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 14 (INTEGER)
(0x03000000:NameValue):Text = 'LoggerFlow.InsertLogIntoDB' (CHARACTER)
)
(0x01000000:Name ):RecoverableException = (
(0x03000000:NameValue):File = 'MbErrorHandler.java' (CHARACTER)
(0x03000000:NameValue):Line = 154 (INTEGER)
(0x03000000:NameValue):Function = 'evaluate' (CHARACTER)
(0x03000000:NameValue):Type = '' (CHARACTER)
(0x03000000:NameValue):Name = '' (CHARACTER)
(0x03000000:NameValue):Label = '' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 3947 (INTEGER)
(0x03000000:NameValue):Text = 'Caught BrokerXCIDynamicException' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = '{default}:LoggerFlow_InsertLogIntoDB' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'RDBInsert: let $dbinsert1 := jdbc:insert('IB', 'insert into ESB.WFMLOGGER ', $dbinsert1_var_params, xs:int('0'),false(),'', xs:int('7') )' (CHARACTER)
)
(0x01000000:Name ):RecoverableException = (
(0x03000000:NameValue):File = 'MbErrorHandler.java' (CHARACTER)
(0x03000000:NameValue):Line = 281 (INTEGER)
(0x03000000:NameValue):Function = 'throwableToMbException' (CHARACTER)
(0x03000000:NameValue):Type = '' (CHARACTER)
(0x03000000:NameValue):Name = '' (CHARACTER)
(0x03000000:NameValue):Label = '' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 3949 (INTEGER)
(0x03000000:NameValue):Text = 'Caught BrokerXCIDynamicException' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'com.ibm.broker.xci.BrokerXCIException: <com.ibm.broker.plugin.MbRecoverableException class:com.ibm.broker.jdbctype4.jdbcdbasemgr.JDBCType4Connection@745e74b5 method:JDBCType4Connection::createXAConnection source:BIPmsgs key:6231 >
<com.ibm.broker.plugin.MbRecoverableException class:com.ibm.broker.jdbctype4.jdbcdbasemgr.JDBCType4Connection@745e74b5 method:JDBCType4Connection::createXAConnection source:BIPmsgs key:6231 >
' (CHARACTER)
)
(0x01000000:Name ):RecoverableException = (
(0x03000000:NameValue):File = 'JDBCCommon.java' (CHARACTER)
(0x03000000:NameValue):Line = 535 (INTEGER)
(0x03000000:NameValue):Function = 'JDBCType4Connection::createXAConnection' (CHARACTER)
(0x03000000:NameValue):Type = '' (CHARACTER)
(0x03000000:NameValue):Name = '' (CHARACTER)
(0x03000000:NameValue):Label = '' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 6231 (INTEGER)
(0x03000000:NameValue):Text = 'Problem encountered obtaining JDBC connection' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'Broker 'IB9NODE'; Execution Group 'default'; Message Flow 'LoggerFlow'; Node 'InsertLogIntoDB'; Node Type 'Mapping' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = ' message: oracle.jdbc.xa.client.OracleXADataSource stack trace: [java.net.URLClassLoader.findClass(URLClassLoader.java:599)
com.ibm.broker.classloading.JavaResourceClassLoader.findClass(JavaResourceClassLoader.java:155)
com.ibm.broker.classloading.SharedClassLoader.findClass(SharedClassLoader.java:195)
java.lang.ClassLoader.loadClassHelper(ClassLoader.java:760)
java.lang.ClassLoader.loadClass(ClassLoader.java:737)
java.lang.ClassLoader.loadClass(ClassLoader.java:707)
com.ibm.broker.jdbctype4.jdbcdbasemgr.JDBCType4Connection.createXAConnection(JDBCType4Connection.java:189)
com.ibm.broker.jdbctype4.jdbcdbasemgr.JDBCType4DatabaseManager.getThreadOwnedConnections(JDBCType4DatabaseManager.java:308)
com.ibm.broker.jdbctype4.localtrxn.JDBCType4SinglePhaseTrxnHandler.getConnection(JDBCType4SinglePhaseTrxnHandler.java:262)
com.ibm.broker.jdbctype4.localtrxn.JDBCType4SinglePhaseTrxnHandler.getConnection(JDBCType4SinglePhaseTrxnHandler.java:154)
com.ibm.broker.jdbctype4.connfact.JDBCType4ConnectionFactory.getConnection(JDBCType4ConnectionFactory.java:163)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
java.lang.reflect.Method.invoke(Method.java:618)
com.ibm.broker.plugin.MbNode.getJDBCType4Connection(MbNode.java:1564)
com.ibm.broker.ct.mapping.MappingNode.getDBConnection(MappingNode.java:1118)
com.ibm.broker.ct.mapping.JDBCWrapper.prepare(JDBCWrapper.java:2567)
com.ibm.broker.ct.mapping.JDBCWrapper.insert(JDBCWrapper.java:794)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
java.lang.reflect.Method.invoke(Method.java:618)
com.ibm.xml.xci.exec.BasicMutableDynamicContext$JavaMethodExecutable.execute(BasicMutableDynamicContext.java:936)
com.ibm.xml.xci.exec.BasicDynamicContext$ExternalFunction.execute(BasicDynamicContext.java:361)
xmap__default__LoggerFlow_InsertLogIntoDB5ee980ef38b89eef_08__Common_Partition0.xslt2$24$contact admin(com_ibm_xmlns_prod_xltxe_j_linetable)
xmap__default__LoggerFlow_InsertLogIntoDB5ee980ef38b89eef_08__Common_Partition0.xmap__default__LoggerFlow_InsertLogIntoDB5ee980ef38b89eef_08_$24$$24$function$24$__xquery_result_fun__$2d$3(com_ibm_xmlns_prod_xltxe_j_linetable:21)
xmap__default__LoggerFlow_InsertLogIntoDB5ee980ef38b89eef_08_.evaluate(xmap__default__LoggerFlow_InsertLogIntoDB5ee980ef38b89eef_08_.java)
com.ibm.xltxe.rnm1.xtq.xquery.drivers.XQueryExecutable.execute(XQueryExecutable.java:220)
com.ibm.xltxe.rnm1.xtq.xquery.drivers.XQueryExecutable.execute(XQueryExecutable.java:97)
com.ibm.broker.map.MapExecutable.execute(MapExecutable.java:422)
com.ibm.broker.ct.mapping.MappingNode.evaluate(MappingNode.java:340)
com.ibm.broker.plugin.MbNode.evaluate(MbNode.java:1480)]' (CHARACTER)
|
I am using IIB 9 and Oracle 11. Can anyone please help? |
|
Back to top |
|
 |
Vitor |
Posted: Mon Feb 29, 2016 5:31 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Well it looks like you're trying to create an XA connection rather than a "normal" connection.
Do you have the additional XA configuration in place, both at the IIB & Oracle ends? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
martinb |
Posted: Tue Mar 01, 2016 4:21 pm Post subject: |
|
|
Master
Joined: 09 Nov 2006 Posts: 210 Location: UK
|
Double check your JDBC providers settings, jarsURL, and set jdbcProviderXASupport false unless you really need XA support |
|
Back to top |
|
 |
wmqstankela |
Posted: Wed Mar 02, 2016 1:33 am Post subject: |
|
|
Voyager
Joined: 29 Feb 2016 Posts: 94
|
Thanks martinb. Problem was with jdbc providers property jarsURL |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|