#2 Second package decleration fails

open
nobody
None
5
2002-11-05
2002-11-05
Tim Eyres
No

When a MAGE-ML file is fed into Importer with two
package definitions (Does not seem to matter which
packages) I recieve an java.util.EmptyStackException.

I see this problem with all MAGE-ML files.

For example:

Creating a class constructor DesignElement_package
Calling the class constructor for DesignElement_package
java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:82)
at
org.biomage.tools.xmlutils.MAGEContentHandler.startElem
ent(MAGEContentHandler.java:232)

Discussion

  • Tim Eyres
    Tim Eyres
    2002-11-05

    Logged In: YES
    user_id=384126

    By adding a check to the stack size I have been able to fix
    (work around?) this problem.

    232: if ( parent != null && assnStack.size() > 0 &&
    objectStack.size() > 0 ) {