cancel
Showing results for 
Search instead for 
Did you mean: 

First Web Dynpro application error

Former Member
0 Kudos

Hi,

I'm new to SAP portal development, when I tried to deploy my first web dynpro application, I getting the below error. I have followed exactly the same procedure described in the tutorials. I'm using NW Sneak preview. What is DC mean?

An error has occurred:

"Failed to process the request."

Please contact your system administrator.

Hide details

Web Dynpro client:

HTML Client

Web Dynpro client capabilities:

User agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0, version: null, DOM version: null, client type: ns7, client type profile: nn7, ActiveX: disabled, Cookies: enabled, Frames: enabled, Java applets: enabled, JavaScript: enabled, Tables: enabled, VB Script: enabled

Web Dynpro runtime:

Vendor: SAP, Build ID: 6.4009.00.0000.20041104173322.0000 (release=630_REL, buildtime=2004-11-18:22:17:10[UTC], changelist=298578, host=PWDFM027)

Web Dynpro code generators of DC local/Welcome:

SapDictionaryGenerationCore: 6.4010.00.0000.20040910101802.0000 (release=630_VAL_REL, buildtime=2004-12-13:22:15:29[UTC], changelist=280522, host=PWDFM026.wdf.sap.corp)

SapMetamodelWebDynpro: 6.4010.00.0000.20041213121535.0000 (release=630_VAL_REL, buildtime=2004-12-13:22:19:39[UTC], changelist=312712, host=PWDFM026.wdf.sap.corp)

SapMetamodelCore: 6.4010.00.0000.20041126121122.0000 (release=630_VAL_REL, buildtime=2004-12-13:22:08:55[UTC], changelist=306364, host=PWDFM026.wdf.sap.corp)

SapWebDynproGenerationTemplates: 6.4010.00.0000.20041209081817.0000 (release=630_VAL_REL, buildtime=2004-12-13:22:37:37[UTC], changelist=311488, host=PWDFM026)

SapWebDynproGenerationCTemplates: 6.4010.00.0000.20041209081817.0000 (release=630_VAL_REL, buildtime=2004-12-13:22:37:37[UTC], changelist=311488, host=PWDFM026)

SapGenerationFrameworkCore: 6.4010.00.0000.20041104141254.0000 (release=630_VAL_REL, buildtime=2004-12-13:22:07:58[UTC], changelist=298452, host=PWDFM026.wdf.sap.corp)

SapIdeWebDynproCheckLayer: 6.4010.00.0000.20041104141931.0000 (release=630_VAL_REL, buildtime=2004-12-13:22:24:21[UTC], changelist=298465, host=PWDFM026.wdf.sap.corp)

SapMetamodelDictionary: 6.4010.00.0000.20040609163924.0000 (release=630_VAL_REL, buildtime=2004-12-13:22:12:38[UTC], changelist=253570, host=PWDFM026.wdf.sap.corp)

SapMetamodelCommon: 6.4010.00.0000.20041126121122.0000 (release=630_VAL_REL, buildtime=2004-12-13:22:09:08[UTC], changelist=306364, host=PWDFM026.wdf.sap.corp)

SapWebDynproGenerationCore: 6.4010.00.0000.20041104141931.0000 (release=630_VAL_REL, buildtime=2004-12-13:22:24:53[UTC], changelist=298465, host=PWDFM026.wdf.sap.corp)

SapDictionaryGenerationTemplates: (unknown)

Web Dynpro code generators of DC sap.com/tcwddispwda:

No information available

Web Dynpro code generators of DC sap.com/tcwdcorecomp:

No information available

J2EE Engine:

No information available

Java VM:

Java HotSpot(TM) Server VM, version: 1.4.2_07-b05, vendor: Sun Microsystems Inc.

Operating system:

Windows XP, version: 5.1, architecture: x86

Error stacktrace:

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create delegate for view com.sap.examples.welcome.StartView. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)

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

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

....

....

Caused by: java.lang.NoSuchMethodError: com.sap.tc.webdynpro.progmodel.gci.GCIContext.createMappedAttribute(Ljava/lang/String;Ljava/lang/String;Z)Lcom/sap/tc/webdynpro/progmodel/gci/IGCIAttributeInfo;

at com.sap.examples.welcome.wdp.InternalStartView.<init>(InternalStartView.java:43)

... 36 more

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I uninstalled NWDS SP10 and installed sneak preview version NWSP9, I still get the same error. This time after installing NSSP9 (sneak preview) it automatically picked up by first web dynpro application which I created using NSDS SP10.

When I deployed as new archieve I'm assuming that it redeployed a new version of ear file with new compiled code using NWDS SP9 engine to J2E server.

Thanks

Siva

Former Member
0 Kudos

Hi

Generally projects will be stored in specified directory of the Studio.Eventhough if you uninstall the latest vesrion NWStudio 2.0.10 with 2.0.9 still your project exists. Only thing is check your J2EE installation properly the host number,portand have you mapped your UI elemnts for the proper context..

RK

Former Member
0 Kudos

You must rebuild your project such that the generated code is updated, then redeploy and run.

Armin

Former Member
0 Kudos

Thanks Armin, rebuilding the project and redeploying the project worked perfectly. Thanks very much to all of you who shared their knowledge.

Thanks very much.

Answers (4)

Answers (4)

Former Member
0 Kudos

You are using incompatible Web Dynpro versions in your NWDS vs. your WAS (SP 9). Use the same service pack on both sides and it will work.

Armin

Former Member
0 Kudos

Yes I think I'm running Dev Studio SP10 and not SP9-demo version. As you guys say it could be different versions generate different code. I have to check on my PC anyway, shall let you know guys if I the problem is fixed.

Siva.

Former Member
0 Kudos

Hi Siva,

to my understanding - your problem has nothing to do with J2EE server configuration - your application is already deployed on the server and running (brings error though):

...

at com.sap.examples.welcome.wdp.InternalStartView.<init>(InternalStartView.java:43)

...

so your class is already called.

DC = Development Component, but if you created a "simple" WebDynpro project - you should read the hint as "are you sure your project is properly deployed?"

I got similar messages (see your quota about NoSuchMethodException - I'm not really sure I was getting NSME, but definitely "Failed to create delegate for view") in case a Java-type context attribute was not initialized (e.g. you create context attribute of type java.util.Properties, do not put any object there, and request the attribute value). Check if you properly initialize context attributes.

Another thing - I presume you're running DevStudio of the same version as your server. DevStudios of different versions generates different sources - there could be problems in run-time when out of synchronization.

Best regards,

Nick

Former Member
0 Kudos

Hi Siva,

in you NetWeaver Dev Studio, go to Windows -> Preferences -> SAP J2EE Engine. If you J2EE engine is running remotely then select the first radio button (SAP J2EE Engine is running in remote host), or if its local select the second radio button. For first option give the J2EE engine host name and message server port, for second option select the node by clicking on browse.

Hope it helps

shubhadip

Former Member
0 Kudos

Hi Siva,

Error message reads your system could not be able to find the J2ee server.

Check out have you provided the msg.server name and msg server port in the dev.studio ? you can check weather your server is running or not thro' window->showview-> J2EE Engine.

Make sure that you have configured the server and check were you able to ping the JCO destination .

Cheers,

Kumar