SA 540 drops wan connectivity after some time interval

hello guys,
I have problem.  after a certain period of time (ranging from 2 minutes to several hours) the unit keeps dropping the WAN connection, making the unit unaccessible from the WAN side. The strange thing is, that when the connection is dropped, the unit is perfectly accessible from the LAN side, the WAN LED is still on, status info shows the WAN link up, and packet trace shows broadcasted traffic on the WAN interface, so only the directed communication to and from the ISPs gateway (configured to fix IP) seems to be blocked for some reason. When this happens, then plugging the WAN cable to the Optional WAN port enables traffic again, but it is also dropped after some time, and then only power cycling the unit restores WAN connectivity.
please suggest me as soon as possiblethat how to fix this problem?
Awaiting for valuable reply.....

Please read this whole message before doing anything.
This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
Test while in safe mode. Same problem?
After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

Similar Messages

  • Printer drops wireless connection after some time

    Have HP Laserjet P1102w printer. (Serial# edited Serial Number by Moderator) (Firmware 20130703)
    Windows 7(64bit)
    Printer on wireless home network.
    For a period of time the printer prints wirelessly and prints from EPRINT EMail address OK.
    Normally Wakes itself when print received.
    After some period of time,however,the printer quits responding.
    It did not wake when print received.Normally wakes itself when print received.
    I manually turn it back on (front panel power button) and observe the following:
    The blue wireless light is on.
    The blue error light is on indicating no error.
    the green light also is on.
    Open Control Panel(View devices and printers) on computer and it shows printer error.
    Can restore normal operation by unplugging for a few seconds and turning back on.
    Can also restore normal operation by turning off and back on.
    Will quit responding again after some period of time when trying to print.
    Tried Windows troubleshooting and HP "Print and Scan Doctor".Tells me to reboot.
    How can I fix this problem?
    Can't reboot by unplugging or powering off  when away from home so can't use ePrint email address to print.
    Can't print when away from printer when it quits responding.
    Thanks for any help.
    This question was solved.
    View Solution.

    These settings are for setting up your wireless printer to stay connected to your router, keep wireless devices better connected and makes your router secure and hack proof.
    1. Set a static IP in the printer (click here) outside the DHCP range of the router (check your manual).
       This is for Linksys routers but can be used for all routers. Verify your DHCP range and change this
       first if needed. More Wireless Printing help is here.
    2. Verify in the printer that 'Auto Off' is disabled.  Use the Embedded Web Server (EWS) by going to the
       printers IP address in your browsers address bar, click Settings Tab/Auto Off. Or use the Printer
       Assistant, Printer Home Page (EWS).
    3. If the printer supports and has IPv6 enabled, turn off IPv6 in the printer.
    4. Assign the printer a static IP address, try using 8.8.8.8 for the Manual DNS server and 8.8.4.4 for the
       Alternate preferred DNS server.
    In the router: (Refer to your router manual for information)
    5. Use a fixed wireless channel like 1, 6 or 11, never 'auto', try channel 1 first then the rest. 
    6. Set router to 20Mhz only, or 145Mbps depending on router. 
    7. Always use WPA2-AES (Personal) encryption, but you can try ‘mixed’ mode. 
    8. Disable WPS and never use it and disable UPnP for the routers security. Nobody can hack your
       system now and helps with wireless connectivity (if you want to know why, search the web).
    9. If you have a dual band router (2.4Ghz and 5.0Ghz bands), make sure the SSID’s are NOT the same,
       they must be different for all bands, even for any Guest networks.
    10. SSID broadcast must be enabled.
    11. Save all settings. Power off both, wait 2 mins.  Power on router wait 2 mins. 
    12. Power on printer and verify it reconnects to router. 
    Windows 7/8/8.1   Is Network Discovery on or off?
    Control Panel/Network and Internet/Network and Sharing Center/Advanced sharing settings.
    Under Home or Work (current profile) / Network Discovery.
    Select "Turn on network discovery" and save changes.
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • Io exception: Connection reset - after some time interval

    Hi,
    We are facing a problem in connection while implementing connection pooling using OracleDataSource .
    Application is running with out any issue if it is called continuously.
    If we call the application after some time interval, connection is being reset. We are able to get the connection instance but connection reset exception is thrown while calling callableStatement.execute().
    If application called after application restart it is working fine.This issue is happening only for the first few calls made after some time interval.(after 1 hr)
    After that call is proceeding without any issue.
    Environment Details
    Application is accessing 4 oracle databases and the versions are viz., 9.2.0.8,10.2.0.3,10.2.0.4 and 9.2.0.1.
    Driver : ojdbc14.jar
    App Server : tomcat
    jdk version: 1.5
    OracleDataSource is being used for connection pooling.
    propCache.setProperty("ConnectionWaitTimeout",10); // caching parms
    ods.setConnectionCachingEnabled(true);
    ods.setLoginTimeout(intLoginTimeout);
    propCache.setProperty("MinLimit","5");
    propCache.setProperty("MaxLimit", "20");
    propCache.setProperty("InitialLimit","5");
    propCache.setProperty("ValidateConnection", "true");
    propCache.setProperty("AbandonedConnectionTimeout", "10");
    The exception details are as follows
    java.sql.SQLException: Io exception: Connection reset
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:987)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1170)
    at oracle.jdbc.driver.OracleStatement.doScrollExecuteCommon(OracleStatement.java:4043)
    at oracle.jdbc.driver.OraclePreparedStatement.doScrollPstmtExecuteUpdate(OraclePreparedStatement.java:10826)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3337)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3445)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4394)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:834)
    at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)
    at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
    at java.lang.Thread.run(Unknown Source)
    Any suggestion to resolve this issue is greatly appreciated.
    Thanks.

    Hi,
    try to utilize OracleDataSource#setConnectionCacheProperties() with property InactivityTimeout equals to 1800 (30 minutes in seconds).

  • Every Apple apps using Sandbox is loosing network connectivity after some time.

    Its strange, but after a while using application, application stop working. For example Mail.app. Its working fine for 5 minutes, but after that it stopped working. When Mail.app crash, I am not able to use Safari or connect via iTunes to App store.
    I already tried:
    - uninstall non Apple software
    - fixing permissions on startup disk
    - check filesystem of startup disk
    - reinstall Lion
    - update to 10.7.1
    Unfortunately nothing from this was working. Before upgrading to 10.7.1 I found out, that Lion was not able to connect to mixed up b+g wifi network. After changing to g only wifi network, it was working fine.
    Thanks for the help.

    Its strange, but after a while using application, application stop working. For example Mail.app. Its working fine for 5 minutes, but after that it stopped working. When Mail.app crash, I am not able to use Safari or connect via iTunes to App store.
    I already tried:
    - uninstall non Apple software
    - fixing permissions on startup disk
    - check filesystem of startup disk
    - reinstall Lion
    - update to 10.7.1
    Unfortunately nothing from this was working. Before upgrading to 10.7.1 I found out, that Lion was not able to connect to mixed up b+g wifi network. After changing to g only wifi network, it was working fine.
    Thanks for the help.

  • Kludgy fix for T520 frequently dropping WAN connection

    There's no obvious way to lodge a bug with Lenovo. Hopefully someone from the tech dept looks in here from time to time.
    The problem:
    T520 (4242CTO) running Win7x64. Accessing WAN (Telstra NextG 850Mhz HSPA) via F5521gw. Connects initially without issue. Then drops connection after random time interval. Doesn't matter whether connection active or idle. Persistently fails on any/all reconnection attempts.
    The fix:
    In Control Panel/Device Manager, disable "Network adaptors/F5521gw Mobile Broadband Driver" and "Ports (COM & LPT)/F5521gw .... (COM4)". Then reenable same. Reconnects on next attempt every time.
    Presumably there's some issue with releasing/renewing authentication/IP etc. Perhaps something to the effect of resetting the adaptor could be trialled for inclusion in future releases of Access Connections?

    There's no obvious way to lodge a bug with Lenovo. Hopefully someone from the tech dept looks in here from time to time.
    The problem:
    T520 (4242CTO) running Win7x64. Accessing WAN (Telstra NextG 850Mhz HSPA) via F5521gw. Connects initially without issue. Then drops connection after random time interval. Doesn't matter whether connection active or idle. Persistently fails on any/all reconnection attempts.
    The fix:
    In Control Panel/Device Manager, disable "Network adaptors/F5521gw Mobile Broadband Driver" and "Ports (COM & LPT)/F5521gw .... (COM4)". Then reenable same. Reconnects on next attempt every time.
    Presumably there's some issue with releasing/renewing authentication/IP etc. Perhaps something to the effect of resetting the adaptor could be trialled for inclusion in future releases of Access Connections?

  • My ISP requires a http login. I can use the iPad fine if I am logged in on a PC connected to the same wifi network, but if I login on safari on my ipad, the connection drops after some time.. any workaround?

    My ISP requires a http login. I can use the iPad fine if I am logged in on a PC connected to the same wifi network, but if I login on safari on my ipad, the connection drops after some time.. any workaround?

    TJBUSMC1973 wrote:
    The iPhone is working, as designed and advertised.  In this case, the user failed to educate themselves properly, either by proper research or asking the right questions, before purchasing the device.
    I understand that the OP failed to do research. But then, I wasn't replying to the OP. I was replying to Chris. I have Verizon. I can talk and use data at the same time with my Droid Maxx. Therefore, the problem is not just with the network. It would be technically possible for an iPhone to do that on Verizon/Sprint if Apple had chosen to use a different chip, such as the kind other phone manufacturers have elected to use.
    Of course, this is probably all irrelevant to the OP's issue. It was merely a point of clarification, especially for those people who are used to being able to use both voice and data at the same time on Verizon. When they switch to an iPhone, they are often surprized at the limitation.
    Best of luck.

  • Sun One Web Server connection pool goes stale after some time

    Hi all,
    I have a few web applications running on Sun One Web Server 6.1 (SP4). I configured a connection pool via the web admin of the web server. I do not know why the connections in the connection pool are never released after some time (this happened for 3 times with a couple of months in between). I need to reboot the web server to solve this problem everytime the connection pool goes stale. I have verified that the resources are released (stream and connection are closed) with proper programming logic. Even so, I think that the connections will be timed out (the setting is 5 minutes) by the web server as a bulletproof even if the resource is not released properly as implemented in the code logic. Can anybody help on this? I have been troubled by this problem by weeks.
    Thank you in advance.

    Hi all,
    I have a few web applications running on Sun One Web Server 6.1 (SP4). I configured a connection pool via the web admin of the web server. I do not know why the connections in the connection pool are never released after some time (this happened for 3 times with a couple of months in between). I need to reboot the web server to solve this problem everytime the connection pool goes stale. I have verified that the resources are released (stream and connection are closed) with proper programming logic. Even so, I think that the connections will be timed out (the setting is 5 minutes) by the web server as a bulletproof even if the resource is not released properly as implemented in the code logic. Can anybody help on this? I have been troubled by this problem by weeks.
    Thank you in advance.

  • Application unable to connect to databse after some time

    The problem we are facing is that after some time the application seems to be unable to connect to the database. The only way we have been able to clear the issue is by re starting the application servers. Below is the information I see in my logs any help would be appreciated, thanks
    ####<Sep 6, 2007 12:08:24 PM CDT> <Info> <JDBC> <plss1433> <SMART-1433-7025> <ExecuteThread: '22' for queue: 'weblogic.kernel.Defaul
    t'> <<anonymous>> <> <BEA-001068> <Connection for pool "SMARTPool" created.>
    ####<Sep 6, 2007 12:08:24 PM CDT> <Info> <JDBC> <plss1433> <SMART-1433-7025> <ExecuteThread: '22' for queue: 'weblogic.kernel.Defaul
    t'> <<anonymous>> <> <BEA-001132> <Initialized statement cache of size "10" for connection in pool "SMARTPool".>
    ####<Sep 6, 2007 12:08:24 PM CDT> <Info> <Common> <plss1433> <SMART-1433-7025> <ExecuteThread: '22' for queue: 'weblogic.kernel.Defa
    ult'> <<anonymous>> <> <BEA-000628> <Created "1" resources for pool "SMARTPool", out of which "1" are available and "0" are unavaila
    ble.>
    ####<Sep 6, 2007 12:08:26 PM CDT> <Info> <JDBC> <plss1433> <SMART-1433-7025> <Thread-7> <<WLS Kernel>> <> <BEA-001128> <Connection f
    or pool "SMARTPool" closed.>
    ####<Sep 6, 2007 12:16:41 PM CDT> <Error> <JDBC> <plss1433> <SMART-1433-7025> <ExecuteThread: '23' for queue: 'weblogic.kernel.Defau
    lt'> <<anonymous>> <> <BEA-001131> <Received an exception when closing a cached statement for the pool "SMARTPool": java.sql.SQLExce
    ption: Io exception: Broken pipe.>
    ####<Sep 6, 2007 12:17:14 PM CDT> <Error> <HTTP> <plss1433> <SMART-1433-7025> <ExecuteThread: '22' for queue: 'weblogic.kernel.Defau
    lt'> <<WLS Kernel>> <> <BEA-101020> <[ServletContext(id=23265185,name=Smart,context-path=/Smart)] Servlet failed with Exception
    java.lang.NullPointerException
    at com.spcs.web.smart.dao.MSOBillFileDAO.fetchFileList(MSOBillFileDAO.java:35)
    at jsp_servlet._jsp._ma._bfm.__releasearchive._jspService(__releasearchive.java:461)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    I also see this in jdbc.log
    SQLException: SQLState(null) vendor code(17002)
    java.sql.SQLException: Io exception: Connection timed out
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
    at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2529)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2672)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:589)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:527)
    at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:124)
    at com.spcs.web.smart.util.SmartDAO.authenticate(SmartDAO.java:381)
    at com.spcs.web.smart.servlets.LoginServlet.doPost(LoginServlet.java:36)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

    The following fixed this:
    http://technet.microsoft.com/en-gb/library/bb932151.aspx
    For some reason "sms admins" was no longer even showing in permissions, added it and gave it appropriate permissions (as per article above), including subfolders.  After that worked perfectly.
    Does anyone have any ideas why a reboot would cause permissions to be lost?

  • I connect my iphone 4g on charging after some time it is complete dead and very heat up please help me.

    i connect my iphone 4g on charging after some time it is complete dead and very heat up please help me.
    helllllllllllllllllpppppppeeeeeeeee me

    There is no such thing as an iPhone 4G.

  • TS4148 i update my 3gs to 6.1 from 4.1 after installation of software it shows connect to itunes or connect  to wi-fi when i connect it to itunes it shows the iphone tab in itunes bt after some times it say we are unable to complete your request please he

    i update my 3gs to 6.1 from 4.1 after installation of software it shows connect to itunes or connect  to wi-fi when i connect it to itunes it shows the iphone tab in itunes bt after some times it say we are unable to complete your request please help me

    That would be the wireless number assigned by AT&T when the purchaser of the iPhone signed up as a customer with AT&T. If neither you nor your uncle ever activated the iPhone with AT&T, click the "non customer" button.
    Note that jailbreaking often renders it impossible to get an iPhone officially unlocked, so don't be surprised if it fails. If it does, then you may have to buy a new iPhone, this time one that is officially unlocked.
    Regards.

  • I have installed sim card but while settinng up ios 5 when i chose connect to itunes after some time it shows no sim card installed

    i have installed sim card but while settinng up ios 5.1 when i chose connect to itunes after some time it shows no sim card installed

    qaziahmad2010 wrote:
    i have iphone 3gs i restored it and now it is not activating ...
    See here  >  http://support.apple.com/kb/TS3424
    Also see this discussion.
    https://discussions.apple.com/message/21189708

  • Socket connection dies after some time being idle w/o firing event

    Hi,
    I use this code to connecto my server from my Client
              if (socket == null){
                   try{
                        if (pwd.length > 0)
                             System.out.println("opening connection...to "+host+" at port "+port);
                             socket = new Socket(host, port);          
                             toServer = new ObjectOutputStream(socket.getOutputStream());
                             fromServer = new ObjectInputStream(socket.getInputStream());
                             System.out.println("Connection established!");
                             fireClientEvent(new ClientEvent(this, ClientEvent.CONNECTION_ESTABLISHED, ""));
                             this.connected = true;
                             Hashtable<String, String> table = new Hashtable<String, String>();
                             table.put("action", "login");
                             table.put("key", convertToString(pwd));
                             sendObject(table);
                   }catch(IOException e){
                        try{
                             if (socket != null)
                                  socket.close();
                             System.out.println("Error while connecting... Server does not exist!");
                             this.connected = false;                         
                             fireClientEvent(new ClientEvent(this, ClientEvent.SERVER_DOES_NOT_EXIST, getHost()+":"+getPort()));
                        }catch(IOException x){
                             System.out.println("I/O ERROR @ CLIENT CONNECT!");
                             removeAllListeners();
                             x.printStackTrace();
              }And this is how my server responds to client requests:
         public void run()
              ServerSocket server = null;
              Socket socket           = null;
              Hashtable<String, String> ClientInfo = new Hashtable<String, String>(); 
              try{
                   server = new ServerSocket(getPort());
                   //listen for connections
                   while (!stopServer)
                        try{
                             System.out.println("Starting Server at port: "+getPort());
                             socket = server.accept();
                             ClientInfo.put("remoteip", socket.getInetAddress().toString());
                             fireServerEvent(new ServerEvent(ClientInfo, ServerEvent.CONNECTION_REQUESTED, null));
                             ThreadedSocket tsocket = getThreadedSocket(socket);
                             tsocket.addSocketListener(this);
                             tsocket.setMaxSolvingTime(maxSolvingTime);
                             Sockets.add(tsocket);
                             executor.execute(tsocket);
                             fireServerEvent(new ServerEvent(ClientInfo, ServerEvent.CONNECTION_ESTABLISHED, null));
                        }catch (IOException ioe){
                             fireServerEvent(new ServerEvent(ClientInfo, ServerEvent.UNEXPECTED_CONNECTION_ERROR, null));
                             exceptionThrown(ioe);
              }catch(Exception x){
                   exceptionThrown(x);
              }finally{
                   try{
                        server.close();
                        socket.close();
                   }catch (Exception e){
                        exceptionThrown(e);
         }It seems that after some time (aprox. 10-15 minutes) being idle, my client gets disconnected withougt firing any event so the Server thinks the client is still connected but it does not get any messages because the client has closed the connection (I think)
    Am I doing/thinking something wrong?

    Thanks It seems that I am doing something completely wrong.
    I created this object:
    package main;
    import java.util.Hashtable;
    import java.util.Vector;
    public class SocketPinger implements Runnable {
        private Vector<ThreadedSocket> sockets = null;
        Hashtable<String, Object> action = new Hashtable<String, Object>();
        public SocketPinger()
            action.put("action", "scheduled_ping");
        public SocketPinger(Vector<ThreadedSocket> socks)
            this.sockets = socks;
            action.put("action", "scheduled_ping");
        public void run()
             process();
        public void process()
             if (sockets != null)
                  for (ThreadedSocket socket : this.sockets)
                       try
                            socket.sendObject(action);
                       }catch(Exception e){
                            sockets.remove(socket);
        public void setSockets(Vector<ThreadedSocket> socks)
             this.sockets = socks;
    }which I call with this command:
         public class ThreadScheduler
             private SocketPinger pinger;
             private final ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor();
             public void activate()
                 pinger = new SocketPinger(Sockets);
                 scheduler.scheduleWithFixedDelay (pinger, 5, 10, TimeUnit.SECONDS);            
             public void deactivate() {
                 scheduler.shutdown();
         }This makes the Scheduler object wake up every 10 secs and ping all the clients. This works and since then everything seemed to work fine. Today I noticed that when I shut down the client abnormaly (System.exit(0);) the server doesn't understand it. The sendObject() method works fine.
    This is my ThreadedSocket with the sendObject() method:
    public class ThreadedSocket extends Thread
         protected Socket socket;     
         protected ObjectOutputStream toClient;
         protected ObjectInputStream fromClient;
         protected ConnectionPool Pool;
         protected DBManager db;
         public ThreadedSocket(Socket sock, int priority, ConnectionPool pool) throws IOException
              socket = sock;
              this.Pool = pool;
              toClient = new ObjectOutputStream(socket.getOutputStream());
              fromClient = new ObjectInputStream(socket.getInputStream());                    
              setPriority(priority);     
              db = new DBManager(Pool);
         public void sendMessage(String message)
              try{
                   toClient.writeUnshared(message);
                   toClient.flush();
              }catch(Exception e){
         public void sendObject(Hashtable<String, Object> table)
              try{               
                   toClient.writeUnshared(table);
                   toClient.flush();
                   toClient.reset();
              }catch(Exception e){
         }and this is how I initialize the ThreadedSocket on my Server object
         public void run()
              ServerSocket server = null;
              Socket socket           = null;
              Hashtable<String, String> ClientInfo = new Hashtable<String, String>(); 
              try{
                   server = new ServerSocket(getPort());
                   //listen for connections
                   while (!stopServer)
                        try{
                             System.out.println("Starting Server at port: "+getPort());
                             socket = server.accept();
                             ClientInfo.put("remoteip", socket.getInetAddress().toString());
                             fireServerEvent(new ServerEvent(ClientInfo, ServerEvent.CONNECTION_REQUESTED, null));
                             ThreadedSocket tsocket = getThreadedSocket(socket);
                             tsocket.addSocketListener(this);
                             tsocket.setMaxSolvingTime(maxSolvingTime);
                             Sockets.add(tsocket);
                             executor.execute(tsocket);
                             fireServerEvent(new ServerEvent(ClientInfo, ServerEvent.CONNECTION_ESTABLISHED, null));
                        }catch (IOException ioe){
                             fireServerEvent(new ServerEvent(ClientInfo, ServerEvent.UNEXPECTED_CONNECTION_ERROR, null));
                             exceptionThrown(ioe);
              }catch(Exception x){
                   exceptionThrown(x);
              }finally{
                   try{
                        server.close();
                        socket.close();
                        if (scheduler != null)
                             scheduler.deactivate();
                   }catch (Exception e){
                        exceptionThrown(e);
              So I have to make this question unanswered, because it is actually partially answered. Although the server can wake up and ping the clients, I still find it difficult to see if the client really exists after some abnormal termination (i.e. computer dies, or sth similar).

  • TS1814 i wana restore my iphone 3g but when i restore it with itunes after some time is say  '' iphone could not restored unknow error 1015 '' help me please

    i wana restore my iphone 3g but when i restore it with itunes after some time is say  '' iphone could not restored unknow error 1015 '' help me please

    99% because your iPhone was hacked/jailbroken. We cannot help you, see terms of use.
    Error 1015: This error is typically caused by attempts to downgrade the software for an iPhone, iPad, or iPod touch. This can occur when you attempt to restore using an older .ipsw file. Downgrading to a previous version isn't supported. To resolve this issue, attempt to restore with the latest iPhone, iPad, or iPod touch software available from Apple. This error can also occur when an unauthorized modification of the iOS has occurred and you're now trying to restore to an authorized, default state.

  • My new i phone 6 plus some time not connecting wifi after switching off it start and after some time gain its stop connection please advice

    my new i phone 6 plus some time not connecting wifi after switching off it start and after some time gain its stop connection please advice

    settings - general - reset - reset network settings.

  • My i Phone drops WiFi connection after just a few minutes and wont reconnect unless I reset the network settings and reboot the  phone?

    My i Phone 4s has suddenly started to drop wifi connection after nealy months of near perfect connections?
    To restore a wifi connection I have to reset the network settings and restart the phone, this only fixes the issues for around 2-3 mins?
    Other quick fixes like switching wifi on and off/ switching to airoplane mode for a few secconds have no impact.
    This is really annoying as I am using my data allowence very quickly, and as the phone is continually searching for a wifi connection the battery time has reduced dramatically.
    I just wondered if any one else has the same issue, and any suggestions as to how I can fix this.
    Thanks in Advance

    Reboot.
    Restore (from backup)
    Restore (as new)
    Test after each step. If one of them doesn't fix the problem, make an appointment at the genius bar.

Maybe you are looking for

  • Help setting up my new IPod Touch on iTunes on windows 7 64bit

    Hello there, I need help setting up my new IPod Touch to my Itunes 10 application on a PC running windows 7 64bit. I have watched the tutorial on how to do it but what the tutorial says it is supposed to do is not what is happenning for me: 1. In the

  • 3 Displays.. well sort of

    Hey there, I have a Mac Pro currently running 2 Monitors.. I upgraded to a Radeon 1900Xt video card from the standard Nvidia that came with it. I have just purchased a Wacom Cintiq 12 display tablet which needs to be connected to a Dvi port. I read a

  • Inventory Transfer - Restrict Add

    Dear all, How do you restrict an inventory transfer document to be added if one of the row have its line total or some other field is blank or zero? thanks SV Reddy

  • FormToEmail is not validating the fields

    Hi all iam newto contact form n php downloaded FormToEmail.php from dreamweaverspot. The issue is email is working even if i submit blank form. my page link http://fagencomputers.com/contact.html. Can anyone help me how to validate the form using php

  • Add/Update/Delete XMP (PDF) metadata?

    I'm new to working with PDF. What I would like to do is add/update/delete XMP metadata to PDF documents. These documents will be indexed by our search engine, which I'm told can index this metadata. It's indexing Dublin Core so don't see why it could