Zebra crashes with NPE in HashTable.scala:154

Bug #546915 reported by Wolfgang Laun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
XML Zebra
Fix Released
High
abcoates

Bug Description

Version xmlzebra-1.0-pre-2-for-java.zip
java version "1.6.0_18" on Linux

One of the .xsd files is attached. (The other one is almost identical.)

$ /extra/xmlzebra/bin/xmlzebra.sh -o xsd/paths.xml xsd/
14:38:02.394 [main] INFO n.l.xmlzebra.SchemaPathGenerator$ - No. of XML Schemas: 2
java.lang.NullPointerException
        at scala.collection.mutable.HashTable$class.elemHashCode(HashTable.scala:154)
        at scala.collection.mutable.HashMap.elemHashCode(HashMap.scala:33)
        at scala.collection.mutable.HashTable$class.findEntry(HashTable.scala:66)
        at scala.collection.mutable.HashMap.findEntry(HashMap.scala:33)
        at scala.collection.mutable.HashMap.findEntry(HashMap.scala:33)
        at scala.collection.mutable.DefaultMapModel$class.get(DefaultMapModel.scala:32)
        at scala.collection.mutable.HashMap.get(HashMap.scala:33)
        at net.launchpad.xmlzebra.SchemaPathGenerator$$anonfun$main$1.apply(SchemaPathGenerator.scala:118)
        at net.launchpad.xmlzebra.SchemaPathGenerator$$anonfun$main$1.apply(SchemaPathGenerator.scala:116)
        at scala.Iterator$class.foreach(Iterator.scala:414)
        at scala.Iterator$$anon$14.foreach(Iterator.scala:265)
        at scala.Iterable$class.foreach(Iterable.scala:256)
        at scala.collection.Map$$anon$4.foreach(Map.scala:113)
        at net.launchpad.xmlzebra.SchemaPathGenerator$.main(SchemaPathGenerator.scala:116)
        at net.launchpad.xmlzebra.SchemaPathGenerator.main(SchemaPathGenerator.scala)
Memory: total = 16M, free = 11M

Related branches

Revision history for this message
Wolfgang Laun (wolfgang-laun) wrote :
abcoates (abcoates)
Changed in xmlzebra:
importance: Undecided → High
assignee: nobody → abcoates (abcoates)
milestone: none → 1.0-pre-3
status: New → In Progress
Revision history for this message
abcoates (abcoates) wrote :

This is not directly related to the bug, but note that Xerces will ignore many of the large upper bounds in the attached Schema, i.e. it treats them as unbounded. XML Zebra doesn't (and shouldn't) mimic this.

Revision history for this message
abcoates (abcoates) wrote :

The problem is that the Schema does not declare a target namespace, and XML Zebra has (so far) only been tested against Schemas with an explicit target namespace.

abcoates (abcoates)
Changed in xmlzebra:
status: In Progress → Fix Committed
abcoates (abcoates)
Changed in xmlzebra:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.