cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.NoSuchMethodError but method is found in both java and class file

larry_chaput
Participant
0 Kudos

Hi All,

I am working on adding a new component to Trips and Expense but I'm getting an exception and I have no idea why. Its claiming a java.lang.NoSuchMethodError in class IPrivateVcTraAllMyTrips yet the method is there.

When I step through the code I can get to the point where it tries to attach the component then before it actually crashes, I hold ctrl and click on the method that it claims does not exist. The code brings me to the IPrivateVcTraAllMyTrips java code and to the method ... so it is there in my sources. I then went to my bin directory and decompiled the IPrivateVcTraAllMyTrips class and found the method there as well. It seems as tho its not actually being deployed.

Does anyone have any suggestions?

    1. Exception Stack ##

Root Cause

The initial exception that caused the request to fail, was:

java.lang.NoSuchMethodError: com.sap.xss.tra.vc.allmytrips.wdp.IPrivateVcTraAllMyTrips.wdGetFcObjectSelectionComponentUsage()Lcom/sap/tc/webdynpro/progmodel/api/IWDComponentUsage;

at com.sap.xss.tra.vc.allmytrips.VcTraAllMyTrips.onInit(VcTraAllMyTrips.java:262)

at com.sap.xss.tra.vc.allmytrips.wdp.InternalVcTraAllMyTrips.onInit(InternalVcTraAllMyTrips.java:408)

at com.sap.xss.tra.vc.allmytrips.VcTraAllMyTripsInterface.onInit(VcTraAllMyTripsInterface.java:175)

at com.sap.xss.tra.vc.allmytrips.wdp.InternalVcTraAllMyTripsInterface.onInit(InternalVcTraAllMyTripsInterface.java:205)

at com.sap.xss.tra.vc.allmytrips.wdp.InternalVcTraAllMyTripsInterface$External.onInit(InternalVcTraAllMyTripsInterface.java:399)

Accepted Solutions (1)

Accepted Solutions (1)

luciano_leitedasilva
Contributor
0 Kudos

Hi Larry,

So, try restart the WAS Server. Probably this issue will be fixed!

Regards,

Luciano

larry_chaput
Participant
0 Kudos

I wish it were that simple. I have restarted but it still threw the same exception.

I ended up reimporting everything again and starting from scratch (a 4 hour process to get back to where I was). The issue is no more.

thx for your reply

Answers (0)