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 60033 - Second web app deployment fails,if invoked when first still executing
Summary: Second web app deployment fails,if invoked when first still executing
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 5.x
Hardware: PC All
: P4 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-15 13:08 UTC by Jaroslav Pospisil
Modified: 2008-11-11 12:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Outputs of double deploying with new userdir (8.77 KB, text/plain)
2005-06-15 13:09 UTC, Jaroslav Pospisil
Details
Outputs of double TC deploy after workaround (974 bytes, text/plain)
2005-06-15 13:11 UTC, Jaroslav Pospisil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Pospisil 2005-06-15 13:08:35 UTC
build 200506142000
1.Run IDE with new userdir
2.Create web application 
3.Run it by F6
4.Hit F6 second time,before the first deployment still running
5.ERROR

Both deployments fails,Deployment dialogue hangs up in WXP and after it
ends(over 3 minutes),Runtime window shows Tomcat as stopped and no process
running.But if you check in WXP task manager,there are running two Tomcat java
processes and bundled Tomcat in IDE cannot be started,until you end both java
processes(workaround). I'm attaching outputs - see attachment.
When you end this two processes and try this once more,the results differs.
Sometimes you can deploy both times successfull,sometimes first process fail.
See attachments.

This case occurs if you start IDE with new userdir,but if you do this after some
time of Tomcat running or debugging,you will get only exception in IDE.
java.lang.InterruptedException
	at java.lang.Object.wait(Native Method)
	at java.lang.Object.wait(Object.java:474)
	at org.openide.util.Mutex$QueueCell.sleep(Mutex.java:1388)
	at org.openide.util.Mutex.enter(Mutex.java:608)
	at org.openide.util.Mutex.writeEnter(Mutex.java:483)
	at org.openide.util.Mutex.access$100(Mutex.java:78)
	at org.openide.util.Mutex$Privileged.enterWriteAccess(Mutex.java:1438)
	at
org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.refresh(FolderObj.java:226)
	at
org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObjectFactory.refreshAll(FileObjectFactory.java:131)
	at
org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem.refresh(FileBasedFileSystem.java:120)
	at
org.netbeans.modules.masterfs.MasterFileSystem.refresh(MasterFileSystem.java:199)
	at
org.netbeans.core.ui.warmup.MenuWarmUpTask$NbWindowsAdapter.run(MenuWarmUpTask.java:131)
	at org.openide.util.Task.run(Task.java:207)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:435)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:836)
Comment 1 Jaroslav Pospisil 2005-06-15 13:09:47 UTC
Created attachment 22705 [details]
Outputs of double deploying with new userdir
Comment 2 Jaroslav Pospisil 2005-06-15 13:11:12 UTC
Created attachment 22706 [details]
Outputs of double TC deploy after workaround
Comment 3 Sherold Dev 2005-06-15 14:32:40 UTC
TM -> 4.2.
Comment 4 Jaroslav Pospisil 2008-11-11 12:24:56 UTC
Unreproducible in latest build.Closing as worksforme.