Message: problem with XML file Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question problem with XML file 

Keywords: problem reading xml file
Forum: Analysis
Date: 08 Sep, 2006
From: Maddalena Antonello <Maddalena Antonello>

Hi,

I have a problem in reading an xml file. I produce this file with my G4 application. As interface G4 and aida I use Open Scientist, but before now I used to use anaphe. After this change I could compile my code without changing anything and without problems (is the G4 code invariant over analysis interface changing?).

My problem is that jas3 can't read this file.

Do you please have a suggestion?

thank you in advance

Maddalena

PS: if it is useful this is the Jas3 Exception:

    java.io.IOException: Error reading /raidicarus/G4T300/ICAT300FIN_PAPER/ANAtest.aida
    at hep.aida.ref.xml.AidaXMLStore.read(AidaXMLStore.java:79)
    at hep.aida.ref.tree.Tree.init(Tree.java:1007)
    at hep.aida.ref.tree.TreeFactory.createTree(TreeFactory.java:181)
    at org.freehep.jas.extension.aida.AIDAPlugin$JAS3TreeFactory.createTree(AIDAPlugin.java:228)
    at hep.aida.ref.tree.TreeFactory.create(TreeFactory.java:113)
    at org.freehep.jas.extension.aida.AIDAPlugin.openFile(AIDAPlugin.java:105)
    at org.freehep.jas.extension.aida.AIDAPlugin.openFile(AIDAPlugin.java:100)
    at org.freehep.jas.plugin.datasource.FileHandlerDataSource$FHWizardPage.onFinish(FileHandlerDataSource.java:57)
    at org.freehep.swing.wizard.WizardDialog.onFinish(WizardDialog.java:229)
    at org.freehep.swing.wizard.WizardDialog.actionPerformed(WizardDialog.java:122)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at org.freehep.jas.util.waitcursor.WaitCursorEventQueue.dispatchEvent(WaitCursorEventQueue.java:47)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:141)
    at java.awt.Dialog$1.run(Dialog.java:540)
    at java.awt.Dialog.show(Dialog.java:561)
    at java.awt.Component.show(Component.java:1133)
    at java.awt.Component.setVisible(Component.java:1088)
    at org.freehep.jas.plugin.datasource.DataSourcePlugin$Commands.onDataSource(DataSourcePlugin.java:45)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.freehep.util.commanddispatcher.CommandProcessor.invoke(CommandProcessor.java:124)
    at org.freehep.util.commanddispatcher.CommandProcessor.invokeCommand(CommandProcessor.java:161)
    at org.freehep.util.commanddispatcher.CommandProcessor$SimpleTarget.doCommand(CommandProcessor.java:289)
    at org.freehep.util.commanddispatcher.CommandProcessor.invokeCommand(CommandProcessor.java:135)
    at org.freehep.util.commanddispatcher.CommandProcessor$SimpleTarget.invoke(CommandProcessor.java:325)
    at org.freehep.util.commanddispatcher.CommandSourceAdapter.actionPerformed(CommandSourceAdapter.java:84)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
    at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at org.freehep.jas.util.waitcursor.WaitCursorEventQueue.dispatchEvent(WaitCursorEventQueue.java:47)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

Caused by:

org.xml.sax.SAXParseException: Attribute "default" is not declared for element "column".
    at org.apache.crimson.parser.Parser2.error(Parser2.java:3317)
    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1558)
    at org.apache.crimson.parser.Parser2.content(Parser2.java:1926)
    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)
    at org.apache.crimson.parser.Parser2.content(Parser2.java:1926)
    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)
    at org.apache.crimson.parser.Parser2.content(Parser2.java:1926)
    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)
    at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:634)
    at org.apache.crimson.parser.Parser2.parse(Parser2.java:333)
    at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
    at hep.aida.ref.xml.AidaParser.parse(AidaParser.java:303)
    at hep.aida.ref.xml.AidaParser.parse(AidaParser.java:245)
    at hep.aida.ref.xml.AidaXMLStore.read(AidaXMLStore.java:75)
    at hep.aida.ref.tree.Tree.init(Tree.java:1007)
    at hep.aida.ref.tree.TreeFactory.createTree(TreeFactory.java:181)
    at org.freehep.jas.extension.aida.AIDAPlugin$JAS3TreeFactory.createTree(AIDAPlugin.java:228)
    at hep.aida.ref.tree.TreeFactory.create(TreeFactory.java:113)
    at org.freehep.jas.extension.aida.AIDAPlugin.openFile(AIDAPlugin.java:105)
    at org.freehep.jas.extension.aida.AIDAPlugin.openFile(AIDAPlugin.java:100)
    at org.freehep.jas.plugin.datasource.FileHandlerDataSource$FHWizardPage.onFinish(FileHandlerDataSource.java:57)
    at org.freehep.swing.wizard.WizardDialog.onFinish(WizardDialog.java:229)
    at org.freehep.swing.wizard.WizardDialog.actionPerformed(WizardDialog.java:122)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at org.freehep.jas.util.waitcursor.WaitCursorEventQueue.dispatchEvent(WaitCursorEventQueue.java:47)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:141)
    at java.awt.Dialog$1.run(Dialog.java:540)
    at java.awt.Dialog.show(Dialog.java:561)
    at java.awt.Component.show(Component.java:1133)
    at java.awt.Component.setVisible(Component.java:1088)
    at org.freehep.jas.plugin.datasource.DataSourcePlugin$Commands.onDataSource(DataSourcePlugin.java:45)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.freehep.util.commanddispatcher.CommandProcessor.invoke(CommandProcessor.java:124)
    at org.freehep.util.commanddispatcher.CommandProcessor.invokeCommand(CommandProcessor.java:161)
    at org.freehep.util.commanddispatcher.CommandProcessor$SimpleTarget.doCommand(CommandProcessor.java:289)
    at org.freehep.util.commanddispatcher.CommandProcessor.invokeCommand(CommandProcessor.java:135)
    at org.freehep.util.commanddispatcher.CommandProcessor$SimpleTarget.invoke(CommandProcessor.java:325)
    at org.freehep.util.commanddispatcher.CommandSourceAdapter.actionPerformed(CommandSourceAdapter.java:84)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
    at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at org.freehep.jas.util.waitcursor.WaitCursorEventQueue.dispatchEvent(WaitCursorEventQueue.java:47)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: RE: problem with XML file   (tony_johnson@slac.stanford.edu - 08 Sep, 2006)
2 None: Re: problem with XML file   (Guy Barrand - 11 Sep, 2006)
4 None: Re: problem with XML file   (Guy Barrand - 10 Oct, 2006)
 Add Message Add Message
to: "problem with XML file"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]