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 102730

Summary: Mixed server log.
Product: serverplugins Reporter: Michael Nazarov <michaelnazarov>
Component: Sun Appserver 9Assignee: Nitya Doraisamy <nityad>
Status: NEW ---    
Severity: blocker CC: vkraemer
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: mixed log

Description Michael Nazarov 2007-04-27 11:14:29 UTC
I installed two copies of IDE as specified in 102729. Two IDEs were linked with
one AS. I started IDEs and made command start AS in both. In result mixed log
from two AS starting processes appeared in IDE. This log co9ntains both this:

A conflict occured on port 8080 . Server is shutting down.

and this

Application server startup complete.

It's bit strange in my opinion.
Comment 1 Michael Nazarov 2007-04-27 11:16:24 UTC
Created attachment 41818 [details]
mixed log
Comment 2 Michael Nazarov 2007-04-27 15:06:56 UTC
See also 102735 for important details.
Looks like server plugin needs improvement.
Comment 3 Vince Kraemer 2007-07-24 01:12:21 UTC
two independent processes both try to start the server.. using asadmin start-server. one of them has to find the ports
in use and that start will fail...  The start fails because the server is starting/started by another process...

This could be improved, but there isn't a lot of reason to do it...

Changing to enhancement
Comment 4 Michael Nazarov 2007-07-24 11:10:37 UTC
So you think it's good idea to show both success and failed reports next lines?
Comment 5 Vince Kraemer 2008-04-26 00:07:22 UTC
Does the v3 plugin have similar issues? Is it worth correcting in the v3 plugin, if this issue exists?
Comment 6 _ pcw 2008-04-26 03:21:49 UTC
I don't think Vince was saying that it was good -- more that it wasn't necessarily worth the effort to fix it.  In this
case, the use case is fairly contrived -- there have to be two start vectors (two IDE's in your case) for the server and
they have to be starting it at the same time.  I can't imagine this is going to happen very often.  Furthermore
detecting this sort of interaction between processes is hard enough in C code, in Java, it's much more difficult and
runs serious risk of regressions that are worse than the problem.

I expect the V3 plugin suffers from a similar bug.  OTOH, I can't think of a way (not using native code) to detect that
some other process on the system is starting the server at the same time a particular plugin instance is.
Comment 7 _ pcw 2008-04-26 03:25:14 UTC
OTOH was suppose to be "Off the top of my head...", in the above comment.
Comment 8 Vince Kraemer 2009-12-10 12:55:04 UTC
no bug should be assigned to issues. distributing the load.