cancel
Showing results for 
Search instead for 
Did you mean: 

WebDynpro : java.lang.NoSuchMethodError

Former Member
0 Kudos

I have deployed a WebDynpro Application to a the J2EE server (SP17 ). However the Webdynpro fails to run and returns with a "java.lang.NoSuchMethodError" error.

Reading through the forums i see that this problem points to the J2EE Server and NWDS development WebDynPro Runtime versions being different. But the NWDS version is 2.017(200605050350) and the Server WebDynPro build being : 6.4017.00.0000.20060503180106.

If i check the Plugin Information in NWDS for Web Dynpro Runtime the version shows 2.0.0, is the correct, am i looking at another Reinstall ?

Is there something else i need to check ?

Thanks,

Daniel

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

I am facing the same problem.

How did you solved it?

Regards,

Apurva

Former Member
0 Kudos

The error that i see when i run the WebDynpro is

"java.lang.NoSuchMethodError: com.sap.tc.webdynpro.progmodel.context.Context.createNode(Ljava/lang/String;Ljava/lang/Class;ZZZZZZLjava/lang/String;[Lcom/sap/tc/webdynpro/progmodel/context/AttributeInfo;[Lcom/sap/tc/webdynpro/progmodel/context/NodeInfo;)Lcom/sap/tc/webdynpro/progmodel/context/NodeInfo; "

Regards,

Daniel

ashish_shah
Contributor
0 Kudos

Hi daniel,

I also faced the same problem today.

I faced this while creating a dynamic node in my interface controller.

Method i wrote was:


IWDNodeInfo nodeInfo =
			wdContext.getNodeInfo().addChild(
				"DynamicPurchaseOrder",
				null,
				true,
				true,
				false,
				false,
				false,
				true,
				null,
				null,
				null);

Which simply creates a node at runtime.

And Error which i got is

java.lang.NoSuchMethodError: com.sap.tc.webdynpro.progmodel.context.Context.createNode(Ljava/lang/String;Ljava/lang/Class;ZZZZZZLjava/lang/String;[Lcom/sap/tc/webdynpro/progmodel/context/AttributeInfo;[Lcom/sap/tc/webdynpro/progmodel/context/NodeInfo;)Lcom/sap/tc/webdynpro/progmodel/context/NodeInfo;

can you please share how did you manage to solve this error?

Regards,

Ashish

Former Member
0 Kudos

Hi Ashish,

Deploy the used DC. This build both the DCs and deploy your application.

This will solve the problem.

Regards,

Apurva

ashish_shah
Contributor
0 Kudos

Hi Apurva,

In my case i am using local WD project

The reason seems to be something with the way i am creating a dynamic node

The code that i used does not contain the method "createnode".

I am using

IWDNodeInfo nodeInfo =

wdContext.getNodeInfo().addChild(

"DynamicCustomer", null,true,true,false,false,false,true,null,null, null);

whereas error text shows method as "createNode".

java.lang.NoSuchMethodError: com.sap.tc.webdynpro.progmodel.context.Context.createNode(Ljava/lang/String;Ljava/lang/Class;ZZZZZZLjava/lang/String;[Lcom/sap/tc/webdynpro/progmodel/context/AttributeInfo;[Lcom/sap/tc/webdynpro/progmodel/context/NodeInfo;)Lcom/sap/tc/webdynpro/progmodel/context/NodeInfo;

Not sure though whats the exact reason.

Regards

Ashish

Former Member
0 Kudos

You should get more information with the error. Which method isn't found? Are you using an external library?

Regards,

Christophe