Skip to Content
avatar image
Former Member

Welcome WD Application - Exception

Hi

I tried to write my first WD application, like it is described in the online help. (I mean the Welcome Application with only two views, where you can enter your name in the first view and it is displayed in the second view). I'm using 6.30 and Nw Developer Studio 2.04.

I did no coding at all !! (everything was declarative), and I get a NoSuchMethodError from the Reflection API.

Any Ideas what's missing? I guess something with my Context is not ok. I defined just a simple value attribute as described in the online help.

Raphael

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: failed to created delegate

at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.<init>(DelegatingComponent.java:50)

at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doInit(ClientComponent.java:738)

at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:327)

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

at com.sap.tc.webdynpro.clientserver.task.Task.createApplication(Task.java:177)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:485)

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

at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:236)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:137)

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

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

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

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

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

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

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

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

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

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

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

at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)

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

at java.security.AccessController.doPrivileged(Native Method)

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

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

Caused by: java.lang.reflect.InvocationTargetException

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

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

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

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

at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.<init>(DelegatingComponent.java:42)

... 26 more

Caused by: java.lang.NoSuchMethodError: com.sap.tc.webdynpro.progmodel.context.Context.createAttribute(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Lcom/sap/tc/webdynpro/progmodel/context/AttributeInfo;

at com.sap.training.wd.welcome.wdp.InternalWelcomeComponent.<init>(InternalWelcomeComponent.java:43)

... 31 more

-


caused by -


java.lang.reflect.InvocationTargetException

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

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

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

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

at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.<init>(DelegatingComponent.java:42)

at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doInit(ClientComponent.java:738)

at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:327)

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

at com.sap.tc.webdynpro.clientserver.task.Task.createApplication(Task.java:177)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:485)

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

at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:236)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:137)

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

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

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

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

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

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

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

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

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

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

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

at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)

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

at java.security.AccessController.doPrivileged(Native Method)

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

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

Caused by: java.lang.NoSuchMethodError: com.sap.tc.webdynpro.progmodel.context.Context.createAttribute(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Lcom/sap/tc/webdynpro/progmodel/context/AttributeInfo;

at com.sap.training.wd.welcome.wdp.InternalWelcomeComponent.<init>(InternalWelcomeComponent.java:43)

... 31 more

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jan 27, 2004 at 05:05 PM

    Hi Raphael,

    Please send me your project.

    Best regards, Karin

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Walter,

      You are right. Not every IDE works with every Engine. So if you upgrade you should upgrade the whole package. If you want to use a different IDE version and you are not sure, if it works with the engine or not, you could install the IDE in addition and test it. If it works, just delete the "older" IDE. If it does not work, you know that you have to upgrade the Engine as well.

      And another tip: If you would like to run parallel IDEs please delete the following files from here:

      C:\Windows\SAPwksta\sapwksta.xml and sapwksta.bak

      Hope that is useful. Thanks Walter!

      Best regards,

      Karin

  • Jun 07, 2004 at 07:13 PM

    Dear all,

    I met the same exception when I try the example dynpro application. The installed softwares are "Sneak Preview Edition Web Application Server Java 6.40" and "SAP NetWeaver Developer Studio 2.0.7" ( checked the help document of studio 2.0.7, the platform 6.40 should be compatible.

    And I try to import the example code package into studio and the same exception was met.

    Any help?

    Regards,

    Kevin

    Add comment
    10|10000 characters needed characters exceeded