Chris2011 commented on PR #7938:
URL: https://github.com/apache/netbeans/pull/7938#issuecomment-2564360886

   @weisJ  While fixing the addressed feedback, I addressed an exception of 
course that this is rubbish because I took a file, renamed it to *.svg which 
was a *.http file with stuff that is not SVG. Shouldn't this be handled 
somehow? Yes I know, who the hell would do this. I wanted to test someting and 
this came up.
   
   ```
   com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '/' (code 
47) in prolog; expected '<'
    at [row,col {unknown-source}]: [1,1]
        at 
com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:666)
        at 
com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2148)
        at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1180)
        at com.ctc.wstx.evt.WstxEventReader.nextEvent(WstxEventReader.java:283)
   [catch] at 
com.github.weisj.jsvg.parser.StaxSVGLoader.parse(StaxSVGLoader.java:106)
        at 
com.github.weisj.jsvg.parser.StaxSVGLoader.load(StaxSVGLoader.java:167)
        at com.github.weisj.jsvg.parser.SVGLoader.load(SVGLoader.java:111)
        at com.github.weisj.jsvg.parser.SVGLoader.load(SVGLoader.java:62)
        at com.github.weisj.jsvg.parser.SVGLoader.load(SVGLoader.java:54)
        at com.github.weisj.jsvg.parser.SVGLoader.load(SVGLoader.java:49)
        at 
org.netbeans.modules.svg.SVGViewerElement.updateView(SVGViewerElement.java:233)
        at 
org.netbeans.modules.svg.SVGViewerElement.componentOpened(SVGViewerElement.java:145)
        at 
org.netbeans.core.multiview.MultiViewPeer.showCurrentElement(MultiViewPeer.java:471)
        at 
org.netbeans.core.multiview.MultiViewPeer.showCurrentElement(MultiViewPeer.java:437)
        at 
org.netbeans.core.multiview.MultiViewPeer$SelectionListener.selectionChanged(MultiViewPeer.java:904)
        at 
org.netbeans.core.multiview.MultiViewModel.fireSelectionChanged(MultiViewModel.java:234)
        at 
org.netbeans.core.multiview.MultiViewModel.setActiveDescription(MultiViewModel.java:95)
        at 
org.netbeans.core.multiview.MultiViewModel$BtnGroup.setSelected(MultiViewModel.java:297)
        at 
java.desktop/javax.swing.JToggleButton$ToggleButtonModel.setSelected(JToggleButton.java:356)
        at 
java.desktop/javax.swing.ButtonGroup.setSelected(ButtonGroup.java:168)
        at 
org.netbeans.core.multiview.MultiViewModel$BtnGroup.setSelected(MultiViewModel.java:293)
        at 
org.netbeans.core.multiview.TabsComponent$ButtonMouseListener.mousePressed(TabsComponent.java:885)
        at 
java.desktop/java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:288)
        at 
java.desktop/java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:287)
        at 
java.desktop/java.awt.Component.processMouseEvent(Component.java:6623)
        at 
java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3389)
        at java.desktop/java.awt.Component.processEvent(Component.java:6391)
        at java.desktop/java.awt.Container.processEvent(Container.java:2266)
        at 
java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001)
        at 
java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
        at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
        at 
java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
        at 
java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4572)
        at 
java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
        at 
java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
        at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
        at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
        at 
java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
        at 
java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
        at 
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
        at 
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
        at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:746)
        at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:744)
        at 
java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
        at 
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:743)
        at 
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
        at 
java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
        at 
java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
        at 
java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
        at 
java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
        at 
java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at 
java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to