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 35425 - Illegal State Error from WCO.getClassesBase()
Summary: Illegal State Error from WCO.getClassesBase()
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: _ rkubacki
URL:
Keywords:
: 32461 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-08-13 19:45 UTC by edgreenberg
Modified: 2007-07-31 13:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide log (52.94 KB, text/plain)
2003-08-13 19:45 UTC, edgreenberg
Details
ide.log with J-Dorg.netbeans.modules.web.context.WebContextObject=-1 flag (149.75 KB, text/plain)
2003-08-14 19:20 UTC, edgreenberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description edgreenberg 2003-08-13 19:45:08 UTC
Got an illegal state error, which asked me to report here.
Comment 1 edgreenberg 2003-08-13 19:45:44 UTC
Created attachment 11316 [details]
ide log
Comment 2 Vitezslav Stejskal 2003-08-14 08:34:30 UTC
Seems like problem somehere in web module.
Comment 3 _ rkubacki 2003-08-14 16:34:45 UTC
Please can you run the IDE with
-J-Dorg.netbeans.modules.web.context.WebContextObject=-1 switch
(either add it to ide.cfg or to command that starts the IDE and send
us the output?
Comment 4 edgreenberg 2003-08-14 19:19:36 UTC
Adding an attachment containing the flag
J-Dorg.netbeans.modules.web.context.WebContextObject=-1
as requested. 
Thanks for the attention. I appreciate it. 
Comment 5 edgreenberg 2003-08-14 19:20:34 UTC
Created attachment 11325 [details]
ide.log with J-Dorg.netbeans.modules.web.context.WebContextObject=-1 flag
Comment 6 _ rkubacki 2003-08-15 08:24:38 UTC
Is there any reason why to have all this stuff in WEB-INF/lib. For
example jdbc2_0-stdext.jar, xml-apis.jar (likely the same as
jaxp-api.jar) are part of JDK 1.4 so you don't need them. Others like
some of commons-*.jar, jndi, jmx are already on Tomcat's classpath
though sometimes with different name. Some other are on Tomcat's
classpath used by server internals but can be moved to that your
application can share them. I don't understand why you need
jboss-system. I suggest you to analyze what is really needed (as a
side effect you can get better performance of claas loading and avoid
colisions between more version of the same library, jndi within your
weba application will probably not give you expected results and so on).

Anyway it seems that so many jars here can cause improper behaviour
and we have to analyze it.
Comment 7 _ rkubacki 2003-08-15 10:02:08 UTC
Likely explanation: if the first attempt to associate classesFS in
getClassesBase fails (it is ok that it might not be restored/created
yet) there is a timeout 10s to wait until ProjectViewManager will set
the association. Unfortunately if the project is not restored in this
time the IllegalStateException is thrown.

I will try to fix it by adding explicit attempt to find & associate
classes fs again into subsequent tries.
Comment 8 _ rkubacki 2003-08-15 10:09:49 UTC
Commited to trunk

http://web.netbeans.org/source/browse/web/core/src/org/netbeans/modules/web/context/WebContextObject.java.diff?r1=1.37&r2=1.38

If you want to test it you can try next dev build. If it helps we can
think about releasing some patch for NB3.5.
Comment 9 Petr Jiricka 2004-01-21 19:58:51 UTC
*** Issue 32461 has been marked as a duplicate of this issue. ***
Comment 10 Dan Kolar 2007-07-31 13:39:31 UTC
v.