Skip to Content
avatar image
Former Member

java.lang.NoClassDefFoundError

Hi all,

When i am using the UI element PieChart i am facing the below issue.

java.lang.NoClassDefFoundError: com.sap.tc.webdynpro.clientserver.uielib.analytics.api.IWDAbstractChart

Please suggest us the solution.

Regards,

Suman

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

11 Answers

  • Mar 04, 2009 at 04:56 AM

    Hi Suman

    UI element PieChart or are you using BusinessGraphics UI Element under that chartType is Pie

    Please provide us complete scenario, version etc

    Best Regards

    Satish Kumar

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi sathish,

      I am using piechart ui element directly not the Business graphic ui element.

      for the pie chart i have added the Datasource and deployed thats it.

      And the error log is:-

      java.lang.NoClassDefFoundError: com.sap.tc.webdynpro.clientserver.uielib.analytics.api.IWDAbstractChart

      at java.lang.J9VMInternals.verifyImpl(Native Method)

      at java.lang.J9VMInternals.verify(J9VMInternals.java:66)

      at java.lang.J9VMInternals.initialize(J9VMInternals.java:127)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:80)

      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:44)

      at java.lang.reflect.Constructor.newInstance(Constructor.java:315)

      at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:74)

      at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.<init>(DelegatingView.java:41)

      at com.sap.tc.webdynpro.progmodel.view.ViewManager.createUninitializedView(ViewManager.java:657)

      at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:694)

      at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)

      at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)

      at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:295)

      at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183)

      at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178)

      at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:364)

      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:756)

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

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

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

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

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

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

      at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)

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

      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:175)

      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)

      Regards,

      Suman

      Edited by: sumankumar kurimilla on Mar 4, 2009 5:58 AM

      Edited by: sumankumar kurimilla on Mar 4, 2009 5:58 AM

  • avatar image
    Former Member
    Mar 04, 2009 at 05:05 AM

    Hi,

    Check the below thread

    javalangnoclassdeffounderror

    Might be helpful..

    Thanks,

    Prasanthi.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 04, 2009 at 05:16 AM

    Hi

    Did you put the required jar file into lib folder of your application.

    for more check this pdf

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/7.0/ui/using%20business%20graphics.pdf

    thanks

    AB

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 04, 2009 at 05:16 AM

    Hi Suman,

    Generally, the reason you receive such an exception is that your application misses

    runtime reference to the component that contains the class mentioned in log...like in

    your case the log mentions it could not find the class definition for class - IWDAbstractChart.

    To make the runtime interface reference could you try the following?

    1) Right-click your WD project.

    2) Select 'Properties' > 'Web Dynpro References'> 'Interface References'

    3) Add class

    4) Apply and OK

    5) Build the project and run.

    Regards,

    Anagha

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      When add the reference to the class and deploy it .

      I am getting a warning message with deployment.

      Mar 4, 2009 11:13:16 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] WARNING:

      [002]Deployment finished with warning

      Settings

      SDM host : BLR-DEPO-ED1

      SDM port : 50018

      URL to deploy : file:/C:/DOCUME1/00005035/LOCALS1/Temp/temp59202hparg.ear

      Result

      => deployed with warning : file:/C:/DOCUME1/00005035/LOCALS1/Temp/temp59202hparg.ear

      Finished with warnings: development component 'hparg'/'local'/'LOKAL'/'0.2009.03.04.11.13.07'/'0':Caught exception during application startup from SAP J2EE Engine's deploy service:java.rmi.RemoteException: Error occurred while starting application local/hparg and wait. Reason: Clusterwide exception: server ID 2151550:com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to prepare application local/hparg for startup. Reason=Clusterwide exception: Failed to start dependent interface ''com.sap.tc.webdynpro.clientserver.uielib.analytics.api.IWDAbstractChart'' of application ''local/hparg''. Status of dependent component: STATUS_MISSING. Hint: Is the component deployed correctly on the engine? at com.sap.engine.services.webdynpro.WebDynproContainer.prepareStart(WebDynproContainer.java:1494) at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:223) at com.sap.engine.services.deploy.server.application.StartTransaction.prepare(StartTransaction.java:171) at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:301) at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesImpl(ParallelAdapter.java:342) at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:126) at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:245) at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4707) at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4612) at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4585) at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1163) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:313) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:199) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:136) 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) (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)

      Deployment exception : Got problems during deployment

      Regards,

      Suman

  • avatar image
    Former Member
    Mar 04, 2009 at 05:30 AM

    Also, as mentioned in one of the other posts, try to see that the WAS and NWDS at the same SP level.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 04, 2009 at 03:02 PM

    Hi Suman,

    You get such NoClassDefFoundError when you have upgraded one of either NWDS or WAS.

    As in other thread java.lang.NoClassDefFoundError, it is recommended both NWDS & WAS should of same version (It may work sometimes in some cases if there are not major changes in the SPs).

    Kind Regards,

    Nitin

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 05, 2009 at 05:37 AM

    Hi Suman,

    Yes, please upgrade your NWDS to SP13 version.

    After upgrade, please start your NWDS in a fresh new workspace (starting in same older workspace can lead to metadata corruption as the older plug-in classes are already loaded there).

    You will need to import your project from the earlier workspace (so dont delete older workspace or keep a copy of the project in case you want to delete the older workspace)

    This should solve your NoClassDefFoundError.

    Kind Regards,

    Nitin

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 05, 2009 at 08:09 AM

    Hi,

    After logging to Service market place, go to installation and upgrades->support packages and patches->sap netweaver->sap netweaver 7.0->entry by component->developer studio->NW Developer studio7.0.

    Hope it helps.

    Thanks,

    Prasanthi.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Prashanthi,

      Can you tell us how can we update the NWDS sp7 to sp13 do you have any reference or can you tell us it. We are downloading it now.

      Tell us the complete procedure.

      Regards,

      Suman

  • avatar image
    Former Member
    Mar 05, 2009 at 11:07 AM

    Hi,

    Look into below thread. Might Help you.

    jdinwds-upgrade

    Thanks,

    Prasanthi.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 05, 2009 at 03:49 PM

    Hi Suman,

    After downloading the required service pack SP13 from SAP Service Marketplace, you will find a setup exe file in the downloaded content. Just run this exe. You will get a wizard with different options for Upgrade, Uninstall.

    You can choose Upgrade option & continue.

    Alternatively, you can choose Uninstall option & first remove the previous uninstallation. After uninstalltion, check that the eclipse folder at installation path (default path should be "C:\Program Files\SAP\IDE\IDE70\eclipse") is empty. Then again run the exe & do a fresh installation.

    After upgrading NWDS, start the IDE in a fresh new workspace (to avoid corruption of metadata due to old classes already loaded in older workspace)

    Hope this helps you.

    Kind Regards,

    Nitin

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Dear Nitin,

      I have upgraded the NWDS7.0 sp7 to sp13 but i am not finding the Pie chart UI element now. What to do now. Please suggest.

      Regards,

      Suman