got it running. attached is the woraround. Added
        socket.setSoTimeout( timeout );

Amin
----- Original Message -----
From: "Amin" <[EMAIL PROTECTED]>
To: "James Users List" <[EMAIL PROTECTED]>
Sent: Monday, August 12, 2002 2:11 AM
Subject: Re: Admin problem


> Got the new  commited RemoteManagerHandler.java with added logging. Put
also
> a printstacktrace(). log dump below
> ------ remotemanager.log ----------------
> 1029073977014 [INFO   ] (remotemanager): Timeout is : 6000000
> 1029073977074 [INFO   ] (remotemanager): Timeout is set at 6000000
> 1029073977104 [INFO   ] (remotemanager): Access from 127.0.0.1(127.0.0.1)
> 1029073977104 [INFO   ] (remotemanager): Getting ready to read login
> 1029073978126 [ERROR  ] (remotemanager): Exception during connection from
> 127.0.0.1 (127.0.0.1): Read timed out
> ---------- end of remotemanager.log --------------
>
> --------------- printstacktrace screen dump ---------------
> java.net.SocketTimeoutException: Read timed out
>         at java.net.SocketInputStream.socketRead0(Native Method)
>         at java.net.SocketInputStream.read(SocketInputStream.java:119)
>         at
> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:393)
>         at
> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:429)
>         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:171)
>         at java.io.InputStreamReader.read(InputStreamReader.java:169)
>         at java.io.BufferedReader.fill(BufferedReader.java:139)
>         at java.io.BufferedReader.readLine(BufferedReader.java:302)
>         at java.io.BufferedReader.readLine(BufferedReader.java:365)
>         at
> org.apache.james.remotemanager.RemoteManagerHandler.handleConnection(
> RemoteManagerHandler.java:146)
>         at
> org.apache.avalon.cornerstone.blocks.connection.ConnectionRunner.run(
> Connection.java:167)
>         at
> org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(Ex
> ecutableRunnable.java:47)
>         at
> org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread
> .java:86)
> --------------- end of printstacktrace screen dump -------
>
> hmm is it a jdk problem or james problem?
>
> Amin
> ----- Original Message -----
> From: "Noel J. Bergman" <[EMAIL PROTECTED]>
> To: "James Users List" <[EMAIL PROTECTED]>
> Sent: Sunday, August 11, 2002 1:45 AM
> Subject: RE: Admin problem
>
>
> > The code is:
> >
> >     ... try { ...
> >        out.println( "JAMES RemoteAdministration Tool " +
> > Constants.SOFTWARE_VERSION );
> >        out.println("Please enter your login and password");
> >        ... loop ...
> >           out.println("Login id:");
> >           login = in.readLine().trim();
> >           out.println("Password:");
> >           password = in.readLine().trim();
> >        ... until good login ...
> >        out.println("Welcome" + login + ". HELP for a list of commands");
> >     ... } catch ( final IOException e ) { out.println("Error. Closing
> > connection"); ...
> >
> >
> > So if you are seeing:
> >
> > ------------- telnet screen dump --------------
> > JAMES RemoteAdministration Tool 2.0a3-cvs
> > Please enter your login and password
> > Login id:
> > Error. Closing connection
> >
> >
> > Connection to host lost.
> > ------------end of telnet screen dum -------------
> >
> > then the IOException ought to be coming from login =
in.readLine().trim().
> > Is it possible that you are seeing a socket timeout?  Unfortunately, the
> > code eats the actual exception ( :-( ), so the log won't do you much
good.
> >
> > Are you able to build James from source?  If so, you might want to
modify
> > the catch block to log the specific exception; that might help identify
> the
> > problem.
> >
> > --- Noel
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>

Attachment: RemoteManagerHandler.java
Description: Binary data

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to