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.

Bug 165768 - SDK 3.0: Issues with Advanced Multimedia Supplements sample
Summary: SDK 3.0: Issues with Advanced Multimedia Supplements sample
Status: RESOLVED INVALID
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-22 08:37 UTC by Andrei Chistiakov
Modified: 2011-06-23 09:59 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Chistiakov 2009-05-22 08:37:42 UTC
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
Comment 1 Denis Anisimov 2009-06-01 07:06:01 UTC
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 ).
Comment 2 Andrei Chistiakov 2009-06-01 10:44:39 UTC
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.
Comment 3 Denis Anisimov 2009-06-01 12:00:42 UTC
Understood.
I'll ask Petr about possibility to remove this sample.
Comment 4 Irina Filippova 2010-02-17 07:57:36 UTC
Erroneously assigned to usersguide. Changing the component.
Comment 5 Anton Chechel 2011-06-23 09:59:28 UTC
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.