You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Kevin Smeltzer <ka...@lakeheadu.ca> on 2007/07/25 07:31:57 UTC

Mina connection problem

I am having a problem connecting to my a Mina based server from a Mina
based client application.

The client appreas to connect using this code:

session = connectFuture.getSession();

The server log shows that the client connects and the client's
sessionOpened(IoSession session) method is called:

    public void sessionOpened(IoSession session) throws Exception {
   	
		clientListener.doConnect( session );

    }

In the clientListener.doConnect method the connection is still valid
and everything seems to be working perfectly:

public void doConnect( IoSession session) {

		System.out.println(session);
		client.sendRequest ( new bgClientRequest ( request ) );
   		
}

Then, in the sendRequest method, the session is null before I have
even done any processing!

What is happening?
Does an IoSession member of my IoHandlerAdapter class get destroyed somehow?
If so, why?

Thanks everyone.

Kevin Smeltzer

Re: Mina connection problem

Posted by Kevin Smeltzer <ka...@lakeheadu.ca>.
// CLIENT CODE SNIPPET THAT SHOWS PROBLEM
public class bgMinaClient extends IoHandlerAdapter
{
    public static final int CONNECT_TIMEOUT = 3000;
    private String host;
    private int port;
    private String tokenizer;
    private SocketConnector connector;
    private IoSession session;
    private bgClientListener clientListener;
    private ConnectFuture connectFuture;

    public bgMinaClient(String host, int port, String tokenizer,
bgClientListener clientListener) {
        this.host = host;
        this.port = port;
        this.tokenizer = tokenizer;
        this.clientListener = clientListener;
        connector = new SocketConnector();
        connector.getFilterChain().addLast("codec", new
ProtocolCodecFilter(new bgCodecFactory(true)));
    }

    public void connect() {
        connectFuture = connector.connect(new
InetSocketAddress(host,port), this);
        connectFuture.join(CONNECT_TIMEOUT);
        try
        {
            session = connectFuture.getSession();
        }
        catch (RuntimeIOException e)
        {
            clientListener.onException( e );
        }
    }

    public void disconnect() {
    	
        if (session != null)
        {
            session.close().join(CONNECT_TIMEOUT);
            session = null;
        }
    }

    public void sessionOpened(IoSession session) throws Exception {
   // this method was being called and the session seemed to be established
  // setting my memeber session variable was added here to fix the 'bug'
    	this.session = session;
		clientListener.doConnect( session );
    }

    public void sessionClosed(IoSession session) throws Exception {
        clientListener.doDisconnect();
    }

    public void sendRequest( bgClientRequest clientRequest ) {
    /// at this point session would always be NULL until I set it in
sessionOpened!
        if (session == null) {
            clientListener.onException(new Throwable("not connected"));
        }
        else
        {
            session.write(clientRequest);
        }
    }
}

//SERVER CODE SNIPPET JUST FOR FUN
public class bgMinaServer {
	// defines how messages are split into parts
	final String tokenizer;
	// commPort used for communications
	final int commPort;
	// the acceptor object	
	IoAcceptor acceptor = null;
	// the socket acceptor configuration
    SocketAcceptorConfig cfg;
    // the server handler object
    bgMinaServerHandler handler;
    bgServerListener serverListener;

	public bgMinaServer ( int commPort, String tokenizer,
bgServerListener serverListener ) {
		this.serverListener = serverListener;
		this.commPort = commPort;
		this.tokenizer = tokenizer;
        ByteBuffer.setUseDirectBuffers(false);
       	ByteBuffer.setAllocator(new SimpleByteBufferAllocator());
       	acceptor = new SocketAcceptor();
       	cfg = new SocketAcceptorConfig();
       	cfg.getSessionConfig().setReuseAddress( true );
       	cfg.getFilterChain().addLast( "logger", new LoggingFilter() );
       	cfg.getFilterChain().addLast( "protocol", new
ProtocolCodecFilter(new bgCodecFactory(false)));
	}
	
	public void start() {
		try {
			handler = new bgMinaServerHandler();
			handler.serverListener = this.serverListener;
			handler.tokenizer = this.tokenizer;
	        acceptor.bind( new InetSocketAddress( commPort ), handler, cfg);
        	System.out.println("Game server started.");
  		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}

On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> Can I create a bug report for this software? I'm only a user of Mina
> not a developer.
>
> The reason I ask is that I went to the page and I don't see an add
> button anywhere :-P
>
>
> On 7/25/07, Maarten Bosteels <mb...@gmail.com> wrote:
> > Kevin,
> >
> > When you suspect you have discovered a bug or a missing feature, it's best
> > to create a JIRA issue for this.
> >
> > http://issues.apache.org/jira/browse/DIRMINA
> >
> > Thanks,
> >
> > Maarten
> >
> >
> > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > >
> > > Sure what is the best way to send? As an attachment or in the body of
> > > the e-mail?
> > >
> > > On 7/25/07, Trustin Lee <tr...@gmail.com> wrote:
> > > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > > > Yes I did that. The connection IS made.
> > > > >
> > > > > It appears that the IoSession reference returned by this code:
> > > > >
> > > > > session = connectFuture.getSession();
> > > > >
> > > > > Is different than the IoSession reference passed to this method:
> > > > >
> > > > > public void sessionOpened(IoSession session) throws Exception {}
> > > > >
> > > > > So... by setting my IoSession member variable to reference the
> > > > > IoSession passed to sessionOpened, it works.
> > > > >
> > > > > But shouldn't the IoSession returned by connectFuture.getSession();
> > > > > and public void sessionOpened(IoSession session) throws Exception {}
> > > > > be the same?
> > > >
> > > > They should be the same.  It's weird.  I suspect a bug.  Could you
> > > > provide reproduceable client and server?
> > > >
> > > > Trustin
> > > > --
> > > > what we call human nature is actually human habit
> > > > --
> > > > http://gleamynode.net/
> > > > --
> > > > PGP Key ID: 0x0255ECA6
> > > >
> > >
> >
>

Re: Mina connection problem

Posted by Mark Webb <el...@gmail.com>.
all that is required to reproduce the problem.

On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
>
> Ok sound good. But how much of the code?
>
> On 7/25/07, Mark Webb <el...@gmail.com> wrote:
> > I would add the code as an attachment to a bug entry.
> >
> > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > >
> > > What other parts of the code do you need?
> > >
> > > On 7/25/07, Mark Webb <el...@gmail.com> wrote:
> > > > did you log in?  Also, the code snippet you posted here is
> incomplete.
> > > >
> > > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > > >
> > > > > Cool! Once I'm done working on my current project I will snoop
> around
> > > > > the source code hehehe.
> > > > >
> > > > > Where is the add report button or link. Is it really small or
> hidden
> > > > > somewhere under a rock?
> > > > >
> > > > > On 7/25/07, Maarten Bosteels <mb...@gmail.com> wrote:
> > > > > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > > > > >
> > > > > > > Can I create a bug report for this software? I'm only a user
> of
> > > Mina
> > > > > > > not a developer.
> > > > > >
> > > > > >
> > > > > > Sure,  you can even submit a patch if you like :-)
> > > > > >
> > > > > > The reason I ask is that I went to the page and I don't see an
> add
> > > > > > > button anywhere :-P
> > > > > >
> > > > > >
> > > > > > You need to register / login first. (there is a login button, in
> the
> > > > > upper
> > > > > > right corner)
> > > > > > or you can try this link
> > > > > >
> > > > >
> > >
> https://issues.apache.org/jira/secure/Dashboard.jspa?os_destination=%2Fbrowse%2FDIRMINA
> > > > > >
> > > > > > Maarten
> > > > > >
> > > > > > On 7/25/07, Maarten Bosteels <mb...@gmail.com> wrote:
> > > > > > > > Kevin,
> > > > > > > >
> > > > > > > > When you suspect you have discovered a bug or a missing
> feature,
> > > > > it's
> > > > > > > best
> > > > > > > > to create a JIRA issue for this.
> > > > > > > >
> > > > > > > > http://issues.apache.org/jira/browse/DIRMINA
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > >
> > > > > > > > Maarten
> > > > > > > >
> > > > > > > >
> > > > > > > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > > > > > > >
> > > > > > > > > Sure what is the best way to send? As an attachment or in
> the
> > > body
> > > > > of
> > > > > > > > > the e-mail?
> > > > > > > > >
> > > > > > > > > On 7/25/07, Trustin Lee <tr...@gmail.com> wrote:
> > > > > > > > > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca>
> wrote:
> > > > > > > > > > > Yes I did that. The connection IS made.
> > > > > > > > > > >
> > > > > > > > > > > It appears that the IoSession reference returned by
> this
> > > code:
> > > > > > > > > > >
> > > > > > > > > > > session = connectFuture.getSession();
> > > > > > > > > > >
> > > > > > > > > > > Is different than the IoSession reference passed to
> this
> > > > > method:
> > > > > > > > > > >
> > > > > > > > > > > public void sessionOpened(IoSession session) throws
> > > Exception
> > > > > {}
> > > > > > > > > > >
> > > > > > > > > > > So... by setting my IoSession member variable to
> reference
> > > the
> > > > > > > > > > > IoSession passed to sessionOpened, it works.
> > > > > > > > > > >
> > > > > > > > > > > But shouldn't the IoSession returned by
> > > > > connectFuture.getSession
> > > > > > > ();
> > > > > > > > > > > and public void sessionOpened(IoSession session)
> throws
> > > > > Exception
> > > > > > > {}
> > > > > > > > > > > be the same?
> > > > > > > > > >
> > > > > > > > > > They should be the same.  It's weird.  I suspect a
> > > bug.  Could
> > > > > you
> > > > > > > > > > provide reproduceable client and server?
> > > > > > > > > >
> > > > > > > > > > Trustin
> > > > > > > > > > --
> > > > > > > > > > what we call human nature is actually human habit
> > > > > > > > > > --
> > > > > > > > > > http://gleamynode.net/
> > > > > > > > > > --
> > > > > > > > > > PGP Key ID: 0x0255ECA6
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > ..Cheers
> > > > Mark
> > > >
> > >
> >
> >
> >
> > --
> > ..Cheers
> > Mark
> >
>



-- 
..Cheers
Mark

Re: Mina connection problem

Posted by Kevin Smeltzer <ka...@lakeheadu.ca>.
Ok sound good. But how much of the code?

On 7/25/07, Mark Webb <el...@gmail.com> wrote:
> I would add the code as an attachment to a bug entry.
>
> On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> >
> > What other parts of the code do you need?
> >
> > On 7/25/07, Mark Webb <el...@gmail.com> wrote:
> > > did you log in?  Also, the code snippet you posted here is incomplete.
> > >
> > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > >
> > > > Cool! Once I'm done working on my current project I will snoop around
> > > > the source code hehehe.
> > > >
> > > > Where is the add report button or link. Is it really small or hidden
> > > > somewhere under a rock?
> > > >
> > > > On 7/25/07, Maarten Bosteels <mb...@gmail.com> wrote:
> > > > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > > > >
> > > > > > Can I create a bug report for this software? I'm only a user of
> > Mina
> > > > > > not a developer.
> > > > >
> > > > >
> > > > > Sure,  you can even submit a patch if you like :-)
> > > > >
> > > > > The reason I ask is that I went to the page and I don't see an add
> > > > > > button anywhere :-P
> > > > >
> > > > >
> > > > > You need to register / login first. (there is a login button, in the
> > > > upper
> > > > > right corner)
> > > > > or you can try this link
> > > > >
> > > >
> > https://issues.apache.org/jira/secure/Dashboard.jspa?os_destination=%2Fbrowse%2FDIRMINA
> > > > >
> > > > > Maarten
> > > > >
> > > > > On 7/25/07, Maarten Bosteels <mb...@gmail.com> wrote:
> > > > > > > Kevin,
> > > > > > >
> > > > > > > When you suspect you have discovered a bug or a missing feature,
> > > > it's
> > > > > > best
> > > > > > > to create a JIRA issue for this.
> > > > > > >
> > > > > > > http://issues.apache.org/jira/browse/DIRMINA
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > Maarten
> > > > > > >
> > > > > > >
> > > > > > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > > > > > >
> > > > > > > > Sure what is the best way to send? As an attachment or in the
> > body
> > > > of
> > > > > > > > the e-mail?
> > > > > > > >
> > > > > > > > On 7/25/07, Trustin Lee <tr...@gmail.com> wrote:
> > > > > > > > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > > > > > > > > Yes I did that. The connection IS made.
> > > > > > > > > >
> > > > > > > > > > It appears that the IoSession reference returned by this
> > code:
> > > > > > > > > >
> > > > > > > > > > session = connectFuture.getSession();
> > > > > > > > > >
> > > > > > > > > > Is different than the IoSession reference passed to this
> > > > method:
> > > > > > > > > >
> > > > > > > > > > public void sessionOpened(IoSession session) throws
> > Exception
> > > > {}
> > > > > > > > > >
> > > > > > > > > > So... by setting my IoSession member variable to reference
> > the
> > > > > > > > > > IoSession passed to sessionOpened, it works.
> > > > > > > > > >
> > > > > > > > > > But shouldn't the IoSession returned by
> > > > connectFuture.getSession
> > > > > > ();
> > > > > > > > > > and public void sessionOpened(IoSession session) throws
> > > > Exception
> > > > > > {}
> > > > > > > > > > be the same?
> > > > > > > > >
> > > > > > > > > They should be the same.  It's weird.  I suspect a
> > bug.  Could
> > > > you
> > > > > > > > > provide reproduceable client and server?
> > > > > > > > >
> > > > > > > > > Trustin
> > > > > > > > > --
> > > > > > > > > what we call human nature is actually human habit
> > > > > > > > > --
> > > > > > > > > http://gleamynode.net/
> > > > > > > > > --
> > > > > > > > > PGP Key ID: 0x0255ECA6
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > ..Cheers
> > > Mark
> > >
> >
>
>
>
> --
> ..Cheers
> Mark
>

Re: Mina connection problem

Posted by Mark Webb <el...@gmail.com>.
I would add the code as an attachment to a bug entry.

On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
>
> What other parts of the code do you need?
>
> On 7/25/07, Mark Webb <el...@gmail.com> wrote:
> > did you log in?  Also, the code snippet you posted here is incomplete.
> >
> > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > >
> > > Cool! Once I'm done working on my current project I will snoop around
> > > the source code hehehe.
> > >
> > > Where is the add report button or link. Is it really small or hidden
> > > somewhere under a rock?
> > >
> > > On 7/25/07, Maarten Bosteels <mb...@gmail.com> wrote:
> > > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > > >
> > > > > Can I create a bug report for this software? I'm only a user of
> Mina
> > > > > not a developer.
> > > >
> > > >
> > > > Sure,  you can even submit a patch if you like :-)
> > > >
> > > > The reason I ask is that I went to the page and I don't see an add
> > > > > button anywhere :-P
> > > >
> > > >
> > > > You need to register / login first. (there is a login button, in the
> > > upper
> > > > right corner)
> > > > or you can try this link
> > > >
> > >
> https://issues.apache.org/jira/secure/Dashboard.jspa?os_destination=%2Fbrowse%2FDIRMINA
> > > >
> > > > Maarten
> > > >
> > > > On 7/25/07, Maarten Bosteels <mb...@gmail.com> wrote:
> > > > > > Kevin,
> > > > > >
> > > > > > When you suspect you have discovered a bug or a missing feature,
> > > it's
> > > > > best
> > > > > > to create a JIRA issue for this.
> > > > > >
> > > > > > http://issues.apache.org/jira/browse/DIRMINA
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Maarten
> > > > > >
> > > > > >
> > > > > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > > > > >
> > > > > > > Sure what is the best way to send? As an attachment or in the
> body
> > > of
> > > > > > > the e-mail?
> > > > > > >
> > > > > > > On 7/25/07, Trustin Lee <tr...@gmail.com> wrote:
> > > > > > > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > > > > > > > Yes I did that. The connection IS made.
> > > > > > > > >
> > > > > > > > > It appears that the IoSession reference returned by this
> code:
> > > > > > > > >
> > > > > > > > > session = connectFuture.getSession();
> > > > > > > > >
> > > > > > > > > Is different than the IoSession reference passed to this
> > > method:
> > > > > > > > >
> > > > > > > > > public void sessionOpened(IoSession session) throws
> Exception
> > > {}
> > > > > > > > >
> > > > > > > > > So... by setting my IoSession member variable to reference
> the
> > > > > > > > > IoSession passed to sessionOpened, it works.
> > > > > > > > >
> > > > > > > > > But shouldn't the IoSession returned by
> > > connectFuture.getSession
> > > > > ();
> > > > > > > > > and public void sessionOpened(IoSession session) throws
> > > Exception
> > > > > {}
> > > > > > > > > be the same?
> > > > > > > >
> > > > > > > > They should be the same.  It's weird.  I suspect a
> bug.  Could
> > > you
> > > > > > > > provide reproduceable client and server?
> > > > > > > >
> > > > > > > > Trustin
> > > > > > > > --
> > > > > > > > what we call human nature is actually human habit
> > > > > > > > --
> > > > > > > > http://gleamynode.net/
> > > > > > > > --
> > > > > > > > PGP Key ID: 0x0255ECA6
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> >
> >
> > --
> > ..Cheers
> > Mark
> >
>



-- 
..Cheers
Mark

Re: Mina connection problem

Posted by Kevin Smeltzer <ka...@lakeheadu.ca>.
What other parts of the code do you need?

On 7/25/07, Mark Webb <el...@gmail.com> wrote:
> did you log in?  Also, the code snippet you posted here is incomplete.
>
> On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> >
> > Cool! Once I'm done working on my current project I will snoop around
> > the source code hehehe.
> >
> > Where is the add report button or link. Is it really small or hidden
> > somewhere under a rock?
> >
> > On 7/25/07, Maarten Bosteels <mb...@gmail.com> wrote:
> > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > >
> > > > Can I create a bug report for this software? I'm only a user of Mina
> > > > not a developer.
> > >
> > >
> > > Sure,  you can even submit a patch if you like :-)
> > >
> > > The reason I ask is that I went to the page and I don't see an add
> > > > button anywhere :-P
> > >
> > >
> > > You need to register / login first. (there is a login button, in the
> > upper
> > > right corner)
> > > or you can try this link
> > >
> > https://issues.apache.org/jira/secure/Dashboard.jspa?os_destination=%2Fbrowse%2FDIRMINA
> > >
> > > Maarten
> > >
> > > On 7/25/07, Maarten Bosteels <mb...@gmail.com> wrote:
> > > > > Kevin,
> > > > >
> > > > > When you suspect you have discovered a bug or a missing feature,
> > it's
> > > > best
> > > > > to create a JIRA issue for this.
> > > > >
> > > > > http://issues.apache.org/jira/browse/DIRMINA
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Maarten
> > > > >
> > > > >
> > > > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > > > >
> > > > > > Sure what is the best way to send? As an attachment or in the body
> > of
> > > > > > the e-mail?
> > > > > >
> > > > > > On 7/25/07, Trustin Lee <tr...@gmail.com> wrote:
> > > > > > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > > > > > > Yes I did that. The connection IS made.
> > > > > > > >
> > > > > > > > It appears that the IoSession reference returned by this code:
> > > > > > > >
> > > > > > > > session = connectFuture.getSession();
> > > > > > > >
> > > > > > > > Is different than the IoSession reference passed to this
> > method:
> > > > > > > >
> > > > > > > > public void sessionOpened(IoSession session) throws Exception
> > {}
> > > > > > > >
> > > > > > > > So... by setting my IoSession member variable to reference the
> > > > > > > > IoSession passed to sessionOpened, it works.
> > > > > > > >
> > > > > > > > But shouldn't the IoSession returned by
> > connectFuture.getSession
> > > > ();
> > > > > > > > and public void sessionOpened(IoSession session) throws
> > Exception
> > > > {}
> > > > > > > > be the same?
> > > > > > >
> > > > > > > They should be the same.  It's weird.  I suspect a bug.  Could
> > you
> > > > > > > provide reproduceable client and server?
> > > > > > >
> > > > > > > Trustin
> > > > > > > --
> > > > > > > what we call human nature is actually human habit
> > > > > > > --
> > > > > > > http://gleamynode.net/
> > > > > > > --
> > > > > > > PGP Key ID: 0x0255ECA6
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
>
>
> --
> ..Cheers
> Mark
>

Re: Mina connection problem

Posted by Kevin Smeltzer <ka...@lakeheadu.ca>.
Oh yes it could be that I don't have an account to log ni with.
I supposed that is the first step.

On 7/25/07, Maarten Bosteels <mb...@gmail.com> wrote:
> There is a bordeaux colored menu bar on the page
> and when you are logged in, it has a menu item "CREATE NEW ISSUE"
>
>
> On 7/25/07, Mark Webb <el...@gmail.com> wrote:
> >
> > did you log in?  Also, the code snippet you posted here is incomplete.
> >
> > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > >
> > > Cool! Once I'm done working on my current project I will snoop around
> > > the source code hehehe.
> > >
> > > Where is the add report button or link. Is it really small or hidden
> > > somewhere under a rock?
> > >
> > > On 7/25/07, Maarten Bosteels <mb...@gmail.com> wrote:
> > > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > > >
> > > > > Can I create a bug report for this software? I'm only a user of Mina
> > > > > not a developer.
> > > >
> > > >
> > > > Sure,  you can even submit a patch if you like :-)
> > > >
> > > > The reason I ask is that I went to the page and I don't see an add
> > > > > button anywhere :-P
> > > >
> > > >
> > > > You need to register / login first. (there is a login button, in the
> > > upper
> > > > right corner)
> > > > or you can try this link
> > > >
> > >
> > https://issues.apache.org/jira/secure/Dashboard.jspa?os_destination=%2Fbrowse%2FDIRMINA
> > > >
> > > > Maarten
> > > >
> > > > On 7/25/07, Maarten Bosteels <mb...@gmail.com> wrote:
> > > > > > Kevin,
> > > > > >
> > > > > > When you suspect you have discovered a bug or a missing feature,
> > > it's
> > > > > best
> > > > > > to create a JIRA issue for this.
> > > > > >
> > > > > > http://issues.apache.org/jira/browse/DIRMINA
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Maarten
> > > > > >
> > > > > >
> > > > > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > > > > >
> > > > > > > Sure what is the best way to send? As an attachment or in the
> > body
> > > of
> > > > > > > the e-mail?
> > > > > > >
> > > > > > > On 7/25/07, Trustin Lee <tr...@gmail.com> wrote:
> > > > > > > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > > > > > > > Yes I did that. The connection IS made.
> > > > > > > > >
> > > > > > > > > It appears that the IoSession reference returned by this
> > code:
> > > > > > > > >
> > > > > > > > > session = connectFuture.getSession();
> > > > > > > > >
> > > > > > > > > Is different than the IoSession reference passed to this
> > > method:
> > > > > > > > >
> > > > > > > > > public void sessionOpened(IoSession session) throws
> > Exception
> > > {}
> > > > > > > > >
> > > > > > > > > So... by setting my IoSession member variable to reference
> > the
> > > > > > > > > IoSession passed to sessionOpened, it works.
> > > > > > > > >
> > > > > > > > > But shouldn't the IoSession returned by
> > > connectFuture.getSession
> > > > > ();
> > > > > > > > > and public void sessionOpened(IoSession session) throws
> > > Exception
> > > > > {}
> > > > > > > > > be the same?
> > > > > > > >
> > > > > > > > They should be the same.  It's weird.  I suspect a bug.  Could
> > > you
> > > > > > > > provide reproduceable client and server?
> > > > > > > >
> > > > > > > > Trustin
> > > > > > > > --
> > > > > > > > what we call human nature is actually human habit
> > > > > > > > --
> > > > > > > > http://gleamynode.net/
> > > > > > > > --
> > > > > > > > PGP Key ID: 0x0255ECA6
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> >
> >
> > --
> > ..Cheers
> > Mark
> >
>

Re: Mina connection problem

Posted by Maarten Bosteels <mb...@gmail.com>.
There is a bordeaux colored menu bar on the page
and when you are logged in, it has a menu item "CREATE NEW ISSUE"


On 7/25/07, Mark Webb <el...@gmail.com> wrote:
>
> did you log in?  Also, the code snippet you posted here is incomplete.
>
> On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> >
> > Cool! Once I'm done working on my current project I will snoop around
> > the source code hehehe.
> >
> > Where is the add report button or link. Is it really small or hidden
> > somewhere under a rock?
> >
> > On 7/25/07, Maarten Bosteels <mb...@gmail.com> wrote:
> > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > >
> > > > Can I create a bug report for this software? I'm only a user of Mina
> > > > not a developer.
> > >
> > >
> > > Sure,  you can even submit a patch if you like :-)
> > >
> > > The reason I ask is that I went to the page and I don't see an add
> > > > button anywhere :-P
> > >
> > >
> > > You need to register / login first. (there is a login button, in the
> > upper
> > > right corner)
> > > or you can try this link
> > >
> >
> https://issues.apache.org/jira/secure/Dashboard.jspa?os_destination=%2Fbrowse%2FDIRMINA
> > >
> > > Maarten
> > >
> > > On 7/25/07, Maarten Bosteels <mb...@gmail.com> wrote:
> > > > > Kevin,
> > > > >
> > > > > When you suspect you have discovered a bug or a missing feature,
> > it's
> > > > best
> > > > > to create a JIRA issue for this.
> > > > >
> > > > > http://issues.apache.org/jira/browse/DIRMINA
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Maarten
> > > > >
> > > > >
> > > > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > > > >
> > > > > > Sure what is the best way to send? As an attachment or in the
> body
> > of
> > > > > > the e-mail?
> > > > > >
> > > > > > On 7/25/07, Trustin Lee <tr...@gmail.com> wrote:
> > > > > > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > > > > > > Yes I did that. The connection IS made.
> > > > > > > >
> > > > > > > > It appears that the IoSession reference returned by this
> code:
> > > > > > > >
> > > > > > > > session = connectFuture.getSession();
> > > > > > > >
> > > > > > > > Is different than the IoSession reference passed to this
> > method:
> > > > > > > >
> > > > > > > > public void sessionOpened(IoSession session) throws
> Exception
> > {}
> > > > > > > >
> > > > > > > > So... by setting my IoSession member variable to reference
> the
> > > > > > > > IoSession passed to sessionOpened, it works.
> > > > > > > >
> > > > > > > > But shouldn't the IoSession returned by
> > connectFuture.getSession
> > > > ();
> > > > > > > > and public void sessionOpened(IoSession session) throws
> > Exception
> > > > {}
> > > > > > > > be the same?
> > > > > > >
> > > > > > > They should be the same.  It's weird.  I suspect a bug.  Could
> > you
> > > > > > > provide reproduceable client and server?
> > > > > > >
> > > > > > > Trustin
> > > > > > > --
> > > > > > > what we call human nature is actually human habit
> > > > > > > --
> > > > > > > http://gleamynode.net/
> > > > > > > --
> > > > > > > PGP Key ID: 0x0255ECA6
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
>
>
> --
> ..Cheers
> Mark
>

Re: Mina connection problem

Posted by Mark Webb <el...@gmail.com>.
did you log in?  Also, the code snippet you posted here is incomplete.

On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
>
> Cool! Once I'm done working on my current project I will snoop around
> the source code hehehe.
>
> Where is the add report button or link. Is it really small or hidden
> somewhere under a rock?
>
> On 7/25/07, Maarten Bosteels <mb...@gmail.com> wrote:
> > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > >
> > > Can I create a bug report for this software? I'm only a user of Mina
> > > not a developer.
> >
> >
> > Sure,  you can even submit a patch if you like :-)
> >
> > The reason I ask is that I went to the page and I don't see an add
> > > button anywhere :-P
> >
> >
> > You need to register / login first. (there is a login button, in the
> upper
> > right corner)
> > or you can try this link
> >
> https://issues.apache.org/jira/secure/Dashboard.jspa?os_destination=%2Fbrowse%2FDIRMINA
> >
> > Maarten
> >
> > On 7/25/07, Maarten Bosteels <mb...@gmail.com> wrote:
> > > > Kevin,
> > > >
> > > > When you suspect you have discovered a bug or a missing feature,
> it's
> > > best
> > > > to create a JIRA issue for this.
> > > >
> > > > http://issues.apache.org/jira/browse/DIRMINA
> > > >
> > > > Thanks,
> > > >
> > > > Maarten
> > > >
> > > >
> > > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > > >
> > > > > Sure what is the best way to send? As an attachment or in the body
> of
> > > > > the e-mail?
> > > > >
> > > > > On 7/25/07, Trustin Lee <tr...@gmail.com> wrote:
> > > > > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > > > > > Yes I did that. The connection IS made.
> > > > > > >
> > > > > > > It appears that the IoSession reference returned by this code:
> > > > > > >
> > > > > > > session = connectFuture.getSession();
> > > > > > >
> > > > > > > Is different than the IoSession reference passed to this
> method:
> > > > > > >
> > > > > > > public void sessionOpened(IoSession session) throws Exception
> {}
> > > > > > >
> > > > > > > So... by setting my IoSession member variable to reference the
> > > > > > > IoSession passed to sessionOpened, it works.
> > > > > > >
> > > > > > > But shouldn't the IoSession returned by
> connectFuture.getSession
> > > ();
> > > > > > > and public void sessionOpened(IoSession session) throws
> Exception
> > > {}
> > > > > > > be the same?
> > > > > >
> > > > > > They should be the same.  It's weird.  I suspect a bug.  Could
> you
> > > > > > provide reproduceable client and server?
> > > > > >
> > > > > > Trustin
> > > > > > --
> > > > > > what we call human nature is actually human habit
> > > > > > --
> > > > > > http://gleamynode.net/
> > > > > > --
> > > > > > PGP Key ID: 0x0255ECA6
> > > > > >
> > > > >
> > > >
> > >
> >
>



-- 
..Cheers
Mark

Re: Mina connection problem

Posted by Kevin Smeltzer <ka...@lakeheadu.ca>.
Cool! Once I'm done working on my current project I will snoop around
the source code hehehe.

Where is the add report button or link. Is it really small or hidden
somewhere under a rock?

On 7/25/07, Maarten Bosteels <mb...@gmail.com> wrote:
> On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> >
> > Can I create a bug report for this software? I'm only a user of Mina
> > not a developer.
>
>
> Sure,  you can even submit a patch if you like :-)
>
> The reason I ask is that I went to the page and I don't see an add
> > button anywhere :-P
>
>
> You need to register / login first. (there is a login button, in the upper
> right corner)
> or you can try this link
> https://issues.apache.org/jira/secure/Dashboard.jspa?os_destination=%2Fbrowse%2FDIRMINA
>
> Maarten
>
> On 7/25/07, Maarten Bosteels <mb...@gmail.com> wrote:
> > > Kevin,
> > >
> > > When you suspect you have discovered a bug or a missing feature, it's
> > best
> > > to create a JIRA issue for this.
> > >
> > > http://issues.apache.org/jira/browse/DIRMINA
> > >
> > > Thanks,
> > >
> > > Maarten
> > >
> > >
> > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > >
> > > > Sure what is the best way to send? As an attachment or in the body of
> > > > the e-mail?
> > > >
> > > > On 7/25/07, Trustin Lee <tr...@gmail.com> wrote:
> > > > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > > > > Yes I did that. The connection IS made.
> > > > > >
> > > > > > It appears that the IoSession reference returned by this code:
> > > > > >
> > > > > > session = connectFuture.getSession();
> > > > > >
> > > > > > Is different than the IoSession reference passed to this method:
> > > > > >
> > > > > > public void sessionOpened(IoSession session) throws Exception {}
> > > > > >
> > > > > > So... by setting my IoSession member variable to reference the
> > > > > > IoSession passed to sessionOpened, it works.
> > > > > >
> > > > > > But shouldn't the IoSession returned by connectFuture.getSession
> > ();
> > > > > > and public void sessionOpened(IoSession session) throws Exception
> > {}
> > > > > > be the same?
> > > > >
> > > > > They should be the same.  It's weird.  I suspect a bug.  Could you
> > > > > provide reproduceable client and server?
> > > > >
> > > > > Trustin
> > > > > --
> > > > > what we call human nature is actually human habit
> > > > > --
> > > > > http://gleamynode.net/
> > > > > --
> > > > > PGP Key ID: 0x0255ECA6
> > > > >
> > > >
> > >
> >
>

Re: Mina connection problem

Posted by Maarten Bosteels <mb...@gmail.com>.
On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
>
> Can I create a bug report for this software? I'm only a user of Mina
> not a developer.


Sure,  you can even submit a patch if you like :-)

The reason I ask is that I went to the page and I don't see an add
> button anywhere :-P


You need to register / login first. (there is a login button, in the upper
right corner)
or you can try this link
https://issues.apache.org/jira/secure/Dashboard.jspa?os_destination=%2Fbrowse%2FDIRMINA

Maarten

On 7/25/07, Maarten Bosteels <mb...@gmail.com> wrote:
> > Kevin,
> >
> > When you suspect you have discovered a bug or a missing feature, it's
> best
> > to create a JIRA issue for this.
> >
> > http://issues.apache.org/jira/browse/DIRMINA
> >
> > Thanks,
> >
> > Maarten
> >
> >
> > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > >
> > > Sure what is the best way to send? As an attachment or in the body of
> > > the e-mail?
> > >
> > > On 7/25/07, Trustin Lee <tr...@gmail.com> wrote:
> > > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > > > Yes I did that. The connection IS made.
> > > > >
> > > > > It appears that the IoSession reference returned by this code:
> > > > >
> > > > > session = connectFuture.getSession();
> > > > >
> > > > > Is different than the IoSession reference passed to this method:
> > > > >
> > > > > public void sessionOpened(IoSession session) throws Exception {}
> > > > >
> > > > > So... by setting my IoSession member variable to reference the
> > > > > IoSession passed to sessionOpened, it works.
> > > > >
> > > > > But shouldn't the IoSession returned by connectFuture.getSession
> ();
> > > > > and public void sessionOpened(IoSession session) throws Exception
> {}
> > > > > be the same?
> > > >
> > > > They should be the same.  It's weird.  I suspect a bug.  Could you
> > > > provide reproduceable client and server?
> > > >
> > > > Trustin
> > > > --
> > > > what we call human nature is actually human habit
> > > > --
> > > > http://gleamynode.net/
> > > > --
> > > > PGP Key ID: 0x0255ECA6
> > > >
> > >
> >
>

Re: Mina connection problem

Posted by Kevin Smeltzer <ka...@lakeheadu.ca>.
Can I create a bug report for this software? I'm only a user of Mina
not a developer.

The reason I ask is that I went to the page and I don't see an add
button anywhere :-P


On 7/25/07, Maarten Bosteels <mb...@gmail.com> wrote:
> Kevin,
>
> When you suspect you have discovered a bug or a missing feature, it's best
> to create a JIRA issue for this.
>
> http://issues.apache.org/jira/browse/DIRMINA
>
> Thanks,
>
> Maarten
>
>
> On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> >
> > Sure what is the best way to send? As an attachment or in the body of
> > the e-mail?
> >
> > On 7/25/07, Trustin Lee <tr...@gmail.com> wrote:
> > > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > > Yes I did that. The connection IS made.
> > > >
> > > > It appears that the IoSession reference returned by this code:
> > > >
> > > > session = connectFuture.getSession();
> > > >
> > > > Is different than the IoSession reference passed to this method:
> > > >
> > > > public void sessionOpened(IoSession session) throws Exception {}
> > > >
> > > > So... by setting my IoSession member variable to reference the
> > > > IoSession passed to sessionOpened, it works.
> > > >
> > > > But shouldn't the IoSession returned by connectFuture.getSession();
> > > > and public void sessionOpened(IoSession session) throws Exception {}
> > > > be the same?
> > >
> > > They should be the same.  It's weird.  I suspect a bug.  Could you
> > > provide reproduceable client and server?
> > >
> > > Trustin
> > > --
> > > what we call human nature is actually human habit
> > > --
> > > http://gleamynode.net/
> > > --
> > > PGP Key ID: 0x0255ECA6
> > >
> >
>

Re: Mina connection problem

Posted by Maarten Bosteels <mb...@gmail.com>.
Kevin,

When you suspect you have discovered a bug or a missing feature, it's best
to create a JIRA issue for this.

http://issues.apache.org/jira/browse/DIRMINA

Thanks,

Maarten


On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
>
> Sure what is the best way to send? As an attachment or in the body of
> the e-mail?
>
> On 7/25/07, Trustin Lee <tr...@gmail.com> wrote:
> > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > Yes I did that. The connection IS made.
> > >
> > > It appears that the IoSession reference returned by this code:
> > >
> > > session = connectFuture.getSession();
> > >
> > > Is different than the IoSession reference passed to this method:
> > >
> > > public void sessionOpened(IoSession session) throws Exception {}
> > >
> > > So... by setting my IoSession member variable to reference the
> > > IoSession passed to sessionOpened, it works.
> > >
> > > But shouldn't the IoSession returned by connectFuture.getSession();
> > > and public void sessionOpened(IoSession session) throws Exception {}
> > > be the same?
> >
> > They should be the same.  It's weird.  I suspect a bug.  Could you
> > provide reproduceable client and server?
> >
> > Trustin
> > --
> > what we call human nature is actually human habit
> > --
> > http://gleamynode.net/
> > --
> > PGP Key ID: 0x0255ECA6
> >
>

Re: Mina connection problem

Posted by Kevin Smeltzer <ka...@lakeheadu.ca>.
Sure what is the best way to send? As an attachment or in the body of
the e-mail?

On 7/25/07, Trustin Lee <tr...@gmail.com> wrote:
> On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > Yes I did that. The connection IS made.
> >
> > It appears that the IoSession reference returned by this code:
> >
> > session = connectFuture.getSession();
> >
> > Is different than the IoSession reference passed to this method:
> >
> > public void sessionOpened(IoSession session) throws Exception {}
> >
> > So... by setting my IoSession member variable to reference the
> > IoSession passed to sessionOpened, it works.
> >
> > But shouldn't the IoSession returned by connectFuture.getSession();
> > and public void sessionOpened(IoSession session) throws Exception {}
> > be the same?
>
> They should be the same.  It's weird.  I suspect a bug.  Could you
> provide reproduceable client and server?
>
> Trustin
> --
> what we call human nature is actually human habit
> --
> http://gleamynode.net/
> --
> PGP Key ID: 0x0255ECA6
>

Re: Mina connection problem

Posted by Trustin Lee <tr...@gmail.com>.
On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> Yes I did that. The connection IS made.
>
> It appears that the IoSession reference returned by this code:
>
> session = connectFuture.getSession();
>
> Is different than the IoSession reference passed to this method:
>
> public void sessionOpened(IoSession session) throws Exception {}
>
> So... by setting my IoSession member variable to reference the
> IoSession passed to sessionOpened, it works.
>
> But shouldn't the IoSession returned by connectFuture.getSession();
> and public void sessionOpened(IoSession session) throws Exception {}
> be the same?

They should be the same.  It's weird.  I suspect a bug.  Could you
provide reproduceable client and server?

Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Re: Mina connection problem

Posted by Kevin Smeltzer <ka...@lakeheadu.ca>.
By the way thank you for convincing me to try Mina! The networking
portion of my game server is running about 10 times faster now!
Awesome!


On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> Yes I did that. The connection IS made.
>
> It appears that the IoSession reference returned by this code:
>
> session = connectFuture.getSession();
>
> Is different than the IoSession reference passed to this method:
>
> public void sessionOpened(IoSession session) throws Exception {}
>
> So... by setting my IoSession member variable to reference the
> IoSession passed to sessionOpened, it works.
>
> But shouldn't the IoSession returned by connectFuture.getSession();
> and public void sessionOpened(IoSession session) throws Exception {}
> be the same?
>
> Kevin
>
> On 7/25/07, Trustin Lee <tr...@gmail.com> wrote:
> > Hi Kevin,
> >
> > On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > > I am having a problem connecting to my a Mina based server from a Mina
> > > based client application.
> > >
> > > The client appreas to connect using this code:
> > >
> > > session = connectFuture.getSession();
> > >
> > > The server log shows that the client connects and the client's
> > > sessionOpened(IoSession session) method is called:
> > >
> > >     public void sessionOpened(IoSession session) throws Exception {
> > >
> > >                 clientListener.doConnect( session );
> > >
> > >     }
> > >
> > > In the clientListener.doConnect method the connection is still valid
> > > and everything seems to be working perfectly:
> > >
> > > public void doConnect( IoSession session) {
> > >
> > >                 System.out.println(session);
> > >                 client.sendRequest ( new bgClientRequest ( request ) );
> > >
> > > }
> > >
> > > Then, in the sendRequest method, the session is null before I have
> > > even done any processing!
> > >
> > > What is happening?
> > > Does an IoSession member of my IoHandlerAdapter class get destroyed somehow?
> > > If so, why?
> >
> > There might be some latency between the actual establishment of the
> > connection and notification to the future.  Please call future.join();
> > to ensure the notification is received.
> >
> > HTH,
> > Trustin
> > --
> > what we call human nature is actually human habit
> > --
> > http://gleamynode.net/
> > --
> > PGP Key ID: 0x0255ECA6
> >
>

Re: Mina connection problem

Posted by Kevin Smeltzer <ka...@lakeheadu.ca>.
Yes I did that. The connection IS made.

It appears that the IoSession reference returned by this code:

session = connectFuture.getSession();

Is different than the IoSession reference passed to this method:

public void sessionOpened(IoSession session) throws Exception {}

So... by setting my IoSession member variable to reference the
IoSession passed to sessionOpened, it works.

But shouldn't the IoSession returned by connectFuture.getSession();
and public void sessionOpened(IoSession session) throws Exception {}
be the same?

Kevin

On 7/25/07, Trustin Lee <tr...@gmail.com> wrote:
> Hi Kevin,
>
> On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> > I am having a problem connecting to my a Mina based server from a Mina
> > based client application.
> >
> > The client appreas to connect using this code:
> >
> > session = connectFuture.getSession();
> >
> > The server log shows that the client connects and the client's
> > sessionOpened(IoSession session) method is called:
> >
> >     public void sessionOpened(IoSession session) throws Exception {
> >
> >                 clientListener.doConnect( session );
> >
> >     }
> >
> > In the clientListener.doConnect method the connection is still valid
> > and everything seems to be working perfectly:
> >
> > public void doConnect( IoSession session) {
> >
> >                 System.out.println(session);
> >                 client.sendRequest ( new bgClientRequest ( request ) );
> >
> > }
> >
> > Then, in the sendRequest method, the session is null before I have
> > even done any processing!
> >
> > What is happening?
> > Does an IoSession member of my IoHandlerAdapter class get destroyed somehow?
> > If so, why?
>
> There might be some latency between the actual establishment of the
> connection and notification to the future.  Please call future.join();
> to ensure the notification is received.
>
> HTH,
> Trustin
> --
> what we call human nature is actually human habit
> --
> http://gleamynode.net/
> --
> PGP Key ID: 0x0255ECA6
>

Re: Mina connection problem

Posted by Trustin Lee <tr...@gmail.com>.
Hi Kevin,

On 7/25/07, Kevin Smeltzer <ka...@lakeheadu.ca> wrote:
> I am having a problem connecting to my a Mina based server from a Mina
> based client application.
>
> The client appreas to connect using this code:
>
> session = connectFuture.getSession();
>
> The server log shows that the client connects and the client's
> sessionOpened(IoSession session) method is called:
>
>     public void sessionOpened(IoSession session) throws Exception {
>
>                 clientListener.doConnect( session );
>
>     }
>
> In the clientListener.doConnect method the connection is still valid
> and everything seems to be working perfectly:
>
> public void doConnect( IoSession session) {
>
>                 System.out.println(session);
>                 client.sendRequest ( new bgClientRequest ( request ) );
>
> }
>
> Then, in the sendRequest method, the session is null before I have
> even done any processing!
>
> What is happening?
> Does an IoSession member of my IoHandlerAdapter class get destroyed somehow?
> If so, why?

There might be some latency between the actual establishment of the
connection and notification to the future.  Please call future.join();
to ensure the notification is received.

HTH,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6