|
Re: Null Pointer Exception when building update site following the tutorials [message #997662 is a reply to message #996944] |
Mon, 07 January 2013 12:38 |
|
Hi Dao,
From the looks of it, there are some problems during the writeout of
the site.xml file. Not sure why it happens. I'd like to ask you though,
why are you creating an old legacy update site? That format has been
deprecated for several years now. I wouldn't recommend anyone to use it
today.
- thomas
On 2013-01-03 10:02, Dao Hoang wrote:
> I create an update site project in Eclipse 4.2.0 follow the tutorial
> http://wiki.eclipse.org/Buckminster/Examples/Building_an_Update_Site#Creating_an_index.html_file
>
>
> I call action "build.site" from UI and got a NullPointerException in
> error log <eclipse>
> \configuration\org.eclipse.osgi\bundles\271\2\.cp\org\eclipse\buckminster\pde\antscripts\build.xml:348:
> java.lang.NullPointerException: java.lang.NullPointerException
>
> at
> <target name="create.legacy.site" depends="create.legacy.site.common">
> <buckminster.updateSiteGenerator
> versionProperty="site.version" outputfile="${site.xml}"
> template="${sp:template}">
> <buckminster.filesetgroup value="${fs:features}"/>
> </buckminster.updateSiteGenerator>
> ..
> </target>
>
> Here is the log file
>
> !ENTRY org.eclipse.buckminster.core 4 293 2013-01-03 15:43:45.145
> !MESSAGE org.eclipse.core.runtime.CoreException:
> D:\Projects\Eclipses\eclipse\configuration\org.eclipse.osgi\bundles\271\2\.cp\org\eclipse\buckminster\pde\antscripts\build.xml:348:
> java.lang.NullPointerException
> !STACK 1
> org.eclipse.core.runtime.CoreException:
> D:\Projects\Eclipses\eclipse\configuration\org.eclipse.osgi\bundles\271\2\.cp\org\eclipse\buckminster\pde\antscripts\build.xml:348:
> java.lang.NullPointerException
> at
> org.eclipse.buckminster.ant.AntRunner.handleInvocationTargetException(AntRunner.java:167)
>
> at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:322)
> at
> org.eclipse.buckminster.ant.actor.AntActor.internalPerform(AntActor.java:254)
>
> at
> org.eclipse.buckminster.core.actor.AbstractActor.perform(AbstractActor.java:195)
>
> at
> org.eclipse.buckminster.core.internal.actor.PerformManager$DirectActionInvocation.execute(PerformManager.java:143)
>
> at
> org.eclipse.buckminster.core.internal.actor.PerformManager.internalPerform(PerformManager.java:454)
>
> at
> org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:293)
>
> at
> org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:305)
>
> at
> org.eclipse.buckminster.ui.InvokeActionJob.runInWorkspace(InvokeActionJob.java:67)
>
> at
> org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
> Caused by:
> D:\Projects\Eclipses\eclipse\configuration\org.eclipse.osgi\bundles\271\2\.cp\org\eclipse\buckminster\pde\antscripts\build.xml:348:
> java.lang.NullPointerException
> at
> org.eclipse.buckminster.pde.ant.UpdateSiteGeneratorTask.execute(UpdateSiteGeneratorTask.java:73)
>
> at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
> at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
> at org.apache.tools.ant.Task.perform(Task.java:348)
> at org.apache.tools.ant.Target.execute(Target.java:392)
> at org.apache.tools.ant.Target.performTasks(Target.java:413)
> at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
> at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>
> at
> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
>
> at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
> at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:672)
>
> at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:498)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:318)
> ... 9 more
> Caused by: java.lang.NullPointerException
> at
> com.sun.org.apache.xml.internal.serializer.ToStream.writeAttrString(Unknown
> Source)
> at
> com.sun.org.apache.xml.internal.serializer.ToStream.processAttributes(Unknown
> Source)
> at
> com.sun.org.apache.xml.internal.serializer.ToStream.closeStartTag(Unknown Source)
>
> at
> com.sun.org.apache.xml.internal.serializer.ToStream.startElement(Unknown
> Source)
> at
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.startElement(Unknown
> Source)
> at
> org.eclipse.buckminster.pde.tasks.SaxableSite.writeFeatures(SaxableSite.java:112)
>
> at
> org.eclipse.buckminster.pde.tasks.SaxableSite.emitElements(SaxableSite.java:191)
>
> at
> org.eclipse.buckminster.sax.AbstractSaxableElement.toSax(AbstractSaxableElement.java:41)
>
> at
> org.eclipse.buckminster.pde.tasks.SaxableSite.toSax(SaxableSite.java:147)
> at org.eclipse.buckminster.sax.Utils.serialize(Utils.java:308)
> at
> org.eclipse.buckminster.pde.tasks.UpdateSiteGenerator.run(UpdateSiteGenerator.java:132)
>
> at
> org.eclipse.buckminster.pde.ant.UpdateSiteGeneratorTask.execute(UpdateSiteGeneratorTask.java:67)
>
> ... 29 more
> !SUBENTRY 1 org.eclipse.ant.core 4 1 2013-01-03 15:43:45.145
> !MESSAGE
> D:\Projects\Eclipses\eclipse\configuration\org.eclipse.osgi\bundles\271\2\.cp\org\eclipse\buckminster\pde\antscripts\build.xml:348:
> java.lang.NullPointerException
>
>
> It did not bring me further to figure out what is missing or wrong.
> Some one please help me fix it?
|
|
|
|
Re: Null Pointer Exception when building update site following the tutorials [message #1001251 is a reply to message #999083] |
Wed, 16 January 2013 10:21 |
|
Would it be possible for you to simply skip the legacy site and just
create a proper p2 site? A 'site.xml' shouldn't be needed anymore.
- thomas
On 2013-01-11 10:50, Dao Hoang wrote:
> Hi Thomas,
>
> I wanted to make an update-site including required features for our tool
> and I found this tutorial.I did and success with this project before
> with Eclipse 3.6 and compatible Buckminster.
>
> But now, our product is upgraded to Eclipse 4.2, I re-used the old
> project and got this problem. What I should do? Create a new project and
> follow exactly the tutorial, or could you please suggest me a newer
> tutorial to move on.
>
> Thanks and regards,
> Dao
|
|
|
Powered by
FUDForum. Page generated in 0.04507 seconds