Skip to main content

Got error with NetBeans 5.0

1 reply [Last post]
thaniwa
Offline
Joined: 2004-06-12

Recently, I switched to NetBeans 5.0 IDE for developping lg3d application.

But, I got error when running application directory in the Netbeans 5.0 IDE. ( I tried to run application by 'running project' of IDE menu).

I think that the cause is a setting of project in the NetBeans 5.0 .

If someone run lg3d application with Netbeans 5.0,
please teach your configuration or setting of the project.

Thanks,

yasuhiro (thaniwa)

======================================

Here is my configuration(VM option)
===
-client -XX:CompilerThreadPriority=4 -Xms128m -Xmx256m -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -Dlg.appcodebase=file:///home/yasuhiro/NetBeans/lg3d/ext/app -Dj3d.useFreeLists=false -Xbootclasspath/a:/home/yasuhiro/NetBeans/lg3d/lib/lg3d-awt-toolkit.jar -Dj3d.sortShape3DBounds=true -Dlg.configurl=file:///home/yasuhiro/NetBeans/lg3d/etc//lg3d/lgconfig_1p_nox.xml -Dlg.displayconfigurl=file:///home/yasuhiro/NetBeans/lg3d/etc//lg3d/displayconfig/j3d1x1 -Dlg.etcdir=/home/yasuhiro/NetBeans/lg3d/etc/ -Dlg.resourcedir=/home/yasuhiro/NetBeans/lg3d/resources/ -Dlg.use3dtoolkit=true -Dlg.fws.mode=dev -Dawt.toolkit=org.jdesktop.lg3d.awt.xlg3dtoolkit -Djava.library.path=/home/yasuhiro/NetBeans/lg3d/lib/linux-i686
===

The followings are errors I got.
=====

2006/08/07 11:09:00 org.jdesktop.lg3d.displayserver.DisplayServerControl initializeFoundationWinSys
??: Initialising Foundation WinSys org.jdesktop.lg3d.displayserver.fws.awt.WinSysAWT
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.jdesktop.lg3d.displayserver.DisplayServerControl.initializeFoundationWinSys(DisplayServerControl.java:483)
at org.jdesktop.lg3d.displayserver.DisplayServerControl.initialize(DisplayServerControl.java:264)
at org.jdesktop.lg3d.displayserver.AppConnectorPrivate.getAppConnector(AppConnectorPrivate.java:101)
at org.jdesktop.lg3d.displayserver.AppConnectorPrivate.getAppConnector(AppConnectorPrivate.java:80)
at org.jdesktop.lg3d.wg.Component3D.(Component3D.java:85)
at org.jdesktop.lg3d.wg.Container3D.(Container3D.java:57)
at org.jdesktop.lg3d.wg.Frame3D.(Frame3D.java:41)
at org.jdesktop.lg3d.apps.trumplayer.base.Manager.getFrame3D(Manager.java:38)
at org.jdesktop.lg3d.apps.trumplayer.Frame.(Frame.java:117)
at org.jdesktop.lg3d.apps.trumplayer.Frame.(Frame.java:70)
at org.jdesktop.lg3d.apps.trumplayer.Main.main(Main.java:25)
Caused by: java.lang.NullPointerException
at org.jdesktop.lg3d.displayserver.EventProcessor.addListener(EventProcessor.java:350)
at org.jdesktop.lg3d.displayserver.EventProcessor.addListener(EventProcessor.java:334)
at org.jdesktop.lg3d.displayserver.DisplayServerControl.addListener(DisplayServerControl.java:719)
at org.jdesktop.lg3d.displayserver.AppConnectorPrivate.addListener(AppConnectorPrivate.java:184)
at org.jdesktop.lg3d.wg.event.LgEventConnector.addOrRemoveListener(LgEventConnector.java:141)
at org.jdesktop.lg3d.wg.event.LgEventConnector.addListener(LgEventConnector.java:74)
at org.jdesktop.lg3d.displayserver.fws.awt.PickEngineAWT.(PickEngineAWT.java:111)
at org.jdesktop.lg3d.displayserver.fws.awt.WinSysAWT.(WinSysAWT.java:78)
... 15 more
Exception in thread "main" java.lang.RuntimeException
at org.jdesktop.lg3d.displayserver.DisplayServerControl.initializeFoundationWinSys(DisplayServerControl.java:492)
at org.jdesktop.lg3d.displayserver.DisplayServerControl.initialize(DisplayServerControl.java:264)
at org.jdesktop.lg3d.displayserver.AppConnectorPrivate.getAppConnector(AppConnectorPrivate.java:101)
at org.jdesktop.lg3d.displayserver.AppConnectorPrivate.getAppConnector(AppConnectorPrivate.java:80)
at org.jdesktop.lg3d.wg.Component3D.(Component3D.java:85)
at org.jdesktop.lg3d.wg.Container3D.(Container3D.java:57)
at org.jdesktop.lg3d.wg.Frame3D.(Frame3D.java:41)
at org.jdesktop.lg3d.apps.trumplayer.base.Manager.getFrame3D(Manager.java:38)
at org.jdesktop.lg3d.apps.trumplayer.Frame.(Frame.java:117)
at org.jdesktop.lg3d.apps.trumplayer.Frame.(Frame.java:70)
at org.jdesktop.lg3d.apps.trumplayer.Main.main(Main.java:25)
2006/08/07 11:09:00 org.jdesktop.lg3d.awt.xlg3dtoolkit getSystemEventQueueImpl

=====

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
hideya
Offline
Joined: 2003-07-22

Hi yasuhiro,

> But, I got error when running application directly in the Netbeans 5.0 IDE. ( I tried to run application by 'running project' of IDE menu).

I use 5.5 beta and the configuration provided by lg3d/nbproject. This allows me to run LG3D from the IDE menu. It looks like you are trying to run the app directly. I haven't tried it yet...

> Caused by: java.lang.NullPointerException
> at org.jdesktop.lg3d.displayserver.EventProcessor.addListener(EventProcessor.java:350)

This NPE is happening at a very unusual place (assuming you are using the same version 1.11 of EventProcessor)...

Anyhow, I thought you might want to check out the configuration provided by the lg3d/nbproject. It may include some hint...

hideya