Home > Ask the SAP 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)


>
EXPERT RESPONSE
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
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
Is it possible to get data from R/3 to BI without delta-enabled data sources using JCo?
How to connect SAP to retrieve data
RFC and BAPI differential

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

HomeNewsTopicsBlogsTipsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2000 - 2008, 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