0 Replies Latest reply on Oct 2, 2012 11:36 AM by ronandavid

    Can't run my applet in IPv6 configuration

    ronandavid Newbie

      Hello,

       

      I'm testing an applet that uses jboss 5.1 classes.

      The applet fails while getting a naming interface.

      Here's the stack.

       

      NFO: Naming exception : Failed to retrieve Naming interface for provider http://[fd00:5900:9000:4::75]:8081/invoker/JNDIFactory

      javax.naming.NamingException: Failed to retrieve Naming interface for provider http://[fd00:5900:9000:4::75]:8081/invoker/JNDIFactory [Root exception is java.net.MalformedURLException: For input string: "5900:9000:4::75:8081"]

          at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:96)

          at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)

          at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)

          at javax.naming.InitialContext.init(Unknown Source)

          at javax.naming.InitialContext.<init>(Unknown Source)

          at com.alcatel.mcdp.console.alarm.gui.AlarmController.setConnectionOverHttp(AlarmController.java:178)

          at com.alcatel.mcdp.console.alarm.gui.AlarmGUIApplet$2.run(AlarmGUIApplet.java:86)

          at java.awt.event.InvocationEvent.dispatch(Unknown Source)

          at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

          at java.awt.EventQueue.access$000(Unknown Source)

          at java.awt.EventQueue$1.run(Unknown Source)

          at java.awt.EventQueue$1.run(Unknown Source)

          at java.security.AccessController.doPrivileged(Native Method)

          at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)

          at java.awt.EventQueue.dispatchEvent(Unknown Source)

          at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

          at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

          at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

          at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

          at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

          at java.awt.EventDispatchThread.run(Unknown Source)

      Caused by: java.net.MalformedURLException: For input string: "5900:9000:4::75:8081"

          at java.net.URL.<init>(Unknown Source)

          at java.net.URL.<init>(Unknown Source)

          at java.net.URL.<init>(Unknown Source)

          at org.jboss.invocation.http.interfaces.Util.resolveURL(Util.java:266)

          at org.jboss.invocation.http.interfaces.HttpInvokerProxy.readExternal(HttpInvokerProxy.java:151)

          at java.io.ObjectInputStream.readExternalData(Unknown Source)

          at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)

          at java.io.ObjectInputStream.readObject0(Unknown Source)

          at java.io.ObjectInputStream.readObject(Unknown Source)

          at java.util.HashMap.readObject(Unknown Source)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)

          at java.io.ObjectInputStream.readSerialData(Unknown Source)

          at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)

          at java.io.ObjectInputStream.readObject0(Unknown Source)

          at java.io.ObjectInputStream.defaultReadFields(Unknown Source)

          at java.io.ObjectInputStream.readSerialData(Unknown Source)

          at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)

          at java.io.ObjectInputStream.readObject0(Unknown Source)

          at java.io.ObjectInputStream.readObject(Unknown Source)

          at org.jboss.proxy.ClientContainer.readExternal(ClientContainer.java:158)

          at java.io.ObjectInputStream.readExternalData(Unknown Source)

          at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)

          at java.io.ObjectInputStream.readObject0(Unknown Source)

          at java.io.ObjectInputStream.defaultReadFields(Unknown Source)

          at java.io.ObjectInputStream.readSerialData(Unknown Source)

          at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)

          at java.io.ObjectInputStream.readObject0(Unknown Source)

          at java.io.ObjectInputStream.readObject(Unknown Source)

          at org.jboss.invocation.MarshalledValue.get(MarshalledValue.java:91)

          at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingContextFactory.java:214)

          at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:92)

       

      I run my applet with options -Djava.net.preferIPv4Stack=false -Djava.net.preferIPv6Addresses=true.

       

      My opinion is that my provider url http://[fd00:5900:9000:4::75]:8081/invoker/JNDIFactory is parsed like an IPv4 address like if 5900:9000:4::75:8081 was a port just after the first ":".

       

      Can anybody help me ?

       

      Thank you