cancel
Showing results for 
Search instead for 
Did you mean: 

Generation failed when doing a build in NWeaver studio

Former Member
0 Kudos

Hi experts,

while doing a dc build in my netweaver studio, i got a error. I ve checked all my codes and that there are no syntax error. Somehow there is something preventing the generation process. The log found recorded an error but never gave a hint as what could be the possible error. So i ve no clue what is causing the generation to fail. Please see log captured below. Is there anyway i can find out the cause of this error ?

Thanks a lot !

Rgds,

Daniel

===========================================================================

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

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

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

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

[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.UnknownElement.execute(UnknownElement.java:275)

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

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

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

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

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

[wdgen] at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:59)

[wdgen] at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:214)

[wdgen] at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:186)

[wdgen] at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66)

[wdgen] at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48)

[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.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:350)

[wdgen] at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:99)

[wdgen] at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:73)

[wdgen] at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:59)

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

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

[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 (26 seconds)

Error: C:\Documents and Settings\pmsdla\.dtc\1\DCs\com.diagonal\appl\sd\workmenu\_comp\gen\default\logs\build.xml:98: [Error] Generation failed!

at com.sap.webdynpro.generation.ant.WDGenAntTask.execute(WDGenAntTask.java:254)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

at org.apache.tools.ant.Target.execute(Target.java:341)

at org.apache.tools.ant.Target.performTasks(Target.java:369)

at org.apache.tools.ant.Project.executeTarget(Project.java:1214)

at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:116)

at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:59)

at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:214)

at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:186)

at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66)

at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:350)

at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:99)

at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:73)

at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:59)

at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1750)

at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:6004)

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

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

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

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

Ant runtime 38.094 seconds

Ant build finished with ERRORS

[Error] Generation failed!

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

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

Build plugin finished at 2009-05-20 10:56:11 GMT+08:00 (SGT)

Total build plugin runtime: 41.438 seconds

Build finished with ERROR

Edited by: Daniel Lam on May 20, 2009 5:31 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Daniel,

Right click on your project name in the Webdynpro explorer and chose Repair==> Project Structure and Classpath. Then again Right click on your project name in the Webdynpro explorer and chose Rebuild.

Even if it does not work then just close your project, close NWDS and reopen both.

May be it works. If it does not work then i wont be able to help anymore and the best option would be to create a new project.

Regards.

Rajat

Former Member
0 Kudos

Hi Rajat,

I tried your suggestion but still the null pointer, it seems that the null pointer is due to the missing interface window. In the first place, i dont know how come the studio has put this window in such a state whereby you cannot delete and cannot use it.

Thanks a lot for your help. Full points awarded.

Cheers.

Daniel

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Daniel,

Try this if it helps:

Right click on the window name and select Embed View and then chose Embed New View and then fill in the details of the view.

Because interface view is created itself when you embed a view onto a window. You can check the Interface View under the node Webdynpro Component==> <Your Component> ==>Component Interface==>Interface Views

May be it helps.

Regards.

Rajat

Former Member
0 Kudos

Hi Rajat,

When i right click and "Embed View", a window pop out saying null pointer exception.

So it sems like when i did create the window some time back, the interface view didn't get created for i dont know what reason. So now i can't do anything about this window anymore.

I can create a totally new window and embed the view again but in the project this window will be stuck there.

Is there a work around how to delete or make use of this existing window ?

Thanks a lot for your help.

Regards.

Daniel

Former Member
0 Kudos

Hi Daniel,

Check for the errors in the TASK view. You can navigate to the erroneous code by just double clicking on that error being shown in the TASK view.

Regards.

Rajat

Former Member
0 Kudos

Hi Rajat,

Thanks a lot. Indeed i found the error in task view.

It is referring to a window in my webdynpro application.

"window has no InterfaceView".

Indeed the interface view is not there and there is no option for me to create the interface view.

So what i did is to delete the window so that i can create a new one and the interface view will thus be generated. But when i tried to delete the window, a null pointer exception window is pop out.

I remember when i created this window the other time, there was an exception.

So the question is how to create the interface view ?

Thanks

Regards,

Daniel

Former Member
0 Kudos

Hi Daniel,

Surround your code with try-catch block(everywhere where you have written code).

In the catch block:


catch(Exception ex){
wdComponentAPI.getMessageManager().reportException(
				"Checkpoint 1 :"+ ex.toString(),
				true);

Change the number from 1 to n for number of times you have used try-catch block.

This should tell you where you are facing the trouble.

Regards.

Rajat

Former Member
0 Kudos

Hi Rajat,

I m maintaining a web dynpro application.

There are no problems with the codes as i ve checked through each of them.

Anyway i just want to be able to deploy it successfully but i can't deploy as the application contains errors but the log never give a hint of what type of problem is that.

There must be something else. Anyone out there who got a clue of what else to check ?

Thanks.