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?

Thanks,

Jeschael

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="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>Exception in method getObjects.</faultstring><detail><ns1:com.sap.engine.services.ejb.exceptions.BaseEJBException xmlns:ns1='http://sap-j2ee-engine/client-runtime-error'>Exception in method getObjects.</ns1:com.sap.engine.services.ejb.exceptions.BaseEJBException></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