You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Judy Qiu <xq...@indiana.edu> on 2003/07/24 06:06:04 UTC

two DOM trees from one SVG file -- participating client print out

========== log of Participating Client execution printout =====================================================================================
C:\j2sdk1.4.1_01\bin\javaw -classpath "C:\batikscript\xml-batik\classes;C:\batikscript\xml-batik\resources;C:\batikscript\xml-batik\lib\build\ant_1_4_1.jar;C:\batikscript\xml-batik\lib\build\crimson-ant.jar;C:\batikscript\xml-batik\lib\build\jaxp.jar;C:\batikscript\xml-batik\lib\build\stylebook-1.0-b3_xalan-2.jar;C:\batikscript\xml-batik\lib\build\xalan-2.0.1.jar;C:\batikscript\xml-batik\lib\build\xerces_1_3_1.jar;C:\batikscript\xml-batik\lib\crimson-parser.jar;C:\batikscript\xml-batik\lib\js.jar;C:\j2sdk1.4.1_01\lib\tools.jar;C:\batikscript\xml-batik\lib\exolabJMSSelector.jar;C:\batikscript\xml-batik\lib\apache-regexp_1.1.jar;C:\batikscript\xml-batik\lib\antlrall_2.7.1.jar;C:\batikscript\xml-batik\lib\jms.jar;C:\batikscript\xml-batik\lib\NaradaBrokering.jar;C:\j2sdk1.4.1_01\demo\jfc\Java2D\Java2Demo.jar;C:\j2sdk1.4.1_01\demo\plugin\jfc\Java2D\Java2Demo.jar;C:\j2sdk1.4.1_01\jre\lib\charsets.jar;C:\j2sdk1.4.1_01\jre\lib\ext\dnsns.jar;C:\j2sdk1.4.1_01\jre\lib\ext\ldapsec.jar;C:\j2sdk1.4.1_01\jre\lib\ext\localedata.jar;C:\j2sdk1.4.1_01\jre\lib\ext\sunjce_provider.jar;C:\j2sdk1.4.1_01\jre\lib\im\indicim.jar;C:\j2sdk1.4.1_01\jre\lib\jaws.jar;C:\j2sdk1.4.1_01\jre\lib\jce.jar;C:\j2sdk1.4.1_01\jre\lib\jsse.jar;C:\j2sdk1.4.1_01\jre\lib\rt.jar;C:\j2sdk1.4.1_01\jre\lib\sunrsasign.jar;C:\j2sdk1.4.1_01\lib\dt.jar;C:\j2sdk1.4.1_01\lib\htmlconverter.jar"  org.apache.batik.apps.svgbrowser.Main siyang C:\batikscript\xml-batik\samples\asf-logo.svg
***org/apache/batik/util/ApplicaionSecurityEnforcer.java==>>policyURL=file:/C:/batikscript/xml-batik/resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.policy
***apps/svgbrowser/AboutDialog.java==>>buildGUI()==>>url= file:/C:/batikscript/xml-batik/resources/org/apache/batik/apps/svgbrowser/resources/asf-logo.jpg
***org.apache.batik.apps.svgbrowser.JSVGViewerFrame.java==>>JSVGViewerFrame()==>>username=null
***org.apache.batik.swing.gvt.JGVTComponent.java==>>JGVTComponent()==>>framename=frame0, username=null
***org.apache.batik.swing.svg.JSVGComponent.java==>>JSVGComponent()==>>framename=frame0, username=null
***org.apache.batik.swing.JSVGCanvas.java==>>JSVGCanvas()==>>framename=frame0, username=null
***org.apache.batik.swing.gvt.JGVTComponent.java==>>JGVTComponent()==>>compoenentResized(ComponentEvent COMPONENT_RESIZED (0,0 200x100))
***swing/svg/JSVGComponent.java==>>public void loadSVGDocument(file:/C:/batikscript/xml-batik/resources/org/apache/batik/apps/svgbrowser/resources/init.svg);
***swing/svg/JSVGComponent.java==>>public void loadSVGDocument(file:/C:/batikscript/xml-batik/resources/org/apache/batik/apps/svgbrowser/resources/init.svg)==>>before startDocumentLoader();
***apps/svgbrowser/Main.java==>> svgInitializationURI= file:/C:/batikscript/xml-batik/resources/org/apache/batik/apps/svgbrowser/resources/init.svg
***org.apache.batik.swing.svg.SVGDocumentLoader.java==>>run()==>>url=file:/C:/batikscript/xml-batik/resources/org/apache/batik/apps/svgbrowser/resources/init.svg
***org.apache.batik.bridge.DocumentLoader.java==>> loadDocument()==>>n=-1
***org.apache.batik.bridge.DocumentLoader.java==>> loadDocument()==>>uri=file:/C:/batikscript/xml-batik/resources/org/apache/batik/apps/svgbrowser/resources/init.svg
***org.apache.batik.bridge.DocumentLoader.java==>> loadDocument()==>>n=-1
***org.apache.batik.bridge.DocumentLoader.java==>> loadDocument()==>>uri=file:/C:/batikscript/xml-batik/resources/org/apache/batik/bridge/BrokenLink.svg
***org.apache.batik.swing.gvt.JGVTComponent.java==>>JGVTComponent()==>>compoenentResized(ComponentEvent COMPONENT_RESIZED (2,2 293x100))
***apps/svgbrowser/Main.java==>>username (from command line) = siyang
***apps.svgbrowser.Main.java==>>createAndShowJSVGViewerFrame()==>>framename= frame1
***org.apache.batik.apps.svgbrowser.JSVGViewerFrame.java==>>framename=frame1, username=siyang
***collaborativesvgviewer.eventspassing/BatikEventsPassing.java==>>BatikEventsPassing(connectionProperties,tcp,siyang)
TCPLinkFactory: Will not be starting the ServerSocket Thread since the port specified is [0]
TransportHandlerImpl: Registering link [REDOAK:3045]

 Initialization of the bridge has failed check the broker host and port information supplied
Will be publishing to topic [/BatikEvents]
Subscribing to [BatikEvents]
***org.apache.batik.apps.svgbrowser.JSVGViewerFrame.java==>>beventspassinghandler is not null.
***org.apache.batik.apps.svgbrowser.JSVGViewerFrame.java==>>JSVGViewerFrame()==>>username=siyang
***org.apache.batik.swing.gvt.JGVTComponent.java==>>JGVTComponent()==>>framename=frame1, username=siyang
***org.apache.batik.swing.svg.JSVGComponent.java==>>JSVGComponent()==>>framename=frame1, username=siyang
***org.apache.batik.swing.JSVGCanvas.java==>>JSVGCanvas()==>>framename=frame1, username=siyang
***swing/svg/JSVGComponent.java==>>public void loadSVGDocument(file:/C:/batikscript/xml-batik/samples/asf-logo.svg);
***swing/svg/JSVGComponent.java==>>public void loadSVGDocument(file:/C:/batikscript/xml-batik/samples/asf-logo.svg)==>>before startDocumentLoader();
***apps/svgbrowser/SVGInputHandler.java==>>public void handle(...)==>> purl= file:/C:/batikscript/xml-batik/samples/asf-logo.svg
***apps/svgbrowser/JSVGViewerFrame.java==>>public void showSVGDocument(String uri)==>> uri= file:/C:/batikscript/xml-batik/samples/asf-logo.svg
***org.apache.batik.swing.gvt.JGVTComponent.java==>>JGVTComponent()==>>compoenentResized(ComponentEvent COMPONENT_RESIZED (2,2 788x473))
***org.apache.batik.swing.svg.SVGDocumentLoader.java==>>run()==>>url=file:/C:/batikscript/xml-batik/samples/asf-logo.svg
***org.apache.batik.bridge.DocumentLoader.java==>> loadDocument()==>>n=-1
***org.apache.batik.bridge.DocumentLoader.java==>> loadDocument()==>>uri=file:/C:/batikscript/xml-batik/samples/asf-logo.svg
***org.apache.batik.swing.gvt.JGVTComponent.java==>>JGVTComponent()==>>compoenentResized(ComponentEvent COMPONENT_RESIZED (2,2 293x51))
JmsTopicSession: Found match ...


+++collaborativesvgviewer.eventsrepository.EventsProcessor.java==>>run()==>>got an event from tail: oldcollaborativeevent= framename=frame1,username=master,eventsenderrole=master,eventtype=major,id=2000,time_stamp=Tue Jun 10 11:40:17 GMT-05:00 2003,eventsequenceno=0,eventstatus=0,batikevent.getType()=null,batikevent.getURL()=file:/C:/batikscript/xml-batik/samples/tests/spec/linking/anchorInsideText.svg,batikevent.getXPath()=null
***swing/svg/JSVGComponent.java==>>public void loadSVGDocument(file:/C:/batikscript/xml-batik/samples/tests/spec/linking/anchorInsideText.svg);
***swing/svg/JSVGComponent.java==>>public void loadSVGDocument(file:/C:/batikscript/xml-batik/samples/tests/spec/linking/anchorInsideText.svg)==>>before startDocumentLoader();
***apps/svgbrowser/SVGInputHandler.java==>>public void handle(...)==>> purl= file:/C:/batikscript/xml-batik/samples/tests/spec/linking/anchorInsideText.svg
***apps/svgbrowser/JSVGViewerFrame.java==>>public void showSVGDocument(String uri)==>> uri= file:/C:/batikscript/xml-batik/samples/tests/spec/linking/anchorInsideText.svg
***apps/svgbrowser/JSVGViewerFrame.java==>>JSVGViewerFrame()==>CollaborativeOpenAction()==>>showSVGDocument(file:/C:/batikscript/xml-batik/samples/tests/spec/linking/anchorInsideText.svg)
***org.apache.batik.swing.svg.SVGDocumentLoader.java==>>run()==>>url=file:/C:/batikscript/xml-batik/samples/tests/spec/linking/anchorInsideText.svg
***org.apache.batik.bridge.DocumentLoader.java==>> loadDocument()==>>n=-1
***org.apache.batik.bridge.DocumentLoader.java==>> loadDocument()==>>uri=file:/C:/batikscript/xml-batik/samples/tests/spec/linking/anchorInsideText.svg
***org.apache.batik.swing.gvt.JGVTComponent.java==>>JGVTComponent()==>>compoenentResized(ComponentEvent COMPONENT_RESIZED (2,2 450x500))
JmsTopicSession: Found match ...


+++collaborativesvgviewer.eventsrepository.EventsProcessor.java==>>run()==>>got an event from tail: oldcollaborativeevent= framename=frame1,username=master,eventsenderrole=master,eventtype=major,id=2020,time_stamp=Tue Jun 10 11:40:26 GMT-05:00 2003,eventsequenceno=0,eventstatus=0,batikevent.getType()=null,batikevent.getURL()=null,batikevent.getXPath()=/0/14/1/10/1/1
+++collaborativesvgviewer.eventsrepository.EventsProcessor.java==>>run()==>>got an event from tail: xpathIntArray[0]=0
+++collaborativesvgviewer.eventsrepository.EventsProcessor.java==>>run()==>>got an event from tail: xpathIntArray[1]=14
+++collaborativesvgviewer.eventsrepository.EventsProcessor.java==>>run()==>>got an event from tail: xpathIntArray[2]=1
+++collaborativesvgviewer.eventsrepository.EventsProcessor.java==>>run()==>>got an event from tail: xpathIntArray[3]=10
+++collaborativesvgviewer.eventsrepository.EventsProcessor.java==>>run()==>>got an event from tail: xpathIntArray[4]=1
+++collaborativesvgviewer.eventsrepository.EventsProcessor.java==>>run()==>>got an event from tail: xpathIntArray[5]=1
+++collaborativesvgviewer.others.NodePathSupport.java==>>getElementofDOMTree(Element org.apache.batik.dom.svg.SVGOMSVGElement@1af9e98, int[] xpath)
+++collaborativesvgviewer.others.NodePathSupport.java==>>getElementofDOMTree()==>> xpath[0]=0
+++collaborativesvgviewer.others.NodePathSupport.java==>>getElementofDOMTree()==>> xpath[1]=14
+++collaborativesvgviewer.others.NodePathSupport.java==>>getElementofDOMTree()==>> xpath[2]=1
+++collaborativesvgviewer.others.NodePathSupport.java==>>getElementofDOMTree()==>> xpath[3]=10
+++collaborativesvgviewer.others.NodePathSupport.java==>>getElementofDOMTree()==>> xpath[4]=1
+++collaborativesvgviewer.others.NodePathSupport.java==>>getElementofDOMTree()==>> xpath[5]=1
+++collaborativesvgviewer.others.NodePathSupport.java==>>getElementofDOMTree==>>tempnode = getNodeItem(currentnode(svg), xpath[2](1));
+++collaborativesvgviewer.others.NodePathSupport.java==>>getNodeItem()==>> i=0, n.getNodeName()=text
+++collaborativesvgviewer.others.NodePathSupport.java==>>getElementofDOMTree==>>tempnode = g
+++collaborativesvgviewer.others.NodePathSupport.java==>>getElementofDOMTree==>>tempnode = getNodeItem(currentnode(g), xpath[3](10));
+++collaborativesvgviewer.others.NodePathSupport.java==>>getNodeItem()==>> i=0, n.getNodeName()=defs
+++collaborativesvgviewer.others.NodePathSupport.java==>>getNodeItem()==>> i=1, n.getNodeName()=g
+++collaborativesvgviewer.others.NodePathSupport.java==>>getNodeItem()==>> i=2, n.getNodeName()=g
+++collaborativesvgviewer.others.NodePathSupport.java==>>getNodeItem()==>> i=3, n.getNodeName()=g
+++collaborativesvgviewer.others.NodePathSupport.java==>>getNodeItem()==>> i=4, n.getNodeName()=g
+++collaborativesvgviewer.others.NodePathSupport.java==>>getNodeItem()==>> i=5, n.getNodeName()=view
+++collaborativesvgviewer.others.NodePathSupport.java==>>getNodeItem()==>> i=6, n.getNodeName()=view
+++collaborativesvgviewer.others.NodePathSupport.java==>>getNodeItem()==>> i=7, n.getNodeName()=view
+++collaborativesvgviewer.others.NodePathSupport.java==>>getNodeItem()==>> i=8, n.getNodeName()=view
+++collaborativesvgviewer.others.NodePathSupport.java==>>getNodeItem()==>> i=9, n.getNodeName()=#comment
+++collaborativesvgviewer.others.NodePathSupport.java==>>getElementofDOMTree==>>tempnode = a
+++collaborativesvgviewer.others.NodePathSupport.java==>>getElementofDOMTree==>>tempnode = getNodeItem(currentnode(a), xpath[4](1));
+++collaborativesvgviewer.others.NodePathSupport.java==>>getNodeItem()==>> i=0, n.getNodeName()=#text
+++collaborativesvgviewer.others.NodePathSupport.java==>>getElementofDOMTree==>>tempnode = #text
+++collaborativesvgviewer.others.NodePathSupport.java==>>getElementofDOMTree==>>tempnode = getNodeItem(currentnode(#text), xpath[5](1));
java.lang.NullPointerException
    at collaborativesvgviewer.others.NodePathSupport.getElementofDOMTree(NodePathSupport.java:80)
    at org.apache.batik.swing.svg.JSVGComponent.CollaborativeOpenLinkAction(JSVGComponent.java:375)
    at collaborativesvgviewer.eventsrepository.EventsProcessor.run(EventsProcessor.java:167)