Details
-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
JBossAS-3.2.6 Final
-
None
Description
An UnknownHostExcception exception occurs when I trying
to establish JNDI-over-HTTP connection. I have JBoss on
galaxy3d.com.ua, this server has http invokers
configured for port 80. If I trying to connect on URL
http://galaxy3d.com.ua/invoker/JNDIFactory using
browser, it open download window with x-java-serialixzed-object MIME type(this means that connection is presented and configured).
But if I trying to connect with java client, using following code:
Hashtable prop = new Hashtable();
prop.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.HttpNamingContextFactory");
prop.put(Context.PROVIDER_URL,
"http://galaxy3d.com.ua/invoker/JNDIFactory");
prop.put(Context.URL_PKG_PREFIXES,
"org.jboss.naming:org.jnp.interfaces");
InitialContext ctx = new InitialContext(prop);
Object obj = ctx.lookup("Galaxy3D/AdminManager");
AdminManagerHome ah =
(AdminManagerHome)PortableRemoteObject.narrow(obj,
AdminManagerHome.class);
, I get such error (and this error raises even if I trying
to connect using pure IP address):
javax.naming.CommunicationException: Operation failed.
Root exception is java.rmi.ServerException: IOE;
nested exception is:
java.net.UnknownHostException: galaxy3d
at
org.jboss.invocation.http.interfaces.HttpInvokerProxy.invoke(HttpInvokerProxy.java:120)
at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
at
org.jboss.naming.interceptors.ExceptionInterceptor.invoke(ExceptionInterceptor.java:42)
at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
at
org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:55)
at
org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
at $Proxy0.lookup(Unknown Source)
at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:530)
at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
at
javax.naming.InitialContext.lookup(InitialContext.java:347)
at
ua.com.galaxy3d.server.tools.EarthConsole.getAdminManagerObject(EarthConsole.java:89)
Very bad situation for me. Until this bug will fixed, galaxy3d.com.ua portal will be useless
Also, want to note that this bug did not occur when server and client was on one computer.