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

None RE: problem with XML file 

Forum: Analysis
Re: Question problem with XML file (Maddalena Antonello)
Date: 08 Sep, 2006
From: <tony_johnson@slac.stanford.edu>

HI Maddalena, can you send me the file (or a pointer to it on the web if it is too big to send via e-mail).

Thanks, Tony

> -----Original Message-----
> From: maddalena antonello [mailto:maddalena.antonello@lngs.infn.it] 
> Sent: Friday, September 08, 2006 8:20 AM
> To: publichypernews
> Subject: problem with XML file
> 
> *** Discussion title: Analysis
> Email replies to PublicHyperNews@slac.stanford.edu must include:
>   In-Reply-To: <"/analysis/199"@geant4-hn.slac.stanford.edu>
>   Subject: ...change this to be about your reply.
> 
> 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.crea
teTree(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$FHWiza
rdPage.onFinish(FileHandlerDataSource.java:57)
>     at 
> org.freehep.swing.wizard.WizardDialog.onFinish(WizardDialog.java:229)
>     at 
> org.freehep.swing.wizard.WizardDialog.actionPerformed(WizardDi
> alog.java:122)
>     at 
> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.
> java:1786)
>     at 
> javax.swing.AbstractButton$ForwardActionEvents.actionPerformed
(AbstractButton.java:1839)
>     at 
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButt
> onModel.java:420)
>     at 
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
>     at 
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Basic
> ButtonListener.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.dispatchE
> vent(WaitCursorEventQueue.java:47)
>     at 
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDis
> patchThread.java:201)
>     at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispa
> tchThread.java:151)
>     at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispa
> tchThread.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.on
DataSource(DataSourcePlugin.java:45)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39)
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:324)
>     at 
> org.freehep.util.commanddispatcher.CommandProcessor.invoke(Com
> mandProcessor.java:124)
>     at 
> org.freehep.util.commanddispatcher.CommandProcessor.invokeComm
> and(CommandProcessor.java:161)
>     at 
> org.freehep.util.commanddispatcher.CommandProcessor$SimpleTarg
et.doCommand(CommandProcessor.java:289)
>     at 
> org.freehep.util.commanddispatcher.CommandProcessor.invokeComm
> and(CommandProcessor.java:135)
>     at 
> org.freehep.util.commanddispatcher.CommandProcessor$SimpleTarg
et.invoke(CommandProcessor.java:325)
>     at 
> org.freehep.util.commanddispatcher.CommandSourceAdapter.action
> Performed(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(DefaultButt
> onModel.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.mouse
Released(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.dispatchE
> vent(WaitCursorEventQueue.java:47)
>     at 
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDis
> patchThread.java:201)
>     at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispa
> tchThread.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.crea
teTree(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$FHWiza
rdPage.onFinish(FileHandlerDataSource.java:57)
>     at 
> org.freehep.swing.wizard.WizardDialog.onFinish(WizardDialog.java:229)
>     at 
> org.freehep.swing.wizard.WizardDialog.actionPerformed(WizardDi
> alog.java:122)
>     at 
> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.
> java:1786)
>     at 
> javax.swing.AbstractButton$ForwardActionEvents.actionPerformed
(AbstractButton.java:1839)
>     at 
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButt
> onModel.java:420)
>     at 
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
>     at 
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Basic
> ButtonListener.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.dispatchE
> vent(WaitCursorEventQueue.java:47)
>     at 
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDis
> patchThread.java:201)
>     at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispa
> tchThread.java:151)
>     at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispa
> tchThread.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.on
DataSource(DataSourcePlugin.java:45)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39)
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:324)
>     at 
> org.freehep.util.commanddispatcher.CommandProcessor.invoke(Com
> mandProcessor.java:124)
>     at 
> org.freehep.util.commanddispatcher.CommandProcessor.invokeComm
> and(CommandProcessor.java:161)
>     at 
> org.freehep.util.commanddispatcher.CommandProcessor$SimpleTarg
et.doCommand(CommandProcessor.java:289)
>     at 
> org.freehep.util.commanddispatcher.CommandProcessor.invokeComm
> and(CommandProcessor.java:135)
>     at 
> org.freehep.util.commanddispatcher.CommandProcessor$SimpleTarg
et.invoke(CommandProcessor.java:325)
>     at 
> org.freehep.util.commanddispatcher.CommandSourceAdapter.action
> Performed(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(DefaultButt
> onModel.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.mouse
Released(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.dispatchE
> vent(WaitCursorEventQueue.java:47)
>     at 
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDis
> patchThread.java:201)
>     at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispa
> tchThread.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)

 Add Message Add Message
to: "RE: 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 ]