Re: Shutdown causes Address in use: JVM_Bind

2002-02-09 Thread Bill Winspur



Stephen, Andrew,
 
After I posted this issue, I noticed that 
the problem was application dependent, i.e. when my web app was invoked 
from an applet, shutdown and startup work as advertised. However, when the web 
app was invoked from my client app, in which I use a URLConnection 
object to talk to the web-app, subsequent shutdown and startup exhibited the 
address-in-use problem.
 
The fix was to do a disconnect() on 
the client app's URLConnection (casting it to an HttpURLConnection). The 
implication is that the browser (IE 5.0) is already well-behaved in this regard, 
so applets did not exhibit the problem.
 
As to why this client-side problem affected 
the webserver, I assume it is because the web-server and client share 
the same TCP stack (I'm developing in loopback mode at present). I'll check that 
assumption later on, when I deploy to the real server.
 
Bill. 
 
 

  - Original Message - 
  From: 
  Bill 
  Winspur 
  To: Orion-Interest 
  Sent: Thursday, February 07, 2002 1:11 
  AM
  Subject: Shutdown causes Address in use: 
  JVM_Bind
  
  I'm running Orion 1.5.3 on Nt4/SP6, and 
  jdk1.3.1_01.
   
  The command I use to shut the server down 
  is:
   
  C:\jdk1.3.1_01\bin\java.exe -jar 
  admin.jar ormi://localhost admin pwd -shutdown
   
  After a shutdown, starting the server 
  always produces the following on the orion console.
   
  Error starting HTTP-Server: 
  Address in use: JVM_BindOrion/1.5.3 initialized
  My work-around is to boot windows, very 
  tedious.
   
  The command I use to start the server 
  is:
   
  C:\jdk1.3.1_01\bin\java.exe 
  "-jar"  "orion.jar"
   
  I had a look thru the archive but the 
  search keys 'Shutdown', and various
  substrings of the 
  server console log, above, did not reveal any 
  solutions.
   
  Is there an alternative way of shutting 
  down the server, that releases the
  tcp/ip binding ?
   
  TIA 
Bill. 


Re: Shutdown causes Address in use: JVM_Bind

2002-02-07 Thread Stephen Davidson

Hi Bill.

I do not know about Windows, but on linux, the server does not finish dying when the 
shutdown command is issued.  After I issue the shutdown command, the server 
  command, the server processes are still running, so I have to manually go kill them.

This can be readily verified in Windows by using the Task Manager to see if any java 
processes are still running after you issue a shutdown.  You may have to 
kill them via the Task Manager.

-Steve

Bill Winspur wrote:

> I'm running Orion 1.5.3 on Nt4/SP6, and jdk1.3.1_01.
> 
>  
> 
> The command I use to shut the server down is:
> 
>  
> 
> *C:\jdk1.3.1_01\bin\java.exe -jar admin.jar ormi://localhost admin pwd 
> -shutdown*
> 
>  
> 
> After a shutdown, starting the server always produces the following on 
> the orion console.
> 
>  
> 
> *Error starting HTTP-Server: Address in use: JVM_Bind
> Orion/1.5.3 initialized
> *
> 
> My work-around is to boot windows, very tedious.
> 
>  
> 
> The command I use to start the server is:
> 
>  
> 
> *C:\jdk1.3.1_01\bin\java.exe "-jar"  "orion.jar"*
> 
>  
> 
> I had a look thru the archive but the search keys 'Shutdown', and various
> 
> substrings of the server console log, above, did not reveal any solutions.
> 
>  
> 
> Is there an alternative way of shutting down the server, that releases the
> 
> tcp/ip binding ?
> 
>  
> 
> TIA Bill. 
> 



-- 
Stephen Davidson
Java Consultant
Delphi Consultants, LLC
http://www.delphis.com
Phone: 214-696-6224 x208





Shutdown causes Address in use: JVM_Bind

2002-02-07 Thread Bill Winspur



I'm running Orion 1.5.3 on Nt4/SP6, and 
jdk1.3.1_01.
 
The command I use to shut the server down 
is:
 
C:\jdk1.3.1_01\bin\java.exe -jar 
admin.jar ormi://localhost admin pwd -shutdown
 
After a shutdown, starting the server 
always produces the following on the orion console.
 
Error starting HTTP-Server: Address 
in use: JVM_BindOrion/1.5.3 initialized
My work-around is to boot windows, very 
tedious.
 
The command I use to start the server 
is:
 
C:\jdk1.3.1_01\bin\java.exe 
"-jar"  "orion.jar"
 
I had a look thru the archive but the 
search keys 'Shutdown', and various
substrings of the 
server console log, above, did not reveal any 
solutions.
 
Is there an alternative way of shutting 
down the server, that releases the
tcp/ip binding ?
 
TIA Bill.