Skip to main content

Error in my first JavaDTV app - java.awt.AWTError: Failed to CreateDevice.

3 replies [Last post]
luis82fernandez
Offline
Joined: 2010-04-06
Points: 0

Hello,

Sorry for my english.

I work with Ginga in Brazil and i'm trying use the platform provided by Sun.

I'm trying run the sample app indicates in the JavaDTVLwuitSDK_1_0_ReleaseNotes.pdf (downloaded at "https://javatv-developers.dev.java.net/files/documents/9660/145920/JavaDTVLwuitSDK_1_0_ReleaseNotes.pdf"), but the Netbeans error console is showing the following error:

==========================================================
@@XletRunner starting Xlet com.sun.demo.hellodtvworld.Main
java.awt.AWTError: Failed to CreateDevice. Error 2289436778.

at java.awt.DxGraphicsEnvironment.dxInitfb(Native Method)
at java.awt.DxGraphicsEnvironment.access$100(DxGraphicsEnvironment.java:55)
at java.awt.DxGraphicsEnvironment$1.run(DxGraphicsEnvironment.java:478)
at java.lang.Thread.startup(Thread.java:1083)
Error in constructing class com.sun.dvb.application.display.awt.AWTDisplay: null
java.lang.NullPointerException
initXlet called
destroyXlet called
at javax.tv.graphics.TVContainer.getRootContainer(TVContainer.java:38)
at com.sun.demo.hellodtvworld.Main.initXlet(Main.java:35)
at com.sun.apps.ApplicationsManager.handleRequest(ApplicationsManager.java:300)
at com.sun.apps.AppStateQueue.dispatchRequests(AppStateQueue.java:113)
at com.sun.apps.AppStateQueue$1.run(AppStateQueue.java:56)
at java.lang.Thread.run(Thread.java:1006)
at java.lang.Thread.startup(Thread.java:1083)
java.lang.NullPointerException
at com.sun.demo.hellodtvworld.Main.destroyXlet(Main.java:59)
at com.sun.apps.ApplicationsManager.handleRequest(ApplicationsManager.java:339)
at com.sun.apps.ApplicationsManager.handleRequest(ApplicationsManager.java:349)
at com.sun.apps.AppStateQueue.dispatchRequests(AppStateQueue.java:113)
at com.sun.apps.AppStateQueue$1.run(AppStateQueue.java:56)
at java.lang.Thread.run(Thread.java:1006)
at java.lang.Thread.startup(Thread.java:1083)
java.lang.IllegalStateException: Shutdown in progress
at java.lang.Shutdown.add(Shutdown.java:100)
at java.lang.Runtime.addShutdownHook(Runtime.java:221)
at java.awt.DxGraphicsEnvironment.(DxGraphicsEnvironment.java:98)
at java.awt.DxToolkit.(DxToolkit.java:45)
at java.awt.Toolkit$1.run(Toolkit.java:190)
at java.security.AccessController.doPrivileged(AccessController.java:299)
at java.security.AccessController.doPrivileged(AccessController.java:273)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:183)
at java.awt.DxGraphicsEnvironment.cleanup(DxGraphicsEnvironment.java:449)
at java.awt.DxGraphicsEnvironment.access$500(DxGraphicsEnvironment.java:55)
at java.awt.DxGraphicsEnvironment$3.run(DxGraphicsEnvironment.java:535)
at java.lang.Thread.startup(Thread.java:1083)

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

Someone have success to run an app based in the same example?

Grateful for the help.
Att,
Luis E. Fernandez

Message was edited by: luis82fernandez

Message was edited by: luis82fernandez

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tamir
Offline
Joined: 2006-08-29
Points: 0

Hello Luis,

First thanks for installing our SDK for DTV (LWUIT).

Based on the error you got, it's look like your machine has problem with DirectX initialization process.
I'll ask you few question, in order to better understand your environment or even to reproduce the bug.
1. What is your operating system?
2. Did you had DirectX install before? if Yes, which version? Do you know his configuration parameters?
3. Did you try to run this SDK on a different PC?

Thanks,
Tamir
https://javatv-developers.dev.java.net

luis82fernandez
Offline
Joined: 2010-04-06
Points: 0

[b][i]1. What is your operating system?[/i][/b]
I'm using the XP SP3 running in the Sun Virtual Box.
The version of Netbeans is 6.7.1

[b][i]2. Did you had DirectX install before? if Yes, which version? Do you know his configuration parameters?[/i][/b]
Yes, the DirectX is installed int the process instalation of JavaDTV Lwuit SDK (File widget-demo-setup.exe).

DirectX Version: 9.0c

Which configuration parameters?

[b][i]3. Did you try to run this SDK on a different PC?[/i][/b]
Not yet. I will try.

Thanks,
Luis E. Fernandez

Message was edited by: luis82fernandez

tamir
Offline
Joined: 2006-08-29
Points: 0

Hi,

>> "is it possible to develop and deploy apps on mhp1.0 compliant platforms using lwuit for the gui?"
YES, since the LWUIT for TV is based/ported on top of PBP 1.1, but it doesn't support Xlet yet.
BUT very soon we shall release a new LWUIT ported to PBP that support Xlet (javax.tv.xlet.Xlet) - Stay tuned!!

>> "anyone knows where I can find source code of lwuit dtv implementation?"
Right now there is only source for LWUIT on MIDP, but with opverride of LWUITImplmenetation class, you can port it to your platform

Thanks,
Tamir
https://javatv-developers.dev.java.net/