Please help! I get the message ALERT: Error verifying class MyCnavas

Hello, I'm Trying to work on a gaming project in j2me. For which first of all, I'm trying to create a menu using the low level API. I tried the following program to see if my idea works. I tried to add in the menu items by calling g.drawString inside a for loop in the paint method. Then I've used the drawRect to draw a highlighting rectangle around the first menu item. It compiles and preverifies successfully, after which it gives me the error while running:
ALERT: Error verifying class MyCnavas
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
class MyCanvas extends Canvas
     private static final int DOWN = -2;
     private static final int UP = -1;
     Graphics g;
     int itemposition = 0;
     public MyCanvas()
          super();
          repaint();
     public void paint(Graphics g)
          this.g = g;
          int pos=0;
          for ( int i =1; i<3;i++)
               pos = i*20;
               g.drawString("Option".concat(String.valueOf(i)), 20,pos, Graphics.TOP|Graphics.LEFT);
          g.drawRect(15,pos-5, getWidth()- 50, pos+5);
     public void keyPressed( int keycode)
          System.out.println(keycode);
          //if ( keycode == UP)
public class MyMIDlet extends MIDlet
     MyCanvas can;
     Display display;
     public MyMIDlet()
          can = new MyCanvas();
     public void startApp()
          display = Display.getDisplay(this);
          display.setCurrent(can);
     public void pauseApp()
     public void destroyApp( boolean unconditional)
}Any help on this issue will be greatly helpful
Regards
Rahul

No, I am using the default emulator provided by the sun midp 2.0 specification. I am executing the program on the command prompt. I am not using the wireless tollkit provided by sun.
I already tried removing those declarations of UP and DOWN, which are quite unnecessary I understand. and I tried removing the repaint call in the constructor. It still gives me the same problem.
I am not able to figure out what the problem could be. ANy help on this would be appreciated
Rahul

Similar Messages

  • HT5568 when i try to install the Safari 6.0.2 update i get the message an error has occured The operation couldn't be completed. (NSURLErrorDomain error -3001.)(102) - can anyone help my get the update please

    when I try to install this update I get the message an error has occured The operation couldn’t be completed. (NSURLErrorDomain error -3001.)(102) - can anyone help my get the update please?

    There are problems with the servers. Download and install that update > http://swcdn.apple.com/content/downloads/53/02/041-8081/2jwp4wjrwygtm4lc608qy4h0 n4a9yyq37g/Safari6.0.2Mountain.pkg

  • Today is April 10, 2013. I try to login to iTunes connect and I keep getting the message "An error has occurred processing your request. Please try again later or send an email for assistance." It never tells us what email address we need to write to.

    Today is April 10, 2013. I try to login to iTunes connect and I keep getting the message "An error has occurred processing your request. Please try again later or send an email for assistance." It never tells us what email address we need to write to.

    The problem was solved by Apple Technical Help. The process is as flollows:
    1. Open Safari
    2. Menu item Safari-Reset Safari - remove all website data - reset
    3. Now if you try to login on iTunes connect it will work.

  • When starting a rental movie, I get the message: "An error occured loading this content, please try again later". Any ideas how to solve this issue?

    When starting a rental movie, I get the message: "An error occured loading this content, please try again later". Any ideas how to solve this issue?

    Firstly, I should have typed speedtest.net previously.
    Now that's an interesting comment you make, out of interest do you have any purchased HD movies in your iTunes collection, if so, do they play on the Apple TV with your new tv.

  • TS3510 I only have one apple ID and facetime has worked with it before, but now I get the message "Unable to verify email because it is already in use". I have looked ofr a solution but can't find one. can anyone help please?

    I only have one apple ID and facetime has worked with it before, but now I get the message "Unable to verify email because it is already in use". I have looked ofr a solution but can't find one. can anyone help please?

    I spoke with Apple Support this morning and they believe anything MobileMe related is due to the conversion over to iCloud that's taking place.
    As for other email clients, check with your host to see if settings have changed on their end. I use inmotionhosting.com and over the weekend the updated their outgoing requirements so that a password authentication is now needed.
    Hope that helps get some on the right path to resolving their issues!

  • Is it possible to run BBC iPlayer from an iPhone4 through AirPlay to Apple TV2 please? I keep getting the message "An error occured loading this content. Please try again later"

    Is it possible to run BBC iPlayer from an iPhone4 through AirPlay to Apple TV2 please? I keep getting the message "An error occured loading this content. Please try again later"

    First, try a system reset on the iPod.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If that doesn't work, reset the Apple TV.  I'm not at mine right now and I'm talking from memory but the reset is somewhere in the Settings menu.

  • I am unable to install Itunes on Windows 7 as I am getting the message "an error occured during the installation of assembly "Microsoft VC80.CRT Type ="win32" version="8.0.50727.6195",public key token 1fc8b 3b 9a 1e 18e 3b",processorArchitecture="x86".Ple

    I am unable to install Itunes on Windows 7 as I am getting the message "an error occured during the installation of assembly "Microsoft VC80.CRT Type ="win32" version="8.0.50727.6195”,public key token 1fc8b 3b 9a 1e 18e 3b”,processorArchitecture=”x86”.Please refer to Help and Support for more information:"HResult 0x800736FD

    I found htis other post https://discussions.apple.com/thread/3401328?start=0&tstart=0
    I also found this in another post
    These ones are typically caused by underlying problems on the PC that also often cause Windows Updates to fail to install. If we can fix the Windows Update trouble, we can usually get the iTunes trouble cleaned up en passant.
    Go into your Windows update and try to check for new updates. If updates install, stock up on the ones you're behind on, restarting the PC if requested to do so. After the restart, try installing iTunes again. Does it go through this time for you?
    If windows updates fail to install, go into your Update History and doubleclick the failures. What alphanumeric codes appear for you? (For example, 8007000B.)

  • I cannot download itunes on my pc.  I get the message "An error occurred during the installation of assembly. "microsoft.VC80.CRT.type=8 0.50727.4053". publicKeyToken="1fc8b3b9a1e18e3b". processor rArchitecture=amd64".

    i cannot download itunes on my pc.  I get the message "An error occurred during the installation of assembly. "microsoft.VC80.CRT.type=8 0.50727.4053". publicKeyToken="1fc8b3b9a1e18e3b". processor rArchitecture=amd64".
    Please help. Have just bought a new ipod and cannot use it !!! Thank you.

    Hi Gurmo,
    HRESULT: 0x80073712 means ERROR_SXS_COMPONENT_STORE_CORRUPT, and it is one of the error codes listed at this
    KB article.
    I suggest you run the System Update Readiness tool and check if the error still persists.
    There is a similar thread for your reference.
    https://social.technet.microsoft.com/Forums/en-US/0b3d0479-b9c0-4551-a623-1519ce7584af/error-when-installing-sql-server-2008-r2-rtm-on-windows-server-2008-r2-foundation?forum=winservergen
    Thanks,
    Lydia Zhang
    If you have any feedback on our support, please click
    here.
    Lydia Zhang
    TechNet Community Support

  • When I try to download the newest version of iTunes, I get the message : "An error occured during the installation of assembly "policy 8.0 Microsoft VC80.CRT type= "win32-policy".version="8.0.50727.6195.public Key Token="1fc8b3b9a1e18e3b.processorArchitct

    When I try to download the newest version of iTunes, I get the message : "An error occured during the installation of assembly "policy 8.0 Microsoft VC80.CRT type= "win32-policy".version="8.0.50727.6195.public Key Token="1fc8b3b9a1e18e3b.processorArchitecture = "x86" Please refer to help and support.
    Ok I cant find a way to fix this so I basically cant use my Verizon Iphone 4 because it wont connect on an old version...

    OK.  You may have to reinstall everything from scratch but follow following steps:
    1. Go to Microsoft website to fix install and Unistall problems. Click "Run now" from Fix it to remove all iTunes & related installer files:
    http://support.microsoft.com/mats/Program_Install_and_Uninstall
    Be aware that Windows Installer CleanUp Utility will not remove the actual program from your computer. However, it will remove the installation files so that you can start the installation, upgrade, or uninstall over.
    2. You should remove all instances of iTunes and the rest of the components listed below:
    it may be necessary to remove all traces of iTunes, QuickTime, and related software components from your computer before reinstalling iTunes.
    Use the Control Panel to uninstall iTunes and related software components in the following order:
    iTunes
    QuickTime
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support (iTunes 9 or later)
    Follow the instructions from Apple article listed here: http://support.apple.com/kb/HT1923 to remove all components
    3. Reboot your computer. Next, download iTunes from here:http://www.apple.com/itunes/download/ and install from scratch

  • I keep getting the message "an error occurred downloading this content" does anyone know how to fix this?

    I rented a movie but I can't seem to play it. I keep getting the message an error occurred downloading this content. Please try again later. It doesn't tell me how much later, but I've tried off and on for a week and I can't seem to resolve it.

    Welcome to the Apple Community.
    This sometimes resolved by unplugging the Apple TV for a few moments and trying again, others have found restarting the router may help. Another reason that message can occur is when the download speed is extremely slow, have you tested your Internet download speed with speediest.net.

  • I'm trying to convert a pdf file to word and I continue to get the message "An error occurred while signing in".  I believe I'm properly signed in, I can see my account, etc.  Any suggestions?

    I'm trying to convert a pdf file to word and I continue to get the message "An error occurred while signing in".  I believe I'm properly signed in, I can see my account, etc.  Any suggestions?

    Hi tkam,
    It sounds as though you just need to install the latest Reader update. Please choose Help > Check for Updates in Reader and install the latest update. An update to Reader 11.0.07 resolves this sign-in issue.
    Let us know how it goes!
    Best,
    Sara

  • I'm trying to convert a pdf file to word and I continue to get the message "An error occured while signing in".  I believe I'm properly signed in, I can see my account, etc.  Any suggestions?

    I'm trying to convert a pdf file to word and I continue to get the message "An error occurred while signing in".  I believe I'm properly signed in, I can see my account, etc.  Any suggestions?

    Hi tkam,
    I think I may have just the answer you're looking for. If you're converting from within Adobe Reader, please choose Help > Check for Updates and install any available updates. This error was resolved in the most recent Reader update. (You can also try signing in directly via the ExportPDF website at https://cloud.acrobat.com/exportpdf.)
    Please let us know how it goes.
    Best,
    Sara

  • HT1645 I am trying to burn an imovie I made. I keep getting the message multiplex error. The imovie will not burn to a idvd.

    I am trying to burn an imovie to a DVD. I keep getting the message multiplex error. I do not know what to do. Please, can anyone help me.

    Hi
    Multiplexing error is a very complex problem due to many things (long long list following) - one common but not obvious reason is that material on the iDVD menu goes outside the TV-Safe area (or just touching it).
    So first - turn on TV-Safe area and move any object well inside of this.
    Wide screen stretched - usually (as I think) it is due to making a 4x3 movie in a 16x9 wide-screen project OR the other way around. This forces one to on flat-screen TV (or other) set the presenting view right - My has 4x3, wide-screen, zoom and auto-wide-screen and I have to switch this by my remote for some DVD I've made "wrong" way.
    Now my long long list on Multiplex Error
    LONG LONG LONG LIST
    Multiplexing Error
    PART One.
    Use of strange video/audio material e.g. .avi, .wmv, .mp3 etc.
    I only use.
    Video - StreamingDV (miniDV tape via FireWire) and
    Audio - .aiff (as on audio-CDs) (else converted to this .aiff 48KHz)
    Photo - .jpg (.bmp known problematic)
    Chapters !
    A.    Using strange letters in video project name e.g. +,/; etc. keep to a-z and 0-9 strange letters in project name e.g. +
    as described by Donnyboy69.  Does the title of your project have any symbols or decimal points in it. If so, that is why you are getting the error. I had a project that had a + sign which caused the same problem. I renamed it without the symbol and low and behold, it worked.
    B.    Location of Chapters
    • Can’t be at start or end of movie (Skip first/start one - iDVD sets this by it self. At the End - no need)
    • Not in a transition (or within 2-3 seconds from it)
    Important when from iMovie HD6 or previous - Now also observed when using FCE 4
    PART Two.
    from Robert Modero.
    "Multiplexing Error. Problem during initialization of tracks"
    Simply remember to add subtitles to your Quicktime files and menu buttons.
    Once I did that, I was back in business.
    from Boise Jim
    Do a safe reboot (by holding down the shift key until you see the spinning gear on gray background, then release, then restart when your start-up screen appears).
    I always makes a DiskImage first and test this so that it runs OK
    I use only - Verbatim DVDs
    I use only - DVD-R
    I burn at an as slow speed possibly e.g. x1
    This gives good DVDs
    PART Three.
    Multiplex Error
    Chuck, Chicago 2/7/2009.
    Back again. Here is what I have found to work. I also have and use a LaCie DVD-R/RW DL external drive and a LaCie external hard drive as well. Since yesterday I have tried a few ways to burn a themed iDVD project having four 56 minute movies on it, amounting to 226 minutes onto a DVD DL disc, capacity 240 minutes. Apple tech support really didn't know what to do but gave me a very good tip. I had two options left. Apple tech support's tip was to try disc image. One of the replies on a thread with this subject said not to, but my experience today is good. Put your project onto "Burn to disc image," under "iDVD, file." Yesterday encoding took me 23 1/2 hours. Overnight for iDVD disc image, encoding took 21 1/2 hours (again) while I slept. This morning I tried to copy/burn disc image to a DVD with Roxio Toast 7, and it stopped near the end of the burn with some kind of "error" message. So then I tried Utilities> Disc Utility> Burn icon, and followed it through. Be sure to click the DVD DL drive in the window "Burn disc in.". I had one other problem though. At the end of a 46 minute copy, it started to verify, and at the end of verify it rejected the burn. So I tried again, and when "verify" appeared, I clicked on "Skip." The disc finished burning and is doing fine and well. A long and tortuous process, but at last something works. I made several additional copies using Disc Utility. Best wishes. Chuck, Chicago.
    2. Disconnect any other external devices not absolutely needed.
    e.g. external USB/USB2 hard disks, other FW hard disks etc.
    3 Chapter marks in transitions - minimum 2 sec from
    FROM Bev. (Not a 'guy' but I will answer!)
    First, I do not think that mixing wide-screen and standard makes a difference in iDVD.
    Second, you should use a better brand of DVD disk. Also, many of us have experienced fewer problems on playback with DVD-R disks. Recommended brands here are Verbatim, Maxell and Taiyo Yuden. Memorex and TDK are not consistent and may not give you a correct burn. They apparently have fewer layers in the composition of the disk. I have always used Verbatim DVD-R disks and have not had any burn problems.
    Also, choose a slower burn speed, 4x or less.
    Third, to determine if the iDVD project will burn properly, create a disk image file (from within iDVD, go File->Save as Disk Image) and test it. Mount the disk image and then open DVD Player (in Applications) and view your project. If it plays correctly, you can then burn the actual DVD disk from the disk image file using Disk Utility.
    From. Boise, Idaho
    I did everything I've seen suggested, but a friend (who used to be an Apple Genius) suggested that I do a safe reboot (by holding down the shift key until you see the spinning gear on gray background, then release, then restart when your start-up screen appears).
    It worked, and I got a clean burn from iDVD.
    Hopefully this can help other people.
    by dheb0422
    Well, I finally got it, and it was odd enough to post here incase anyone looks this topic up again. Many things were tried, including burning the unedited film, the edited film without titles and chapter markers, abbreviating the chapter markers in case length was the issue (remember the old iMovie used to truncate them when moving to iDVD?). In the process, I noticed that one, and only one, chapter marker was on the same line as the title marker. All the others were on the line above. The only way I seemed able to change that was to clip a few seconds of film. After that last clip, the offending marker took a place on the line above, as were all the others. That run published, compiled completely and burned. That's one for the books.
    One user more writes
    To add my experience with Multiplex Errors using iDVD (7.0.4), I recently created two iDVD projects
    Video from both passed from FCE 4.01 with chapters
    One project worked fine in creating disk image file
    The other gave Multiplex Errors
    I tried suggestions to remove special characters and no chapter marks at beginning, but nothing worked
    Note that I've used iDVD for dozens of projects and this is first time I've run into Multiplex Errors
    Anyway, for problem project, I tried an experiment where I removed all chapters in FCE and passed to new iDVD project
    This time multiplex errors gone
    So had something to do with chapters
    So now I tried numerous experiments to remove individual chapters and try again creating disk image with new iDVD project
    After numerous tries, I was able to narrow problem down to 1 "Bad" chapter mark
    That is, when I left the "bad" chapter in my FCE project and passed to iDVD, iDVD gave multiplex error
    When I removed "bad" chapter mark (and others in), no multiplex error
    As a final experiment, I moved "bad" chapter mark about 5-10 sec's beyond original point and passed to iDVD, the multiplex errors now magically went away and I was able to finally create my disk image.
    I have no idea why this worked, but thought I'd mention here in case someone else runs into similar problem.
    Rich839
    In addition to Bengt's fine advice, burning errors can occur if you have located any of your menu buttons wholly or partly outside of the safe TV viewing area. Go to your main project menu, then click on View/Show TV Safe Area, to check. Drag into the safe viewing area any buttons that are outside the safe viewing area.
    Russ One - suggest this
    Multiplex Error-There was an error during muxing preparation
    One thing that worked for me was to export the video w/o chapter markers as a self contained movie (thereby not loosing the edits & etc). Then make a new FCE project and import that movie into a new sequence and add the chapter markers. I've used "-", "&" and "," with no problem in the chapter names. Removing the markers or exporting without them did solve the problem but renaming them with just numbers 1,2,3....5, did not solve the problem and since this problem seems to happen with with iMovie as well, it would suggest the problem is in the video or audio and in combination with the chapter markers iDVD just can't handle it. The only other possibility is that both iMovie and FCE share the same or similar chapter marker code that some how is corrupting the markers.
    Summary - What to try
    1. Chapters
    • Only A to Z and 0 to 9 in chapter title
    • No Chapter mark at very beginning of movie
    • No Chapter mark in or within 2 seconds from any transition in movie
    2. TV-safe area for buttons (no one outside this)
    3. Safe re-boot
    4. No other external devices connected - that are not needed
    SDMacuser adds to this
    • On #4 ... No ext. devices. Some think this applies mainly to ext. FW. Not the case. Also applies to ext. USB2 as well (not to mention flash drives too).
    Do not leave 3rd party devices / camera / camcorder plugged in unless it is being used with iDvd's One Step process. Certain web cams can trigger this also (especially ones with added features like LED light/s that draw additional power from the FW or USB bus).
    5. Minimum of 25Gb free space on Start-up hard disk
    6. Make a DiskImage first - reduces where problem originates
    7. Trash iDVD pref. file
    8. Make a new iDVD project
    9. Movies in project with same aspect ratio e.g. 4x3 or 16x9
    10. No other programs/applications running during iDVD process. e.g. Internet, screen & energy savers
    Yours Bengt W

  • I keep getting the message"an error occurred while trying to access the service".  does anyone know what i need to do to resolve this problem.  I am trying to convert apdf file for msword?

    I keep getting the message"an error occurred while trying to access the service".  does anyone know what i need to do to resolve this problem.  I am trying to convert a PDF file for ms word?

    Adobe Reader is free; but you may have paid for the ExportPDF service.
    Contact Adobe Customer Care and click on the Still need help? button to chat with an agent.
    [topic moved to ExportPDF forum]

  • I get the message "an error occurred while processing this directive" but no hint of what the error

    I am trying to download Photoshop for the first time. I get the message "an error occurred while processing this directive" but no hint of what the error is or what I should do about it.

    Graham which version of Photoshop are you referencing?  Also which operating system are you using?  Finally can you please post a screen shot of your error message?

Maybe you are looking for