cancel
Showing results for 
Search instead for 
Did you mean: 

JcoProxyRuntimeException when creating proxy object

0 Kudos

Hi,

I am using the SAP J2EEEngine 6.20 and "Java Connectivity Builder Tool" because i want to call BAPIs on R3.

I want to call the SUSR_LOGIN_CHECK_RFC function, so i generate the java proxy code for that and i build and deploy my project correctly.

The problem is that i have got this runtime exception :

java.lang.ExceptionInInitializerError: com.sap.aii.proxy.framework.core.JcoProxyRuntimeException: Fault message cannot be instantiated

        at com.sap.aii.proxy.framework.core.JcoBaseProxyDescriptor.(JcoBaseProxyDescriptor.java:80)

        at com.sap.aii.proxy.framework.core.BaseProxyDescriptorFactory.createNewBaseProxyDescriptor(BaseProxyDescriptorFactory.java:31)

        at susrbapi.SusrBapi_PortType.(SusrBapi_PortType.java:5)

        at webasdemo.LoginServlet.checkLogin(LoginServlet.java:87)

        at webasdemo.LoginServlet.doGet(LoginServlet.java:45)

        at webasdemo.LoginServlet.doPost(LoginServlet.java:55)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

        at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:147)

        at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:789)

        at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:644)

        at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:305)

        at com.inqmy.services.httpserver.server.Response.handle(Response.java:165)

        at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1133)

        at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)

        at com.inqmy.core.cluster.impl3.ParserRunner.run(ParserRunner.java:30)

        at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)

        at java.security.AccessController.doPrivileged(Native Method)

        at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:132)

I am using the Java Connectivity Builder Tool to generate proxy classes and my function that is called is:

public String checkLogin(String name, String pwd, JCO.Client myJco) {

  if (myJco != null) {

   try {

    Susr_Login_Check_Rfc_Input inp = new Susr_Login_Check_Rfc_Input();

    SusrBapi_PortType proxy = new SusrBapi_PortType();

    inp.setBname(name);

    inp.setPassword(pwd);

    proxy.messageSpecifier.setJcoClient(myJco);

    Susr_Login_Check_Rfc_Output out = proxy.susr_Login_Check_Rfc(inp);

   }

   catch(Exception ex) {

    return ex.toString();

   }

  }

  else {

   return "KO: myJco is null";

  }

  return "OK";

}

I have got this error when creating SusrBapi_PortType proxy = new SusrBapi_PortType();

If I try with another function like BAPI_USER_GET_DETAIL , it's ok

Do you have an idea of what is wrong ?

Regards,

Christophe

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I too have this same problem. Does anyone know of the solution? If so, please post it!

Patrick

Former Member
0 Kudos

Hi Christophe,

we have exactly the same problem, did you have found out any solution for this issue?

it would be very useful for us.

thanks in advance

Joerg Klotzbuecher

Benny
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Christophe,

as this is a support problem for a running system, first let me tell you that this is something for OSS.

Nevertheless, what I can tell you is that it seems you'r uising a BAPI that should log you in. If you have done the right configuration, this should have happened already. There is a large example for this in the Document "Working with Java SErver Pages and Servlets", that currently only is available in SAPNet. I'll try to bring it to SDN.

Regards,

Benny