Hi Juergen,
Yes, it is a bug in Canvas3D when it try to
remove the parent window listener
((Window)parent).removeWindowListener(eventCatcher);
but somehow parent is null in your case. (Probably
it happens when Canvas3D use together with Swing)
A bug 4337832 is filed for this.
Thanks for your bug report.
- Kelvin
-----------------
Java 3D Team
Sun Microsystems Inc.
>X-Accept-Language: de
>MIME-Version: 1.0
>Content-Transfer-Encoding: 7bit
>Date: Fri, 12 May 2000 15:02:08 +0200
>From: Juergen Neubauer <[EMAIL PROTECTED]>
>Subject: [JAVA3D] strange error
>Comments: To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>
>Hello !
>
>I have a thread in my application, which starts a Canvas3D and loads a
>vrml-file.
>When this thread is stopped, the whole java3d-stuff is disposed.
>
>After a while, if the application is closed (the java3d is already gone
>and the thread is gone, too) I get the following:
>
>Exception during disposal:
>java.lang.reflect.InvocationTargetException:
>java.lang.NullPointerException
> at javax.media.j3d.Canvas3D.removeNotify(Canvas3D.java:1016)
> at java.awt.Container.removeNotify(Compiled Code)
> at javax.swing.JComponent.removeNotify(Compiled Code)
> at java.awt.Container.removeNotify(Compiled Code)
> at javax.swing.JComponent.removeNotify(Compiled Code)
> at java.awt.Container.removeNotify(Compiled Code)
> at javax.swing.JComponent.removeNotify(Compiled Code)
> at java.awt.Container.removeNotify(Compiled Code)
> at javax.swing.JComponent.removeNotify(Compiled Code)
> at java.awt.Container.removeNotify(Compiled Code)
> at javax.swing.JComponent.removeNotify(Compiled Code)
> at javax.swing.JRootPane.removeNotify(Compiled Code)
> at java.awt.Container.removeNotify(Compiled Code)
> at java.awt.Window$1$DisposeAction.run(Compiled Code)
> at java.awt.Window.dispose(Compiled Code)
> at java.awt.Window$1$DisposeAction.run(Compiled Code)
> at java.awt.event.InvocationEvent.dispatch(Compiled Code)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:256)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:68)
>
>any idea, what's happening here ?
>
>thanx for your support,
>
>-Juergen.
>
>===========================================================================
>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".