NB3.4B3 Exception Thrown when starting a new project

I got this exception when creating a new project. I had been working in

another project in NB and used the project manager to create a new project.

When I clicked the OK button on the Project Manager dialog, I got an

exception dialog, and the following exception on stdout:

java.lang.reflect.UndeclaredThrowableException

at $Proxy2.cacheAdded(Unknown Source)

at

org.netbeans.modules.vcscore.cache.FileSystemCache.fireCacheHandlerEvent(FileSy stemCache.java:310)

at

org.netbeans.modules.vcscore.cache.FileSystemCache.fireCacheHandlerEvent(FileSy stemCache.java:290)

at

org.netbeans.modules.javacvs.commands.CacheUpdatingFsCommand.fireCacheEvents(Ca cheUpdatingFsCommand.java:254)

at

org.netbeans.modules.javacvs.commands.CacheUpdatingFsCommand.fireUpdateCache(Ca cheUpdatingFsCommand.java:343)

at

org.netbeans.modules.javacvs.commands.CvsStatus.finishedCommand(CvsStatus.java: 136)

at

org.netbeans.modules.javacvs.commands.FileSystemCommand.run(FileSystemCommand.j ava:464)

at java.lang.Thread.run(Thread.java:536)

Caused by: java.lang.reflect.InvocationTargetException

at sun.reflect.GeneratedMethodAccessor125.invoke(Unknown Source)

at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at

org.openide.util.WeakListener$ProxyListener.invoke(WeakListener.java:788)

... 8 more

Caused by: java.lang.StringIndexOutOfBoundsException: String index out of

range: 21

at java.lang.String.charAt(String.java:455)

at

org.apache.regexp.StringCharacterIterator.charAt(StringCharacterIterator.java:9 0)

at org.apache.regexp.RE.matchNodes(RE.java:1161)

at org.apache.regexp.RE.matchNodes(RE.java:1376)

at org.apache.regexp.RE.matchAt(RE.java:1448)

at org.apache.regexp.RE.match(RE.java:1498)

at org.apache.regexp.RE.match(RE.java:1468)

at org.apache.regexp.RE.match(RE.java:1561)

at

org.netbeans.modules.javacvs.JavaCvsFileSystem$ListImpl.children(JavaCvsFileSys tem.java:1215)

at

org.netbeans.modules.cvsclient.NbJavaCvsFileSystem$NbListImpl.children(NbJavaCv sFileSystem.java:542)

at

org.openide.filesystems.DefaultAttributes.children(DefaultAttributes.java:153)

at

org.openide.filesystems.AbstractFileObject.list(AbstractFileObject.java:77)

at

org.openide.filesystems.AbstractFolder.refreshFolder(AbstractFolder.java:657)

at

org.openide.filesystems.AbstractFolder.refresh(AbstractFolder.java:825)

at

org.openide.filesystems.AbstractFileObject.refresh(AbstractFileObject.java:707)

at

org.openide.filesystems.AbstractFileObject.refresh(AbstractFileObject.java:688)

at

org.openide.filesystems.AbstractFolder.refresh(AbstractFolder.java:433)

at org.openide.filesystems.FileObject.refresh(FileObject.java:560)

at

org.netbeans.modules.javacvs.JavaCvsFileSystem.refreshExisting(JavaCvsFileSyste m.java:1521)

at

org.netbeans.modules.javacvs.JavaCvsFileSystem$CacheHandlerListenerImpl.cacheAd ded(JavaCvsFileSystem.java:1860)

... 12 more

[3316 byte] By [Cordell,Ron] at [2007-11-25 16:48:49]
# 1

This seems to be caused by StringIndexOutOfBoundsException at

org.apache.regexp.StringCharacterIterator.charAt(StringCharacterIterator.java:9 0)

We would need a more reliable regexp implementation. Anybody knows whether

Apache has a new version?

Similar bug in regexp also happened to me in the past. However I don't think

that it is reproducible.

-Martin

Ron Cordell wrote:

>

> I got this exception when creating a new project. I had been working in

> another project in NB and used the project manager to create a new project.

> When I clicked the OK button on the Project Manager dialog, I got an

> exception dialog, and the following exception on stdout:

>

> java.lang.reflect.UndeclaredThrowableException

> at $Proxy2.cacheAdded(Unknown Source)

> at

> org.netbeans.modules.vcscore.cache.FileSystemCache.fireCacheHandlerEvent(FileSy stemCache.java:310)

> at

> org.netbeans.modules.vcscore.cache.FileSystemCache.fireCacheHandlerEvent(FileSy stemCache.java:290)

> at

> org.netbeans.modules.javacvs.commands.CacheUpdatingFsCommand.fireCacheEvents(Ca cheUpdatingFsCommand.java:254)

> at

> org.netbeans.modules.javacvs.commands.CacheUpdatingFsCommand.fireUpdateCache(Ca cheUpdatingFsCommand.java:343)

> at

> org.netbeans.modules.javacvs.commands.CvsStatus.finishedCommand(CvsStatus.java: 136)

> at

> org.netbeans.modules.javacvs.commands.FileSystemCommand.run(FileSystemCommand.j ava:464)

> at java.lang.Thread.run(Thread.java:536)

> Caused by: java.lang.reflect.InvocationTargetException

> at sun.reflect.GeneratedMethodAccessor125.invoke(Unknown Source)

> at

> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)

> at java.lang.reflect.Method.invoke(Method.java:324)

> at

> org.openide.util.WeakListener$ProxyListener.invoke(WeakListener.java:788)

> ... 8 more

> Caused by: java.lang.StringIndexOutOfBoundsException: String index out of

> range: 21

> at java.lang.String.charAt(String.java:455)

> at

> org.apache.regexp.StringCharacterIterator.charAt(StringCharacterIterator.java:9 0)

> at org.apache.regexp.RE.matchNodes(RE.java:1161)

> at org.apache.regexp.RE.matchNodes(RE.java:1376)

> at org.apache.regexp.RE.matchAt(RE.java:1448)

> at org.apache.regexp.RE.match(RE.java:1498)

> at org.apache.regexp.RE.match(RE.java:1468)

> at org.apache.regexp.RE.match(RE.java:1561)

> at

> org.netbeans.modules.javacvs.JavaCvsFileSystem$ListImpl.children(JavaCvsFileSys tem.java:1215)

> at

> org.netbeans.modules.cvsclient.NbJavaCvsFileSystem$NbListImpl.children(NbJavaCv sFileSystem.java:542)

> at

> org.openide.filesystems.DefaultAttributes.children(DefaultAttributes.java:153)

> at

> org.openide.filesystems.AbstractFileObject.list(AbstractFileObject.java:77)

> at

> org.openide.filesystems.AbstractFolder.refreshFolder(AbstractFolder.java:657)

> at

> org.openide.filesystems.AbstractFolder.refresh(AbstractFolder.java:825)

> at

> org.openide.filesystems.AbstractFileObject.refresh(AbstractFileObject.java:707)

> at

> org.openide.filesystems.AbstractFileObject.refresh(AbstractFileObject.java:688)

> at

> org.openide.filesystems.AbstractFolder.refresh(AbstractFolder.java:433)

> at org.openide.filesystems.FileObject.refresh(FileObject.java:560)

> at

> org.netbeans.modules.javacvs.JavaCvsFileSystem.refreshExisting(JavaCvsFileSyste m.java:1521)

> at

> org.netbeans.modules.javacvs.JavaCvsFileSystem$CacheHandlerListenerImpl.cacheAd ded(JavaCvsFileSystem.java:1860)

> ... 12 more

Entlicher,Martin at 2007-7-2 23:44:52 > top of Java-index,Archived Forums,Sun ONE Studio 4...