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 247980

Summary: StringIndexOutOfBoundsException: String index out of range: 0
Product: projects Reporter: tremel <tremel>
Component: MavenAssignee: Tomas Stupka <tstupka>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 207212
Attachments: stacktrace

Description tremel 2014-10-16 12:25:40 UTC
Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b17
OS: Linux

User Comments:
GUEST: I was cleaning and rebuilding the project.

GUEST: Netbeans and OGSI suck

GUEST: Still sucks

tremel: See https://netbeans.org/bugzilla/show_bug.cgi?id=247976.

I have removed ~/.m2 and ~/.cache/netbeans an do rebuild all my applications. After a while the error reoccur.

GUEST: Not sure. Maven build?

GUEST: Netbeans suck big time when you try to use it with OSGI




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
   at java.lang.String.charAt(String.java:646)
   at org.netbeans.modules.maven.indexer.ClassDependencyIndexCreator.dependencies(ClassDependencyIndexCreator.java:348)
   at org.netbeans.modules.maven.indexer.ClassDependencyIndexCreator.addDependenciesToMap(ClassDependencyIndexCreator.java:244)
   at org.netbeans.modules.maven.indexer.ClassDependencyIndexCreator.populateArtifactInfo(ClassDependencyIndexCreator.java:130)
   at org.apache.maven.index.ArtifactContext.createDocument(ArtifactContext.java:184)
   at org.apache.maven.index.DefaultIndexerEngine.update(DefaultIndexerEngine.java:73)
Comment 1 tremel 2014-10-16 12:25:41 UTC
Created attachment 149940 [details]
stacktrace
Comment 2 tremel 2014-10-16 12:32:26 UTC

*** This bug has been marked as a duplicate of bug 247976 ***