IllegalStateException in PingPong type application

Michael McGrady mmcgrady at topiatechnology.com
Fri Aug 21 14:49:23 EDT 2009


I did use an await(...) after all.


		// Start the connection attempt.
		ChannelFuture future = this.bootstrap.connect(new InetSocketAddress(
				host, port));
		this.channel = future.awaitUninterruptibly().getChannel();

And, this is the source of the problem.

Mike

On Aug 21, 2009, at 11:20 AM, Michael McGrady wrote:

> I set up two servers at localhost ports 14567 and 14568.  A client  
> is then created to send an object over to an application from 14567  
> to 14568.  This succeeds.  The application on 14568 then creates a  
> new client to send the object back to 14567.  This results in the  
> following exception on 14568:
>
>
> EXCEPTION:  type: IllegalStateException cause: null message:  
> await*() in I/O thread causes a dead lock or sudden performance  
> drop. Use addListener() instead or call await*() from a different  
> thread.
>
> I do not use await() in any class.
>
> What do you think is up?

Mike McGrady
Principal Investigator AF081-028 AFRL SBIR
Senior Engineer
Topia Technology, Inc
1.253.720.3365
mmcgrady at topiatechnology.com







-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20090821/d5965c95/attachment.html 


More information about the netty-users mailing list