Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

JCO in a EJB used as Web Service

Hi All,

I'm trying to use JCO in a Web Service. What happens is that as soon as I try to call -any- JCO method I get an error: Exception in method getObjects.I can't even seem to catch this error within Java for a personalized message. I can't find an error in "dev_jrfc.trc" either.

To use JCO I referenced sapjco.jar as an external JAR in the Libraries from the Java Build Path.

Calling the JCO in a Web Dynpro environment doesn't give problems.

Does anyone know the reason for this and can help?



Detailed error:


HTTP/1.1 500 Internal Server Error

Connection: close

Server: SAP J2EE Engine/7.00

Content-Type: text/xml; charset=UTF-8

Date: Thu, 22 Feb 2007 10:07:33 GMT

<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:xs="" xmlns:xsi="" ><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>Exception in method getObjects.</faultstring><detail>< xmlns:ns1='http://sap-j2ee-engine/client-runtime-error'>Exception in method getObjects.</></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>


Message was edited just after posting by :

J.V. Lebbink

"JCO function" changed in "JCO method"

Former Member
Not what you were looking for? View more on this topic or Ask a question