cancel
Showing results for 
Search instead for 
Did you mean: 

Strange problem with WD component build

Former Member
0 Kudos

Hi all,

I have strange problem with building one wd component, which is part of SC. I'm getting few errors which stops me from building component (and transporting to other systems via CMS of course). I'm providing sample of the errors (3 types) and ant error:

[code] [wdgen] [Error] com.gbs.gmob.RequisitionFoCust --> ContextValueAttribute startDate [type]: Type missing (Hint: The type property must be set to a simple type, a built in type or any java native type)

[wdgen] [Error] com.gbs.gmob.RequisitionFoCust --> ContextValueAttribute stopDate [type]: Type missing (Hint: The type property must be set to a simple type, a built in type or any java native type)

[wdgen] [Error] com.gbs.gmob.SuppMatGroupView --> TextView MATERIAL_GROUP_NAME_editor [text]: Context element and property are not compatible

[wdgen] [Error] com.gbs.gmob.SuppMatGroupView --> TextView MATERIAL_GROUP_ID_editor [text]: Context element and property are not compatible

[wdgen] [Error] com.gbs.gmob.SupplierCust --> ContextModelNode SuppMatGroup [modelClass]: The context model node has not been bound to a model class (Hint: A Context model node has to be bound to a model class or mapped to a model node of another controller.)

[wdgen] [Error] com.gbs.gmob.SupplierCust --> ContextValueAttribute material_group_list [type]: Type missing (Hint: The type property must be set to a simple type, a built in type or any java native type)

[wdgen] [Warning] com.gbs.gmob.ApprovalRejectView --> TextEdit TextEdit: UIElement does not have a label

[wdgen] [Info] Catching throwable null

[wdgen] [Info] com.sap.webdynpro.generation.ant.GenerationAntTaskError

[wdgen] at com.sap.webdynpro.generation.ant.GenerationAnt.showCheckResult(GenerationAnt.java:153)

[wdgen] at com.sap.ide.webdynpro.generation.Generation.check(Generation.java:2050)

[wdgen] at com.sap.ide.webdynpro.generation.Generation.generatePersistentComponent(Generation.java:1299)

[wdgen] at com.sap.ide.webdynpro.generation.console.GenerationConsole.generate(GenerationConsole.java:175)

[wdgen] at com.sap.webdynpro.generation.ant.GenerationAnt.main(GenerationAnt.java:50)

[wdgen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

[wdgen] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

[wdgen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

[wdgen] at java.lang.reflect.Method.invoke(Method.java:324)

[wdgen] at com.sap.webdynpro.generation.ant.WDGenAntTask.execute(WDGenAntTask.java:219)

[wdgen] at org.apache.tools.ant.Task.perform(Task.java:341)

[wdgen] at org.apache.tools.ant.Target.execute(Target.java:309)

[wdgen] at org.apache.tools.ant.Target.performTasks(Target.java:336)

[wdgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

[wdgen] at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:115)

[wdgen] at com.sap.tc.buildplugin.AbstractAntBuildAction.execute(AbstractAntBuildAction.java:65)

[wdgen] at com.sap.tc.buildplugin.AbstractPlugin.handleBuildStepSequence(AbstractPlugin.java:225)

[wdgen] at com.sap.tc.buildplugin.AbstractPlugin.performBuild(AbstractPlugin.java:201)

[wdgen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

[wdgen] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

[wdgen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

[wdgen] at java.lang.reflect.Method.invoke(Method.java:324)

[wdgen] at com.sap.tc.buildtool.PluginCommunicator.maybeInvoke(PluginCommunicator.java:114)

[wdgen] at com.sap.tc.buildtool.PluginCommunicatorV2.communicate(PluginCommunicatorV2.java:42)

[wdgen] at com.sap.tc.buildtool.PluginHandlerImpl.handlePluginCommunication(PluginHandlerImpl.java:354)

[wdgen] at com.sap.tc.buildtool.PluginHandlerImpl.execute(PluginHandlerImpl.java:176)

[wdgen] at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1726)

[wdgen] at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:5559)

[wdgen] at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.buildDCsForDevConfig(BuildAction.java:307)

[wdgen] at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.access$200(BuildAction.java:58)

[wdgen] at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction$1.run(BuildAction.java:212)

[wdgen] at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)

[wdgen] ERROR: Unknown exception during generation null (com.sap.webdynpro.generation.ant.GenerationAntTaskError)

[wdgen] ERROR: Generation failed due to errors (6 seconds)

Ant runtime 9.234 seconds

Ant build finished with ERRORS

[Error] Generation failed!

Error: Build stopped due to an error: [Error] Generation failed!

[/code]

Strange is that if I try to rebuild and deploy locally, no errors occurs and I can normally deploy and run application manually!

Does anyone have experience with this problem?

Thanks in advance!

Regards,

Ivan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ivan

This is an oft seen problem , if you check the value attribute startDate of the custom controller com.gbs.gmob.RequisitionFoCust with in the context view , you will see that the mapping to a data type for these value attributes are missing. This is usually caused by model re imports and fields within structures have been deleted. You can fix this by deleting the value attributes or binding it to native or known built-in types.

Regards

Pran

Former Member
0 Kudos

Hello Pran,

thanks for your answer. I checked type and it's not missing, type is custom defined type com.gbs.gmob.myDate.myDate, defined in the same DC, in Local Dictionary / Data Types / Simple Types.

Maybe I have to create type in another DC and then use it as public part of that DC?

Btw., it's only one error, I have 2 more if you look in the log snippet?

Regards,

Ivan

Former Member
0 Kudos

Hi Ivan

It looks like some files have not been checked into the DTR , they may reside in your machine but not in the DTR.

Go to the DTR view and see if the there are files denoted as 'local' under these folders, src cfg def ModelFolder test and the .dcdef file if so check it in ....

Regards

Pran