Skip to Content
author's profile photo
Former Member

java.lang.NoSuchMethodError:

Hi all,

For retrieveing the current loggedIn user I have implemented the following code:

String strUser = WDClientUser.getCurrentUser().getSAPUser().getUniqueName().toUpperCase();

but when i am passing this strUser to a method which is taking it as Import parameter and executing the RFC it is giving some error as:

<b>java.lang.NoSuchMethodError: com/freescale/qlt_rfc_handler/components/wdp/IExternalQlt_Rfc_HandlerInterface.executeGetMetaData(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

n my application I am getting the LoggedIn user by applying the code</b>

Detailed description of the error is:

java.lang.NoSuchMethodError: com/freescale/qlt_rfc_handler/components/wdp/IExternalQlt_Rfc_HandlerInterface.executeGetMetaData(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

at com.freescale.qltdms.components.DocMgmtComp.getMetaData(DocMgmtComp.java:366)

at com.freescale.qltdms.components.wdp.InternalDocMgmtComp.getMetaData(InternalDocMgmtComp.java:993)

at com.freescale.qltdms.views.DocumentSelectionView.onActioncontinue(DocumentSelectionView.java:258)

at com.freescale.qltdms.views.wdp.InternalDocumentSelectionView.wdInvokeEventHandler(InternalDocumentSelectionView.java:171)

at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)

at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)

at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)

at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)

at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)

at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)

at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:708)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:661)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)

at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:154)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:174)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(AccessController.java:215)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

Guys Please help me out...Is this related to some Patches

Its really Urgent..

Regards,

Gurmat Bhatia

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • author's profile photo
    Former Member
    Posted on Sep 27, 2007 at 10:57 AM

    Hi,

    This kind of problem may be beacuse of version mismatch. i.e, when you create appl in NWDS for 04 but try to deploy in 04s server or vice-versa. Check if that is causing the problem. Else try debugging the application.

    Regards,

    Harini S

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Hairni,

      Thanks for the response...

      I am creating the application in NWDS 2004s and deploying in the 04s server.

      For debugging I have removed that code for fetching the loggedIn user and instead I hav hardcoded the strUser and now giving this value as import parameter in the execution of RFC it is working.

      I am not able to trace out wats the prob.

      Gurmat

  • author's profile photo
    Former Member
    Posted on Sep 27, 2007 at 11:11 AM

    Gurmat,

    Reload+Rebuild your DC and re-deploy. It will solve.

    Regards,

    Rajit

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 06:26 AM

    Hi,

    Check for the parameters in the method GetMetaData() on line number 366.

    The string you are passing is in the correct form or not.

    -np

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 07:08 AM

    Hi Gurmat,

    Re-import your model and restart your j2EE instance once because it seems that you parameters or signature of your RFC has been changed and thus not the updated one. This will be updated once you restart your j2ee instance.

    Warm Regards,

    Murtuza

    Add comment
    10|10000 characters needed characters exceeded