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 153375 - StackOverflowError at org.openide.filesystems.FileUtil.toFileObject
Summary: StackOverflowError at org.openide.filesystems.FileUtil.toFileObject
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 6.x
Hardware: Sun All
: P1 blocker (vote)
Assignee: Milan Kuchtiak
URL: http://statistics.netbeans.org/except...
Keywords:
: 153104 167903 (view as bug list)
Depends on:
Blocks: 148918
  Show dependency tree
 
Reported: 2008-11-18 11:35 UTC by Jindrich Sedek
Modified: 2009-11-01 22:32 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 138981


Attachments
stacktrace (111.57 KB, text/plain)
2009-10-23 18:59 UTC, neilg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jindrich Sedek 2008-11-18 11:35:11 UTC
40 duplicates already - incorrectly marked as a duplicate of the issue #111722


Build: NetBeans IDE 6.5 RC2 (Build 200810270001)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-b02, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b02
OS: Windows XP, 5.1, x86
User comments: Compiling WS client (files generated from WSDL)
STACKTRACE: (first 10 lines)
java.lang.StackOverflowError
        at org.openide.filesystems.FileUtil.toFileObject(FileUtil.java:666)
        at org.netbeans.spi.project.support.ant.SourcesHelper$SourcesImpl.getSourceGroups(SourcesHelper.java:745)
        at org.netbeans.modules.web.project.WebSources$.run(WebSources.java:117)
        at org.netbeans.modules.web.project.WebSources$.run(WebSources.java:108)
        at org.openide.util.Mutex.readAccess(Mutex.java:285)
        at org.netbeans.modules.web.project.WebSources.getSourceGroups(WebSources.java:107)
        at
org.netbeans.spi.project.support.LookupProviderSupport$SourcesImpl.getSourceGroups(LookupProviderSupport.java:260)
        at
org.netbeans.modules.websvc.core.jaxws.projects.JaxWsArtifactsClassPathProvider.getClassPath(JaxWsArtifactsClassPathProvider.java:145)
        at
org.netbeans.modules.websvc.core.jaxws.projects.JaxWsArtifactsClassPathProvider.findClassPath(JaxWsArtifactsClassPathProvider.java:93)
        at
org.netbeans.spi.java.project.support.ClassPathProviderMerger$ProxyClassPathImplementation.checkProviders(ClassPathProviderMerger.java:172)
Comment 1 Milan Kuchtiak 2008-11-20 09:18:07 UTC
Increasing priority to P1.
Please, confirm if you had "build/generated/wsimport/client" folder added to sources list (in Project | properties |
Sources).
Comment 2 Milan Kuchtiak 2008-11-20 09:32:42 UTC
Please, search if you have the following line in nbproject/project.properties :
src.client.dir=build/generated/wsimport/client
Comment 3 Milan Kuchtiak 2008-11-20 09:33:46 UTC
*** Issue 153104 has been marked as a duplicate of this issue. ***
Comment 4 Milan Kuchtiak 2008-11-20 11:03:18 UTC
This is another argument we really need a standard folder where to generate sources.
See the enhancement 105645. 

Reassigning to java project team to evaluate :

Steps to reproduce :
- create a WS Client in J2SE Project (e.g. from attached WSDL)
- add build/generated/wsimport/client to Sources list
- restart the IDE

Please, evaluate if this is a problem of ClassPathProviderMerger or incorrect implementation of ClassPathProvider in
websvc.core (org.netbeans.modules.websvc.core.jaxws.projects.JaxWsArtifactsClassPathProvider)
Comment 5 Tomas Zezula 2008-12-09 10:41:23 UTC
JaxWsArtifactsClassPathProvider.getClassPath() calls ClassPath.getClassPath() => SPI calls back to API which is wrong.
However if you need it you have to be pretty sure you avoid StackOverflow, you can do it for example by ThreadLocal.
Comment 6 Milan Kuchtiak 2008-12-09 17:04:58 UTC
Fixed.

See:
http://hg.netbeans.org/main?cmd=changeset;node=d116231c6952
Comment 7 Quality Engineering 2008-12-10 05:59:04 UTC
Integrated into 'main-golden', will be available in build *200812100201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/d116231c6952
User: mkuchtiak@netbeans.org
Log: #153375: fixing StackOverflowError
Comment 8 Jindrich Sedek 2009-02-02 14:55:01 UTC
v.
Comment 9 Jiri Prox 2009-07-13 14:37:17 UTC
*** Issue 167903 has been marked as a duplicate of this issue. ***
Comment 10 neilg 2009-10-23 18:59:12 UTC
Build: NetBeans IDE 6.8 Beta (Build 200910212001)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.28-15-generic, amd64

User Comments: 


Stacktrace: 
java.lang.StackOverflowError
        at sun.nio.cs.UTF_8.updatePositions(UTF_8.java:58)
        at sun.nio.cs.UTF_8$Encoder.encodeArrayLoop(UTF_8.java:392)
        at sun.nio.cs.UTF_8$Encoder.encodeLoop(UTF_8.java:447)
        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)
Comment 11 neilg 2009-10-23 18:59:17 UTC
Created attachment 90009 [details]
stacktrace