Re: NPE in gnu.xml.transform.WithParam.getValue
On Sunday 24 June 2007 13:12, Christian Thalinger wrote: > Hi! > > 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.xs >l -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) > > > Does anyone know what the problem is? > > - twisti Sorry twisti, I can't help elucidate this one any further as yet, but just thought I'd chime in with a 'me too' as I've also seen this in trying to build HotSpot -- it's where I got stuck IIRC. Cheers, -- Andrew :-) Help end the Java Trap! Contribute to GNU Classpath and the OpenJDK http://www.gnu.org/software/classpath http://openjdk.java.net pgpCNRk2d58wk.pgp Description: PGP signature
Re: NPE in gnu.xml.transform.WithParam.getValue
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) > > > 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. Cheers, Mark signature.asc Description: This is a digitally signed message part
Re: NPE in gnu.xml.transform.WithParam.getValue
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) > > > > > > 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:1
Re: NPE in gnu.xml.transform.WithParam.getValue
On Mon, 2007-06-25 at 00:09 +0200, Christian Thalinger wrote: > 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 Hi Chris! I'm sending this directly to you, as you said you don't get these mails. I've tried your test program and, yes, it works. But only with jvmti.xsl, it fails with jvmtiEnter.xsl, though. You should try that one... - twisti
Re: NPE in gnu.xml.transform.WithParam.getValue
Christian Thalinger wrote: > Hi Chris! > > I'm sending this directly to you, as you said you don't get these mails. > > I've tried your test program and, yes, it works. But only with > jvmti.xsl, it fails with jvmtiEnter.xsl, though. You should try that > one... Thanks for that. A fix is in HEAD. -- Chris Burdess