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 148918 - StackOverflowError at java.net.URI$Parser.charAt
Summary: StackOverflowError at java.net.URI$Parser.charAt
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-RPC (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on: 153375
Blocks:
  Show dependency tree
 
Reported: 2008-10-02 08:09 UTC by inksystems
Modified: 2009-03-31 10:14 UTC (History)
10 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 2277


Attachments
stacktrace (129.43 KB, text/plain)
2008-10-02 08:10 UTC, inksystems
Details
stacktrace (131.21 KB, text/plain)
2009-03-20 00:12 UTC, tms1979
Details
stacktrace (131.04 KB, text/plain)
2009-03-20 00:26 UTC, tms1979
Details
stacktrace (130.80 KB, text/plain)
2009-03-21 16:39 UTC, tms1979
Details
stacktrace (131.05 KB, text/plain)
2009-03-31 05:33 UTC, nouel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description inksystems 2008-10-02 08:09:40 UTC
Build: NetBeans IDE 6.5 Beta (Build 200808111757)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Windows XP, 5.1, x86

User Comments:
inksystems: Openinig the project

ranbato: New Java Project with Existing Ant Script

ranbato: Same as before with new build

rvijapurapu: Converting existing Visual Midlet to new version

rvijapurapu: Convertin exissting Visual Midlet to to new version.

GUEST: New Project with existing java source

GUEST: Trying to create a new netbeans project with existing ant script using xhtmlrenderer CVS checkout.

GUEST: Create Web Service client from project.

GUEST: Stopped Glassfish from "Services" tab

GUEST: Hit CTRL+SHIFT+I to fix imports, but this exception tends to pop up at many other occations as well.

GUEST: Attempting to Edit Web Service Attributes

GUEST: Tried to edit Web Service Attributtes on an previously imported Windows Communication Foundation (WCF) service.

inksystems: Openinig the project



Stacktrace: 
java.lang.StackOverflowError
        at java.net.URI$Parser.charAt(URI.java:2837)
        at java.net.URI$Parser.scan(URI.java:2956)
        at java.net.URI$Parser.checkChars(URI.java:2980)
        at java.net.URI$Parser.parseHierarchical(URI.java:3066)
        at java.net.URI$Parser.parse(URI.java:3014)
        at java.net.URI.<init>(URI.java:663)
Comment 1 inksystems 2008-10-02 08:10:00 UTC
Created attachment 71023 [details]
stacktrace
Comment 2 Petr Chytil 2008-10-02 08:25:31 UTC
Reassigning to openide/filesystems for evaluation.
Comment 3 Jiri Skrivanek 2008-10-02 08:54:54 UTC
Probably cycle in
org.netbeans.modules.websvc.jaxrpc.project.JaxRpcArtifactsClassPathProvider.getClassPath(JaxRpcArtifactsClassPathProvider.java:98)
Comment 4 Milan Kuchtiak 2008-10-08 16:36:21 UTC
Worth to fix for 6.5 (UC Module).
Comment 5 Milan Kuchtiak 2008-10-16 14:41:44 UTC
Fixed:

http://hg.netbeans.org/main?cmd=changeset;node=2970c1d7778b
Comment 6 Quality Engineering 2008-10-17 05:02:28 UTC
Integrated into 'main-golden', will be available in build *200810170201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/2970c1d7778b
User: mkuchtiak@netbeans.org
Log: #148918: specify Boot classpath for JAX-RPC artifacts from JAX-RPC1.6 libraries bundled with IDE
Comment 7 Exceptions Reporter 2008-11-21 14:33:27 UTC
Reopening - reproduced in NetBeans IDE 6.5 (Build 200811100001)
http://statistics.netbeans.org/exceptions/detail.do?id=141019
Comment 8 Exceptions Reporter 2008-11-21 14:36:31 UTC
Reopening - reproduced in NetBeans IDE 6.5 (Build 200811100001)
http://statistics.netbeans.org/exceptions/detail.do?id=141020
Comment 9 Milan Kuchtiak 2008-11-21 16:53:11 UTC
But this is a little bit different.
This is a variant to issue 153104 or issue 153375.
Comment 10 tms1979 2009-03-20 00:12:36 UTC
Build: NetBeans IDE 6.5.1 (Build 200903060201)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_03-b05, Java(TM) SE Runtime Environment, 1.6.0_03-b05
OS: Linux, 2.6.27-11-generic, amd64

User Comments: 
Opened a project known to cause exceptions in NetBeans.

Stacktrace: 
java.lang.StackOverflowError
        at java.io.UnixFileSystem.getBooleanAttributes0(UnixFileSystem.java:0)
        at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
        at java.io.File.exists(File.java:733)
        at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.exists(FileChangedManager.java:96)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.getAttribute(BaseFileObj.java:353)
        at org.openide.filesystems.FileUtil.toFile(FileUtil.java:613)
Comment 11 tms1979 2009-03-20 00:12:52 UTC
Created attachment 78487 [details]
stacktrace
Comment 12 tms1979 2009-03-20 00:26:31 UTC
Build: NetBeans IDE 6.5.1 (Build 200903060201)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-11-generic, amd64

User Comments: 
Tried to open a project known to cause exceptions in 6.5/6.5.1.

Stacktrace: 
java.lang.StackOverflowError
        at java.lang.StringCoding.encode(StringCoding.java:272)
        at java.lang.String.getBytes(String.java:947)
        at java.io.UnixFileSystem.getBooleanAttributes0(UnixFileSystem.java:0)
        at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
        at java.io.File.exists(File.java:733)
        at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.exists(FileChangedManager.java:96)
Comment 13 tms1979 2009-03-20 00:26:46 UTC
Created attachment 78488 [details]
stacktrace
Comment 14 tms1979 2009-03-21 16:38:58 UTC
Build: NetBeans IDE 6.5.1 (Build 200903060201)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-11-generic, amd64

User Comments: 
Added the JAX-WS source target folder ("build/generated/wsimport/client") to the list of "Source Package Folders" under "Project Properties"->"Sources", closed project, restarted NetBeans, opened project, thus causing NetBeans to try and scan it for source code. This triggered a cascade of exceptions. The project is also in a broken state so that it can't be expanded in NetBeans without causing further exceptions, until either the "build" directory is deleted or the source target folder is manually deleted from nbproject/project.xml.

Stacktrace: 
java.lang.StackOverflowError
        at sun.nio.cs.UTF_8$Encoder.encodeLoop(UTF_8.java:517)
        at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:544)
        at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:240)
        at java.lang.StringCoding.encode(StringCoding.java:272)
        at java.lang.String.getBytes(String.java:947)
        at java.io.UnixFileSystem.getBooleanAttributes0(UnixFileSystem.java:0)
Comment 15 tms1979 2009-03-21 16:39:06 UTC
Created attachment 78574 [details]
stacktrace
Comment 16 nouel 2009-03-31 05:33:16 UTC
Build: NetBeans IDE 6.5.1 (Build 200903060201)
VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04
OS: Windows XP, 5.1, x86

User Comments: 
using java web service api auto-generated client-side codes

Stacktrace: 
java.lang.StackOverflowError
        at java.io.ExpiringCache.get(ExpiringCache.java:58)
        at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:377)
        at java.io.File.getCanonicalPath(File.java:559)
        at java.io.File.getCanonicalFile(File.java:583)
        at org.openide.filesystems.FileUtil.normalizeFileOnWindows(FileUtil.java:1466)
        at org.openide.filesystems.FileUtil.normalizeFile(FileUtil.java:1371)
Comment 17 nouel 2009-03-31 05:33:23 UTC
Created attachment 79109 [details]
stacktrace
Comment 18 Milan Kuchtiak 2009-03-31 10:14:34 UTC
The issue was already fixed for Netbeans 6.7 (Milestone 2).

See the issue 105645.

JaxWsArtifactsClassPathProvider that caused problems was removed:
http://hg.netbeans.org/main?cmd=changeset;node=dbe293f2b4ea

Also JaxRpcArtifactsClassPathProvider was removed:
http://hg.netbeans.org/main?cmd=changeset;node=7432519375f1