Skip to main content

Can't connect to the native embedded browser. Error message: Maximum retry!

2 replies [Last post]
pedromoreno
Offline
Joined: 2008-11-26
Points: 0

Hi,

I'm working in an application I want to embed a browser in a swing JPanel. I downloaded jdic-0.9.5-bin-cross-platform and I've set in my project build path the library jdic.jar. Also, I set the environement classpath variable to my jdic.jar, and my path variable to the folder where .dll and .exe are. When I run it I get the following message:

"Can't connect to the native embedded browser. Error message: Maximum retry number reached!"

If I try to run the SampleAppletBrowser.html I get the following error in java console:
java.security.PrivilegedActionException: org.jdesktop.jdic.init.JdicInitException: Unexpected ClassLoader for webstart, only com.sun.jnlp.JNLPClassLoader is supported.
at org.jdesktop.jdic.init.JdicManager.loadLibrary(Unknown Source)
at org.jdesktop.jdic.browser.WebBrowser.(Unknown Source)
at SimpleAppletBrowser.init(SimpleAppletBrowser.java:10)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.jdesktop.jdic.init.JdicInitException: Unexpected ClassLoader for webstart, only com.sun.jnlp.JNLPClassLoader is supported.
at org.jdesktop.jdic.init.JdicManager.init(Unknown Source)
... 5 more
isDefaultBrowserMozilla
Exception in thread "thread applet-SimpleAppletBrowser-1" java.lang.UnsatisfiedLinkError: org.jdesktop.jdic.browser.internal.WebBrowserUtil.nativeGetBrowserPath()Ljava/lang/String;
at org.jdesktop.jdic.browser.internal.WebBrowserUtil.nativeGetBrowserPath(Native Method)
at org.jdesktop.jdic.browser.internal.WebBrowserUtil.getBrowserPath(Unknown Source)
at org.jdesktop.jdic.browser.internal.WebBrowserUtil.isDefaultBrowserMozilla(Unknown Source)
at org.jdesktop.jdic.browser.MsgClient.(Unknown Source)
at org.jdesktop.jdic.browser.NativeEventThread.(Unknown Source)
at org.jdesktop.jdic.browser.WebBrowser.(Unknown Source)
at SimpleAppletBrowser.init(SimpleAppletBrowser.java:10)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Does anybody know what is happening?? I'm using Windows7 and Firefox 3.5.7

Please help me, I'm very desperate

Thanks in advance!!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pmoreno
Offline
Joined: 2010-01-20
Points: 0

Hi,
I've installed an earlier version of jdic (0.9.4) and I've run the browser demo and it works perfectly. But when I try to run into my application I get the same error I mentioned in latter message.
If my app is an java application (as same as demo browser) How is possible to browser runs perfectly in the demo and doesn't run in my application?
Thanks a lot
Pedro

pmoreno
Offline
Joined: 2010-01-20
Points: 0

Hi, I've enable the debug options in my WebBrowser object and I get this log:
[java] *** Jtrace: Msg Client started
[java] *** Jtrace: Default browserManager is used.
[java] *** Error: Address family not supported by protocol family: bind
[java] native lib path C:\www\workspace\sip-communicator_Doctor_v2.4\lib*** Jtrace: init share native.....
[java] *** Jtrace: Got xpcom from registry(win)/path(unix)
[java] *** Jtrace: Mozilla Engine intialized
[java] native lib path C:\www\workspace\sip-communicator_Doctor_v2.4\lib*** Jtrace: Executing MozEmbed.exe -port=0
[java] *** Jtrace: Connecting to native browser ... 0
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 1
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 2
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 3
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 4
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 5
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 6
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 7
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 8
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 9
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 10
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 11
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 12
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 13
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 14
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 15
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 16
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 17
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 18
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 19
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 20
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 21
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 22
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 23
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 24
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 25
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 26
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 27
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 28
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] *** Jtrace: Connecting to native browser ... 29
[java] *** Jtrace: java.lang.IllegalArgumentException
[java] Can't connect to the native embedded browser. Error message: Maximum retry number reached!
Ani idea aboout what is happening? What is this error: [java] *** Error: Address family not supported by protocol family: bind??
Help please I'm very desperate
Thanks in advance