Skip to Content
1
Jul 10, 2007 at 05:11 PM

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

376 Views

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)