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 68848

Summary: [50cat] SIOOBE when libraries node is clicked for web (ajax+jsf) project
Product: obsolete Reporter: claudio4j <claudio4j>
Component: blueprintsAssignee: Yutaka Yoshida <yutayoshida>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description claudio4j 2005-11-16 20:33:52 UTC
[ BUILD # : beta2 ]
[ JDK VERSION : 1.6 ]

steps:

1) create a new sample project (blueprints) ajax autocompletion JSF components
2) when finished the step to create it, the dialog popup "Resolve Missing server problem" to set the target server.
3) open the dialog and choose tomcat 5.5.9
4) go to project propertes
5) click at libraries node, them the attached exception is throw

P2 because, the libraries cannot be set
Comment 1 Jan Lahoda 2005-11-16 20:43:28 UTC
=>web/project
Comment 2 claudio4j 2005-11-16 21:20:34 UTC
    Sorry, IZ is not accepting attachments.

*********** Exception occurred ************ at 6:28 PM on Nov 16, 2005
java.lang.StringIndexOutOfBoundsException: String index out of range: -2
        at java.lang.String.substring(String.java:1776)
        at
org.netbeans.modules.web.project.ui.customizer.WebClassPathUi$ClassPathListCellRenderer.getFileRefName(WebClassPathUi.java:249)
        at
org.netbeans.modules.web.project.ui.customizer.WebClassPathUi$ClassPathListCellRenderer.getDisplayName(WebClassPathUi.java:155)
        at
org.netbeans.modules.web.project.ui.customizer.WebClassPathUi$ClassPathListCellRenderer.access$100(WebClassPathUi.java:77)
        at
org.netbeans.modules.web.project.ui.customizer.WebClassPathUi$ClassPathTableCellItemRenderer.getTableCellRendererComponent(WebClassPathUi.java:271)
        at javax.swing.JTable.prepareRenderer(JTable.java:5537)
        at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:2043)
        at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1945)
        at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1741)
        at javax.swing.plaf.ComponentUI.update(ComponentUI.java:143)
        at javax.swing.JComponent.paintComponent(JComponent.java:704)
        at javax.swing.JComponent.paint(JComponent.java:968)
        at javax.swing.JComponent.paintChildren(JComponent.java:805)
        at javax.swing.JComponent.paint(JComponent.java:977)
        at javax.swing.JViewport.paint(JViewport.java:740)
        at javax.swing.JComponent.paintChildren(JComponent.java:805)
        at javax.swing.JComponent.paint(JComponent.java:977)
        at javax.swing.JComponent.paintChildren(JComponent.java:805)
        at javax.swing.JComponent.paint(JComponent.java:977)
        at javax.swing.JComponent.paintChildren(JComponent.java:805)
        at javax.swing.JComponent.paint(JComponent.java:977)
        at javax.swing.JComponent.paintChildren(JComponent.java:805)
        at javax.swing.JComponent.paint(JComponent.java:977)
        at javax.swing.JComponent.paintChildren(JComponent.java:805)
        at javax.swing.JComponent.paint(JComponent.java:977)
        at javax.swing.JComponent.paintToOffscreen(JComponent.java:5074)
        at
javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:279)
        at javax.swing.RepaintManager.paint(RepaintManager.java:1079)
        at javax.swing.JComponent._paintImmediately(JComponent.java:5022)
        at javax.swing.JComponent.paintImmediately(JComponent.java:4840)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:688)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:644)
        at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:624)
        at
javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:128)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
[catch] 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 3 claudio4j 2005-11-17 01:37:10 UTC
At project tab, right click under Libraries and 'Add Library' choose JSF and
JSTL, then project proerties --> Libraries can be seen.
Comment 4 Radko Najman 2005-11-18 17:01:14 UTC
=> j2ee/blueprints
Comment 5 Yutaka Yoshida 2005-11-22 18:27:12 UTC
This has essentially nothing to do with the type of
server. Even with the Sun appserver (added before
projectizing this sample), this problem occurs.
The property of "javac.classpath=${textfield.jar}"
in project.properties causes this problem. It refers
to the jar file created only by the build. So netbeans
throws this exception when the user does "properties->libraries"
but there's no such library jar yet.
I'm going to put a workaround for this, but I believe this
should be resolved in "properties->libraries" window.
Comment 6 Yutaka Yoshida 2005-11-22 22:21:13 UTC
fixed in:
v1.2 of j2ee/external/blueprints-solutions-catalog.zip
====
fix: 68848
modified file in textfield-jsf.zip:
build.xml and project.properties - remove
javac.classpath and define it in build.xml
====
Comment 7 Dan Kolar 2006-08-22 15:33:48 UTC
v.