Home > Ask the SAP software/management Experts > Java/SAP development Questions & Answers > Resolving JCO_ERROR_CONCURRENT_CALL in JCo
Ask The SAP Expert: Questions & Answers
EMAIL THIS

Resolving JCO_ERROR_CONCURRENT_CALL in JCo

Austin Sincock EXPERT RESPONSE FROM: Austin Sincock

Pose a Question
Other SAP Categories
Meet all SAP Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 29 June 2006
How do I resolve the error "JCO_ERROR_CONCURRENT_CALL" when running SAP JCo in a Web application?

Here is the exception report:
com.sap.mw.jco.JCO$Exception: (132) JCO_ERROR_CONCURRENT_CALL: Concurrent call. Connection currently used in another thread.
at com.sap.mw.jco.JCO$Client.execute(Unknown Source)
at com.sap.mw.jco.JCO$Client.execute(Unknown Source)
at com.sap.mw.jco.JCO$Repository.execute(Unknown Source)
at com.sap.mw.jco.JCO$Repository.queryFunctionInterface(Unknown Source)
at com.sap.mw.jco.JCO$Repository.queryFunctionInterface(Unknown Source)
at com.sap.mw.jco.JCO$Repository.getFunctionInterface(Unknown Source)
at com.sap.mw.jco.JCO$BasicRepository.getFunctionTemplate(Unknown Source)


>
From the looks of the exception, you have inadvertently created a singleton instance of the JCo connection somewhere and are trying to use the same connection at the same time. The best way to resolve this is to use JCo's built-in connection pooling. A JCo connection pool can be setup when the server launches and provide connections to any number of clients connected to the server (depending on the number of connections you make available in the pool). Do a search for "jco connection pool" on SearchSAP.com for tips on how to implement a connection pool in SAP JCo.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Java/SAP development
How to provide an SAP R/3 4.5B application server with a Web service interface
Consuming a Web service from an SAP 4.6c R/3 application server
With Java development experience, should I go into SAP XI?
Answering basic BAPI questions
Viewing a list of SAP interfaces
Which SAP implementation phase is Java necessary for?
Interface a locally developed application with SAP
Should an ABAP professional know Java?
Storing SAP information from a JCo connector
Integrating SAP with C++, Java, and Powerbuilder on Sybase and Oracle DBs

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



SAP White Paper Topics
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
SearchSAP.com is a search service provided by TechTarget and is completely
independent of and not affiliated with SAP AG.
  TechTarget - The IT Media ROI Experts