These error messages don't help much. What is going wrong here depends on
what your program is doing at this point.

To me it looks like you specified an invalid URL to the object loader. The
"no protocol" error could mean that you did not specify "http://" at the
start of the URL. If you are creating an applet, it could also be that it
does not have access privileges for the URL.

You should track down the bug, that is: find the method call which throws
the first exception and look what parameters are passed there. Then you
should check that the parameters are valid. They probably aren't.

You should also use "e.printStackTrace()" instead of "System.err.println(e)"
when dumping exceptions so that you can see where exactly the exception
occured.

BTW: I never used Java3D object loading, but perhaps you need to specify a
URL but want to load a local file? In this case, you should try using the
"file://" protocol like this: "file:///c/somedir/somefile.obj".

Good luck,

-- Julian


-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of PK
Sent: Monday, February 07, 2000 4:03 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Object File Loading


Hi,
    I'm trying to load an object file into a 3d scene. The java code I have
    compiles OK, but when I try to run the application, I get the following
    error:

    Exception while getting parameter.
    java.lang.NullPointerException:
    Trying to create URL
    Trying to load URL
    Error setting base URL: no protocol:
    FileNotFoundException
    java.io.FileNotFoundException


    Can anyone tell me what's going wrong?

Thanks,

Regards,

PK.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to