Topic: Why has this simple midlet stopped working?!!
I have a midlet which was working fine, but now gives the error, 'No such method getTitle.()Ljava/lang/String;'.
I have now created a very simple test midlet that includes the problematic line of code:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class GetTitleTestMIDlet extends javax.microedition.midlet.MIDlet implements CommandListener {
public void startApp() {
Form f = new Form("Test");
f.setCommandListener(this);
Command com = new Command("OK", Command.OK, 0);
f.addCommand(com);
Display.getDisplay(this).setCurrent(f);
public void pauseApp() {
public void destroyApp(boolean unconditional) {
public void commandAction(Command c, Displayable d) {
String cLabel = c.getLabel();
String dTitle = null;
if (d instanceof Screen) {
dTitle = ((Screen)d).getTitle(); //****** THIS LINE IS THE PROB
else {
dTitle = "(Canvas)";
}It is the line, 'dTitle = ((Screen)d).getTitle();' that is giving the error message. It happens both on Sun ONE Studio 4 and with JBuilder with Nokia and Siemens emulators.
Everything used to work fine. All I have done since it last worked is create a couple of JApplets and JFrame classes in Sun ONE Studio 4. I have noticed that the 'Explorer [Filesystems]' view in Sun ONE Studio 4 has changed in appearance since the midlet last worked, but there are no other clues.
It must be something to do with my setup rather than my code.
Can anyone please help!
Cheers,
James
The problem was with the compiler. It stopped working for some reason... Once I downloaded Wireless Toolkit 1 again, and compiled again, it worked!
Not sure why it stopped working. The only unusual thing I had done prior to it going wrong was adding several emulator instances in SUN One Studio 4 - maybe it didn't like that.
Similar Messages
-
I have just clicked on my iTunes desktop icon and got the following message "The file iTunes Library.itl" cannot be read because it was created by a newer version of iTunes. Why has this occurred when it working fine? Is it best to update iTunes to 10.2 to attempt to resolve? Initially I got the prompt Quicktime was out of date so I updated that successfully in all programs. I do not want to lose my iTunes library.
Sorted problem updated and reinsatlled and restarted computer.
-
RoboHelp HTML Version 10,
Why has my CHM search stopped working? I get "no results found" for all searches...........robLikely you need to re-register some DLLs and recompile.
Click the link below and follow the information you find there.
Click here
Cheers... Rick -
Why has my Photo Stream stopped working? I have not changed any settings.
Why has my Photo Stream stopped working? I have not changed any settings on either my iPhone or my Mac. I did try to reset them, but with no success.
FAQs and trouble shooting tips are here - http://www.apple.com/support/icloud/photo-stream/
Other than that we need more details to possibley help including what "doesn't work", how you tried to restart, any thing else remembering that we can not see your or yoru computer so depend on what you tell us
LN -
Why has my kindle app stopped working
why has my kindle app stopped working
Be advised that a kindle is not an Apple product. I suggest that you contact Amazon.
Ciao. -
Why has my e-mail stop working
Why has e-mail stopped working? I keep getting "cannot get mail the connection to the server failed" message
Hi Coffe5595,
Thanks for visiting Apple Support Communities.
The troubleshooting steps in this article can help if you're having trouble receiving email on your iPhone:
iOS: Troubleshooting Mail
http://support.apple.com/kb/ts3899
Cheers,
Jeremy -
Why has akai synthstation 25 stopped working with my iPod 4g
Hello can any one help me.
My ipod4th gen has stopped working with my akai synth station 25 it say this accessory does not support iPod touch.
It always used to
ThanksOh, I'm glad it isn't just me having the problem. Hopefully it will be fixed soon.
I am now able to get past the "Get Started" screen and see all of my messages as well. I still cannot send or get any messages either though.
Thanks so much for your help -
Why has .mac email suddenly stopped working on my PowerPC G5?
It's worked fine for a couple of years and now it asks for my password, which it will not acknowledge. I checked my .mac account settings, etc and all seems fine. The .mac account runs fine on my phone and thru iCloud. But now not on my desktop.
They're killing off MobileMe and I noticed that my desktop won't sync anymore with that either. Related? It appears that you will need OSX Lion to function fully with iCloud. Let's see, I'm only 13 OSX upgrades behind........Please help!
My email has stopped working on my HTC evo.
It's done this before and i went to settings and followed these instructions then it worked great for a few months but now I can not receive email. I can send but incoming does not work.
the WARNING says your incoming server does not support SSL
this is what i followed last time, but it doesnt work now
iCloud Mail setup, do not choose .mac or MobileMe as type, but choose IMAP...
IMAP (Incoming Mail Server) information:
▪ Server name: imap.mail.me.com
▪ SSL Required: Yes
▪ Port: 993
▪ Username: [email protected] (use your @me.com address from your iCloud account)
▪ Password: Your iCloud password
SMTP (outgoing mail server) information:
▪ Server name: smtp.mail.me.com
▪ SSL Required: Yes
▪ Port: 587
▪ SMTP Authentication Required: Yes
▪ Username: [email protected] (use your @me.com address from your iCloud account)
▪ Password: Your iCloud password -
Why has my mac mail stopped working with gmail
when i try to use the mail programe for gmail it has randomly stopped working
can anyone help me pleaseGreat news....
and I am posting this all around.
This morning Sep12 I woke up and I was checking my email on the iPad and I noticed over 50msg... there were just a few last night... Then I saw... OVI 50msg! What?
I got to it and there it was... OVI mail working.
I re-edited my ipad config because it was setup for POP and I tried to change it to IMAP... I messed up, but realized... I could not simply edit on the iPad, so I deleted the email account and re-created using IMAP. It worked!!!
I have the OVI mail now configured on both my iPad and on my new Samsung S4 mini.
Here is what I am using:
income
imap.mail.ovi.com
SSL
993
outcome
smtp.mail.ovi.com
SSL
465
Please share. It looks like it´s back!!!
POP is also working...
by
@#####}::::::Highlander::::: -
Why has my ovi mail stopped working?
Since friday my ovi mail has stopped working and i've lost lots of emails from my phone (also lost lots of txts too)
When i select retrieve or connect it just comes up messaging not supported ? What the hell is going on?Great news....
and I am posting this all around.
This morning Sep12 I woke up and I was checking my email on the iPad and I noticed over 50msg... there were just a few last night... Then I saw... OVI 50msg! What?
I got to it and there it was... OVI mail working.
I re-edited my ipad config because it was setup for POP and I tried to change it to IMAP... I messed up, but realized... I could not simply edit on the iPad, so I deleted the email account and re-created using IMAP. It worked!!!
I have the OVI mail now configured on both my iPad and on my new Samsung S4 mini.
Here is what I am using:
income
imap.mail.ovi.com
SSL
993
outcome
smtp.mail.ovi.com
SSL
465
Please share. It looks like it´s back!!!
POP is also working...
by
@#####}::::::Highlander::::: -
Why has open with photoshop stopped working
I have been using the 'Open With Photoshop' addon since it first became available but it has now stopped working since the last FF update. I've tried reinstalling etc. but makes no difference.
Having the same issue with 'View source in Dreamweaver'
I use these features a lot so any help would be much appreciatedGo to their support sites and check for updates. Also ask questions.
-
Why has my iMessage suddenly stopped working?
Does anyone have any idea why my iPhone 5 (iOS 6.1.3) has suddenly decided to stop sending iMessages? When I try and send an iMessage I keep getting a pop up box telling me that I need to have iMessage activated, yet when I go into Settings/Messages the iMessage option is switched on. Also when I send a message to another user that I know for a fact has iMessage, the message bubble does not turn blue. What's going on??
iMessage is down for many users right now:
http://www.apple.com/support/systemstatus/
Regards. -
Why has my hdmi cable stopped working?
My sister and I both have macbook pros (purchased Sept 2011), the same samsung HD TV and the same hdmi cable.
The hdmi cables worked absolutely fine for a good few months after we bought them from the apple store, however recently the cables have both stopped working completely! The TV stays blank and simply says 'No signal' and the laptop doesnt change screen at all. I've tried different settings on the laptops, turned both TV and laptop on and off etc but with no luck. It's making me think that the faulty variable is the cable? I doubt I'd be able to get a refund or excange from apple since they were bought a while ago.
If anyone has any suggestions/explainations it would really help!Be advised that a kindle is not an Apple product. I suggest that you contact Amazon.
Ciao. -
Why has my iPhone suddenly stopped working?
I was in the middle of reading a text this morning when my iPhone suddenly turned off. Now, the screen is black and my computer won't even recognize it when it's plugged in. The battery should not be dead because it was charged over night and it does not turn on even after being plugged in for awhile. I didn't drop it or spill anything on it before it broke, the screen just suddenly went black. Has this happened to anyone else. Any suggestions on what to do?? Also, I haven't updated my iPhone to iOS 5 yet if that's relevant.
Contact 3 asap you may have been frozen because of inadvertant excessive
data use or more.
All you can eat does NOT apply overseas
AND if you did not enable roaming they will certainly believe your iPhone has been stolen
and taken out of the country -
Why has my iMessage suddenly stopped working on my macbook
My iMessage stopped working on my laptop 2 weeks ago. It still works fine on my phone and ipad.. It says it is invalid..
iMessage is down for many users right now:
http://www.apple.com/support/systemstatus/
Regards.
Maybe you are looking for
-
PRE9 ? What is max Quality to Burn DVD from 1080i Source????
Dont know if I worded the question properly. I just bought a Sony HDR-CX350v. It is state of the art HD. I am wondering...? When I look at the quality of my recordings, its awesome. I import to PSE9 and burn to DVD and the quality is significantl
-
concept of private functions in oracle
-
When does the formula is executed for dimension? At the time of report execution or seperately we have to excute it like script logic Edited by: BPC Lover on Feb 10, 2012 6:30 PM
-
Reporting on SR Owner Change, Activity Due Date Change
We have few Report Requirements around Audit Trail. We are looking for Reports where we could Track Service Request Owner change, SR Status Change, Activity Due Date Change etc. As we know, In CRMOD Analytics, we cannot report on Audit Trail or use t
-
I MADE AN IPHONE UPDATE 4 IN 3GS AND MMS CAMARA ICON GOT ERASED
HOW CAN I FIX THE CAMARA ICON IN MMS. WHEN I GO TO PHOTOS I CANT SEND THEM IN MMS. IT GOT ERASED AFTER I UPDATED MY I PHONE WITH THE NEW IPHONE 4 UPDATE.