Problem in WAG120N

Dears
I have a problem in my linksys router WAG120N
When I change the modem ip address
I cannot acces the router and no connection and no dhcp and not connecting to WI FI
The only way to open router page is to reset it to default and try to configure it again ... then the dhcp also didon't work and. Cannot connect to wi fi also
I re installed the framework again but no defiance
How to fix this problem
sorry about my english is not good
Regards
Solved!
Go to Solution.

Hi mgawad9. I can see that you're experiencing a lot of challenges with the Linksys unit. I have few questions for you:
Has this worked fine before?
How did you access the WAG120N page, is it wired or wireless?
Have you tried using another computer for isolation?
Make sure that you're using the latest firmware of the modem/router. You may refer to the link here on how you can upgrade or reflash the firmware. After a successfull upgrade, you need reset and reconfigure your modem/router.
Let me know if it works.

Similar Messages

  • Linksys WAG120N DSL light problem

    Hi!
    Yesterday I bought the  Linksys Wireless-N Home ADSL2+ Modem Router WAG120N (Annex-A version). I configured the modem/router and it was working very well. Today I was surfing the internet just fine and I left my computer for a few minutes, when I came back I noticed that there is no internet connection. The internet light on the modem was no longer on, and the DSL one was blinking. I turned off the device and then turned it back on but the issue was still present. I tried restoring the factory default settings and configuring the modem again but nothing seems to help (resetting the modem, turning off every device connected to it and restarting the modem/router). The DSL light keeps blinking, turns off for a couple seconds and then starts blinking again. The internet light only appears when I restart the modem and it flashes red just after turning the device on. I thought that there may be an issue with my ISP, but I connected my previous modem and it works just fine. I have no idea what's going on. What's really weird is that it was working just fine yesterday and today nothing seems to help. Do you guys have any ideas what may be the problem here?
    Solved!
    Go to Solution.

    fter spending hour's/days/weeks on reconfiguring/reflashing, checked with ISP side etc. I read numourous blogs/message, contacted Cisco/Linksys . Even I reflashed with thrid party firmware like Tomato, OpenWRT. Nothing worked. Even every message says better to throw this useless product.
    Finally, I make a decisision to work on two options.
    1. reflash with router with backward version - V1.00.12.(Just google you would find it from unauthorised sources)
    2. If it doesn't work then throw the product in dustbin.
    Believe me the option 1 worked and from last 2 weeks, I haven't faced any disconnection. And every device Xbox, Smart TV, smart phone is working with expected internet speed.
    I would keep this configuration/firmware till it works and if same issue occur then opt for option 2.
    I would recommend everyone to opt for option 1. It would really solve your problem. Otherwise you know the second option very well.
    All the best.

  • WPA2 Problems with Linksys WAG120N Router

    Hi,
    with this router (wpa2 and b+g+n) the connection lost after minutes and the routers hangs up.
    I will test today with b+g.
    Does anyone also have problems with this router and the pb?
    I don't want use WPA.
    Regards
    Volker

    I had problem with my Router... The playbook would not see the router, or when it would it would disconnect after a few seconds.. I changed one setting and fixed it. All I did was change the wireless channel it was set at 12 - changed it to 2 and it connects every single time now. I didn't change the wireless type or encryption, just the channel and it works 100% now. I did a few tests and it seems to work fine in any channel apart from 12 (maybe RIM didn't think anyone would use that?) If your set to automatic, worth setting it manually just in case. So worth checking.

  • Time Capsule With Windows Problems

    Hi,
    I have a problem with my TC, i read every thread here and in other forums.
    I spent Days and nights try to figure it out but with no luck at all.
    I desperate here as i just paid $500 to buy the TC and isn't working.
    *The Problem:*
    1.I configured my TC many times with all possible configuration, the airport is working fine (LED always GREEN) but whenever i try to access the HDD it gives me: Username/Password Error, Netbios problem (Win 7) OR Semaphore timeout period expired (Win XP)...
    2.When I restart the TC or the LinkSys It works one time perfectly but as soon as i change anything on TC or restart the computers cannot access again.
    3. I used 3 Laptops to test, i even changed the router but with no luck.
    4. Windows search and Minimum LAN Settings as suggested in the forums are changed but with no luck also.
    Settings:
    1. LinkSys (WAG120N)- Primary Router - connected to TC WAN port via Ethernet Cable.
    2. TC Firmware 7.5.1 - Came 7.5 and updated to 7.5.1
    3. Dynamic WAN IP, TC in Bridge mode, Static LAN IP (192.168.1.100)
    4. TC Conf: Create Wireless Network
    5. IP4 Conf is Manual, I put the router address 192.168.1.1 in the router address and in the DNS fields
    Please someone help me ....
    Tamer

    thnx Meherally posted as advised...
    moreover, i can access the airport utility perfectly, i can even erase the hard disk.
    and whenever i try to access the disk via the ip address, i gives me "Path not found" and when i diagnose this it gives me "the resource \\192.168.1.100 does not accept incoming connection for file sharing"
    Any Idea Please?

  • WAG120N - Can't see wireless network

    hi,just bought a linksys Wireless-N Home ADSL2+ Modem Router (WAG120N).... but the sad part is the wifi range isnt visible in my room, earlier i had a linksys Wireless-G ADSL2+ Gateway ...(WAG54G2),and earlier there was wi fi coverage in my room, technically speaking N wireless should provide more coverage than G wirless, but here the case is just the opposite. and i`ve placed the new modem exactly where i had placed the older one, what could be wrong??

    Hi,
       I`ve  tried all the channels possible.But still the wireless coverage is poor,.currently i`m on channel 6.My neighbours wifi which is one block away(approx50 metres away) and runs on G radio gives coverage in my garden area.But my own modem which is N radio band and should be giving 4  times more coverage,gives zero coverage in my garden area or any other area the moment i move 250 sq ft away from the modem.I`ve tried placing the modem in various corners of my house.Once i placed in the verandah as well.But still when i move at some distance the wi fi connection is lost and my neighbours wifi is in range.Currently i`ve shifted the modem and have placed it close to a window inside my bedroom.Even when i go and stand outside the window the wireless sginal drops coniderably whereas my neighbours wifi which is a block away and is a G radio wireless gives me better coverage.All my wifi devices are N compatible.Still the problem occurs.Mostly i use my ipod4 and my vaio laptop which are both n wireless devices.MY brothers room which is just above mine shows zero coverage even though i`ve placed the modem at the window.Kindly provide a solution.

  • Modo puente cisco linksys WAG120N

    Buenas tardes a todos, se puede poner en modo puente (bridged) el linksys WAG120N, pasa que lo configuro segun en modo puente (Bridge Mode Only), paso a seguir es conectarlo a un linksys RV082, aqui en el RV no me toma la IP de Internet (ej.: 189.200.200.200 ), esto mismo lo hice con un modem thompson y me funciono perfectamente, este thompson lo conecte en el puerto WAN1 de RV y ahi si me lo toma la IP 189.x.x.x y en el caso del modem WAG120N no me toma ninguna IP, sabran como hacer esta configuración??
    Gracias de antemano y saludos.
    Good afternoon everyone, you can put in bridge mode (bridged) the Linksys WAG120N, go to configure it in bridge mode according to (Bridge Mode Only), next step is to connect to a Linksys RV082, here in the RV did not take the Internet IP (eg 189.200.200.200) I did the same thing with a modem and it worked perfectly thompson, thompson you connect this port WAN1 in the RV and there if I take the IP 189.xxx and in the case WAG120N modem IP not take me any, will know how to do this configuration?
    Thanks in advance and greetings.

    Yes but I think Linksys should give me another one which is working right ? Why should i invest in another Router as i just bought it & its already too pricey here.
    I need an ADSL Wi-Fi Modem Router & there is only three models avilable here.One is this one which i'm using , WAG120N & the other two are  WAG160N & WAG320N & both of them costs more than triple than that of WAG120N.And no one is going to give me a replacement here.I can get the replacement but the same Router.I can not upgrade it without having to buy a whole new router which costs thrice than my current one.
    So, i would be highly oblized if Linksys can give me a replacement because only they can replace it with another model but Linksys India customer Care is only suggesting me that they can issue a replacement for the same model & can not give any other model.
    I sent my concern to the 2nd Level Technicians but have not received any reply.Feeling helpless at the moment.
    My posts are edited & most important parts are being deleted.Please do not edit my post.All i am wanting to get a suggestion for my problem.I do not want to bother you with my problems but the communities are meant mainly for that purpose so that we can help & support each other.
    Thank you.

  • WAG120N - Frequent Internet Disconnection Issue

    I have bought a Linksys WAG120N few days back & after i got it , i also updated it to the newest firmware from the Linksys site.The Firmware version for my product is , 1.00.12 Annex A.
    But i am getting a  frequent internet disconnection after installing the Router/Modem.I am not a newbie in this.I have done my CCNP with full marks & currently working in IBM India & i have enough knowledge on how to configure Routers.
    I have done the Flashing in the correct process & after Flashing , i did a 30-30-30 Reset as explained in this forum somewhere but the issue is still existing.
    I am listing below what i have done so far. :-
    1) After getting the Router , i have updated to the newest firmware & Hard-Resetted the Router as explained in this forum.
    2) Then i configured the modem with the values from my ISP.I have done it both manually & also tried the Linksys Setup wizard that came on the CD with the Product and the SETUP WIZARD HAS MY ISP ON THE LIST as well.
    3) I got the net connected after configuring but only for some time.After that , i am constantly getting disconnected from the Internet no matter what if i use the Wired or the Wireless devices to access the Internet.I tried setting the Router with both  wireless Security enabled & disabled.No luck in either cases.Almost all of the time i get a disconnection when the DSL Link is Steady on the WAG120N.So, this should not be a Line problem.Also i can access the Net with my ISP provided Modem.No problems at all.
    4) I tried uninstalling the Anti-Virus & the Internet Security program i use which is Symantec Norton Internet Security 2010.No luck.
    5) I have Formatted & did a Clean Install of Windows 7 X64 & Windows XP SP3 & tried running the Router on a freshly installed operating system with no other software installed.I tried different Machines , Different Operating Systems , Different Lan Ports.No luck.
    6) I deactivated Windows default Firewall & every Power Saving functions of my OS.No luck.
    7) Linksys suggested me to visit the Service Center & get a replacement.I did visit the Linksys Authorized Service Center & got a new WAG120N & brought that to my home.I had to pay around 20 USD Taxi Fare as the Service Center is at the remotest part of my city.I wish if Linksys had a Pick-Up & Drop facility which nearly every big companies offer in my place.
    8) The new WAG120N did not change anything.The disconnection issue is still existing.
    9) There is absolutely NO problem in my ADSL line.I am using a 512kbps ADSL connection & when i use the CHEAPEST Wi-Fi ADSL Modem which has been given  by my ISP , i can access Internet just fine , no problems at all either in Wired or the Wireless.So, in this case The Linksys ADSL Router is at fault.
    10) I can see the ADSL line Stats with my 20 USD worth of Huawei ( ISP provided ) Modem but the 150 USD worth of Cisco/Linksys WAG120N does not support showing the ADSL Line stats ( or at least the Firmware doesn't support it ) which is unbelievable for a company of caliber like Cisco.
    The two most important things every Modem at least should display are :-
    1 ) SNR Margin
    2 ) Attenuation
    These two are absolutely a Must-Have features if you want to see how good your ADSL connection is & i am surprised to see that my cheapest ISP modem does have these but a Cisco product does not. !!!!!!!!
    I have called the Linksys support again & they told me that they are Escalating  my case to their 2nd Level.
    I got a response from their Level 2 Support Person & he asked me to provide information about my case & i had sent him a reply 2 days ago but no reply from him.
    And I am NOT the only person with this problem.I do not know Linksys knows this or not but there are several Linksys users who are using this model & are facing the exact same issues as me.
    Here are some of them & they have been posted on this community itself :-
    1) http://homecommunity.cisco.com/t5/Cable-and-DSL/Wag120n-problem/td-p/300397
    2) http://homecommunity.cisco.com/t5/Cable-and-DSL/WAG120N-keeps-disconnected-from-internet/m-p/330870/...
    Tell me Sir , what should i do ? Should i sell it & get another brand or Linksys is going to help me to resolve the problem ? I am extremely sorry to say that i feel regretted that i invested my hard earned money into this which just does not want to work at all.I am too much frustrated & not going to buy any Cisco product if my problem does not get solved because i can not bother the disconnection problem as i need to stay connected all the time for my job & also for my personal reasons.It is a shame that i had to pack my Linksys up on the shelves & have to use the cheapest quality Chinese ( No offense ) Modem because at least the connection does not drop here & I can use it for what it is meant to be.
    I will be expecting a quick reply from you people & would also hope that you will be able to solve the problem.Also i think the problem is not the Router but the Firmware itself is faulty but i am not sure about that because this is my first Cisco product & frankly speaking I am very much disappointed with it.I would very much like to experience a Cisco product because i thought it is an World Class product in the business.So, please help me resolve this problem.Either Linksys should help me resolve the problem and get me an working product or i would want to get my money back.Thank You.
    (Mod note: Edited for guideline compliance.)

    Yes but I think Linksys should give me another one which is working right ? Why should i invest in another Router as i just bought it & its already too pricey here.
    I need an ADSL Wi-Fi Modem Router & there is only three models avilable here.One is this one which i'm using , WAG120N & the other two are  WAG160N & WAG320N & both of them costs more than triple than that of WAG120N.And no one is going to give me a replacement here.I can get the replacement but the same Router.I can not upgrade it without having to buy a whole new router which costs thrice than my current one.
    So, i would be highly oblized if Linksys can give me a replacement because only they can replace it with another model but Linksys India customer Care is only suggesting me that they can issue a replacement for the same model & can not give any other model.
    I sent my concern to the 2nd Level Technicians but have not received any reply.Feeling helpless at the moment.
    My posts are edited & most important parts are being deleted.Please do not edit my post.All i am wanting to get a suggestion for my problem.I do not want to bother you with my problems but the communities are meant mainly for that purpose so that we can help & support each other.
    Thank you.

  • WAG120N and RE1000

    Hi i have a network with a modem/router Wag120n but the wireless not cover my entire building so i have buy a Re1000 .
    I configure re1000 throught wireless, so connect this device to elettrical outlet and connect it with my ssid wireless.
    The problem is that re1000 dosen't hook immediately my network and often or almost always don't hook my wirless network.
    To hook my network i am forced to turn off and turn on the device many times until that hook my network.
    What could be the problem?
    Is it a problem of configuration of my network?

    Hello,
    Go to google and search for "v=nqIdNEYIn7w", play the first youtube link and listen carefully (CARE-FULLY)  , and you're back to happiness if you're quite lucky !
    You can see my comment atop the comments in the video, if you'd like a POC

  • WAG120N Firmware file error

    Hi!
    There is a problem with firmware file 1.00.16 for Annex B in your website. If you download the zip file, than you can find in it the 1.00.12 version of the firmware! Please repair this error in your ftp server! By the way, this is the fourth channel I try to solve this problem, but you always send me to elsewhere! Please replace the zip file with a correct one in this link: http://downloads.linksysbycisco.com/downloads/firmware/WAG120N-EU-ANNEXB-ETSI-1.00.16-code.zip !!! This contains the current (1.00.12) version!
    Best regards:
    Peter
    Solved!
    Go to Solution.

    I tried downloading the file and within the zip and folder I got a .16 build and not a .12.
    None the less thank you for raising this concern and we'll have it looked at.
    Can any body else confirm a .12 build from the link provided?
    The Search Function is your friend.... and Google too.
    How to Secure your Network
    How to Upgrade Routers Firmware
    Setting-Up a Router with DSL Internet Service
    Setting-Up a Router with Cable Internet Service
    How to Hard Reset or 30/30/30 your Router

  • WAG120N - Compatibility with HP Quickweb

    Can you help me solve compatibility with HP quickweb??? I can't seem to connect to WAG120N.. Wherelse previous modem router has no problem with it..

    I think there isn't any compatibility issues between HP Quick web and WAG120N since HP Quickweb is a software which should work regardless of the router make or model.
    To start with, please ensure that 'network connection type' is set to 'wi-fi' in 'HP Quick web' under 'network configuration page.

  • Linksys WAG120N and Airport Express - Does this work ??

    Hi,
    I just replaced my Linksys WAG54G by a WAG120N modem-router.
    I still have a problem with my Airport Express.
    Everything was working fine with the WAG54G but since I'm using the WAG120N I always got the same problem.
    After switching OFF-ON the Airport Express, I can only see it during a few minutes in the Airport Utility. After this, it disappears (until next reboot, etc.).
    I've used the same setup/config for my modem-router (compared to the old one).
    Firmware has been upgraded.
    I've completely re-configured the Airport Express.
    I've re-installed the Airport Utility.
    I've also tried to use other channels, etc.
    When I'm using the WAG54G, I do not have any problem !
    Is this WAG120N finally compatible with the Airport Express ?
    I'm really needing some help (before bringing it back to the vendor and selecting another model) !
    Please, it's urgent !
    Thks

    Yes it is visible during a few minutes when I switch it off-on.
    I can then access the config and change some parameters but after those +/- 5 minutes it disappear from the Airport List.
    ... and this is also true when you have the AX directly connected to your iMac via Ethernet?
    I just want to be sure that the AX itself is not potentially fault.
    When joined to another wireless network, of course, it will be dependent on the "stability" of that network. One other thing that might be possible is if you have the new Linksys configured for any special type of mode. One that I can think of is called "burst" mode. Another is wide-channel mode for the 2.4 GHz band. Neither of these are supported by the AX and may be a reason that it keeps dropping the connection.
    Finally, were both routers purchased in your country and are made to operate there? I've seen this problem before when, for example, an individual buys a router, let's say, to be used in Japan and tries to operate it in Europe.

  • A problem with threads

    I am trying to implement some kind of a server listening for requests. The listener part of the app, is a daemon thread that listens for connections and instantiates a handling daemon thread once it gets some. However, my problem is that i must be able to kill the listening thread at the user's will (say via a sto button). I have done this via the Sun's proposed way, by testing a boolean flag in the loop, which is set to false when i wish to kill the thread. The problem with this thing is the following...
    Once the thread starts excecuting, it will test the flag, find it true and enter the loop. At some point it will LOCK on the server socket waiting for connection. Unless some client actually connects, it will keep on listening indefinatelly whithought ever bothering to check for the flag again (no matter how many times you set the damn thing to false).
    My question is this: Is there any real, non-theoretical, applied way to stop thread in java safely?
    Thank you in advance,
    Lefty

    This was one solution from the socket programming forum, have you tried this??
    public Thread MyThread extends Thread{
         boolean active = true;          
         public void run(){
              ss.setSoTimeout(90);               
              while (active){                   
                   try{                       
                        serverSocket = ss.accept();
                   catch (SocketTimeoutException ste){
                   // do nothing                   
         // interrupt thread           
         public void deactivate(){               
              active = false;
              // you gotta sleep for a time longer than the               
              // accept() timeout to make sure that timeout is finished.               
              try{
                   sleep(91);               
              }catch (InterruptedException ie){            
              interrupt();
    }

  • A problem with Threads and MMapi

    I am tring to execute a class based on Game canvas.
    The problem begin when I try to Play both a MIDI tone and to run an infinit Thread loop.
    The MIDI tone "Stammers".
    How to over come the problem?
    Thanks in advance
    Kobi
    See Code example below:
    import java.io.IOException;
    import java.io.InputStream;
    import javax.microedition.lcdui.Graphics;
    import javax.microedition.lcdui.Image;
    import javax.microedition.lcdui.game.GameCanvas;
    import javax.microedition.media.Manager;
    import javax.microedition.media.MediaException;
    import javax.microedition.media.Player;
    public class MainScreenCanvas extends GameCanvas implements Runnable {
         private MainMIDlet parent;
         private boolean mTrucking = false;
         Image imgBackgound = null;
         int imgBackgoundX = 0, imgBackgoundY = 0;
         Player player;
         public MainScreenCanvas(MainMIDlet parent)
              super(true);
              this.parent = parent;
              try
                   imgBackgound = Image.createImage("/images/area03_bkg0.png");
                   imgBackgoundX = this.getWidth() - imgBackgound.getWidth();
                   imgBackgoundY = this.getHeight() - imgBackgound.getHeight();
              catch(Exception e)
                   System.out.println(e.getMessage());
          * starts thread
         public void start()
              mTrucking = true;
              Thread t = new Thread(this);
              t.start();
          * stops thread
         public void stop()
              mTrucking = false;
         public void play()
              try
                   InputStream is = getClass().getResourceAsStream("/sounds/scale.mid");
                   player = Manager.createPlayer(is, "audio/midi");
                   player.setLoopCount(-1);
                   player.prefetch();
                   player.start();
              catch(Exception e)
                   System.out.println(e.getMessage());
         public void run()
              Graphics g = getGraphics();
              play();
              while (true)
                   tick();
                   input();
                   render(g);
          * responsible for object movements
         private void tick()
          * response to key input
         private void input()
              int keyStates = getKeyStates();
              if ((keyStates & LEFT_PRESSED) != 0)
                   imgBackgoundX++;
                   if (imgBackgoundX > 0)
                        imgBackgoundX = 0;
              if ((keyStates & RIGHT_PRESSED) != 0)
                   imgBackgoundX--;
                   if (imgBackgoundX < this.getWidth() - imgBackgound.getWidth())
                        imgBackgoundX = this.getWidth() - imgBackgound.getWidth();
          * Responsible for the drawing
          * @param g
         private void render(Graphics g)
              g.drawImage(imgBackgound, imgBackgoundX, imgBackgoundY, Graphics.TOP | Graphics.LEFT);
              this.flushGraphics();
    }

    You can also try to provide a greater Priority to your player thread so that it gains the CPU time when ever it needs it and don't harm the playback.
    However a loop in a Thread and that to an infinite loop is one kind of very bad programming, 'cuz the loop eats up most of your CPU time which in turn adds up more delays of the execution of other tasks (just as in your case it is the playback). By witting codes bit efficiently and planning out the architectural execution flow of the app before start writing the code helps solve these kind of issues.
    You can go through [this simple tutorial|http://oreilly.com/catalog/expjava/excerpt/index.html] about Basics of Java and Threads to know more about threads.
    Regds,
    SD
    N.B. And yes there are more articles and tutorials available but much of them targets the Java SE / EE, but if you want to read them here is [another great one straight from SUN|http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html] .
    Edited by: find_suvro@SDN on 7 Nov, 2008 12:00 PM

  • J2ME problem with threads

    Hi all,
    I would like to ask you for a help. I need to write a small program at my university. I started to write a midlet which function would be to countdown time for sports activities. I woul like to start a new thread - the one that counts down - and at the same time make the main thread sleep. After the "countdown" thread finishes, the main thread wakes up and waits for user input. The problem is that when the "countdown" thread finishes his work, I've got Uncaught exception java/lang/NullPointerException. error and the midlet halts.
    Below you can find the code
    import java.lang.*;
    import java.util.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    public class intervals extends MIDlet implements CommandListener
    public Display ekran;
    private SweepCanvas sweeper;
    private Form rundy;
    private TextField round0, round1, round2, round3, round4, round5, round6, round7, round8;
    private long czas,x;
    private Command exitCommand;
    private Command addRound;
    private Command delRound;
    private Command start;
    private TextField repeat;
    private Form odliczanie;
    private Alert ostrz;
    Licznik thread;
    String test;
    StringItem test1;
    int parz,i,j,k;
    static int l;
    int ilrund;
    int ilpowt;
    Item sec;
    long sec1;
    public intervals()
        rundy = new Form("Interwa&#322;y sportowe");
        exitCommand = new Command("Wyj&#347;cie", Command.EXIT, 2);
        addRound = new Command("Dodaj","Dodaj rund&#281;", Command.ITEM,1);
        delRound = new Command("Usu&#324;","Usu&#324; ostatni&#261; rund&#281;", Command.ITEM,1);
        start = new Command("Start", Command.ITEM,1);
        odliczanie = new Form("Odliczanie");
        TextField dodaj(TextField kolej)
            kolej=new TextField("Podaj czas (s) rundy "+parz,null, 4, TextField.NUMERIC);//stworzenie nowej instancji do wybierania czasu trwania rundy
            if(rundy.size()==0)
                rundy.insert(rundy.size(),kolej);
                else
                    rundy.insert(rundy.size()-1, kolej);
            return kolej;
        void odliczanie(TextField round)
            monitor m=new monitor();
            k=Integer.parseInt(round.getString());
            ekran.setCurrent(odliczanie);
            thread=new Licznik(k,odliczanie);
            thread.start();
            ekran.setCurrent(rundy);
    public void startApp()// throws MIDletStateChangeException
        rundy.deleteAll();
        repeat = new TextField("Podaj ilo&#347;&#263; powtórze&#324;",null,1,TextField.NUMERIC);
        rundy.addCommand(addRound);
        rundy.addCommand(exitCommand);
        rundy.setCommandListener(this);
        Canvas obrazek = new MyCanvas();
        ekran = Display.getDisplay(this);
        ekran.setCurrent(obrazek);
        czas=System.currentTimeMillis();
        while (System.currentTimeMillis()<czas+1000)
            continue;
        ekran.setCurrent(rundy);
    public void pauseApp()
    public void destroyApp(boolean unconditional)
        notifyDestroyed();
    public void commandAction(Command c, Displayable s)
        if (c == exitCommand)
            destroyApp(false);
            notifyDestroyed();
        else if(c==addRound)
            if(rundy.size()==0)//Sprawdzenie ilo&#347;ci elementów w celu poprawnego wy&#347;wietlania liczby rund w formie
                parz=1;
                else
                parz=rundy.size();
            switch(parz)
                case 1:
                    round0=dodaj(round0);break;
                case 2:
                    round1=dodaj(round1);break;
                case 3:
                   round2= dodaj(round2);break;
                case 4:
                    round3=dodaj(round3);break;
                case 5:
                    round4=dodaj(round4);break;
                default:
                    ostrz=new Alert("Uwaga","Maksymalna liczba rund wynosi 9", null, AlertType.INFO);
                    ostrz.setTimeout(3000);
                    ekran.setCurrent(ostrz);
            if(rundy.size()==1)
                rundy.append(repeat);
                rundy.addCommand(start);
            rundy.addCommand(delRound);
        else if(c==delRound)
            if(rundy.size()!=0)
                rundy.delete(rundy.size()-2);
                if (rundy.size()==1)
                    rundy.deleteAll();
                if(rundy.size()==0)
                    rundy.removeCommand(delRound);
                    rundy.removeCommand(start);
        else if(c==start)
            ilrund=rundy.size()-1;
            if(this.repeat.size()>0)
                ilpowt=Integer.parseInt(this.repeat.getString());
            ekran = Display.getDisplay(this);
            for (i=1; i<=ilpowt;i++)
                odliczanie= new Form("Odliczanie");
                 for (j=0;j<ilrund;j++)
                    switch(j)
                         case 0:
                             odliczanie(round0);
                             break;
                         case 1:
                             odliczanie(round1);
                             break;
                         case 2:
                             odliczanie(round2);
                             break;
                         case 3:
                             odliczanie(round3);
                             break;
                         case 4:
                             odliczanie(round4);
                             break;
                         case 5:
                             odliczanie(round5);
                             break;
                         case 6:
                             odliczanie(round6);
                             break;
                         case 7:
                             odliczanie(round7);
                             break;
                         case 8:
                             odliczanie(round8);
                             break;
    class Licznik extends Thread
        int czas1,k;
        Form forma;
        monitor m;
        public Licznik(int k,Form formap)
            czas1=k;
            forma=formap;
        public synchronized void run()
            while(czas1>0)
                forma.deleteAll();
                forma.append("Czas pozosta&#322;y (s): "+czas1);
                try{Thread.sleep(1000);} catch(InterruptedException e){e.printStackTrace();}
                czas1--;
            if(czas1<=0)
                m.put();
        }and monitor class
    public class monitor
    boolean busy=false;
    synchronized void get()
        if(!busy)
            try
                wait();
            }catch(InterruptedException e){e.printStackTrace();}
        notify();
    synchronized void put()
        if(busy)
            try
            wait();
            }catch(InterruptedException e){e.printStackTrace();}
        busy=true;
        notify();
    }Can anybody help me with this?

    Groovemaker,
    Your Licznik class has a member m of type monitor, which has not been instantiated (in other words is null) hence, when calling m.put() you get NullPointerException. Please also mind, that using Thread.sleep(1000) is not an accurate way of measuring time.
    If I may, please use recommended for Java class naming conventions - some of your names use lower case, while other don't which is confusing to the reader.
    Daniel

  • Problem with threads within applet

    Hello,
    I got an applet, inside this applet I have a singleton, inside this singleton I have a thread.
    this thread is running in endless loop.
    he is doing something and go to sleep on and on.
    the problem is,
    when I refresh my IE6 browser I see more than 1 thread.
    for debug matter, I did the following things:
    inside the thread, sysout every time he goes to sleep.
    sysout in the singleton constructor.
    sysout in the singleton destructor.
    the output goes like this:
    when refresh the page, the singleton constructor loading but not every refresh, sometimes I see the constructor output and sometimes I dont.
    The thread inside the singleton is giving me the same output, sometime I see more than one thread at a time and sometimes I dont.
    The destructor never works (no output there).
    I don't understand what is going on.
    someone can please shed some light?
    thanks.
    btw. I am working with JRE 1.1
    this is very old and big applet and I can't convert it to something new.

    Ooops. sorry!
    I did.
         public void start() {
         public void stop() {
         public void destroy() {
              try {
                   resetAll();
                   Configuration.closeConnection();
                   QuoteItem.closeConnection();
              } finally {
                   try {
                        super.finalize();
                   } catch (Throwable e) {
                        e.printStackTrace();
         }

Maybe you are looking for

  • I have an aol email account.  Some emails come through to my MAC mail (Mac OS X Lion 10.7.4)

    I have an aol email account.  Some emails come through to my MAC mail (Mac OS X Lion 10.7.4) & some don't-very annoying, as I have to sign in to aol.com to make sure I am receiving all my emails.Happens even with email addresses that come to me on a

  • Bug In Payment Wizard Report

    We have found an obscure bug in the BP Summary Report from the payment Wizard. We created historical transactions for the suppliers using one journal for each month with line level remarks & dates. Where the journal has several lines for the same sup

  • GL account field Not Updated in Special Purpose ledger

    Hi Experts, We are using 4.7 Version in which we found difference in particular Month difference between FS10N and GD13 and GD20 Line Items of Particular Leder. We Observed that the Documents are posted but , without being updating the GL Account fie

  • No entry in table $ for key $ 554C 400100 20090

    Hi Gurus, While running payroll--for some employees(pre . number 125) the following error is coming: No entry in table $ for key $ 554C 400100 20090 Technical error no. 72 02.01.2009 Processing terminated for EE 00000125 This error is coming while I

  • Illustrator CC 2014  error code U44M1P7

    Hi,  Illustrator CC 2014 will not open and the update gives me an error code U44M1P7 Please help Mike