Bugs item #764601, was opened at 2003-07-02 14:01
Message generated for change (Comment added) made by ejort
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=764601&group_id=22866
>Category: JBossServer
Group: None
>Status: Closed
>Resolution: Out of Date
Priority: 5
Submitted By: Szatmari Daniel (sdaniel)
>Assigned to: Adrian Brock (ejort)
Summary: NULL reference for the looked up remote object
Initial Comment:
First the environment :
Windows 2000 Workstation OS, JDK 1.3 / 1.4 , JBoss
3.0.4 with Tomcat
And now the flow:
We have some MBeans running in the JBoss context.
We also have some clients trying to access the MBeans
through the JBoss naming service.
First a client initiate an InitialContext after that doing a
lookup. Here follows the code :
//get the props
Map namingProps= new HashMap();
namingProps.put("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
namingProps.put("java.naming.provider.url",
"jnp://localhost:1099");
//create the context
InitialContext initialContext = new InitialContext
(namingProps);
SomeRemoteObject services =
(SomeRemoteObject)
initialContext.lookup("string_bound_in_jboss");
All is ok if we start jboss, and the clients use the
services of the deployed mbeans.
The problem appears when the Jboss is shut down but
the client not. The JBoss is restarted and the client (not
closed before) tries to reconnect to the newly restarted
server using the code above.
Even if the context is recreated fresh, the looked up
object is returned NULL.
Can we do anything about this issue?
Thanks
----------------------------------------------------------------------
>Comment By: Adrian Brock (ejort)
Date: 2003-07-24 16:30
Message:
Logged In: YES
user_id=9459
This was fixed in 3.0.5 (8 months ago)
Regards,
Adrian
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=764601&group_id=22866
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development