Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Java server component library DC build fails

Hello,

I have problem with building sda from Java server component library DC which contains external library DC and jars.

Btw., I implemented newest JDI patch (note 935334) so I don't have problem with packing jars into sda.

How did following steps:

<b>External library DC</b>

1. Import jars into library subfolder

2. Add all jars to public part jarAPI, which is created with 'Provides an API for developing/compiling other DCs' setting

3. Add all jars to new public part jarSDA, which is created with 'Can be packaged into other build results (e.g. SDAs)'

<b>Java server component library DC</b>

1. Add jarSDA and jarAPI to Used DCs, with <i>Build Time</i> and <i>Run Time</i> Dependency Type checked and <i>strong</i> runtime qualifier selected.

2. Add jarAPI to Entity References of defLib public part

3. Build Java server component library DC

After that build fails with following error log:

[code]createPublicParts:

[pppacker] Packing compilation public part 'defLib'

[pppacker] Packed 0 files for entity sap.comhomeapp_libs (SERVER_COMPONENTS)

[pppacker] Packing entity reference gbscore/poi_libs (gbs.org), POIapi: ()

[pppacker] ERROR: Internal error occured

[pppacker] ERROR: java.lang.NullPointerException

[pppacker] ERROR: at java.io.File.<init>(File.java:263)

[pppacker] ERROR: at com.sap.tc.buildplugin.pp.pack.ZipPacker.unpack(ZipPacker.java:364)

[pppacker] ERROR: at com.sap.tc.buildplugin.pp.PPPacker.packEntityReferences(PPPacker.java:763)

[pppacker] ERROR: at com.sap.tc.buildplugin.pp.PPPacker.packPublicPartContent(PPPacker.java:476)

[pppacker] ERROR: at com.sap.tc.buildplugin.pp.PPPacker.packPublicPart(PPPacker.java:406)

[pppacker] ERROR: at com.sap.tc.buildplugin.pp.PPPacker.pack(PPPacker.java:359)

[pppacker] ERROR: at com.sap.tc.buildplugin.pp.PPPackTask._execute(PPPackTask.java:233)

[pppacker] ERROR: at com.sap.tc.buildplugin.techdev.ant.util.BPTask.execute(BPTask.java:20)

[pppacker] ERROR: at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)

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

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

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

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

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

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

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

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

[pppacker] ERROR: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

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

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

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

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

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

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

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

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

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

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

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

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

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

[pppacker] ERROR: java.lang.NullPointerException

[pppacker] ERROR: at java.io.File.<init>(File.java:263)

[pppacker] ERROR: at com.sap.tc.buildplugin.pp.pack.ZipPacker.unpack(ZipPacker.java:364)

[pppacker] ERROR: at com.sap.tc.buildplugin.pp.PPPacker.packEntityReferences(PPPacker.java:763)

[pppacker] ERROR: at com.sap.tc.buildplugin.pp.PPPacker.packPublicPartContent(PPPacker.java:476)

[pppacker] ERROR: at com.sap.tc.buildplugin.pp.PPPacker.packPublicPart(PPPacker.java:406)

[pppacker] ERROR: at com.sap.tc.buildplugin.pp.PPPacker.pack(PPPacker.java:359)

[pppacker] ERROR: at com.sap.tc.buildplugin.pp.PPPackTask._execute(PPPackTask.java:233)

[pppacker] ERROR: at com.sap.tc.buildplugin.techdev.ant.util.BPTask.execute(BPTask.java:20)

[pppacker] ERROR: at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)

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

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

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

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

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

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

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

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

[pppacker] ERROR: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

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

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

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

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

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

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

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

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

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

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

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

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

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

Ant runtime 0.13 seconds

Ant build finished with ERRORS

java.lang.NullPointerException

at java.io.File.<init>(File.java:263)

at com.sap.tc.buildplugin.pp.pack.ZipPacker.unpack(ZipPacker.java:364)

at com.sap.tc.buildplugin.pp.PPPacker.packEntityReferences(PPPacker.java:763)

at com.sap.tc.buildplugin.pp.PPPacker.packPublicPartContent(PPPacker.java:476)

at com.sap.tc.buildplugin.pp.PPPacker.packPublicPart(PPPacker.java:406)

at com.sap.tc.buildplugin.pp.PPPacker.pack(PPPacker.java:359)

at com.sap.tc.buildplugin.pp.PPPackTask._execute(PPPackTask.java:233)

at com.sap.tc.buildplugin.techdev.ant.util.BPTask.execute(BPTask.java:20)

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

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

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

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

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

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

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

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

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

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.PluginCommunicator.maybeInvoke(PluginCommunicator.java:114)

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

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

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

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

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

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)

[/code]

Am I doing something wrong or SAP again released something not tested?

Thank you for your answers!

Best regards, Ivan

Not what you were looking for? View more on this topic or Ask a question