(Browser.getBrowser)Problem. 
Author Message
 (Browser.getBrowser)Problem.

hy all.

i'm controlling a vrml world through java using eai on a sgi o2.

in netscape 3.01 the browser = Browser.getBrowser (this); method is
working fine for getting the browser objekt. no problem in loading the
browser.everything working wonderful.

using netscape 4.05 returnes:

java.lang.ClassNotFoundException: vrml/external/Browser
starting
# Applet exception: exception: netscape.javascript.JSException: unable
to reflect embed with index 0 - not loaded yet?
netscape.javascript.JSException: unable to reflect embed with index 0 -
not loaded yet?
  at vrml.external.Browser.getBrowser(Browser.java:96)
* at vrml.external.Browser.getBrowser(Browser.java:73)

loading the .wrl file "manually"  before loading the .html with the
embeded applet and embeded .wrl is working fine as well, but isn't
really a useful practise.

even trying to "wait" for the browser is not working:
the code:
##########################################################
for (int count = 0; count < 10; count++) {
      try {
           browser = Browser.getBrowser (this);
           if (browser != null) break;
           Thread.sleep (200);
            } catch (Exception ignored) {}  System.out.println ("browser
was null, trying again");
        }
        if (browser == null) {
            throw new Error ("Failed to get the browser after 10
tries!");
        }
        System.out.println ("Got browser\n");
###########################################################

is returning:

browser was null, trying again
browser was null, trying again
browser was null, trying again
browser was null, trying again
browser was null, trying again
browser was null, trying again
browser was null, trying again
browser was null, trying again
browser was null, trying again
browser was null, trying again
# Applet exception: error: java.lang.Error: Failed to get the browser
after 10 tries!
java.lang.Error: Failed to get the browser after 10 tries!
  at m4.start(m4.java:183)
  at netscape.applet.DerivedAppletFrame.run(DerivedAppletFrame.java)
  at java.lang.Thread.run(Thread.java)

so, is there any help for this. is there some new way in getting the
browser objekt i didn't got yet?
would be really, really great if someone knows anything about the
problem.

thanks in advance. michel breidenbruecker



Thu, 25 Jul 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Browser.getBrowser not working

2. Browser::getBrowser: Plugin pointer not available.

3. Browser.getBrowser(this)

4. pb: Browser.getBrowser(this) and Class name?

5. Browser.getBrowser(Applet)

6. Browser.getBrowser() always failed when using Netscape

7. getBrowser problem (EAI)

8. getBrowser() problem in EAI

9. HELP: problem with EAI getBrowser call in COSMO 1.0

10. Problem with EAI and getBrowser

11. Browsers, browsers, browsers

12. EAI: getBrowser

 

 
Powered by phpBB® Forum Software