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 53037 - Computer hangs when saving sun-ejb-jar.xml
Summary: Computer hangs when saving sun-ejb-jar.xml
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 4.x
Hardware: PC Windows 3.1/NT
: P2 blocker (vote)
Assignee: Nam Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-06 07:09 UTC by Geertjan Wielenga
Modified: 2006-03-24 13:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Partial dump (42.27 KB, text/plain)
2005-01-06 20:03 UTC, Rochelle Raccah
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Geertjan Wielenga 2005-01-06 07:09:00 UTC
When I change and then save sun-ejb-jar.xml, the
system hangs. It goes on hanging indefinitely and
so I had to reboot.

Without this fix user will have problems in 4.1
quick start guide. They will have to be told to
update sun-ejb-jar.xml outside NB and then refresh
it inside NB. If this is an acceptable workaround,
this priority can be changed to P3. 

This issue might be related to 53028.
Comment 1 Petr Blaha 2005-01-06 09:05:40 UTC
This issue was reported by users in nbusers mailing list also.
Comment 2 Rochelle Raccah 2005-01-06 20:03:06 UTC
Created attachment 19535 [details]
Partial dump
Comment 3 Rochelle Raccah 2005-01-06 20:07:37 UTC
I was able to reproduce and see a partial thread dump.  Changing to
j2eeserver and Nam since I see ConfigSupportImpl in the dump.
Comment 4 ostorhegyes 2005-01-06 20:09:04 UTC
This hang-up related to Enterprise JavaBeans Modules using Java 
Platform JSDK 1.5.
Those modules, which use for example JSDK 1.4.2_02-b03 not so 
adversely affected by this phenomenon. The saving lasts maximum half 
a minute, then the IDE feels that the file wasn't saved while it was 
actually saved. 
Workaround:
Change the java platform of the Module to JSDK 1.4.2_X (except JSDK 
1.4.2_6. I don't trust JSDK 1.4.2_6) :-)

When you make a change on a sun-ejb-jar.xml and save it, the IDE will 
feel that it wasn't saved.  The save-all button will be active, but 
do not care with it. 
Do not click on again and again, because the files are stored 
correctly. 
The save-all button will blur only after a restart of the IDE.
(Naturally)
mfg
Mihaly Toth
Comment 5 Nam Nguyen 2005-01-08 04:05:55 UTC
Fixed in EA2:
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/AbstractFilesListener.java,v
 <--  AbstractFilesListener.java
new revision: 1.2.2.1; previous revision: 1.2
src/org/netbeans/modules/j2ee/deployment/config/DDFilesListener.java;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/DDFilesListener.java,v
 <--  DDFilesListener.java
new revision: 1.1.2.1; previous revision: 1.1
Comment 6 Martin Grebac 2005-01-11 12:42:23 UTC
How about trunk?
Comment 7 Nam Nguyen 2005-01-11 23:15:09 UTC
Merged to trunk:
nb_all/j2eeserver> cvs commit -m "isssue 53037 Fix infinite file
change event loop when config xml editor save"
src/org/netbeans/modules/j2ee/deployment/config/DDFilesListener.java
src/org/netbeans/modules/j2ee/deployment/config/AbstractFilesListener.java
Checking in
src/org/netbeans/modules/j2ee/deployment/config/DDFilesListener.java;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/DDFilesListener.java,v
 <--  DDFilesListener.java
new revision: 1.2; previous revision: 1.1
done
Checking in
src/org/netbeans/modules/j2ee/deployment/config/AbstractFilesListener.java;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/AbstractFilesListener.java,v
 <--  AbstractFilesListener.java
new revision: 1.3; previous revision: 1.2
done
Processing log script arguments...
Mailing the commit message to cvs@j2eeserver.netbeans.org (from
nnguyen@netbeans.org)
Comment 8 Petr Blaha 2005-04-01 11:42:13 UTC
I didn't see this issue in NB 4.1 trunk builds.