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 16988 - String Index Out of Bounds Exception when expanding cvs filesystem
Summary: String Index Out of Bounds Exception when expanding cvs filesystem
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P2 blocker (vote)
Assignee: _ ttran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-26 00:31 UTC by Chris Webster
Modified: 2008-12-22 21:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Webster 2001-10-26 00:31:12 UTC
The following exception was thrown when expanding cvs filesystem

Thu Oct 25 16:14:02 PDT 2001: java.lang.StringIndexOutOfBoundsException: String
index out of range: 27
java.lang.StringIndexOutOfBoundsException: String index out of range: 27
        at java.lang.String.charAt(String.java:516)
        at
org.apache.regexp.StringCharacterIterator.charAt(StringCharacterIterator.java:86)
        at org.apache.regexp.RE.matchNodes(RE.java:1180)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:1397)
        at org.apache.regexp.RE.matchNodes(RE.java:914)
        at org.apache.regexp.RE.matchAt(RE.java:1469)
        at org.apache.regexp.RE.match(RE.java:1525)
        at org.apache.regexp.RE.match(RE.java:1490)
        at org.apache.regexp.RE.match(RE.java:1579)
        at
org.netbeans.modules.vcscore.cache.CacheDir.isIgnored(CacheDir.java:455)
        at
org.netbeans.modules.vcscore.caching.VcsFSCache.getFileStatus(VcsFSCache.java:145)
        at
org.netbeans.modules.vcscore.VcsFileSystem.annotateIcon(VcsFileSystem.java:2007)
        at org.openide.loaders.DataNode.getIcon(DataNode.java:167)
        at org.netbeans.modules.java.JavaNode.getIcon(JavaNode.java:396)
        at org.openide.nodes.FilterNode.getIcon(FilterNode.java:360)
        at
org.openide.explorer.view.NodeRenderer$Tree.update(NodeRenderer.java:278)
        at org.openide.explorer.view.VisualizerNode.run(VisualizerNode.java:326)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
[catch] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
Comment 1 Martin Entlicher 2001-10-26 12:37:40 UTC
That's strange. It has never happend to me on Solaris. Do you have any
.cvsignore files in your folders? Or any special ignore file on the
server? Can you please attach the output of CREATE_FOLDER_IGNORE_LIST
commands? It seems, that either there is a bug in ignore files parsing
or it's a bug in apache's regexp utility.
The StringIndexOutOfBoundsException is in the apache's code anyway.
Can you submit a bug to apache?
Comment 2 Martin Entlicher 2001-10-26 15:37:58 UTC
The problem is in the regexp utility. Core bundles the extra binaries.
Comment 3 _ ttran 2001-10-26 22:34:51 UTC
guys, we need the regexp which caused the exception, otherwise no
chance...
Comment 4 Martin Entlicher 2001-10-29 09:59:02 UTC
Chris, is it reproducible? If it is, can you please attach the output
of CREATE_FOLDER_IGNORE_LIST command? It's the only way to get to the
regular expression being used.
Comment 5 _ ttran 2001-10-29 15:51:43 UTC
there is a confirmed bug with a similar symptom in jakarta-regexp,
which has been fixed in regexp 1.2.  See

  http://jakarta.apache.org/regexp/changes.html

 
http://cvs.apache.org/viewcvs.cgi/jakarta-regexp/src/java/org/apache/regexp/RE.java?rev=1.4&content-type=text/vnd.viewcvs-markup

I'll update our core/release/lib/ext/regexp.jar to v 1.2
Comment 6 _ ttran 2001-10-30 14:49:52 UTC
I updated jakarta regexp to v 1.2
Comment 7 Marian Mirilovic 2002-04-18 10:16:27 UTC
It works fine now,

verified in [NB-dev](20020418)
Comment 8 Quality Engineering 2003-07-01 16:17:52 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.