WTK 2.5 hangs

Hi,
In my work place we work with WTK22, but it doesn't have emulation classes for jsr 179 and 82, which is a must for me, so i tried WTK25.
it has a problem though.
every time i run the emulator and creates external event (sms\Location request the emulator displays an Alert screen that asks if to allow the communication, but there is hangs.
I run it with EclipseMe and paused the threads only to find out they are all in wait state :-/
Bug ? misconfiguration on my behalf ?

I have faced a same problem earlier. My program structure was as follows:
1. When a user selects a command key after editing a message the commandAction function is fired.
2. I was sending the sms from that function. And it was hanging after the alert.
The error was that, sending and message outside (using GCF) is not allowed from the commandAction event. (I don't know why). So I created a new thread in that commandAction event and then from the run method of that thread I sent that sms, and it is working fine. The structure of the program must be:
public class MyMidletClass extends Midlet implements CommandListener,Runnable {
//.... all your stuffs here
public void commandAction(Command c, Displayable s)     {
    //Check if it is required to send SMS then do the following below
    new Thread(this).start();
public void run() {
    //Here will be the code for sending SMS..
}Hope it helps :)

Similar Messages

  • Emulator hangs when VPN used

    Running WTK2.5.1 on Linux Fedora Core 6, kernel 2.6.20, with JDK 1.5.0 (but this has happened with different WTK, Linux, kernel, JDK too). Using Cisco Systems VPN Client Version 4.8.00. The emulator hangs whenever the VPN is active. The emulator will display, and react to menu buttons, but will not respond to pressing any of the emulator phone keys. It prints the message "Running with storage root DefaultColorPhone" but does not seem to even run the constructor of the midlet. I am running the midlet from
    emulator <classfile>

    Running WTK2.5.1 on Linux Fedora Core 6, kernel 2.6.20, with JDK 1.5.0 (but this has happened with different WTK, Linux, kernel, JDK too). Using Cisco Systems VPN Client Version 4.8.00. The emulator hangs whenever the VPN is active. The emulator will display, and react to menu buttons, but will not respond to pressing any of the emulator phone keys. It prints the message "Running with storage root DefaultColorPhone" but does not seem to even run the constructor of the midlet. I am running the midlet from
    emulator <classfile>

  • Cldc midp wtk confusion

    hi,
    this might be a j2me-newbe's stupid question, but i have the following problem:
    in cldc 1.1 the method interrupt is defined for the class thread, while in cldc 1.0
    it is not. in the javadoc of wtk20 the interrupt method is not available for thread,
    in wtk22 it is. in
    http://developers.sun.com/techtopics/mobility/getstart/articles/survey/
    i can see that both midp1 and midp2 can be on top of cldc1.0 and cldc1.1 as well.
    so my QUESTIONS are:
    -for example the specification of the nokia 6600 says its a cldc1.0 mobile. is it possible to write some software, that stops threads on such a mobile anyway,
    since i can use midlets created using wtk22, which includes the thread.interrupt-method ?
    -what exactly does the wtk represent, an implementation of cldc or midp?
    thanx
    eddi

    This is how I usually deal with such things: I display a form on the screen while the network processing is done in the background. In the commandAction() method of my main class I start 2 threads: one which will display the special form and another one which does all the data processing.          public void commandAction(....) {
                      WhileProcessingThread whileProcessing = new WhileProcessingThread(this);
                   whileProcessing.start();
                Thread actualProcessing= new Thread(this);
                actualProcessing.start();
               }The first thread (whileProcessing) is handle by a special class (WhileProcessingThread) which takes a Form object and displays the content of the form in the run method:          public void run() {
              while (true) {
                   if (!doneProcessing) {
                                   //display something on the screen
              } Also on this form, I have a 'back' command which returns the application to the previous screen, so that if the data processing takes forever, then we can return from that screen.
    The thread which does all the data processing (actualProcessing) is handled in the main class which in my case implements the Runnable interface; in the run() method, after all the processing is done, I simply set the variable doneProcessing to true and join on the thread so that I assure that the thread which displayes the form will end.
    Again, if the application hangs forever, I have the back command so that I can safely return to my previous screen. Almost all my applications which involve "network processing" are done like this and it works every time.
    Hope I was clear with my explications, which might not be the case because here is kind of late :)
    Mihai

  • Built in security domains are missing on windows after installing wtk

    hi,
    i am just experimenting a bit with j2me technologies so i have installed the latest wtk on my windows machine from sun. but a problem has raised with built-in security domains.
    if i run emulator.exe -Xquery with my Windows user then the security domains lines are empty.
    example: DefaultColorPhone.security.domains:
    in case i launch this with Administrator it works fine
    example: DefaultColorPhone.security.domains: manufacturer,minimum,identified_third_party,unidentified_third_party,maximum
    everything else (environment etc.) is the same but the user account. my user name is in the form of firstname.lastname so in my opinion this won't be a whitespace issue. i have also tried uninstalling the wtk then installing with my user but it did not help.
    do you have any clue what could go wrong?

    Ron Apra wrote:
    I installed Leopard on a G5 tower with 2 new 750 GB's seagate drives. Disk Utility shows a total capacity of 698.6 GB's out of 750 GB's so I am missing 50 GB's. Also first aide hangs up on Verify/repair disk permissions. It looks like I am dealing with an "erase" issue since their must be other files on the new drives that are causing problems, My new thoughts on this are:
    (1)For MacHD 2, in DU click on the "hard Drive(698.6 GB ST3750640AS)/security option-zero out data/erase
    (2) For MacHD 1 (Leopard) insert the installation disk/go to option-erase and install/ok
    Will this work or is there a better way to go about it.
    Thanks for looking at my Post
    Ron
    Most drives are listed as unformatted size and take advantage of the "1000" kilo which is really 1024.
    Also a system with folders, &c. takes up space with no actual files.
    Your "loss" of less than 10% is normal and expected.
    For example, the "250GB" HD on this MBP as reported by DU says:
    Total Capacity : 232.9 GB (250,059,350,016 Bytes)
    But I have not lost 17GB.
    Since your drive is 3 times the size of mine, I would expect to see a "loss" of 51 GB (3x17) which is exactly what you are reporting.

  • Remote debug midlets w/ WTK 2.1

    Hi,
    i am encountering strange problems when trying to remote debug a MIDlet.
    I started the WTK emulator with ANT with correct settings. I connect my IDE
    in a remote Debug session to the Emulator. The emulator receives the
    connect and starts the application.
    So far, everything is fine. But when i set breakpoints, the MIDlet wont stop. I
    dont get any information in my debugger, other than "session connected".
    No Frameinfo or any other stack messages.
    Anyone allready tried that and succeeded?

    I have been having a similar problem. Have you tried setting a breakpoint on the very first line in your application immediately inside the Midlet subclasses' constructor and seeing if the application will break there?
    I find that my remote debugger (IntelliJ) can connect and it will break very early on in the program, but as I travel through the program either by stepping or running, the debug session will hang at some random place - generally failrly early in the application. I usually only get a couple of methods into the program before the debugging gives up, so this might cause the effect you were seeing.
    I'm not sure of the fix yet - I was thinking of trying increasing the memory on the emulator and if that doesn't work then using Eclipse as the remote debugger. What IDE are you using?

  • My Excel with PowerPivots acts weird, it hangs when i try to change font color

    Hi 
    I am facing a weird issue using PowerPivot in my workbook, there is a worksheet named Charts in my workbook and all the charts i am using resides in that worksheet. Whenever i try to change the font color in that sheet, my excel's color palette goes blur
    and then everything just freezes and turns black. This problem is happening only with Charts worksheet, when i try to change the color in other sheets, it works just, the problem is only with Charts sheet. File
    size is 16 MB, there are just 10 pivot tables with some calculations and some calculated fields. There are no add-ins other than PowerPivot. 
    Thanks,
    Shanker

    Hi,
    In regarding of the issue, please provide us more information to assist you better.
    Do you receive any error message?
    Which Excel version are you using?  Excel 2013 or other?
    Which workbook format are you using? XLS or XLSX?
    Are you performing any specific task?
    According to your description, this issue seems only occur with the special worksheet "Charts".
    Firstly, I recommend we copy all of the content to a new/blank Excel file to test.
    If it works fine, this issue might be caused by the "Charts" workbook itself. We'd better check the "Charts" workbook. Or re-build the file with a new workbook.
    If it still makes Excel hang with a new file, this issue might due to the content. Please check the content first.
    Secondly, we could follow below KB to troubleshoot this issue:
    https://support2.microsoft.com/kb/2758592/en-us?wa=wsignin1.0
    Thirdly, if the issue still exists, we may try to collect the Event log and App crash dump file to do advanced troubleshooting.
    Event log:
    http://windows.microsoft.com/en-US/windows7/Open-Event-Viewer
    App crash dump file:
    First enable app crash dump collection by copying following words into notepad, saving it as dump.reg and importing
    it:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\localdumps\EXCEL.EXE]
    "DumpFolder"=hex(2):63,00,3a,00,5c,00,63,00,72,00,61,00,73,00,68,00,64,00,75,\
      00,6d,00,70,00,73,00,00,00
    "DumpCount"=dword:00000010
    "DumpType"=dword:00000001
    "CustomDumpFlags"=dword:00000000
    Then, open Excel
    to repro the issue. If crash issue appeared, please find the crashdump file under c:\.
    To further help you, please upload this file into Skydrive and shared the link here.
    Also, you can try to analyze dump by yourself if you would like to:
    How to analyze app crash dump file:
    http://blogs.technet.com/b/askperf/archive/2007/05/29/basic-debugging-of-an-application-crash.aspx
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Just installed Firefox 4. It hangs when I open any website and type in, for example, an ID, or even just click on something, for example, "Compose", in my webmail site.

    Here's the detail of what happens.
    1. Turn on computer and then click on Firefox icon on desktop.
    2. Firefox opens. Everything looks OK. Mr Bunsen's graphic is working fine.
    3. Click on any webpage link. For example, a newspaper or an online webmail page. All looks OK until
    4. Click on anything or type anything, such as in ID in a box, and bingo, the top line of Firefox goes from dark blue to very pale blue and the computer is hung. You cannot get out of Firefox or get Firefox to work.
    5. Switch off computer.
    Is this perhaps due to a clash of Add-ons. I run Avast anti-virus. McAfee came with Firefox 4 and I did not reject it. Is it conflicting wth something in my system and causing it to hang?

    You can modify the pref <b>keyword.URL</b> on the <b>about:config</b> page to use Google's "I'm Feeling Lucky" or Google's "Browse By Name".
    * Google "I'm Feeling Lucky": http://www.google.com/search?btnI=I%27m+Feeling+Lucky&ie=UTF-8&oe=UTF-8&q=
    * Google "Browse by Name": http://www.google.com/search?ie=UTF-8&sourceid=navclient&gfns=1&q=
    * http://kb.mozillazine.org/keyword.URL
    * http://kb.mozillazine.org/Location_Bar_search

  • I upgraded to the latest version of Firefox but it hangs when I use a search site such as Google or Bing. How can I fix this?

    putting a search option in the search box to the right of the address bar opens up the full search window but then Firefox hangs.

    Your UserAgent string in Firefox is messed up by another program that you installed, and those websites don't know you are running Firefox 3.6.3 (which is what you do have installed).
    [http://en.wikipedia.org/wiki/User_Agent]
    type '''about:config''' in the URL bar and hit Enter
    ''If you see the warning, you can confirm that you want to access that page.''
    Filter = '''general.useragent.'''
    Right-click the preferences that are '''bold''', one line at a time, and select '''''Reset''''',
    Then restart Firefox

  • It hangs when playing games

    My system is Windows 7 - 64 bit operating system
    I've used Firefox for many many years and always praised it compared to EI. I am afraid I wont be able to praise it much more. It stinks. It hangs mostly when I am playing games or looking at pictures or videos. Its worse when on Facebook but also happens on other web site. I did all the troubleshooting, updates, remove old versions and re install, disable add ons all and all Its driving me insane. Can you solve the problem with a new versionof Firefox or do we have to flush the darn browser for good.
    Thank you

    anyone has a solution until a new version comes out?

  • When I boot up it hangs on the login screen for awhile, why?

    I have a mid 2011 Macbook Air 13".  It came with Lion but I recently updated to Mountain Lion.  When I wake the laptop from sleep everything is fine.  If it's been awhile since it slept (a couple of hours), the login screen hangs.  What happens is that it boots like normal and looks like everything is correct, but it won't let me type in my password.  After 10 seconds or so I can see a cursor come up but it won't let me type (but anything I do type at this point will later fill in the field after another 2-3 seconds or so).  One other thing that's weird is that when the screen first comes up it shows the battery percentage from when I put it back on the charger, then after everything catches up, it changes to show 100%.
    I hope I explained the problem well enough.  Basicly a "wake from sleep" is fine if it hasn't been long since the laptop slept, but if it's been awhile it takes about 15-20 seconds to boot up.
    Ideas?

    Here are some suggestions based on my recent issue with unable to get Mavericks up after upgrade - The Apple geniuses just simply couldnt figure this one out...despite it being in their shop for 3 days (They probably did not look at it...and asked if they can just wipe out everything and install fresh...i had said NO):
    Restart computer and hold Cmd+V when you hear chime. This will start the computer in Verbose mode.
    See the messages and see where the system boot fails. In my case, it was some backtrace IOStorageFamily issue with com.paragon-software.
    Google may be able to solve your Apple issues - just type the error message in and see if you get any useful suggestions. in most cases - this would be some faulty 3rd party drivers.....
    In my case, it was something stupid i had probably installed....I had to boot to safe mode (Hold Shift at boot chime) - open Terminal, delete the folder com.paragon-software.kext from System/Library/Extensions....that fixed the problem. Mavericks is working great now....
    Let me know if your debugging thing works...

  • Firefox hangs on opening requiring force quit I have snow leopard mac It hangs when I try safe mode. I need to know how to remove all traces of firefox on my mac so I can reinstall. I have tried terminal as advised on firefox webpage. Please advise m

    Firefox hangs on opening requiring force quit I have snow leopard Mac It even hangs when I try safe mode. I need to know how to remove all traces of firefox on my mac so I can reinstall. I have tried terminal as advised on firefox webpage. Please advise me
    == This happened ==
    Every time Firefox opened
    == I tried to update firefox add-ons ==
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    Try a new profile. See [[Recovering important data from an old profile]]

  • I am having a problem opening my browser, the broswer is hanging up after slowly opening

    Hello, I have been having trouble with my firefox browser for quite some time now, it just stopped working on me about 5 or 6 months ago. I have switched over to Internet Explorer which has still been working fine. I like using Firefox much more than Explorer these days, but I am unfortunately not good much with fixing computer problems and have pretty much extinguished all my available options for repairing it myself.
    The problem with Firefox is now when I click on the shortcut link on my desktop, it takes a good 5 to 10 minutes to open up the browser now. Once it does finally open, you cannot type or click on anything it is hung up and will not allow you to go to another site(the home page will still load, with current news and other information)
    I cannot remember anything that would have caused it to crash or get hung up like this, but like I said I am not a computer expert by any means. I do know that I am ready to get Mozilla back to running smoothly as before, I had just gotten really used to it(I had been using internet explorer).
    I also uninstalled Firefox completely and reinstalled it, I figured if nothing else I tried worked that usually is the best option...it still did/does the same thing, hangs up everytime you try to run/open it.
    I checked your online solution for what to do on a hanging first page, I saw something about pentium 4's running Windows Vista or XP...my computer runs Windows 7 (was actually purchased running the terribly bug ridden and error-prone Vista, and lucky I was able to obtain a free upgrade to 7). So I was thinking maybe that had something to do with it, I had some problem in the past, with what I cannot remember, but it traced back to something from when Vista was on my computer(even though it was no longer my operating system I'll be darn if it wasn't still causing me headaches! How fitting.)
    My computer in question is a Dell Studio XPS 1640 which I bought new almost two years ago exactly)

    Did you check what I would consider the first place to look:
    * http://kb.mozillazine.org/Problematic_extensions
    If the site is still down (at least 12 hours) when you read this try [http://webcache.googleusercontent.com/search?q=cache:http%3A//kb.mozillazine.org/Problematic_extensions Google's cache]
    Link or url would make it easier to see which page you tried rather than "your online solution for ...".
    * http://kb.mozillazine.org/Firefox_hangs ([http://webcache.googleusercontent.com/search?q=cache:http%3A//kb.mozillazine.org/Firefox_hangs cached version])
    * http://kb.mozillazine.org/Firefox_crashes ([http://webcache.googleusercontent.com/search?q=cache:http%3A//kb.mozillazine.org/Firefox_crashes cached version])
    * [https://support.mozilla.com/kb/Firefox%20hangs#os=mac&amp;browser=fx4 Firefox hangs | Troubleshooting | Firefox Help]

  • When I open Pages from the dock, the page comes up but immediately hangs up with the

    When I open Pages from the Dock,  the page comes up on the screen but immediately hangs up with the rainbow circle spinning.  I finally have to force quite to make it go away.  It does not ask me to choose a template.  This is sporadic, sometimes working, sometimes not.  What is going on?

    Helo,
    Did you try to delete Pages' preferences file(s) in the folder your-user-name/Library/Preferences ?
    There are one or more (depends on your OS X version) file like "com.apple.iWork.Pages.plist"
    You can also repair permissions with Disk Utility in the folder Applications/Utilities.
    Choose the hard drive were Pages is and click the button "Repair permissions".
    Or you can re-install Pages.
    Hope this will help.

  • Z77A-GD65 Multiple BIOS Issues - B4 Hang, Splash Screen Blinking

    Back in November 2012, I built a home server with a Z77A-GD65.  Lately, I've noticed some strange things happening that I've been trying to research but to no avail.
    First off, I get the B4 code hang-up whenever I'm booting.  This doesn't matter if it's a cold boot or a reboot, it hangs on B4 for about 10-15 seconds, flashes 92 really quick, and then goes to A2 which it stays for another 5 or so seconds.  After that I get the MSI splash screen for about 1 second, then it blinks 5 times.  After that it goes into Windows just fine.
    The blinking is a new issue, the B4 hang is not.  I've read from multiple posts that this is a USB issue.  When I disable USB legacy support, the issue goes away, but of course then I can't have legacy support.  I have yet to figure out what exact device is causing it.  In the process of trying to figure this out, I updated BIOS to A.A0.  After updating to this version of BIOS the splash screen blinks 5 times before going to the "Starting Windows" splash screen.  This is a more difficult issue to figure out why it's doing this because if you search for "BIOS" and "flash" or "flashes" or "flashing", you typically get results for flashing your BIOS.   Hence, why I'm using the term "blinking".  But even then I can't really find a solution out there.
    I also happened to see that the website for the Z77A-GD65 is showing a newer BIOS version, but I'm unable to flash this (at least using M-Flash).  I threw it on a USB, re-enabled USB legacy and whenever I click on it to install, the BIOS screen hard locks.  The screen just freezes exactly where it's at in the BIOS and the mouse is dead.  However, I can CTRL+ALT+DEL on the keyboard and it will reboot the system so I don't need to power cycle the computer.  Not sure why this is happening either.  Perhaps I need to flash this a different way?  Maybe I don't need to flash this at all?
    I could really use some input here on why this is happening.
    As for the specs on my system, they're as follows:
    i7-3770K overclocked to 4.2 Ghz by using the Turbo Mode in BIOS
    32GB Komputerbay DDR3 PC3-12800 1600MHz DIMM with Low Profile Blue Heatspreaders Quad Channel RAM | 9-9-9-24 XMP ready
    AMD PowerColor 7870 Myst Edition GPU - currently not overclocked although overclocking this doesn't seem to affect any issues
    2 - 128 GB Corsair SATA III SSD - one runs the OS, the other I use to load games from
    2 - 500 GB Seagate Barracuda 7200 RPM Sata II HDD's mirrored via Windows 7
    1 - 750 GB Seagate Barracude 7200 RPM Sata II HDD
    1 - 1 TB Western Digital MyBook USB 2.0 external
    2 - 3 TB Seagate USB 3.0 external
    ASUS DVD Burner - not sure which one, it's a cheapy $20 from Newegg
    1 - PCI USB 3.0 expansion card
    Antec TruePower New TP-550 Modular 550W Continuous Power ATX12V V2.3 / EPS12V V2.91 SLI Certified CrossFire Ready 80 PLUS BRONZE Certified Active PFC "compatible with Core i7/Core i5" Power Supply
    NZXT Switch 810 gunmetal - currently have 4 fans running but plan on more, also the Switch 810 has the multi-card reader in the front with 1x SD Card, 2x USB 2.0, 2x USB 3.0
    for peripherals
    1 - Microsoft 360 Wireless controller adapter (legit one, not the knockoff although I had a knockoff prior to getting the real deal)
    1 - Logitech Wireless USB Keyboard with Touchpad
    I tried to be thorough.  Thanks in advance for any help!

    Quote from: PirateDog on 26-August-13, 12:45:18
    Probably a USB device problem.
    This is a candidate, as well as mouse and keyboard. Disconnect USB devices one at a time to find the culprit.
    A lot of devices running. PSU a +12V single rail or is it multi rail? A rail going to the graphics or components may not be enough amps. My best guess is the card reader.
    For UEFI/BIOS flashing, select your mainboard here and use the forum flash method;
    I'll definitely try unplugging some of these USB devices to see if that helps with the B4 hang issue.
    As for the PSU, according to the description for it on Newegg:  "Four industry-leading independent +12v rails are provided for more stable and safer power output."  It has two rails going to the GPU.  The GPU is a new addition to the system and so I wasn't running it until recently.  The issues were occurring beforehand, but you're right that this PSU is underpowered for the rig considering PowerColor recommends a minimum of 500w.  I'm going to be buying a larger capacity one sometime in the very near future.  Any recommendations on good modular PSU's?  What's a good way to tell what wattage to get?
    Thanks for letting me know about the forum flash method.  I'll be back later when I have some results.

  • Switched computer cases and now I hang at the MSI splash screen.

    Hey guys. I've never had any problems with building my PC until yesterday on the simplest of tasks.
    I decided to buy a new case and switch everything over but when I did it decided to hang on the MSI motherboard splash screen.
    Specs:
    * MEM 4Gx2|G.SKILL F3-12800CL9D-8GBXL + one more stick.
    * Processor = AMD Phenom II X6 1055T Thuban 2.8GHz Socket AM3 125W Six-Core Desktop Processor HDT55TFBGRBOX
    * Graphics Card = HD 7950
    * Motherboard = MB MSI| 880GM-E41 880G R
    * PSU = CORSAIR CX series CX500 500W ATX12V v2.3 80 PLUS BRONZE Certified Active PFC Power Supply
    * OS = Windows 7 64Bit
    * No overclocking.
    So far I've done the following. 
    * Removed battery/Jumped the bios. 
    * Checked and rechecked each RAM stick. 
    * Removed all connections. 
    * Removed graphics card etc. 
    Any help would be greatly appreciated, Christmas has kind of killed my budget for a new build.
    Thanks!
    These are as far as I can get before everything stops working.

    Really strange.
    Have you made sure that there was will be/was no contact between mobo and case (apart from spots where the contact should be made) ? This could've break the motherboard.
    Check ALL of the power supply cable connections between it and mobo.
    Now something weird which doesn't seen to make any sense... Try to put your motherboard back to the old case.
    That's all my suggestions, apart from that, if you're still able, then get it on a warranty and RMA it.
    Good luck.

Maybe you are looking for