[
http://jira.codehaus.org/browse/JIBX-200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dennis Sosnoski updated JIBX-200:
---------------------------------
Assignee: Dennis Sosnoski
Description:
check-runtime:
check-binding:
bind:
[echo] Running JiBX binding compiler
[bind] Error running binding compiler
[bind] java.lang.NullPointerException
[bind] at
org.jibx.binding.model.NameAttributes.equals(NameAttributes.java:184)
[bind] at java.util.HashMap.getEntry(Unknown Source)
[bind] at java.util.HashMap.containsKey(Unknown Source)
[bind] at
org.jibx.binding.model.DefinitionContext.addMappedName(DefinitionContext.java:551)
[bind] at
org.jibx.binding.model.RegistrationVisitor.visit(RegistrationVisitor.java:183)
[bind] at org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:171)
[bind] at org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:232)
[bind] at
org.jibx.binding.model.RegistrationVisitor.visitTree(RegistrationVisitor.java:96)
[bind] at
org.jibx.binding.model.BindingElement.runValidation(BindingElement.java:765)
[bind] at
org.jibx.binding.model.BindingElement.validateBinding(BindingElement.java:830)
[bind] at org.jibx.binding.Utility.validateBinding(Utility.java:228)
[bind] at org.jibx.binding.Utility.loadBinding(Utility.java:269)
[bind] at org.jibx.binding.Utility.loadFileBinding(Utility.java:413)
[bind] at org.jibx.binding.Compile.compile(Compile.java:296)
[bind] at org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248)
[bind] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[bind] at org.apache.tools.ant.Task.perform(Task.java:364)
[bind] at org.apache.tools.ant.Target.execute(Target.java:341)
[bind] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[bind] at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[bind] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[bind] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[bind] at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[bind] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[bind] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[bind] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
was:
check-runtime:
check-binding:
bind:
[echo] Running JiBX binding compiler
[bind] Error running binding compiler
[bind] java.lang.NullPointerException
[bind] at
org.jibx.binding.model.NameAttributes.equals(NameAttributes.java:184)
[bind] at java.util.HashMap.getEntry(Unknown Source)
[bind] at java.util.HashMap.containsKey(Unknown Source)
[bind] at
org.jibx.binding.model.DefinitionContext.addMappedName(DefinitionContext.java:551)
[bind] at
org.jibx.binding.model.RegistrationVisitor.visit(RegistrationVisitor.java:183)
[bind] at org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:171)
[bind] at org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:232)
[bind] at
org.jibx.binding.model.RegistrationVisitor.visitTree(RegistrationVisitor.java:96)
[bind] at
org.jibx.binding.model.BindingElement.runValidation(BindingElement.java:765)
[bind] at
org.jibx.binding.model.BindingElement.validateBinding(BindingElement.java:830)
[bind] at org.jibx.binding.Utility.validateBinding(Utility.java:228)
[bind] at org.jibx.binding.Utility.loadBinding(Utility.java:269)
[bind] at org.jibx.binding.Utility.loadFileBinding(Utility.java:413)
[bind] at org.jibx.binding.Compile.compile(Compile.java:296)
[bind] at org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248)
[bind] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[bind] at org.apache.tools.ant.Task.perform(Task.java:364)
[bind] at org.apache.tools.ant.Target.execute(Target.java:341)
[bind] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[bind] at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[bind] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[bind] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[bind] at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[bind] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[bind] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[bind] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
Unfortunately the files.zip attachment only contains the binding.xml and
build.xml file, without any of the classes used by the binding. In order to be
sure the problem is fixed I need to have the class files, too.
I've changed the NameAttribute.equals() method to use safe comparisons, so that
the NPE should no longer occur. I don't know if this was masking a deeper
problem, though.
> java.lang.NullPointerException when running binding compiler
> ------------------------------------------------------------
>
> Key: JIBX-200
> URL: http://jira.codehaus.org/browse/JIBX-200
> Project: JiBX
> Issue Type: Bug
> Components: core
> Affects Versions: JiBX 1.1.5
> Environment: Windows Vista, Java 1.6.0_03
> Reporter: Filippos Papadopoulos
> Assignee: Dennis Sosnoski
> Fix For: JiBX 1.1.5
>
> Attachments: files.zip
>
>
> check-runtime:
> check-binding:
> bind:
> [echo] Running JiBX binding compiler
> [bind] Error running binding compiler
> [bind] java.lang.NullPointerException
> [bind] at
> org.jibx.binding.model.NameAttributes.equals(NameAttributes.java:184)
> [bind] at java.util.HashMap.getEntry(Unknown Source)
> [bind] at java.util.HashMap.containsKey(Unknown Source)
> [bind] at
> org.jibx.binding.model.DefinitionContext.addMappedName(DefinitionContext.java:551)
> [bind] at
> org.jibx.binding.model.RegistrationVisitor.visit(RegistrationVisitor.java:183)
> [bind] at
> org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:171)
> [bind] at
> org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:232)
> [bind] at
> org.jibx.binding.model.RegistrationVisitor.visitTree(RegistrationVisitor.java:96)
> [bind] at
> org.jibx.binding.model.BindingElement.runValidation(BindingElement.java:765)
> [bind] at
> org.jibx.binding.model.BindingElement.validateBinding(BindingElement.java:830)
> [bind] at org.jibx.binding.Utility.validateBinding(Utility.java:228)
> [bind] at org.jibx.binding.Utility.loadBinding(Utility.java:269)
> [bind] at org.jibx.binding.Utility.loadFileBinding(Utility.java:413)
> [bind] at org.jibx.binding.Compile.compile(Compile.java:296)
> [bind] at org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248)
> [bind] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> [bind] at org.apache.tools.ant.Task.perform(Task.java:364)
> [bind] at org.apache.tools.ant.Target.execute(Target.java:341)
> [bind] at org.apache.tools.ant.Target.performTasks(Target.java:369)
> [bind] at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> [bind] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> [bind] at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
> [bind] at
> org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
> [bind] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> [bind] at
> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
> [bind] at
> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs