New bug in cvs

The following code worked until I updated from the cvs yesterday.

     try
     {
        XMLtoBinary c1=new XMLtoBinary();
        URL xmldoc=EditerMain.class.getClassLoader().getResource("jmetest/data/XML documents/newSampleScene.xml");
        ByteArrayOutputStream BO1=new ByteArrayOutputStream();
        c1.sendXMLtoBinary(xmldoc.openStream(),BO1);

        // Send jME binary to a jME Scene Graph
        JmeBinaryReader jbr=new JmeBinaryReader();
        Node fileScene=jbr.loadBinaryFormat(new ByteArrayInputStream(BO1.toByteArray()));
        root.attachChild(fileScene);
     }
     catch(IOException e)
     {
        e.printStackTrace();
     }

Now I get this:

Java.io.UTFDataFormatException
        at java.io.DataInputStream.readUTF(Unknown Source)
        at java.io.DataInputStream.readUTF(Unknown Source)
        at com.jme.scene.model.XMLparser.JmeBinaryReader.readInObjects(JmeBinary
Reader.java:683)
        at com.jme.scene.model.XMLparser.JmeBinaryReader.readBegining(JmeBinaryR
eader.java:138)
        at com.jme.scene.model.XMLparser.JmeBinaryReader.loadBinaryFormat(JmeBin
aryReader.java:107)
        at com.jme.scene.model.XMLparser.JmeBinaryReader.loadBinaryFormat(JmeBin
aryReader.java:127)
        at jmetest.editer.EditerListForm.AddNewActionPerformed(EditerListForm.ja
va:354)
        at jmetest.editer.EditerListForm.access$200(EditerListForm.java:21)
        at jmetest.editer.EditerListForm$3.actionPerformed(EditerListForm.java:1
28)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
n Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
ce)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)



Edit-Removed exception that was caused by my own code and was not JME's faulr

Holy stacktrace batman!!!



PS: It should be fixed. Thanks for catching it. I had a missing else statement