quickstart example - Device or resource busy

View: New views
6 Messages — Rating Filter:   Alert me  

quickstart example - Device or resource busy

by rperrone :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,



I installed netbeans 6.7.1 and tried to use an example from (http://www.netbeans.org/kb/docs/javame/quickstart.html) but a problem appears on output window when i started to run main project:



Running the create-domain subcommand

java.lang.NoClassDefFoundError: com.sun.org.apache.xerces.internal.parsers.DOMParser



and the Hello(run) tab:



...

Copying 1 file to /home/perrone/NetBeansProjects/MyHello/dist/nbrun2902504539514545142

Copying 1 file to /home/perrone/NetBeansProjects/MyHello/dist/nbrun2902504539514545142

Jad URL for OTA execution: http://localhost:8082/servlet/org.netbeans.modules.mobility.project.jam.JAMServlet//home/perrone/NetBeansProjects/MyHello/dist//MyHello.jad

Starting emulator in execution mode

Running with storage root /home/perrone/j2mewtk/2.5.2/appdb/temp.DefaultColorPhone22

Running with locale: en_US.UTF-8

/dev/dsp: Device or resource busy

java.lang.IllegalArgumentException:  width<=0 height<=0

   at java.awt.image.SampleModel.<init>(libgcj.so.90)

   at java.awt.image.SinglePixelPackedSampleModel.<init>(libgcj.so.90)

   at java.awt.image.SinglePixelPackedSampleModel.<init>(libgcj.so.90)

   at java.awt.image.BufferedImage.<init>(libgcj.so.90)

   at com.sun.kvem.midp.GraphicsBridge.loadIcon(Unknown Source)

   at java.lang.reflect.Method.invoke(libgcj.so.90)

   at com.sun.kvem.sublime.MethodExecution.process(Unknown Source)

   at com.sun.kvem.sublime.SublimeExecutor.processRequest(Unknown Source)

Running in the identified_third_party security domain

received signal SIGSEGV

...

BUILD SUCCESSFUL (total time: 3 seconds)





Does anybody know how to solve this?



Thanks a lot

Ricardo





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: quickstart example - Device or resource busy

by Karol Harezlak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm understand that you use Linux. What version of Linux do you use?

K.

perrone wrote:

> Hi,
>
>
>
> I installed netbeans 6.7.1 and tried to use an example from (http://www.netbeans.org/kb/docs/javame/quickstart.html) but a problem appears on output window when i started to run main project:
>
>
>
> Running the create-domain subcommand
>
> java.lang.NoClassDefFoundError: com.sun.org.apache.xerces.internal.parsers.DOMParser
>
>
>
> and the Hello(run) tab:
>
>
>
> ...
>
> Copying 1 file to /home/perrone/NetBeansProjects/MyHello/dist/nbrun2902504539514545142
>
> Copying 1 file to /home/perrone/NetBeansProjects/MyHello/dist/nbrun2902504539514545142
>
> Jad URL for OTA execution: http://localhost:8082/servlet/org.netbeans.modules.mobility.project.jam.JAMServlet//home/perrone/NetBeansProjects/MyHello/dist//MyHello.jad
>
> Starting emulator in execution mode
>
> Running with storage root /home/perrone/j2mewtk/2.5.2/appdb/temp.DefaultColorPhone22
>
> Running with locale: en_US.UTF-8
>
> /dev/dsp: Device or resource busy
>
> java.lang.IllegalArgumentException:  width<=0 height<=0
>
>    at java.awt.image.SampleModel.<init>(libgcj.so.90)
>
>    at java.awt.image.SinglePixelPackedSampleModel.<init>(libgcj.so.90)
>
>    at java.awt.image.SinglePixelPackedSampleModel.<init>(libgcj.so.90)
>
>    at java.awt.image.BufferedImage.<init>(libgcj.so.90)
>
>    at com.sun.kvem.midp.GraphicsBridge.loadIcon(Unknown Source)
>
>    at java.lang.reflect.Method.invoke(libgcj.so.90)
>
>    at com.sun.kvem.sublime.MethodExecution.process(Unknown Source)
>
>    at com.sun.kvem.sublime.SublimeExecutor.processRequest(Unknown Source)
>
> Running in the identified_third_party security domain
>
> received signal SIGSEGV
>
> ...
>
> BUILD SUCCESSFUL (total time: 3 seconds)
>
>
>
>
>
> Does anybody know how to solve this?
>
>
>
> Thanks a lot
>
> Ricardo
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>  


--
Karol Harezlak <karol.harezlak@...>
Sun Microsystems, Inc. NetBeans Mobilty/JavaFX



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


quickstart example - Device or resource busy

by rperrone :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am using Ubuntu 9.0.4 Kernel 2.6.28-15-generic



Ricardo





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: quickstart example - Device or resource busy

by Karol Harezlak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't remember any problems with Ubuntu I think there were few reports
about Fedora. Anyone else experienced any problems with Mobility using
Ubuntu 9?

K.

perrone wrote:

> I am using Ubuntu 9.0.4 Kernel 2.6.28-15-generic
>
>
>
> Ricardo
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>  


--
Karol Harezlak <karol.harezlak@...>
Sun Microsystems, Inc. NetBeans Mobilty/JavaFX



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: quickstart example - Device or resource busy

by bvaske :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, I have a similar Problem, at least for the
java.lang.IllegalArgumentException:  width<=0 height<=0
part. The emulator appears for a second an then crashes with this error message.
Or the emulator starts and then freezes with no further messages. Would like to debug it if possible but didn't find a way yet.

System:
Debian unstable
Netbeans 6.7.1-ml


Karol Harezlak wrote:
I don't remember any problems with Ubuntu I think there were few reports
about Fedora. Anyone else experienced any problems with Mobility using
Ubuntu 9?

K.

perrone wrote:
> I am using Ubuntu 9.0.4 Kernel 2.6.28-15-generic
>
>
>
> Ricardo
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@mobility.netbeans.org
> For additional commands, e-mail: users-help@mobility.netbeans.org
>
>  


--
Karol Harezlak <karol.harezlak@sun.com>
Sun Microsystems, Inc. NetBeans Mobilty/JavaFX



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@mobility.netbeans.org
For additional commands, e-mail: users-help@mobility.netbeans.org

Re: quickstart example - Device or resource busy

by bvaske :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok, found the problem, I was using the gnu version of java (at least for the wtk). Resolved it by executing update-java-alternatives (read the man how to use) and setting the sun jre as default.

Maybe would be a good idea to use the setting in netbeans (which was set to use the sun jre not the gnu one).

Greetz


Hi, I have a similar Problem, at least for the
java.lang.IllegalArgumentException:  width<=0 height<=0
part. The emulator appears for a second an then crashes with this error message.
Or the emulator starts and then freezes with no further messages. Would like to debug it if possible but didn't find a way yet.

System:
Debian unstable
Netbeans 6.7.1-ml


Karol Harezlak wrote:
I don't remember any problems with Ubuntu I think there were few reports
about Fedora. Anyone else experienced any problems with Mobility using
Ubuntu 9?

K.

perrone wrote:
> I am using Ubuntu 9.0.4 Kernel 2.6.28-15-generic
>
>
>
> Ricardo
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@mobility.netbeans.org
> For additional commands, e-mail: users-help@mobility.netbeans.org
>
>  


--
Karol Harezlak <karol.harezlak@sun.com>
Sun Microsystems, Inc. NetBeans Mobilty/JavaFX



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@mobility.netbeans.org
For additional commands, e-mail: users-help@mobility.netbeans.org