This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 117026 - AIOOBE when opening XSL file
Summary: AIOOBE when opening XSL file
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: XSLT (show other bugs)
Version: 6.x
Hardware: PC All
: P2 blocker (vote)
Assignee: Vitaly Bychkov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-28 13:30 UTC by Andrei Chistiakov
Modified: 2007-10-01 11:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample project (9.65 KB, application/octet-stream)
2007-09-28 13:30 UTC, Andrei Chistiakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Chistiakov 2007-09-28 13:30:23 UTC
Reproduced in build 200709280000.

To reproduce the bug:
- open the attached project;
- open the XSL file.

If the xslt source contains 
                <xsl:element name="ns1:street">
                    <xsl:value-of select="/"/>
                </xsl:element>
, the following exception is thrown:

java.lang.ArrayIndexOutOfBoundsException: 0
	at org.netbeans.modules.xslt.mapper.model.nodes.SourceTypeFinder.findImpl(SourceTypeFinder.java:93)
	at org.netbeans.modules.xslt.mapper.model.nodes.SourceTypeFinder.findNode(SourceTypeFinder.java:88)
	at org.netbeans.modules.xslt.mapper.view.NodeCreatorVisitor.visit(NodeCreatorVisitor.java:127)
	at org.netbeans.modules.xml.xpath.impl.XPathLocationPathImpl.accept(XPathLocationPathImpl.java:131)
	at org.netbeans.modules.xslt.mapper.view.DiagramBuilder.buildDiagramRecursive(DiagramBuilder.java:218)
	at org.netbeans.modules.xslt.mapper.view.DiagramBuilder.updateDiagram(DiagramBuilder.java:169)
	at org.netbeans.modules.xslt.mapper.view.DiagramBuilder.updateDiagramRecursive(DiagramBuilder.java:285)
	at org.netbeans.modules.xslt.mapper.view.DiagramBuilder.updateDiagramRecursive(DiagramBuilder.java:287)
	at org.netbeans.modules.xslt.mapper.view.DiagramBuilder.updateDiagramRecursive(DiagramBuilder.java:287)
	at org.netbeans.modules.xslt.mapper.view.DiagramBuilder.updateDiagramRecursive(DiagramBuilder.java:287)
	at org.netbeans.modules.xslt.mapper.view.DiagramBuilder.updateDiagram(DiagramBuilder.java:88)
	at org.netbeans.modules.xslt.mapper.model.XsltModelBridge.onModelChanged(XsltModelBridge.java:225)
	at org.netbeans.modules.xslt.mapper.model.ModelBridge$UpdateTimer$1.actionPerformed(ModelBridge.java:82)
	at javax.swing.Timer.fireActionPerformed(Timer.java:271)
[catch] at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 Andrei Chistiakov 2007-09-28 13:30:51 UTC
Created attachment 49741 [details]
sample project
Comment 2 Vitaly Bychkov 2007-09-28 16:08:46 UTC
Fixed in trunk:
/cvs/enterprise/xslt/mapper/src/org/netbeans/modules/xslt/mapper/model/nodes/SourceTypeFinder.java,v  <-- 
SourceTypeFinder.java
new revision: 1.7; previous revision: 1.6


Fixed in sierra:
/cvs/enterprise/xslt/mapper/src/org/netbeans/modules/xslt/mapper/model/nodes/SourceTypeFinder.java,v  <-- 
SourceTypeFinder.java
new revision: 1.5.8.1; previous revision: 1.5
Comment 3 Andrei Chistiakov 2007-10-01 11:31:55 UTC
Verified in build 200710010000.