Jenkins does not normally vomit null pointer exceptions when it is feeling fine.

Which JVM are you using to run Jenkins? How did you install Jenkins?

Could you also tell how you came to the conclusion that $WORKSPACE is
the same for all your projects?

-- Sami

2012/3/11 Øyvind Harboe <oyvindhar...@gmail.com>:
> I thought $WORKSPACE would point to a directory that was specific to
> the Jenkins project by default.
>
> In my installation $WORKSPACE is the same for all projects.
>
>
> Log from build below:
>
> Retriggered by user anonymous for Gerrit: http://xxxx:8080/27
> Building in workspace /export/dev02/jenkins/workspace
> Checkout:workspace / /export/dev02/jenkins/workspace -
> hudson.remoting.LocalChannel@17fed8b4
> Using strategy: Gerrit Trigger
> Last Built Revision: Revision a63ec3db7ced93ef4c511b18dafe0e8a5f5101c5
> (refs/changes/27/27/7)
>
> -----
>
> There are some null pointer exceptions in the logs, but I don't know
> if this is relevant.
>
> This is on RedHat.
> ----
>
> INFO: Ready to receive data from Gerrit
> hudson.util.IOException2: Unable to read
> /export/dev02/jenkins/builds/2012-03-09_14-02-12/build.xml
>        at hudson.XmlFile.unmarshal(XmlFile.java:160)
>        at hudson.model.Run.reload(Run.java:284)
>        at hudson.model.Run.<init>(Run.java:273)
>        at hudson.model.AbstractBuild.<init>(AbstractBuild.java:166)
>        at hudson.model.Build.<init>(Build.java:100)
>        at hudson.model.FreeStyleBuild.<init>(FreeStyleBuild.java:41)
>        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)
>        at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>        at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>        at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
>        at hudson.model.AbstractProject.loadBuild(AbstractProject.java:949)
>        at hudson.model.AbstractProject$1.create(AbstractProject.java:256)
>        at hudson.model.AbstractProject$1.create(AbstractProject.java:254)
>        at hudson.model.RunMap.load(RunMap.java:221)
>        at hudson.model.AbstractProject.onLoad(AbstractProject.java:254)
>        at hudson.model.Project.onLoad(Project.java:88)
>        at hudson.model.Items.load(Items.java:115)
>        at jenkins.model.Jenkins$14.run(Jenkins.java:2370)
>        at 
> org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
>        at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
>        at jenkins.model.Jenkins$5.runTask(Jenkins.java:814)
>        at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
>        at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
>        at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>        at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>        at java.lang.Thread.run(Thread.java:679)
> Caused by: com.thoughtworks.xstream.converters.ConversionException:
> Could not call hudson.matrix.MatrixBuild.readResolve() : null : Could
> not call hudson.matrix.MatrixBuild.readResolve() : null
> ---- Debugging information ----
> message             : Could not call
> hudson.matrix.MatrixBuild.readResolve() : null
> cause-exception     :
> com.thoughtworks.xstream.converters.reflection.ObjectAccessException
> cause-message       : Could not call
> hudson.matrix.MatrixBuild.readResolve() : null
> class               : hudson.matrix.MatrixBuild
> required-type       : hudson.matrix.MatrixBuild
> path                : /matrix-build
> line number         : 20
> -------------------------------
>        at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
>        at 
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
>        at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
>        at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
>        at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
>        at 
> com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
>        at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:926)
>        at hudson.util.XStream2.unmarshal(XStream2.java:93)
>        at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912)
>        at hudson.XmlFile.unmarshal(XmlFile.java:156)
>        ... 25 more
> Caused by: 
> com.thoughtworks.xstream.converters.reflection.ObjectAccessException:
> Could not call hudson.matrix.MatrixBuild.readResolve() : null
>        at 
> com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callReadResolve(SerializationMethodInvoker.java:50)
>        at 
> hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:182)
>        at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
>        ... 34 more
> Caused by: java.lang.NullPointerException
>        at hudson.matrix.MatrixBuild.readResolve(MatrixBuild.java:86)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
>
>
> --
> Øyvind Harboe - Can Zylin Consulting help on your project?
> US toll free 1-866-980-3434
> http://www.zylin.com/

Reply via email to