cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.NoSuchMethodError: solution?

Former Member
0 Kudos

please !!!

error message:

"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

"

i came accross this error when i deploy and test a web dynpro project.

in this project, i add a web services model depreciated into the WD project.

the web serives is tested ok before i import it to my WD. the function of this WS is to gather a input and return it in upper case.

can anyone came accross similar problem and found the solution?

thanks.

This line cause the problem:

wdContext.currentxxxxxElement().modelObject().execute();

-


More information on the implementation:

try {

wdContext.currentRequest_CalNganViDocument_changeCaseElement().modelObject().execute();

wdContext.nodeResponse().invalidate();

String result = wdContext.currentResponseElement().getResult();

wdComponentAPI.getMessageManager().reportSuccess(result);

}

catch(Exception ex) {

wdComponentAPI.getMessageManager().reportException(ex.getLocalizedMessage(),true);

}

Accepted Solutions (1)

Accepted Solutions (1)

former_member214651
Active Contributor
0 Kudos

Hi ENg beng LEe,

Before executing the WebService model have u created the object of the Node, ie

before this line,

wdContext.currentxxxxxElement().modelObject().execute();

<RequestNode> objReq = null;

try

{

objReq = new <RequestNode>();

wdContext.node<RequestNode>.bind(objReq);

}

Try this out. this might be causing the problem

Regards,

Poojith M V

Former Member
0 Kudos

Hi

thannks Poojith.

I did add the code in WdDoInit method.

please guide me further...

the webservices print screen:

http://i95.photobucket.com/albums/l147/leeeb/method.jpg

here is the code in ini method:

//@@begin wdDoInit()

Request_CalNganViDocument_changeCase req = new Request_CalNganViDocument_changeCase();

wdContext.nodeRequest_CalNganViDocument_changeCase().bind(req);// nodeWebServiceEmail().bind(req);

//@@end

and the action of button:

//@@begin onActionsend(ServerEvent)

try {

wdContext.currentRequest_CalNganViDocument_changeCaseElement().modelObject().execute();

wdContext.nodeResponse().invalidate();

// String result = wdContext.currentResponseElement().getResult();

// wdComponentAPI.getMessageManager().reportSuccess(result);

wdComponentAPI.getMessageManager().reportSuccess("dala");

}

catch(Exception ex) {

wdComponentAPI.getMessageManager().reportException(ex.getLocalizedMessage()+"no method",true);

}

//@@end

Edited by: ENg beng LEe on Mar 7, 2008 4:00 AM

Edited by: ENg beng LEe on Mar 7, 2008 4:01 AM

Former Member
0 Kudos

Hi..

Try to Repair the project

i.e right click go to Repair ->Project Structure and Classpath

And then try to Rebuild and Deploy the project.

Or It must be versioning problem...

Regards

Akshaya

Former Member
0 Kudos

Hi Akshaya,

thanks for your info.

i have try to repaired, but still encounter the same problem.

i still new in WD.

i not sure on the version. do u mean version of my NetWeaver and server netweaver?

any other way i can try?

thanks,

regards,

Eng Beng

Former Member
0 Kudos

Hi

I meant to say your NWDS version and WAS version

NWDS version must always be lesser than or equal to the WAS version i.e

NWDS is 04 and try to deploy in 04s server or vice-versa may lead such problems...

Former Member
0 Kudos

thanks you Akshaya bhat !

the problemo solved!

everybody here is so great!

Former Member
0 Kudos

Hi Lee,

Could please explain how did you solve that problem? Am also getting the same error. Is it version problem between NWDS and J2EE Server.? Any Help Appreciated

Thanks,

Saravanan

Answers (0)