You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Michael Weissenbacher <mw...@dermichi.com> on 2007/10/02 11:14:53 UTC

Re: Exception opening socket: null

Hi Stefano,
> Can you run a "netstat -n" and a "jstack <jamespid>" when it happens, to
> understand what the server is doing and what are the active connections?
here is the netstat output:
*** snip ***
# netstat -nap|grep 10025
tcp        0      0 ::ffff:127.0.0.1:10025  :::*                    LISTEN
31286/java
tcp        0      0 ::ffff:127.0.0.1:10025  ::ffff:127.0.0.1:53498  TIME_WAIT
-
tcp        0      0 ::ffff:127.0.0.1:10025  ::ffff:127.0.0.1:53496  TIME_WAIT
-
*** snip ***

trying to deliver a mail to JAMES
*** snip ***
# telnet localhost 10025
Trying 127.0.0.1...
Connected to nospamv3.net4you.at.
Escape character is '^]'.
220 nospamv3 SMTP Server (JAMES SMTP Server 2.3.1) ready Tue, 2 Oct 2007
11:10:38 +0200 (CEST)
EHLO localhost
250-nospamv3 Hello localhost (nospamv3.net4you.at [127.0.0.1])
250-PIPELINING
250 ENHANCEDSTATUSCODES
MAIL FROM: <mw...@net4you.at>
250 2.1.0 Sender <mw...@net4you.at> OK
RCPT TO: <mw...@net4you.at>
250 2.1.5 Recipient <mw...@net4you.at> OK
DATA
354 Ok Send data ending with <CRLF>.<CRLF>
subject: testing 123

.
Connection closed by foreign host.
*** snip ***

accompaning log entry:
*** snip ***
02/10/07 11:11:39 INFO  smtpserver: Connection from nospamv3.net4you.at (127.0.0.1)
02/10/07 11:11:39 ERROR smtpserver: Exception opening socket: null
java.lang.NullPointerException
        at java.io.SequenceInputStream.read(SequenceInputStream.java)
        at java.io.SequenceInputStream.read(SequenceInputStream.java:152)
        at
org.apache.james.core.MimeMessageInputStreamSource.<init>(MimeMessageInputStreamSource.java:78)
        at org.apache.james.core.MailImpl.<init>(MailImpl.java:181)
        at
org.apache.james.smtpserver.DataCmdHandler.processMail(DataCmdHandler.java:266)
        at
org.apache.james.smtpserver.DataCmdHandler.doDATA(DataCmdHandler.java:133)
        at
org.apache.james.smtpserver.DataCmdHandler.onCommand(DataCmdHandler.java:81)
        at
org.apache.james.smtpserver.SMTPHandler.handleConnection(SMTPHandler.java:393)
        at
org.apache.james.util.connection.ServerConnection$ClientConnectionRunner.run(ServerConnection.java:432)
        at
org.apache.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:55)
        at org.apache.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:116)
*** snip ***

Unfortunately I cannot run jstack, since I'm using IBM JDK. I will now switch to
Sun JDK and report back if i can get a jstack output.

thanks,
Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Exception opening socket: null

Posted by Michael Weissenbacher <mw...@dermichi.com>.
Hi,
> 
> Please tell us if the Sun JDK solved the issue or if you have the jstack
> output. I cannot think of anything else looking at the stacktrace and
> the netstat output...
Well, i switched to Sun JDK 1.5.0_13-b05 two days ago and the problem didnt't
happen again yet. If it does, I'm gonna post the jstack output. If it runs for
more than 1 week I guess it was a JVM specific problem.

thanks,
Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Exception opening socket: null

Posted by Stefano Bagnara <ap...@bago.org>.
Michael Weissenbacher ha scritto:
> Unfortunately I cannot run jstack, since I'm using IBM JDK. I will now switch to
> Sun JDK and report back if i can get a jstack output.

Please tell us if the Sun JDK solved the issue or if you have the jstack
output. I cannot think of anything else looking at the stacktrace and
the netstat output...

Maybe you should investigate specific bugs in your JDK/OS (switching JDK
to SUN is a first step to be tried), before investigating further on the
code itself.

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org