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 » Transaction error while connecting to MSN SQL Server

Post new topic  Reply to topic
 Transaction error while connecting to MSN SQL Server « View previous topic :: View next topic » 
Author Message
GeneRK4
PostPosted: Tue Sep 02, 2014 7:37 am    Post subject: Transaction error while connecting to MSN SQL Server Reply with quote

Master

Joined: 08 Jul 2013
Posts: 220

Hi experts,
I sincerely need expert help on solving a critical issue..

From WMB we are using sqljdbc4.jar to connect to MSN SQL Server 2005 SP 2.
We are getting the below error while calling the Stored Procedure.

Sep 2 16:12:45 mbdhub01 WebSphere Broker v8004[18319]: (MBDHUB01.NSP_TEST)[10]BIP4361W: Java node warning: NSP04_SQLJDBC The server failed to resume the transaction. Desc:4900000003.. : MBDHUB01.527b3d80-4601-0000-0080-cd8302896d21: /build/slot1/S800_P/src/DataFlowEngine/NativeTrace/ImbNativeTrace.cpp: 739: ConnectionPoolWorker.checkForBrokenConnection: :
Sep 2 16:12:45 mbdhub01 WebSphere Broker v8004[18319]: (MBDHUB01.NSP_TEST)[10]BIP6265E: A problem was encountered when committing a transaction with the JDBC Datasource 'NSP04_SQLJDBC commit'. : MBDHUB01.527b3d80-4601-0000-0080-cd8302896d21: /build/slot1/S800_P/src/DataFlowEngine/NativeTrace/ImbNativeTrace.cpp: 739: JDBCType4SinglePhaseTrxnTable::commit: :
Sep 2 16:12:45 mbdhub01 WebSphere Broker v8004[18319]: (MBDHUB01.NSP_TEST)[10]BIP4362E: Java node error: Error committing Transaction for JDBC DataSourceName NSP04_SQLJDBC. : MBDHUB01.527b3d80-4601-0000-0080-cd8302896d21: /build/slot1/S800_P/src/DataFlowEngine/NativeTrace/ImbNativeTrace.cpp: 714:


============================
Snippet of our code on calling Database stored procedure,
stmt = conn.prepareCall("{call SPRequest1(?,?)}");
stmt.close();

We have Transaction set as "NO" in the Input node.
We are using Non-XA jdbc connection.
We are also closing the statement.

Still the transaction errors are there.DB team is saying their Stored Procedure code is completely fine.They are using Transactional statements like COMMIT at their end.

Could someone please help me on this?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Sep 02, 2014 4:07 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Doesn't the doctrine say the SP should not commit as the commit is issued by the flow?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
GeneRK4
PostPosted: Tue Sep 02, 2014 6:14 pm    Post subject: Reply with quote

Master

Joined: 08 Jul 2013
Posts: 220

Ok...You mean to say they have to switchoff the COMMIT at their end?
I have non-XA connection.Transaction=NO.
Could you let me know whether JDBC call still tries to do COMMIT while calling StoreProcedure?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Sep 02, 2014 7:58 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

XA gives you a multi-phase commit. Without XA you still have a single phase commit. I believe your flow is protesting that it can't commit the transaction...?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
GeneRK4
PostPosted: Tue Sep 02, 2014 10:15 pm    Post subject: Reply with quote

Master

Joined: 08 Jul 2013
Posts: 220

I believe doing commit and connection close can be handled by broker internally.
We are using connection establishment statement and statement close.
We could not think of any other parameters which can help in resolving this issue from WMB side.
Could you suggest please?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Sep 03, 2014 1:29 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Have you tried removing the commit from the SP? What was the result?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
GeneRK4
PostPosted: Wed Sep 03, 2014 4:00 am    Post subject: Reply with quote

Master

Joined: 08 Jul 2013
Posts: 220

DB team never accepted their fault.
Finally it started working after DB team moved the below two statements after BEGIN in StoredProcedure.
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON

Earlier it was before BEGIN statement.

I shared just for the benefit of others.
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 » Transaction error while connecting to MSN SQL Server
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.