Skip to Content
0

Unable to compile a Java WD DC. NullpointerException while WD Gen.

Aug 23, 2017 at 09:31 AM

39

avatar image
Former Member

Dear Community,

I have a problem during the compilation/generation of a WD DC.

I am using NWDS 7.10 but tried with NWDS 7.30 and 7.31 as well.

Build.log shows following error:

Generation of component <foo> is terminated with an exception (java.lang.NullPointerException: null) [Error: com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse Thread[ModalContext,6,main]]

java.lang.NullPointerException at com.sap.ide.metamodel.core.DevelopmentObjectProxy._isEqualTo(DevelopmentObjectProxy.java:225) at com.sap.ide.metamodel.common.implementation.DocumentationObjectProxy._isEqualTo(DocumentationObjectProxy.java:273) at com.sap.ide.metamodel.common.implementation.CommonDevelopmentObjectProxy._isEqualTo(CommonDevelopmentObjectProxy.java:1059) at com.sap.ide.metamodel.webdynpro.implementation.EventSourceProxy._isEqualTo(EventSourceProxy.java:123) at com.sap.ide.metamodel.webdynpro.implementation.ContextElementProxy._isEqualTo(ContextElementProxy.java:149) at com.sap.ide.metamodel.webdynpro.implementation.AbstractContextNodeProxy._isEqualTo(AbstractContextNodeProxy.java:139) at com.sap.ide.metamodel.webdynpro.implementation.ContextNodeProxy._isEqualTo(ContextNodeProxy.java:2160) at com.sap.ide.metamodel.core.DevelopmentObjectProxy.isEqualTo(DevelopmentObjectProxy.java:219) at com.sap.ide.metamodel.core.DevelopmentObjectProxy.isEqualTo(DevelopmentObjectProxy.java:198) at com.sap.ide.webdynpro.checklayer.context.ContextChecker.isAssignableFrom(ContextChecker.java:1710) at com.sap.ide.webdynpro.checklayer.context.ContextChecker.isAssignableFrom(ContextChecker.java:1752) at com.sap.ide.webdynpro.checklayer.context.ContextChecker.checkContextImplementation(ContextChecker.java:383) at com.sap.ide.webdynpro.checklayer.controller.InterfaceControllerChecker.doesControllerImplementInterfaceController(InterfaceControllerChecker.java:118) at com.sap.ide.webdynpro.checklayer.component.ComponentImplementationChecker.check(ComponentImplementationChecker.java:113) at com.sap.ide.webdynpro.checklayer.component.ComponentChecker.check(ComponentChecker.java:158) at com.sap.ide.webdynpro.checklayer.component.ComponentChecker.check(ComponentChecker.java:66) at com.sap.ide.webdynpro.generation.Generation.check(Generation.java:2087) at com.sap.ide.webdynpro.generation.Generation.checkAndValidate(Generation.java:2561) at com.sap.ide.webdynpro.generation.Generation.generatePersistentComponent(Generation.java:1392) at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse.generatePersistentComponent(GenerationEclipse.java:408) at com.sap.ide.webdynpro.generation.eclipse.GenerationEclipse.generatePersistentComponent(GenerationEclipse.java:473) at com.sap.ide.webdynpro.generation.eclipse.GenerationVisitor.visitComponent(GenerationVisitor.java:250) at com.sap.ide.webdynpro.generation.eclipse.GenerationVisitor.visit(GenerationVisitor.java:203) at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:108) at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:60) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86) at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:127) at org.eclipse.core.internal.resources.Resource.accept(Resource.java:70) at org.eclipse.core.internal.resources.Resource.accept(Resource.java:106) at org.eclipse.core.internal.resources.Resource.accept(Resource.java:90) at com.sap.ide.webdynpro.generation.eclipse.GenerationBuilder.doFullBuild(GenerationBuilder.java:403) at com.sap.ide.webdynpro.generation.eclipse.GenerationBuilder.build(GenerationBuilder.java:127) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:627) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:218) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:360) at org.eclipse.core.internal.resources.Project$1.run(Project.java:523) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1782) at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:502) at org.eclipse.core.internal.resources.Project.build(Project.java:94) at com.sap.ide.generationfwk.eclipse.action.GenerationAction.run(GenerationAction.java:82) at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute(WorkspaceModifyDelegatingOperation.java:69) at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

In the IDE I am able to access the WD java and layout, but build crashes. Anyone an idea why

at com.sap.ide.metamodel.core.DevelopmentObjectProxy._isEqualTo(DevelopmentObjectProxy.java:225)

is null?

thanks in advance.

Michael

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Milen Dontcheff
Aug 23, 2017 at 02:44 PM
1

Hello Michael,

These 3 versions MUST be consistent:

. NWDS,

. Software Components (SCs) in the Development Track

. RunTime System.

For more details please refer to:

https://blogs.sap.com/2014/03/26/nwdi-vs-nwdi-content/

You might NOT try to import development configuration track with SCA of 7.1 in NWDS 7.30 or 7.31. This will simply not do!

You need to stick to the version of the target deployment AS Java - where the custom code will run. This version should determine the SCA build-time dependencies in the development configuration track and the version of the NWDS.

Because there is no NWDS 7.40, one has to use NWDS 7.31 SPS "5 levels higher" than the SPS of the RTS and those in the development configuration track. More details in:

718949 - Web Dynpro Application Compatibility WebAS SPx - SPx+n

In case you do use NWDI with different version of the RTS, NWDS and the SCAs, then you need to make certain you do use the correct Build Variant in the NWDI - CMS - Lanscape Configurator - Build Variants. More details about this in:

http://scn.sap.com/community/nwdi/blog/2016/08/24/configuring-jdk-settings-with-nwdi

Regards,

Share
10 |10000 characters needed characters left characters exceeded