You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Matthew Pangaro <mp...@lokitech.com> on 2001/09/28 22:36:05 UTC
Possible Bug
Hello all,
Noticed a strange exception when I was doing some testing of a patch I'm working on. When I run a build on Win2k and press Ctl-C to stop the process, normally I get the following output, then a prompt to end the batch process:
JVM exiting abnormally. Shutting down Phoenix.
What I've noticed is that if I allow an SMTP connection to time out rather than send a "QUIT" command, I get the following exception when James shuts down.
JVM exiting abnormally. Shutting down Phoenix.
java.lang.IllegalStateException: Using a stale object reference to call a disposed Block.
at org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:92)
at $Proxy9.log(Unknown Source)
at org.apache.mailet.GenericMailet.log(GenericMailet.java:148)
at org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:371)
at java.lang.Thread.run(Thread.java:484)
I don't know if the same occurs from a timeout of a connection to any of the other services. Still shuts down ok, but seems like it should be caught, or the object reference should be cleaned up. Sorry if this should have been posted to Avalon list, but I wasn't really sure where it belonged.
Matt
Re: Possible Bug
Posted by Peter Donald <do...@apache.org>.
On Sat, 29 Sep 2001 06:36, Matthew Pangaro wrote:
> java.lang.IllegalStateException: Using a stale object reference to call a
> disposed Block. at
> org.apache.avalon.phoenix.components.application.BlockInvocationHandler.inv
>oke(BlockInvocationHandler.java:92) at $Proxy9.log(Unknown Source)
> at org.apache.mailet.GenericMailet.log(GenericMailet.java:148)
> at
> org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:3
>71) at java.lang.Thread.run(Thread.java:484)
> I don't know if the same occurs from a timeout of a connection to any of
> the other services. Still shuts down ok, but seems like it should be
> caught, or the object reference should be cleaned up. Sorry if this should
> have been posted to Avalon list, but I wasn't really sure where it
> belonged.
The problem is that transport.JamesSpoolManager does not implement the
dispose method. It should implement dispose() to wait till all currently
executing processors shutdown gracefully. Todo this it will need to make sure
run() shuts down properly.
--
Cheers,
Pete
---------------------------------------------------
Murphy's law - "Anything that can go wrong, will."
(Actually, this is Finagle's law, which in itself
shows that Finagle was right.)
---------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org