Skip to Content

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

RuntimeError(NoSuchMethodError) in executing Web Service

Hi.

I have a trouble in making "Web Service Model DEPRECATED" on Developer Studio sp16.

With NWDS sp11 I succeeded making and executing it.

But with NWDS sp12 and sp16 it causes runtime error "NoSuchMethodError" as bellow.

By way of experiment I repalced the .java file "Config1BindingStub.java" made by sp16 with one made by sp11,

then it works well.

:Different part between them for example;

sp11: "Config1BindingStub.java"

// Operation input params initialization

this.inputParams = new ServiceParam[1];

this.inputParams[0] = new ServiceParam();

this.inputParams[0].isElement = true;

this.inputParams[0].schemaName = new QName("urn:WorkResultServiceVi","confirmWorking");

this.inputParams[0].name = "parameters";

this.inputParams[0].contentClass = jp.co.scs.wkr.ws.proxies.types.p1.ConfirmWorking.class;

this.inputParams[0].content = parameters;

.........

sp16: "Config1BindingStub.java"

// Operation input params initialization

this.inputParams = new ServiceParam[1];

this.inputParams[0] = new ServiceParam();

this.inputParams[0].isElement = true;

super._initParameter(this.inputParams[0],"urn:WorkResultServiceVi","confirmWorking","parameters",jp.co.scs.wrv_sp16.model.proxies.types.p1.ConfirmWorking.class);

this.inputParams[0].content = parameters;

...............

Can you please tell me how to work Web service well with NWDS sp12 or 16 alone.

Thanks.

Nakamura.

Error Detail:

Detailed Error Information

Detailed Exception Chain

java.lang.NoSuchMethodError: com.sap.engine.services.webservices.jaxrpc.wsdl2java.BaseGeneratedStub._initParameter(Lcom/sap/engine/services/webservices/jaxrpc/wsdl2java/ServiceParam;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)V

at jp.co.scs.wrk.eng.model.proxies.Config1BindingStub.viewWorkingByMonth(Config1BindingStub.java:386)

at jp.co.scs.wrk.eng.model.proxies.Config1BindingStub.viewWorkingByMonth(Config1BindingStub.java:438)

at jp.co.scs.wrk.eng.model.Request_WorkResultServiceViDocument_viewWorkingByMonth.execute(Request_WorkResultServiceViDocument_viewWorkingByMonth.java:91)

at jp.co.scs.wrk.eng.WorkResViewEng.wdDoInit(WorkResViewEng.java:112)

at jp.co.scs.wrk.eng.wdp.InternalWorkResViewEng.wdDoInit(InternalWorkResViewEng.java:149)

at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)

at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)

at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)

at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:429)

at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)

at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:700)

at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:269)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)

at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)

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

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

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

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

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

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