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 68934

Summary: Endless loop when adding new java platform
Product: platform Reporter: Sherold Dev <sherold>
Component: Data SystemsAssignee: Jaroslav Tulach <jtulach>
Status: VERIFIED FIXED    
Severity: blocker CC: jtulach, mmirilovic, rkubacki
Priority: P1 Keywords: PERFORMANCE, THREAD
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: thread dump
message log
Log from the locked IDE

Description Sherold Dev 2005-11-18 14:21:42 UTC
Steps I had made before the deadlock occurred

1. created a java application project
2. opened the project properties, libraties pane
3. tried to register a new JDK 1.6 platform
4. deadlock occurred after I entered the platform location and pressed next
Comment 1 Sherold Dev 2005-11-18 14:24:22 UTC
Created attachment 27049 [details]
thread dump
Comment 2 Sherold Dev 2005-11-18 14:28:01 UTC
One more note, it looks like the CPU usage is 100%..
Comment 3 Tomas Zezula 2005-11-18 14:43:09 UTC
I am not able to reproduce it.
In the step 4 you say that the dead lock occurred after selecting the platform
folder and pressing the next button. In the thread dump it seems that you
already pressed finish button. Didn't you?
It seems as a FolderInstance problem.
Comment 4 Jaroslav Tulach 2005-11-18 16:04:34 UTC
Problem in XMLDataObject. 
Comment 5 Tomas Zezula 2005-11-18 16:13:12 UTC
Thanks Jardo,
I've alredy got into the XMLDataObject.getCookie(), but I've no idea what the
getIP() is doing :-)
Comment 6 Sherold Dev 2005-11-18 17:22:24 UTC
> In the thread dump it seems that you already pressed finish button. Didn't you?

I've just rechecked it and yes, I did press the finish button. I am sorry for
confusing.

It seems that it is 100% reproducible on my machine.
Comment 7 Jaroslav Tulach 2005-11-21 07:41:35 UTC
*** Issue 68860 has been marked as a duplicate of this issue. ***
Comment 8 Jaroslav Tulach 2005-11-21 07:43:00 UTC
Please enable logging: 
 
-J-Dorg.openide.loaders.XMLDataObject=-1 
 
and attach log here, if you can reproduce the problem all the time. Thanks. 
Comment 9 Sherold Dev 2005-11-21 08:22:32 UTC
Created attachment 27075 [details]
message log
Comment 10 Marian Mirilovic 2005-11-21 08:28:15 UTC
Yarda, 
I am able to reproduce it (100%), I'll attach the log from logging
-J-Dorg.openide.loaders.XMLDataObject=-1 

Comment 11 Marian Mirilovic 2005-11-21 08:33:46 UTC
Created attachment 27076 [details]
Log from the locked IDE
Comment 12 Jaroslav Tulach 2005-11-21 12:33:47 UTC
Caused by changes made to fix bug 66438 
Comment 13 _ rkubacki 2005-11-21 13:56:56 UTC
The changes that are related to #66438 not only cause deadlocks but also
significantly slows down popup menu on XML DO. XMLDO.getCookie() calls getIP()
and  XMLDO$InfoParser.lookupCookie() heavily and repeatedly scans the document.
Comment 14 Jaroslav Tulach 2005-11-21 16:51:46 UTC
"#68934: Breaking the endless loop in parseId, the performance shall improve 
as well (at least it seems to me)" 
 
 
openide/loaders/test/unit/src/org/openide/loaders/XMLDataObjectGetCookieTest.java 
openide/loaders/test/unit/src/org/openide/loaders/XMLDataObjectGetNoCookieTest.java  
openide/loaders/test/unit/src/org/openide/loaders/XMLDataObjectLifeLock68934Test.java 
openide/loaders/src/org/openide/loaders/XMLDataObject.java 
openide/loaders/test/unit/src/org/openide/loaders/XMLDataObjectGetCookieTest.java 
Checking in 
openide/loaders/test/unit/src/org/openide/loaders/XMLDataObjectGetCookieTest.java; 
/cvs/openide/loaders/test/unit/src/org/openide/loaders/XMLDataObjectGetCookieTest.java,v  
<--  XMLDataObjectGetCookieTest.java 
new revision: 1.2; previous revision: 1.1 
done 
RCS 
file: /cvs/openide/loaders/test/unit/src/org/openide/loaders/XMLDataObjectGetNoCookieTest.java,v 
done 
Checking in 
openide/loaders/test/unit/src/org/openide/loaders/XMLDataObjectGetNoCookieTest.java; 
/cvs/openide/loaders/test/unit/src/org/openide/loaders/XMLDataObjectGetNoCookieTest.java,v  
<--  XMLDataObjectGetNoCookieTest.java 
initial revision: 1.1 
done 
RCS 
file: /cvs/openide/loaders/test/unit/src/org/openide/loaders/XMLDataObjectLifeLock68934Test.java,v 
done 
Checking in 
openide/loaders/test/unit/src/org/openide/loaders/XMLDataObjectLifeLock68934Test.java; 
/cvs/openide/loaders/test/unit/src/org/openide/loaders/XMLDataObjectLifeLock68934Test.java,v  
<--  XMLDataObjectLifeLock68934Test.java 
initial revision: 1.1 
done 
Checking in openide/loaders/src/org/openide/loaders/XMLDataObject.java; 
/cvs/openide/loaders/src/org/openide/loaders/XMLDataObject.java,v  <--  
XMLDataObject.java 
new revision: 1.23; previous revision: 1.22 
 
Comment 15 Marian Mirilovic 2005-11-22 07:36:32 UTC
verified in NB5.0(200511211900)
Comment 16 Marian Mirilovic 2005-11-22 11:25:03 UTC
*** Issue 69083 has been marked as a duplicate of this issue. ***