I am trying to use a client to access a topic on a remote machine running JBoss. The
JBoss 3.2.4 system (linux) is not running on default ports but is using ports-01
configuration (something else is running on some of the default ports) so jndi is
running on 1199 ..
The client is using the jbossall-client.jar
I get and exception of form Naming Exception javax.naming.CommunicationException [Root
exception is java.rmi.NoSuchObjectException: no such object in table]
I have placed fuller exception trace below.
It all works fine if I have them on same machine (Win2000).
I have also tried a change I noticed elsewhere where I changed
{jboss.bind.address} in uil2-service.xml to actual IP address without
success (though I think this may be OK anyway in 3.2.4)
App on Jboss (MDB) using same jndi work fine though obviously this is
on the same machine - it post stats to the topic to be retrieved by a number of remote
clients.
I can telnet to the port and get some gibberish so It would appear to listening.
Systems
Client on Win2000 with JDK 1.4
Jboss 3.2.4 on Linux also running JDK 1.4
| InitialContext iniCtx = null;
| if (true){
| Properties properties = new Properties();
| properties.put Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
| properties.put(Context.URL_PKG_PREFIXES, "org.jnp.interfaces");
| properties.put(Context.PROVIDER_URL, "10.2.0.77:1199");
| iniCtx = new InitialContext(properties);
| System.out.println("Props :" + properties);
| }
| else
| {
| // If using jndi.properties, then use below
| iniCtx = new InitialContext();
| }
|
| topic = (Topic) iniCtx.lookup(topicName);
| System.out.println("Topic found " + topicName);
|
| Object tmp = iniCtx.lookup("UIL2ConnectionFactory");
| TopicConnectionFactory tcf = (TopicConnectionFactory) tmp;
|
|
|
| [java] Props :{java.naming.provider.url=10.2.0.77:1199, java.naming.factory
| .initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=o
| rg.jnp.interfaces}
| [java] NamingException javax.naming.CommunicationException [Root exception
| is java.rmi.NoSuchObjectException: no such object in table]
| [java] javax.naming.CommunicationException [Root exception is java.rmi.NoSu
| chObjectException: no such object in table]
| [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:64
| 7)
| [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:50
| 7)
| [java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
| [java] at relayui.RelayIFListener$RelayListenerThread.setupPubSub(Relay
| IFListener.java:350)
| [java] at relayui.RelayIFListener$RelayListenerThread.<init>(RelayIFLis
| tener.java:239)
| [java] at relayui.RelayIFListener.run(RelayIFListener.java:94)
| [java] at java.lang.Thread.run(Thread.java:534)
| [java] Caused by: java.rmi.NoSuchObjectException: no such object in table
| [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServe
| r(StreamRemoteCall.java:247)
| [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCa
| ll.java:223)
| [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
| [java] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
| [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:52
| 8)
| [java] ... 6 more
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840440#3840440
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840440
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user