Running server app without timing out?

Hello all,
I have a server application running on a linux server and am timing out after about 15 minutes. I do not know how to make this server program run indefinately. It is an application that listens for clients and responds appropriately. Any ideas?
Thanks,
Jared

Here is my code if it helps. If I should post this to a different forum would someone please tell me.
NOTE: The app is running perfectly it just stops running after a time frame.
CODE:
public class MyServerApp{
//...variable delaration etc.
try{
server = new ServerSocket(5252);//listen to the socket
//tried without this, with it set to 0, and with this number
//server.setSoTimeout(360000000);
}catch(IOException e){
System.exit(-1);
while(true){
MyConnectionThread w;//thread that handles communication
try{
w = new MyConnectionThread(server.accept());//receive new client
Thread t = new Thread(w);//create new thread with our handler
t.start();//start new thread
} catch (IOException e) {
System.exit(-1);
//...clean up
class MyConnectionThread implements Runnable{//communication handler
public void run(){//when run
//...variable declaration etc.
try{
//get streams from client socket
in = new BufferedReader(new InputStreamReader(client.getInputStream()));
out = new ObjectOutputStream(client.getOutputStream());
} catch (IOException e) {...}
while(true){
try{
line = in.readLine();//get data from client
out.writeBoolean(true);//test to see if running
out.flush();//flush information
break;//break out of loop
}catch(IOException e){break;}
try{//clean up
in.close();
out.close();
}catch(Exception e){...}
//...other functions
Hope you can help me from here. I am running it on a linux server.

Similar Messages

  • Server.app constantly timing out (devicemgr, wiki, more)

    Server.app is constantly stating "Reading Profile Manager settings…" or any other service, though Profile Manager and Wiki are the most common. I get errors in the Console such as:
    Jan  8 08:48:42 office.fireflyeducation.com.au servermgrd[2885]: [2885] error in getAndLockContext: flock(servermgr_devicemgr) FATAL time out
    Jan  8 08:48:42 office.fireflyeducation.com.au servermgrd[2885]: [2885] process will force-quit to avoid deadlock
    Jan  8 08:48:43 office.fireflyeducation.com.au servermgrd[2885]: outstanding requests are: (
                      Command = readSettings;
                      Module = "servermgr_devicemgr";
                      Timestamp = "2013-01-07 22:46:15 +0000";
                      Command = Idle;
                      Module = "servermgr_devicemgr";
                      Timestamp = "2013-01-07 22:46:40 +0000";
                      Command = setWebAppState;
                      Module = "servermgr_web";
                      Timestamp = "2013-01-07 22:46:48 +0000";
                      Command = getWebDAVSharingState;
                      Module = "servermgr_web";
                      Timestamp = "2013-01-07 22:48:25 +0000";
                      Command = getState;
                      Module = "servermgr_devicemgr";
                      Timestamp = "2013-01-07 22:48:26 +0000";
                      Command = getState;
                      Module = "servermgr_wiki";
                      Timestamp = "2013-01-07 22:48:27 +0000";
                      Command = getState;
                      Module = "servermgr_web";
                      Timestamp = "2013-01-07 22:48:27 +0000";
                      Command = getWebAppState;
                      Module = "servermgr_web";
                      Timestamp = "2013-01-07 22:48:27 +0000";
                      Command = getWebDAVSharingState;
                      Module = "servermgr_web";
                      Timestamp = "2013-01-07 22:48:28 +0000";
                      Command = getHistory;
                      Module = "servermgr_info";
                      Timestamp = "2013-01-07 22:48:40 +0000";
    Jan  8 08:48:43 office com.apple.launchd[1] (com.apple.servermgrd[2885]): Exited with code: 1
    This is a brand new, OS X Server 2.2, OS 10.8.2 installation. I migrated users, mail, calendar and wiki data over manually, but Profile Manager has not even been used (waiting for more RAM first). I even tried the reset procedure given by Apple here (http://support.apple.com/kb/HT5349), but I'm still getting these errors in the Console.
    Double-clicking any Group yields the message "Reading File Sharing settings" for nearly over 30 seconds before Server.app completes rendering the group and showing the group's members. The system.log error shown for that is:
    Jan  8 08:56:25 office.fireflyeducation.com.au servermgrd[3940]: nsc_smb XPC: handle_event error : < Connection invalid >
    Since the error looks SMB related, and we have no need for that, I've ensured that "Share with Windows Clients" is unchecked for all of my three share points.
    What gives?

    The single biggest mistake in your analysis is assuming that if Windows (or a Wii or an iPhone or whatever other device) can connect, your router is not to blame.
    Though devices are designed to standards, there can be errors in implementing those standards or even simple software bugs that come into play.
    The example I've used over and over again is say there is a bug where when the router is asked to add "2 + 3" it answers "5" but when asked to add "3 + 2" it answers "6."
    If Windows only ever adds "2 + 3" but Mac OS X adds "3 + 2," it's not Apple's fault the router is incorrectly responding "6" in the later case.
    But let's start with easier questions:
    1) Are you sure that no proxy is being used if one shouldn't be, and vice-versa?
    2) Are the DNS addresses shown in your TCP/IP settings the same regardless of whether you are connected via AirPort or Ethernet?
    3) Could there be some interference in the area you are using your Mac? Recall also that Mac and Windows PCs use different antenna designs, so what interferes with one may not affect the other.

  • Unexpected error during HTTP request to voucher server The operation timed out

    I read books from my library through a system called READS. I have successfully used DE 1.0 without any problems, however, when I tried to use it recently it required me to upgrade to 1.5. Well I did so and now the books won't authorize. Here is the error message I am getting:
    Adobe DRM Error System: 5 State: 4 Class: 600 Code: 106 Message: Error on request or response from server. Please check your network connection and try again. Scroll below or view error.log for more details.
    Adobe DRM client Error: 706 Unexpected error during HTTP request to voucher server The operation timed out
    Requested URL: http://207.54.136.76/fulfill/ebx.etd?action=lend&orderid=939605378082105&bookid=ContentRe serveID:B91CC494-23AF-4C6A-9B0C-7DA050C05722-50
    Requested URL: http://207.54.136.76/fulfill/ebx.etd ?action=lend &orderid=939605378082105 &bookid=ContentReserveID:B91CC494-23AF-4C6A-9B0C-7DA050C05722-50
    --- end ---
    I have tried this multiple times with more than one book. Again, they worked just fine before I did the upgrade. I am running Vista SP1.

    Never mind, they obviously post the message on the ticket, but it doesn't send an e-mail. I will try what they indicated. Here is their response...
    Thank you for contacting Adobe Technical Support.
    I understand that you are getting "Adobe DRM Error" in Digital Editions.
    We have documented the steps to resolve this error message. Please do
    refer to this TechNote:
    Error: "Adobe DRM Error" when you activate Digital Editions or access an
    eBook
    http://www.adobe.com/go/kb402747

  • Iphone 5 Screen is Frozen Connection Timeout Error Connection to this app has timed out

    I upgraded to IOS 7 just a few hours before my Iphone 5 screen froze and I cannot make changes -  I have a Connection Timeout Error with Connection to this app has timed out.  With Ok in blue.  The screen doesn't respond,  I can turn off the phone, tap OK or do anthing.  Any advice on how I can reset or fix?

    Check for any anti-virus or anti-spyware software you might have. Temporarily disable that to continue. Normally this is what will cause a timeout. I assume you have a good Internet connection?

  • OS X Server Error: No existing connection from which credentials can be copied. It will not let me get out of the screen.  I have to close the Server App to get out. Any suggestions?

    Editing any user profile, when I try to save the change I get the error: no existing connection from which credentials can be copied. It will not let me get out of the screen.  I have to close the Server App to get out. Any suggestions?

    This is also being disucssed somewhere else https://discussions.apple.com/thread/5486117. I have the same problem, sorry i can't help.

  • How can I restore my sons itouch to original settings without doing the restore through iTunes? He can't remember his passcode and when I try to restore through iTunes it never completes the update/restore without timing out?!?!

    HOw can I restore my sons itouch to original settings without going through iTunes restore? When I plug into iTunes it will never complete the update/restore without timing out? He can't remember his password. I can't get my iTunes to update to the newest level either without timing out. Please help!

    The thread title differs from the original post, sorry for the confusion.  I read password instead of passcode.
    The only way past a passcode lock is by entering the passcode.  Refer to HT1212 iOS: Wrong passcode results in red disabled screen:
    If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup).
    If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present.
    As for timing out during the restore...
    If there isn't any antivirus or firewalls in the way, I would try restoring from a different user account or even a different computer.  If still unable to restore without timing out, I would try a different network.

  • HT204406 I can connect to iTunes store and buy stuff but when i run a connection test i get "connection to firmwear server failed" connection timed out. Do i need to configure my wifi adapters settings?

    Microsoft Windows Vista Home Premium Edition Service Pack 2 (Build 6002)
    TOSHIBA Satellite A215
    iTunes 10.6.1.7
    QuickTime 7.7.1
    FairPlay 1.14.37
    Apple Application Support 2.1.7
    iPod Updater Library 10.0d2
    CD Driver 2.2.0.1
    CD Driver DLL 2.1.1.1
    Apple Mobile Device 5.1.1.4
    Apple Mobile Device Driver not found.
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 1.9.5.502
    Gracenote MusicID 1.9.5.115
    Gracenote Submit 1.9.5.143
    Gracenote DSP 1.9.5.45
    iTunes Serial Number 0029A68C04077DC8
    Current user is an administrator.
    The current local date and time is 2012-04-18 05:41:18.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is not supported.
    Core Media is supported.
    Video Display Information
    ATI Technologies Inc., ATI Radeon X1200
    **** External Plug-ins Information ****
    No external plug-ins installed.
    Genius ID: ff966d6a67ef265801e62ca642665008
    iPodService 10.6.1.7 is currently running.
    iTunesHelper is currently not running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    **** Network Connectivity Tests ****
    Network Adapter Information
    Adapter Name:          {174B2346-A791-4C25-9515-884E658FE655}
    Description:          Realtek RTL8187 Wireless 802.11b/g 54Mbps USB 2.0 Network Adapter
    IP Address:          10.100.160.213
    Subnet Mask:          255.255.254.0
    Default Gateway:          10.100.160.1
    DHCP Enabled:          Yes
    DHCP Server:          10.100.160.2
    Lease Obtained:          Wed Apr 18 05:39:40 2012
    Lease Expires:          Wed Apr 18 05:56:20 2012
    DNS Servers:          64.250.243.37   <<<<<<<<<<< multiple DNS ADS.
                        64.250.243.42
    Adapter Name:          {5C7559AA-708B-4EFC-B67F-25B400863B6B}
    Description:          Realtek PCIe FE Family Controller
    IP Address:          0.0.0.0
    Subnet Mask:          0.0.0.0
    Default Gateway:          0.0.0.0
    DHCP Enabled:          Yes
    DHCP Server:
    Lease Obtained:          Wed Dec 31 16:00:00 1969
    Lease Expires:          Wed Dec 31 16:00:00 1969
    DNS Servers:
    Here is the latest Diag. i got from iTunes help
    Active Connection:          LAN Connection
    Connected:          Yes
    Online:                    Yes
    Using Modem:          No
    Using LAN:          Yes
    Using Proxy:          No
    Firewall Information
    Windows Firewall is on.
    iTunes is enabled in Windows Firewall.
    Connection attempt to Apple web site was successful.
    Connection attempt to browsing iTunes Store was successful.
    Connection attempt to purchasing from iTunes Store was successful.
    Connection attempt to iPhone activation server was successful.
    Connection attempt to firmware update server was unsuccessful. <<<<<<<<<<  MAYBE PROBLEM HERE
    The network connection timed out.<<<<<<<<<<
    Connection attempt to Gracenote server was successful.
    Last successful iTunes Store access was 2012-04-18 04:24:48.

    See if this article will help:
    iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
    http://support.apple.com/kb/TS1814

  • Import/Export App Overwrite Timing Out

    We are about to begin testing an application we've created, and need a testing environment. I have been able to successfully export an application from one server and import it to HTML DB on another, but every time I get to the screen (on the new server) where it asks me to confirm that I want to replace the already existing application, I hit the button to confirm, I wait forever as the blue bar creeps across the status bar of my browser, then I get a "Page Cannot be Displayed" error, like it's timing out or something.
    When I go back, the application appears to have installed normally and seems to work, but I am worried that because of what seemed to be the installation timing out, that there may be things that didn't quite transfer. Is this a valid concern, or should I assume that everything transferred normally?

    Murali,
    The process is actually pretty simple. In our case we had two servers, both w/ HTML DB installed. The way it basically works is that you go into the application you want to export, and you click the Export/Import link on the page. You will be taken through a simple step-by-step process by which you will ultimately just save the application somewhere as a .sql file. You will then go into HTML DB on the server where you would like the copied application to be, and click the same link, and go through a similar step-by-step process to import the application by browsing for it where it was saved when you exported it.
    A few suggestions:
    Any tables that are associated with the application will need to be recreated in your new environment. A simple way to do this is to use:
    CREATE TABLE table_name AS (
    SELECT * FROM [email protected]
    for each of your tables, if there are only a few. If it is larger, you may just want to copy the entire schema over to the new server, which is what we ended up having to do. But our DBA did that, so I'm not as familiar w/ that process.
    However, if the tables have sequences associated with them they will need to be recreated on the new server as well, unless there is a way to copy them along w/ the table all at once, but as I said, we are not as familiar w/ that actual process. (You can find information on how to recreate the sequences here: https://cwisdb.cc.kuleuven.ac.be/ora10doc/server.101/b10759/statements_9001.htm)
    Of course you can simply truncate the tables if you don't want any of you previous data on your new tables.
    Another thing we noticed when we imported a new application, is that when a Named LOV was used in a column of an updatable report, it didn't transfer over, so we had to go back to that select list and reset it as that particular Named LOV.
    One thing you will want to be careful for if you're planning on importing/exporting applications frequently, for new versions and releases, is to make sure you don't hardcode any schema names in with your SQL in the application. This caused us some headaches because when we would import the new application, the new schema on which the tables existed was not the same as the one from the old app, and we kept getting errors until we went back and deleted every instance of the schema name in the SQL.
    There may very well be better and more efficient ways to do these things than how I have suggested, but these are methods we used and we have been successful so far.
    Hope this helps.

  • I cannot acess some of my emails. Thunderbird keeps saying "connection to SMTP server (email adress) timed out. What does that mean? What do I do please?

    I purchased 2 new email, adresses a few weeks ago. Both were fine but a few days ago I was stopped sending and stopped receiving emails on the one. The message comes up on my screen "connection to SMTP server (followed by my email adress) timed out. That does not mean a thing to me. What should I do please?

    Thankyou.
    I had been asked by ICANN some days ago to do something but I thought it was a scam so ignored it. Most other users I have spoken to have never heard of ICANN or been asked to 'register' with them or whatever. Anyway, post writing to you I have now 'registered' with them . When I now click on my incoming email adress it just says "failed to connect to server" but why it fails I do not know.

  • Twc app "request timed out"

    The TWC app doesn't work, it keeps showing the message "request timed out"

    I think this is a Time Warner Cable website problem, not an Apple problem.  After several contacts with Time Warner Cable tech help, I have now been told there is an on-going problem with the MyServices.TimeWarnerCable.com web page that the TWC TV app works in conjunction with.  The MyServices page either doesn't load or won't accept login passwords.  I have been told they are aware of the problem, but there is no estimate of when it will be resolved.  Hasn't worked for me for a couple of weeks now. 

  • Unix Server - Service 3350 Timed out

    Hi,
    This is the error that i get when i try to connect to an R3 System through a portal installed on UNIX Platform. It works fine with the Portal on NT Platform.
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
    Connect_PM  GWHOST=idphl103.phl.sap.corp, GWSERV=sapgw50, ASHOST=idphl103.phl.sap.corp, SYSNR=50
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       connection to host idphl103.phl.sap.corp, service 3350 timed
                out
    TIME        Wed Sep 22 14:05:56 2004
    RELEASE     620
    COMPONENT   NI (network interface)
    VERSION     36
    RC          -12
    MODULE      nixxi_r_mt.c
    LINE        805
    DETAIL      NiPConnect
    COUNTER     1
         at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
         at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(Unknown Source)
         at com.sap.mw.jco.JCO$Client.connect(Unknown Source)
         at com.sap.pct.hcm.pt.showbalances.ShowBalancesDynPage.connectToBackend(ShowBalancesDynPage.java:258)
         at com.sap.pct.hcm.pt.showbalances.ShowBalancesDynPage.createTimeAccountsOutput(ShowBalancesDynPage.java:149)
         at com.sap.pct.hcm.pt.showbalances.ShowBalancesDynPage.doProcessBeforeOutput(ShowBalancesDynPage.java:77)
    Has anyone come across this error ever before?
    A quick solution to this would be highly appreciated.
    Thanks in advance.

    First can you ping or telnet from the portal to the R3 system?
    If you have connect issues it may be firewall....
    John Ryan

  • [SOLVED] Running GTK apps without themes

    You will have to excuse me if this sounds wrong. But I wished to know if it's possible to run GTK themes without any GTK themes.
    Justr curious what the results may actually be and how to go about disabling GTK theme entirely.
    Last edited by wildfowl (2015-01-16 22:51:27)

    I deleted all the themes and Raleigh is still the fallback theme.
    Basically Windows 95.
    No go.

  • Can't run java apps with System.out.println on any builder.

    Hello,
    I'm currently using Vista RC2, which is the immediate problem.
    Classes with System.out.println won't launch the console window. As I'm a student and practicing on these steps, I do have quite a problem on my hands. I click on run, build succesfull, nothing happens.
    I have tried Netbeans and Jcreator, and gave up on trying different builds, as I reckon I'll have to find some other way to counter this; any way to get println messages working in vista?

    It is run as a desktop app, and other runs with commands such as JOptionPane do function, only the println windows don't appear at all. So I think JRE is installed and working.
    I did notice there was one command for input where I'd be able to enter it at the bottom of Netbeans.
    Like just now I clicked build and run for the following code
    import java.util.*;
    public class FirstProgram
        public static void main(String[] args)
            System.out.println("Hello out there.");
            System.out.println("I will add two numbers for you.");
            System.out.println("Enter two whole numbers on a line:");
            int n1, n2;
            Scanner keyboard = new Scanner(System.in);
            n1=keyboard.nextInt();
            n2=keyboard.nextInt();
            System.out.println("The sum of those two numbers is");
            System.out.println(n1+n2)
    }Resulting in a brief flash of "input" in the output window (which is below the coding window) and it dissapears. But this also occurs when I don't include system scanner code.
    Using commands in cmd
    java -jar "C:\Users\Alegis\Netb\MyApp\dist\MyApp.jar"
    Does not yield desired results either. Nothing happens.

  • Running windows apps without installing XP

    So we all know that virtual pc does not work on the intel macs.
    I'd rather not install windows xp as a secondary install as i don't have an SP2 disc.
    Are there any other solutions? All i want to do is run one or two simple apps that won't run on mac os.
    MacBook 2.0Ghz 2GB ram   Mac OS X (10.4.7)  

    You have quite a few options, actually:
    Parallels (http://www.parallels.com/)
    or...
    CrossOver (http://www.codeweavers.com/products/cxmac/)
    Parallels more or less provides the same functionality as Virtual PC, while CrossOver will actually allow you to run select Windows applications natively in OS X. Hope that helps.

  • Is it possible to run AIR apps without installing them?

    Hi there,
    Just have a sudden thought. Most Adobe AIR apps I have seen required installation before execution. Is it actually launch the application directly from the .air file without installatoin?
    You know, some users are quite reluntant to "install" software onto their machine, and moreover in some environment "installation" requires special priviliege. For some tiny utilities, (e.g. a simple calculator, you name it), it would be really handy for users to be able to exceute them directly after downloading the .air file, or even directly from web pages.
    Thanks,
    Kenneth

    I see. Thanks for your help.
    Really wish Adobe would consider adding direct execution feature to AIR.

Maybe you are looking for

  • Help:displaying Arabic characters using XSL

    How do I display static Arabic characters using XSL in a HTML page, from within a JSP? I need to display a HTML page wherein static Arabic characters have to be shown. I use the following XSL document with static Arabic characters inside: <?xml versi

  • Process for Integrating HD and STD Video in One Sequence?

    Here's the situation, I have footage of an event from 2 cameras.  The customer wants footage from both cameras in the final video.  Naturally when the standard footage is dropped into the timeline it is accompanied with ALOT of black space.  What is

  • Enable Document Structure and Document Hierarchy

    We have enable the document browser in SPRO, but the folder do not appear in a hierarchy.  In other words, I can create a FOL type DIR, but it looks like any other document type.  I can not navigate into the folder and add sub folder and documents to

  • Have not been able to convert a file for 2 days... gives me this code: InvalidDMITicket

    I have not had this problem before!  But when I have been trying to upload my file to acrobat - it takes at least 1 hour and then gives me this error code:   InvalidDMITicket  - I have tried at least 10 times - and I am exhausted.  I want to upload t

  • Execute a Report transaction in WD ABAP

    Hi all, I want to execute a report transaction in my Web dynpro application. If it is possible in WD ABAP, can anyone suggest me how to do this? Thanks Sanket sethi