[ http://jira.jboss.com/jira/browse/JBAS-1375?page=history ]

Maxim Tugai updated JBAS-1375:
------------------------------

    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.


  was:
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 :(



> RMI-over-HTTP : HostNotFound
> ----------------------------
>
>          Key: JBAS-1375
>          URL: http://jira.jboss.com/jira/browse/JBAS-1375
>      Project: JBoss Application Server
>         Type: Bug
>   Components: Naming
>     Versions: JBossAS-3.2.6 Final
>  Environment: My configuration on server is: SuSE linux 9.2 with enabled 
> firewall (http protocol is allowed), java 1.4.2_05, JBoss 3.2.6.
> Client configuration is: SuSE linux 9.2 with enabled firewall (http allowed), 
> java 1.4.2_05, JBoss 3.2.6.
>     Reporter: Maxim Tugai
>     Assignee: Scott M Stark

>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to