You Are Here:

Community: Developer Discussion Boards

#1 Old IllegalStateException on realize() method - 2006-02-05, 21:38

Join Date: Feb 2006
Posts: 2
lstela
Offline
Registered User
Today I transfererred my code from Sony Ericsson and everything works great except of sound.

I use simply tone sequences like this:
Tone tc;
Player screw;

screw = Manager.createPlayer(Manager.TONE_DEVICE_LOCATOR);
screw.realize();
tc = (ToneControl)screw.getControl("javax.microedition.media.control.ToneControl");
tc.setSequence(NSEQ_SCREW);
screw.setLoopCount(1);
screw.start();


On realize() method, emulator throws exception:

java.lang.IllegalStateException: Can't invoke the method at the

closed state


I have not real device, but only may start on emulator. The same exception throws example

application MediaSampler from Nokia developers suite package. MediaSampler also don/t

play tone using Manager.playTone() method, nothing happens, but no exception is thrown.

Please help me: what happens? That's impossible, that Player can't play simply tone

sequences on Nokia phones.

Whole exception text looks like this:
<this is place, when createPlayer() is called>
MMA : Exception during remote invocation
java.lang.RuntimeException: java.lang.NullPointerException:
<this is place, when realize() is called>
MMA : Exception during remote invocation
java.lang.RuntimeException: java.lang.NullPointerException:
MMA : Exception during remote invocation
java.lang.RuntimeException: java.lang.NullPointerException:
java.lang.IllegalStateException: Can't invoke the method at the closed state


I'm sure, that after createPlayer(...) screw is not null.

Lukasz Stela
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Dial method in RunL on 6600 marycore General Symbian C++ 4 2007-02-02 18:14
IllegalStateException on realize() method lstela Symbian Media (Graphics & Sounds) 0 2006-02-05 21:18
setClip() method of Graphics class in not working with DirectGraphics class-Nokia API dotcdotc Mobile Java General 0 2004-03-03 11:34
Methods, that take lots of space doctordwarf Mobile Java General 4 2003-07-30 12:05

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia