Re: NPE in gnu.xml.transform.WithParam.getValue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2007-06-24 at 23:57 +0200, Mark Wielaard wrote:
> On Sun, 2007-06-24 at 14:12 +0200, Christian Thalinger wrote:
> > When building HotSpot in OpenJDK with CACAO I get this NPE:
> > 
> > /home/twisti/tmp/cacao/bin/java -classpath /home/twisti/cacao/sun/openjdk/jdk/control/build/linux-amd64-debug/hotspot/outputdir/linux_amd64_compiler2/jvmg/../generated/jvmtifiles jvmtiGen -IN /home/twisti/cacao/sun/openjdk/jdk/hotspot/src/share/vm/prims/jvmti.xml -XSL /home/twisti/cacao/sun/openjdk/jdk/hotspot/src/share/vm/prims/jvmtiEnter.xsl -OUT /home/twisti/cacao/sun/openjdk/jdk/control/build/linux-amd64-debug/hotspot/outputdir/linux_amd64_compiler2/jvmg/../generated/jvmtifiles/jvmtiEnter.cpp -PARAM interface jvmti
> > Exception in thread "main" java.lang.NullPointerException
> >    at gnu.xml.transform.WithParam.getValue(WithParam.java:89)
> >    at gnu.xml.transform.ApplyTemplatesNode.doApply(ApplyTemplatesNode.java:112)
> >    at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
> >    at gnu.xml.transform.TextNode.doApply(TextNode.java:102)
> > <snip>
> > 
> > Does anyone know what the problem is?
> 
> Do you have more context? (pun intended)
> 
> The part of the stacktrace you posted just pushes a 'null' context
> reference around which is dereferenced and generates the
> NullPointerException in the end. We need to see more to know why context
> is null in the first place.

Here's the whole stacktrace:

Exception in thread "main" java.lang.NullPointerException
   at gnu.xml.transform.WithParam.getValue(WithParam.java:89)
   at gnu.xml.transform.ApplyTemplatesNode.doApply(ApplyTemplatesNode.java:112)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.TextNode.doApply(TextNode.java:102)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.TextNode.doApply(TextNode.java:102)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.ValueOfNode.doApply(ValueOfNode.java:115)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.TextNode.doApply(TextNode.java:102)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.ParameterNode.doApply(ParameterNode.java:100)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.ApplyTemplatesNode.doApply(ApplyTemplatesNode.java:153)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.ApplyTemplatesNode.doApply(ApplyTemplatesNode.java:153)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.ApplyTemplatesNode.doApply(ApplyTemplatesNode.java:153)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.ApplyTemplatesNode.doApply(ApplyTemplatesNode.java:153)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.OtherwiseNode.doApply(OtherwiseNode.java:69)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.WhenNode.doApply(WhenNode.java:90)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.ChooseNode.doApply(ChooseNode.java:69)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.TextNode.doApply(TextNode.java:102)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.ApplyTemplatesNode.doApply(ApplyTemplatesNode.java:165)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.TextNode.doApply(TextNode.java:102)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.IfNode.doApply(IfNode.java:88)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.TextNode.doApply(TextNode.java:102)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.ChooseNode.doApply(ChooseNode.java:73)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.ApplyTemplatesNode.doApply(ApplyTemplatesNode.java:165)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.TextNode.doApply(TextNode.java:102)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.ApplyTemplatesNode.doApply(ApplyTemplatesNode.java:165)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.TextNode.doApply(TextNode.java:102)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.ApplyTemplatesNode.doApply(ApplyTemplatesNode.java:165)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.TextNode.doApply(TextNode.java:102)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.ApplyTemplatesNode.doApply(ApplyTemplatesNode.java:153)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.TextNode.doApply(TextNode.java:102)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.ValueOfNode.doApply(ValueOfNode.java:115)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.TextNode.doApply(TextNode.java:102)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.ApplyTemplatesNode.doApply(ApplyTemplatesNode.java:153)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.TextNode.doApply(TextNode.java:102)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.IfNode.doApply(IfNode.java:88)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.ApplyTemplatesNode.doApply(ApplyTemplatesNode.java:153)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.IfNode.doApply(IfNode.java:88)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.IfNode.doApply(IfNode.java:88)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.IfNode.doApply(IfNode.java:88)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.TextNode.doApply(TextNode.java:102)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.CallTemplateNode.doApply(CallTemplateNode.java:129)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.ApplyTemplatesNode.doApply(ApplyTemplatesNode.java:153)
   at gnu.xml.transform.TemplateNode.apply(TemplateNode.java:79)
   at gnu.xml.transform.TransformerImpl.transform(TransformerImpl.java:176)
   at jvmtiGen.main(jvmtiGen.java:153)

- twisti


[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux