This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version: NetBeans IDE Dev (Build 200905210201) Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02 System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb) Bundled Java ME SDK 3.0 To reproduce: - create Advanced Multimedia Supplements sample project - run it in emulator In emulator: - open Image Effects - press Done processRealized TRACE: <at java.lang.IllegalArgumentException: Not supported image format - image/raw>, Exception caught in Display class java.lang.IllegalArgumentException: Not supported image format - image/raw at com.sun.amms.imageprocessor.ImageFormatProxy.setFormat(), bci=86 at ImageEffects.createProcessedImage(ImageEffects.java:832) at ImageEffects.commandAction(ImageEffects.java:652) at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179 at java.lang.Thread.run(Thread.java:619) - open Music Effects javax.microedition.media.MediaException: EffectModule is not supported at javax.microedition.amms.GlobalManager.createEffectModule(), bci=7 at MusicEffects.<init>(MusicEffects.java:543) at java.lang.Class.newInstance(), bci=0 at com.sun.midp.main.CldcMIDletLoader.newInstance(), bci=46 at com.sun.midp.midlet.MIDletStateHandler.createMIDlet(), bci=66 at com.sun.midp.midlet.MIDletStateHandler.createAndRegisterMIDlet(), bci=17 at com.sun.midp.midlet.MIDletStateHandler.startSuite(), bci=27 at com.sun.midp.main.AbstractMIDletSuiteLoader.startSuite(), bci=52 at com.sun.midp.main.CldcMIDletSuiteLoader.startSuite(), bci=8 at com.sun.midp.main.AbstractMIDletSuiteLoader.runMIDletSuite(), bci=161 at com.sun.midp.main.AppIsolateMIDletSuiteLoader.main(), bci=26 javax.microedition.media.MediaException: EffectModule is not supported - open Moving Helicopter The emulator throws exception and shuts down
The reason of this issue is problems inside Java ME SDK 3.0. Features that is used by the sample are not supported. We can address this issue to Java ME SDK 3.0 itself. But what do you suggest here ? Some notions : 1) The first exception arise inside method setFormat() which doesn't have declared exception, so it couldn't be caught. 2) The second exception is caught inside source code and reported to user via printStackTrace() method on stdout. Here can be improvement inside sample midlet with some UI warning . 3) Unknown reason . So as I said before the reason of this issue is behavior in Java ME SDK 3.0. We can just try to fix result of this behavior. But this is not always possible ( f.e. the first case could be handled accurately ).
Given SDK 3.0 as a primary bundled platform for NB on Windows, I'd prefer to have samples that do not work correctly in SDK 3.0 emulator removed from the list of samples included in Windows distribution.
Understood. I'll ask Petr about possibility to remove this sample.
Erroneously assigned to usersguide. Changing the component.
1. Exception is ME SDK 3.0 issue, not NetBeans related. 2. Sample will not be removed from Mobility since it works in WTK 2.5.2.