powered by Jive Software

Smack 3.1.0 jingle audio problem

Friends,

When i am trying to implement smack audio call using demo application for smack version 3.1.0.

I set STUN server primary IP address as my local network IP address(10.5.5.12) and i did not change the STUN primary server port (default 3478). When i was added the smack 3…0.4 jars in library, the audio call works fine in a same LAN but it is not working in different network. I need the solution for the smack audio call working in different LAN. When i change the smack version 3.0.4 to 3.1.0 its throwing following error.

I am the beginner of smack. Any help would be appreciated.

Initialized

java.net.PortUnreachableException: ICMP Port Unreachable

at java.net.PlainDatagramSocketImpl.receive0(Native Method)

at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)

at java.net.DatagramSocket.receive(DatagramSocket.java:712)

at de.javawi.jstun.test.DiscoveryTest.test1(DiscoveryTest.java:99)

at de.javawi.jstun.test.DiscoveryTest.test(DiscoveryTest.java:61)

at de.javawi.jstun.test.demo.ice.ICENegociator.gatherCandidateAddresses(ICENegocia tor.java:85)

at org.jivesoftware.smackx.jingle.nat.ICEResolver.initialize(ICEResolver.java:81)

at org.jivesoftware.smackx.jingle.nat.TransportResolver.initializeAndWait(Transpor tResolver.java:387)

at org.jivesoftware.smackx.jingle.nat.ICETransportManager.(ICETransportManag er.java:36)

at Demo.initialize(Demo.java:61)

at Demo.(Demo.java:50)

at Demo.main(Demo.java:221)

java.net.PortUnreachableException: ICMP Port Unreachable

Initializing transport resolver…

Transport resolved

at java.net.PlainDatagramSocketImpl.receive0(Native Method)

at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)

at java.net.DatagramSocket.receive(DatagramSocket.java:712)

at de.javawi.jstun.test.DiscoveryTest.test1(DiscoveryTest.java:99)

at de.javawi.jstun.test.DiscoveryTest.test(DiscoveryTest.java:61)

at de.javawi.jstun.test.demo.ice.ICENegociator.gatherCandidateAddresses(ICENegocia tor.java:85)

at org.jivesoftware.smackx.jingle.nat.ICEResolver.initialize(ICEResolver.java:81)

at org.jivesoftware.smackx.jingle.nat.TransportResolver.initializeAndWait(Transpor tResolver.java:387)

at org.jivesoftware.smackx.jingle.nat.ICETransportManager.(ICETransportManag er.java:36)

at Demo.initialize(Demo.java:61)

at Demo.(Demo.java:50)

at Demo.main(Demo.java:221)

Exception in thread “main” java.lang.NoClassDefFoundError: mil/jfcom/cie/media/session/MediaSessionListener

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:621)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)

at java.net.URLClassLoader.access$000(URLClassLoader.java:56)

at java.net.URLClassLoader$1.run(URLClassLoader.java:195)

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

at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

at Demo.initialize(Demo.java:65)

at Demo.(Demo.java:50)

at Demo.main(Demo.java:221)

Caused by: java.lang.ClassNotFoundException: mil.jfcom.cie.media.session.MediaSessionListener

at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

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

at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

… 15 more