Skip to Content

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

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)

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 11, 2007 at 12:57 AM

    Hi Larry,

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

    Regards,

    Luciano

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.