[rabbitmq-discuss] Fwd: Trying to use a closed RPC channel
steve at rabbitmq.com
Mon Dec 5 16:32:56 GMT 2011
First of all, rabbitmq 2.3.1 is a bit old now, and any problems you might have
may already be fixed in later releases. Have you tried rabbitmq 2.7.0?
Secondly, thank you for elaborating but I'm afraid there are too many details
missing for us to be able to determine what might be wrong.
I cannot find any error message in our Java code (at 2.3.1 level or 2.7.0 level)
which looks like: "Trying to use a closed RPC channel". I do see an
EOFException("RpcClient is closed.") -- is that what you mean?
I also see AlreadyClosedException("Attempt to use closed channel") -- maybe
this is the one you see. Notice that there is no reference to an RPC Channel
-- that's because there isn't one: RPC servers and clients use channels to
talk to the rabbit server, but they are not special nor dedicated channels.
Incidentally, that means that other parts of the program can close them.
If you are getting an exception, at the very least we would like to see the
full stack-trace that came with it, or else it is, I'm afraid, nearly
impossible to help you.
Steve Powell (a bemused bunny)
----------some more definitions from the SPD----------
avoirdupois (phr.) 'Would you like peas with that?'
distribute (v.) To denigrate an award ceremony.
definite (phr.) 'It's hard of hearing, I think.'
modest (n.) The most mod.
On 4 Dec 2011, at 14:22, Mysurf Mail wrote:
> I want to elaborate a bit more since I have been having this issue for a
> oong time:
> One java client acts as an appserver. it answers rpc requests of other java
> clients - through rabbitmq 2.3.1.
> it has one method that runs all the time and connects to itself ever 30
> seconds through the rpc . (meaning that it calls itself through the same
> jsonrpc mechanism that other remote client use)
> suddenly - I get a closed rpc exception from the remote clients but the
> server itself continues to call itself through its own rpc system. Am I
> making sense? So I figured that the rpc channel is closed only at the remote
> java apps and not in the java server.
> Any suggestion where do I go from here?
> Thank you
> ---------- Forwarded message ----------
> From: Mysurf Mail <stammailbox at gmail.com>
> Date: Sun, Dec 4, 2011 at 2:06 PM
> Subject: Trying to use a closed RPC channel
> To: rabbitmq-discuss at lists.rabbitmq.com
> I moved my application to another network and now I
> sometimes get an error "Trying to use a closed RPC channel"
> How can I start check whats going wrong?
> how do I know what was closed and why ?
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
More information about the rabbitmq-discuss