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.
Summary: | StackOverflowError when trying to open a file | ||
---|---|---|---|
Product: | javaee | Reporter: | moroczt <moroczt> |
Component: | Web Freeform | Assignee: | Radko Najman <rnajman> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | pjiricka, ppisl, vnicolici |
Priority: | P2 | Keywords: | REGRESSION |
Version: | 5.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Fixed module for NetBeans 5.5 |
Description
moroczt
2006-10-06 07:46:32 UTC
I think the cause of the problem is that project's root is the same as the root of the web pages. We do not want to deploy the web application during development time so the project's root is directly inside Tomcat: the ...tomcat5.5/webapps/ourapp directory. The version 5.0 worked fine in this scenario. It seems NB 5.5 cannot cope with with it. also see this issue on Sun/Solaris-9 jdk1.5.0_08 *** Issue 88402 has been marked as a duplicate of this issue. *** *** Issue 88160 has been marked as a duplicate of this issue. *** *** Issue 88661 has been marked as a duplicate of this issue. *** Moroczt is right, StackOverflowError is thrown only if project's root is the same as the root of the web pages. This problem was caused by the fix for issue #82290. Coool: Target Milestone: 6.0; netBeansReleases.getRelease("5.5").unInstall(myComputer); netBeansReleases.getRelease("6.0").addListener(new EmailListener ("vnicolici@netbeans.org") ); Hard to fix it in 5.5 when it has been already released... If there will be an update of NetBeans 5.5, it should contain fix for this issue (http://wiki.netbeans.info/wiki/view/NB55Fixes) Basically the problem is that Web Pages folder should not be the same as project root. If it is and you expand Web Pages node you can see everything (Java sources, test roots, nbproject, build script, etc.) under this node and it is a bad approach, it can lead to a few problems like this. In this case it causes a recursive getting classpath. Unfortunately there is no check in Web Application with Existing Ant Script wizard to prevent to create a project with this structure. This check is implemented only in Web Application with Existing Sources wizard. There are to workarounds you can do: 1. don't use the project root as a Web Pages folder, define another folder for Web Pages. 2. remove Java sources from your project (in project properties) and access them using the Web Pages node (this can probably affect the project functionality so I would recommend the first workaround). (to vnicolici: don't forget to unregister EmailListener when the fix it delivered, it could lead to a memory leak ;-) ) Fixed. Checking in WebModules.java; /cvs/web/freeform/src/org/netbeans/modules/web/freeform/WebModules.java,v <-- WebModules.java new revision: 1.12; previous revision: 1.11 done For those who want to apply this fix in NetBeans 5.5. 1. backup <netbeans_home>/enterprise3/modules/org-netbeans-modules-web-freeform.jar 2. replace it with the attached jar file Created attachment 35827 [details]
Fixed module for NetBeans 5.5
Thank your for your advices and for the fixed jar. It seems that it will be a pleasure to work with 5.5! :) Thanks for the fix! Now it works! I really appreciate fixing the issue so quickly. Eclipse has a similar bug, I reported it the Eclipse developers 7 months ago, and it's still not fixed. *** Issue 88823 has been marked as a duplicate of this issue. *** *** Issue 88959 has been marked as a duplicate of this issue. *** *** Issue 89130 has been marked as a duplicate of this issue. *** *** Issue 89555 has been marked as a duplicate of this issue. *** v. 200611291315 Since there are many duplicates, change priority to P2. The issue has been fixed in the branch 'release551'. Checking in WebModules.java; /cvs/web/freeform/src/org/netbeans/modules/web/freeform/WebModules.java,v <-- WebModules.java new revision: 1.7.8.2.2.6.6.1; previous revision: 1.7.8.2.2.6 done *** Issue 91138 has been marked as a duplicate of this issue. *** *** Issue 91139 has been marked as a duplicate of this issue. *** *** Issue 91698 has been marked as a duplicate of this issue. *** *** Issue 92769 has been marked as a duplicate of this issue. *** *** Issue 95799 has been marked as a duplicate of this issue. *** *** Issue 93664 has been marked as a duplicate of this issue. *** *** Issue 91980 has been marked as a duplicate of this issue. *** *** Issue 96487 has been marked as a duplicate of this issue. *** *** Issue 97313 has been marked as a duplicate of this issue. *** *** Issue 97421 has been marked as a duplicate of this issue. *** *** Issue 97536 has been marked as a duplicate of this issue. *** *** Issue 98059 has been marked as a duplicate of this issue. *** *** Issue 97621 has been marked as a duplicate of this issue. *** *** Issue 95868 has been marked as a duplicate of this issue. *** *** Issue 99795 has been marked as a duplicate of this issue. *** *** Issue 101043 has been marked as a duplicate of this issue. *** *** Issue 103419 has been marked as a duplicate of this issue. *** *** Issue 103274 has been marked as a duplicate of this issue. *** *** Issue 103611 has been marked as a duplicate of this issue. *** *** Issue 108547 has been marked as a duplicate of this issue. *** *** Issue 100661 has been marked as a duplicate of this issue. *** |