ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Not able to connect to MySQL Database from Broker

Post new topic  Reply to topic
 Not able to connect to MySQL Database from Broker « View previous topic :: View next topic » 
Author Message
GeneRK4
PostPosted: Fri Aug 16, 2013 10:04 am    Post subject: Not able to connect to MySQL Database from Broker Reply with quote

Master

Joined: 08 Jul 2013
Posts: 220

We have two Brokers in a cluster.They are loadbalanced.The brokers are connecting to MySQL database through JDBC .
The JDBC mx connection pool configuration is set as 50 in each broker.

Number of maximum connection in MySQL is :

mysql> show variables like "max_connections";
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| max_connections | 151 |
+-----------------+-------+
1 row in set (0.00 sec)

I am able to connect to Database loadbalancer without any issues when I am connecting from broker directly as,
mysql -h<Database_loadbalancer> -umqbrkrs -pnewpass01

But I am getting error as below when I am connecting to Database loadbalancer,
(When additional instances for flow is there)java.lang.NullPointerException, stack trace: [com.ibm.broker.jdbctype4.connpool.ConnectionPoolWorker.getConnection(ConnectionPoolWorker.java:365) com.ibm.broker.jdbctype4.connpool.ConnectionPool.getConnection(ConnectionPool.java:455) com.ibm.broker.jdbctype4.connpool.ConnectionPoolManager.getConnection(ConnectionPoolManager.java:234) com.ibm.broker.jdbctype4.jdbcdbasemgr.JDBCType4Connection.createNonXAConnection(JDBCType4Connection.java:378) com.ibm.broker.jdbctype4.jdbcdbasemgr.JDBCType4Connection.getT4NodeConnection(JDBCType4Connection.java:1232) com.ibm.broker.jdbctype4.localtrxn.JDBCType4SinglePhaseTrxnHandler.getConnection(JDBCType4SinglePhaseTrxnHandler.java:294) 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:60) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) java.lang.reflect.Method.invoke(Method.java:611) com.ibm.broker.plugin.MbNode.getJDBCType4Connection(MbNode.java:1564) DD01_EPOS_SYNC_REQ_V1_0_CallDBForRetrieveUsage.getJDBCDBConnection(DD01_EPOS_SYNC_REQ_V1_0_CallDBForRetrieveUsage.java:128) DD01_EPOS_SYNC_REQ_V1_0_CallDBForRetrieveUsage.evaluate(DD01_EPOS_SYNC_REQ_V1_0_CallDBForRetrieveUsage.java:56) com.ibm.broker.javacompute.MbRuntimeJavaComputeNode.evaluate

=====================================
When only one instance of flow is there,
<com.ibm.broker.plugin.MbRecoverableException class:com.ibm.broker.jdbctype4.jdbcdbasemgr.JDBCType4Connection@18b518b5 method:JDBCType4Connection::createNonXAConnection source:BIPmsgs key:6231 >'; resource bundle

Please help me ..I am not sure why I am getting this error.I restarted broker many times but no luck..
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Aug 16, 2013 10:09 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

The only databases supported for JDBC Type IV connections are Oracle and DB2.

What version of Broker are you using?

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fah10030_.htm

Quote:
JDBC type 4 support
For non-XA transactions, you can create a JDBC type 4 connection from a broker to all the database servers that are listed in the ODBC support table. Connections are supported from all broker platforms, including z/OS.

For XA connections, the following restrictions apply:

On distributed platforms, only DB2 and Oracle are supported.


ODBC supported databases are:

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fah14440_.htm

Quote:
DB2®1, 2 Informix®5 Microsoft SQL Server1 Oracle1, 3, 4 solidDB® Sybase1

_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Fri Aug 16, 2013 11:11 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

This post has some useful information

http://mqseries.net/phpBB/viewtopic.php?p=354248&sid=d6e60d125291ba9e3895a3949f4aa629

As I read the last post, the OP is not trying to use XA. The error output specifically says NON-XA so the ORacle & DB2 restriction you identified does not apply.

Also with the ODBC extender other databases such as MySQL are supported.\\
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
GeneRK4
PostPosted: Fri Aug 16, 2013 12:20 pm    Post subject: Reply with quote

Master

Joined: 08 Jul 2013
Posts: 220

lancelotlinc wrote:
The only databases supported for JDBC Type IV connections are Oracle and DB2.

What version of Broker are you using?

All databases that supply a JDBC type4 client library seem to work(atleast starting from V7.1).MySQL database connectivity is very well working for me in my dev boxes.
And I am using V8.0.0.2
Back to top
View user's profile Send private message
GeneRK4
PostPosted: Fri Aug 16, 2013 12:21 pm    Post subject: Reply with quote

Master

Joined: 08 Jul 2013
Posts: 220

smdavies99 wrote:
This post has some useful information

http://mqseries.net/phpBB/viewtopic.php?p=354248&sid=d6e60d125291ba9e3895a3949f4aa629
\\


Well..That post was from me .Now this is my new profile...
This time its entirely a new problem that I am facing..Please help
Back to top
View user's profile Send private message
GeneRK4
PostPosted: Fri Aug 16, 2013 2:03 pm    Post subject: Reply with quote

Master

Joined: 08 Jul 2013
Posts: 220

I could somewhat figure out the issue now.
There seems to be no problem with Message broker but there is some problem with Database created newly.
With my old Database I am still able to connect from the same broker with same level of connection pool size.
Problem is only with new Database.
Have asked the DBA to check..Will post if I get any positive results.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Not able to connect to MySQL Database from Broker
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.