making a rmi call over ipv6
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   gaurav_abbi
Posted On:   Tuesday, April 22, 2008 02:27 AM

hi, i'm making a rmi call to a server on a ipv6 enabled machine. when i use the host name, it works fine. but when i use the ip address, it throws me a timeout exception the url value is java.naming.provider.url=jnp://[fe80::216:72ff:fe3c]:19014[/B] exception thrown is: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1058) at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1127) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:478) at org.jnp.interfaces.NamingContext.lookup(Nami   More>>

hi,
i'm making a rmi call to a server on a ipv6 enabled machine.
when i use the host name, it works fine.
but when i use the ip address, it throws me a timeout exception
the url value is


java.naming.provider.url=jnp://[fe80::216:72ff:fe3c]:19014[/B]



exception thrown is:
javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1058)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1127)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:478)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at mytest.RMIClient.runBPDocWait(RMIClient.java:117)
at mytest.RMIClient.main(RMIClient.java:57)
Caused by: java.net.SocketTimeoutException: Receive timed out
at java.net.PlainDatagramSocketImpl.receive0(Native Method)
at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)
at java.net.DatagramSocket.receive(DatagramSocket.java:712)
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1038)
... 6 more


but this works fine if i give


java.naming.provider.url=jnp://hostname:19014



is there any properties i need to set to make it work.    <<Less
About | Sitemap | Contact