Q

Resolving JCO_ERROR_CONCURRENT_CALL in JCo

Using the JCo connection pool to resolve error JCO_ERROR_CONCURRENT_CALL.

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.
This was last published in July 2006

Dig Deeper on SAP Java and J2EE

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close