Hi,

I am working on a project on mobile TV and is currently stucked on a problem. Your help would be really appreciated.

I am trying to run a J2ME application to stream videos from a helix server(in my lab) on Sun wireless development toolkit.

The application loads the elctronic program guide from the server. But on trying to stream it gives following exception :

java.lang.ClassNotFoundException: com/nokia/mid/ui/DeviceControl
at mtvs.j2me.gclient.TVDisplay.setBacklight(+17)
at mtvs.j2me.gclient.TVDisplay.paint(+702)
at javax.microedition.lcdui.Canvas.callPaint(+85)
at javax.microedition.lcdui.Display.repaint(+82)
at javax.microedition.lcdui.Display.registerNewCurrent(+235)
at javax.microedition.lcdui.Display.screenChange(+66)
at javax.microedition.lcdui.Display$DisplayManagerImpl.screenChange(+5)
at com.sun.midp.lcdui.EmulEventHandler.screenChangeEvent(+24)
at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+492)

I found this library on S60 emulator. I extracted the classes and put them in the classes folder of my application on WTK. But then the emulator crashed with the following error.

Error log on Sun WTK 2.5.2 afer executing streaming request from my application :

VideoPlayer.run(): rtsp://172.16.15.10:5544/VODPLAYLIST.3gp?enc=FirstEncoding&mno=MNO11&uid=3eb9beb01cf111de97950004760EED88&rid=Dummy-1238071785449&svc=Product_Id_1&msi=19216824826&ply=plLst_id_ag_45&tsl=30&tok=Karl&iver=1&ttl=99999&tim=1238393333279&key=pQ5-JbgygqHNsGmKvYABjw**
landscape mode : off
TVDisplay.setupTVDisplay() Play lists
TVDisplay.commandHandling()
serviceIDList[0]: p|SEP|plLst_id_ag_45|SEP|1|SEP|smssrvvod_ag_49
DataMaster.getService() Service: p|SEP|plLst_id_ag_45|SEP|1|SEP|smssrvvod_ag_49
TVDisplay.alert()
TVDisplay.alert() Alert text: Waiting for Video...
Method............: 2546940 'com/nokia/mid/ui/DeviceControl.<init> (virtual)'
Stack Chunk.......: 2380a68
Frame Pointer.....: 2380c10
Current IP........: 25468dc = 25468d4 + offset 8
Previous Frame....: 2380bec
Previous IP.......: 254684b (offset 47)
Frame size........: 2 (1 arguments, 1 local variables)
Argument[0].......: 254584c
Local[1]..........: 2380c18

Method............: 25469a0 'com/nokia/mid/ui/DeviceControl.setLights (static)'
Stack Chunk.......: 2380a68
Frame Pointer.....: 2380bec
Current IP........: 254684b = 254681c + offset 47
Previous Frame....: 2380bc8
Previous IP.......: 254cf0b (offset 23)
Frame size........: 3 (2 arguments, 1 local variables)
Argument[0].......: 0
Argument[1].......: 64
Local[2]..........: 2380be4
Operand[1]........: 254584c

Method............: 2550d78 'mtvs/j2me/gclient/TVDisplay.setBacklight (virtual)'
Stack Chunk.......: 2380a68
Frame Pointer.....: 2380bc8
Current IP........: 254cf0b = 254cef4 + offset 23
Previous Frame....: 2380ba0
Previous IP.......: 2550066 (offset 10)
Frame size........: 4 (2 arguments, 2 local variables)
Argument[0].......: 23a1090
Argument[1].......: 1
Local[2]..........: 64
Local[3]..........: 2380bd0

Method............: 2550878 'mtvs/j2me/gclient/TVDisplay.showNotify (virtual)'
Stack Chunk.......: 2380a68
Frame Pointer.....: 2380ba0
Current IP........: 2550066 = 255005c + offset 10
Previous Frame....: 2380b84
Previous IP.......: 1034e378 (offset 19)
Frame size........: 1 (1 arguments, 0 local variables)
Argument[0].......: 23a1090

Method............: 10242810 'javax/microedition/lcdui/Canvas.callShowNotify (virtual)'
Stack Chunk.......: 2380a68
Frame Pointer.....: 2380b84
Current IP........: 1034e378 = 1034e365 + offset 19
Previous Frame....: 2380b58
Previous IP.......: 103c2a64 (offset 9)
Frame size........: 5 (2 arguments, 3 local variables)
Argument[0].......: 23a1090
Argument[1].......: 2393630
Local[2]..........: 2381304
Local[3]..........: 0
Local[4]..........: 25426b4

Method............: 1028cb30 'javax/microedition/lcdui/Display.registerNewCurrent (virtual)'
Stack Chunk.......: 2380a68
Frame Pointer.....: 2380b58
Current IP........: 103c2a64 = 103c2a5b + offset 9
Previous Frame....: 2380b28
Previous IP.......: 103c2707 (offset 66)
Frame size........: 6 (3 arguments, 3 local variables)
Argument[0].......: 2393630
Argument[1].......: 23a1090
Argument[2].......: 0
Local[3]..........: 0
Local[4]..........: 25426b4
Local[5]..........: 4

Method............: 1028c810 'javax/microedition/lcdui/Display.screenChange (virtual)'
Stack Chunk.......: 2380a68
Frame Pointer.....: 2380b28
Current IP........: 103c2707 = 103c26c5 + offset 66
Previous Frame....: 2380b00
Previous IP.......: 1032e8b2 (offset 5)
Frame size........: 4 (2 arguments, 2 local variables)
Argument[0].......: 2393630
Argument[1].......: 23a1090
Local[2]..........: 2381310
Local[3]..........: 2380a84

Method............: 10229994 'javax/microedition/lcdui/Display$DisplayManagerImpl.screenChange (virtual)'
Stack Chunk.......: 2380a68
Frame Pointer.....: 2380b00
Current IP........: 1032e8b2 = 1032e8ad + offset 5
Previous Frame....: 2380adc
Previous IP.......: 103b7c82 (offset 24)
Frame size........: 3 (3 arguments, 0 local variables)
Argument[0].......: 238103c
Argument[1].......: 2393630
Argument[2].......: 23a1090

Method............: 1028575c 'com/sun/midp/lcdui/EmulEventHandler.screenChangeEvent (virtual)'
Stack Chunk.......: 2380a68
Frame Pointer.....: 2380adc
Current IP........: 103b7c82 = 103b7c6a + offset 24
Previous Frame....: 2380ab0
Previous IP.......: 103672f7 (offset 492)
Frame size........: 5 (3 arguments, 2 local variables)
Argument[0].......: 2380dc4
Argument[1].......: 2393630
Argument[2].......: 23a1090
Local[3]..........: 2380db8
Local[4]..........: 1021caa8

Method............: 10250940 'com/sun/midp/lcdui/DefaultEventHandler$QueuedEventHandler.run (virtual)'
Stack Chunk.......: 2380a68
Frame Pointer.....: 2380ab0
Current IP........: 103672f7 = 1036710b + offset 492
Previous Frame....: 0
Previous IP.......: 1
Frame size........: 16 (1 arguments, 15 local variables)
Argument[0].......: 2380da8
Local[1]..........: 2393630
Local[2]..........: 23a1090
Local[3]..........: 0
Local[4]..........: 0
Local[5]..........: 0
Local[6]..........: 0
Local[7]..........: ffffffff
Local[8]..........: ffffffff
Local[9]..........: ffffffff
Local[10]..........: ffffffff
Local[11]..........: 0
Local[12]..........: 0
Local[13]..........: 2380d58
Local[14]..........: 0
Local[15]..........: 0

VM status:
Instruction pointer.: 25468dc (offset within invoking method: 8)
ALERT: Native method 'com/symbian/lcdjava/lang/ObjectExtensions::registerForFinalization' not found
Next instruction....: 0x2a
Frame pointer.......: 2380c10
Local pointer.......: 2380c08
Stack size..........: 256; sp: 2380c24; ranges: 2380a70-2380c70;2544e54-2545054;
Contents of the current stack frame:
2380c08: 254584c (lp)
2380c0c: 2380c18
2380c10: 2380bec (fp)
2380c14: 254684b
2380c18: 2380c04
2380c1c: 2546940
2380c20: 2380a68
2380c24: 0 (end of frame) (sp)
Execution stack contains 440 items:
2380da8
2393630
23a1090
0
0
0
0
ffffffff
ffffffff
ffffffff
ffffffff
0
0
2380d58
0
0
0
1
24d7070
10250940
2380a68
0
2380dc4
2393630
23a1090
2380db8
1021caa8
2380ab0
103672f7
2380ac4
1028575c
2380a68
0
238103c
2393630
23a1090
2380adc
103b7c82
2380af0
10229994
2380a68
0
2393630
23a1090
2381310
2380a84
2380b00
1032e8b2
2380b14
1028c810
2380a68
0
2393630
23a1090
0
0
25426b4
4
2380b28
103c2707
2380b3c
1028cb30
2380a68
0
23a1090
2393630
2381304
0
25426b4
2380b58
103c2a64
2380b6c
10242810
2380a68
0
23a1090
2380b84
1034e378
2380b98
2550878
2380a68
0
23a1090
1
64
2380bd0
2380ba0
2550066
2380bb4
2550d78
2380a68
0
0
64
2380be4
2380bc8
254cf0b
2380bdc
25469a0
2380a68
0
254584c
254584c
2380c18
2380bec
254684b
2380c04
2546940
2380a68
0

Execution completed.
16768925 bytecodes executed
15797 thread switches
1743 classes in the system (including system classes)
61214 dynamic objects allocated (2846084 bytes)
107 garbage collections (2704756 bytes collected)
Execution completed.
16768925 bytecodes executed
15797 thread switches
1743 classes in the system (including system classes)
61214 dynamic objects allocated (2846084 bytes)
107 garbage collections (2704756 bytes collected)

Do someone has any clue on this ????