Forcing Offline Mode

I would like to simulate a offline mode when my server is up. In this case on my server something is down, but my web server is up.
If I send an HTTP error message (503, 404, 500) in response of a get http method sent by JWS, JWS displays an error message instead of running in offline mode (launching the jnlp file in the cache).
How could I answer to JWS to simulate a down server in order to work in the offline mode ?

>
To be honest, I don't know if we talk about the same
thing, when we mean "offline mode".
OK, I explain my problem. It s certainly not really clear.
First launching of my application :
The user asks for the JNLP file on the web server by using his favorite browser.
The JNLP file is dynamic, in fact it s a servlet. The servlet returns the JNLP to the browser.
The browser gives the JNLP to JWS.
JWS checks the JNLP file and downloads the ressources (jar files)
JWS launch the java application
Another launch :
The user clicks the Application Icon.
JWS checks if there is a new release of the JNLP file on the web server.
The servlet returns that there is no update of the JNLP file.
JWS loads the JNLP file of its cache and runs the application.
The web server is down :
The user clicks the Application Icon.
JWS checks if there is a new release of the JNLP file on the web server.
The web server is down, so there is a timeout.
So, JWS loads the JNLP file of its cache and runs the application.
The problematic case :(The web server is not down, but I want to simulate this case)
The user clicks the Application Icon.
JWS checks if there is a new release of the JNLP file on the web server.
The servlet has to access a database but this db is down, so the servlet has to return an error code to notify JWS to run the JNLP file in offline mode (in the cache). So the servlet returns an http error.
JWS stops and displays an error message :(((
My problem is this last case, I would like JWS runs in offline mode in this case : reading JNLP file from the cache and launching the application in the cache.
Somebody knows what sort of error my servlet has to return ?
Thanks !!
And Happy Xmas !!

Similar Messages

  • Firefox become in Offline mode and unable to open any page and when shut down it remains in processes and freez up, blocking another to be run

    When I on my Laptop, Acer Aspire 5735 with Windows 7 Ultimate run Firefox all runs perfectly smooth, all is working as expected, but when I go to Sleep mode or Hibernate (Firefox remains open) after turning on Firefox is not active any more, all open tabs are there but surfing is unavailable. Firefox reports message that it is in Offline mode (but menu File > Work Offline is not checked and if I check it and uncheck it again it doesn't have any impact). Which means If I open new tab and write web address it wont open, if I click any link in opened tabs from before, it wont open anything and it will show message that Firefox is in offline mode. After that I shut down Firefox by using Close(x) button and it disappears from desktop but it remains in memory and active processes not allowing any other instance of Firefox to be run. Finally I shut it down on force (End process) and start another instance and all works perfect. I am not sure is this only my problem with hardware/software configuration so I wanted to share this.

    This is a pain but I have resolved it. This is instructions for Windows 7 but it may be the same on other Operating systems.
    Note: "''YOUR USERNAME''" relates to the account you log on to Windows with.
    # First go to control '''panel / folder options''' and ''uncheck'' ''''Hide extensions for known file types'''', ''check'' ''''Show hidden files and folders'''' and ''check'' ''''Show hidden operating system files'''' then click ''apply'' and ''OK''.
    # Go here :''' C:\Users\"YOUR USERNAME"\AppData\Roaming\Mozilla\Firefox\''' and copy the '''Profiles''' folder to your desktop.
    # Go here : '''C:\Users\"YOUR USERNAME"\AppData\Local\Mozilla\Firefox\''' and copy the '''Profiles''' folder to your desktop. You will need to rename this as you already have a Profiles folder so name it '''Profiles2'''.
    # Uninstall Firefox (''selecting to remove all user settings'') then go here: '''C:\Program Files\''' and delete the ''Mozilla Firefox'' folder.
    # Go here : '''C:\Users\"YOUR USERNAME"\AppData\Roaming''' and delete the ''Mozilla'' folder
    # Go here: '''C:\Users\"YOUR USERNAME"\AppData\Local\ '''delete the ''Mozilla'' folder.
    # Open another browser (i.e.'' Internet Explorer'') and download and install ''C-Cleaner'' here: [http://www.piriform.com/ccleaner/download/standard]
    # Once installed run the ''''Registry cleaner'''' over and over until no problems are detected and exit the application. You may now uninstall it but it is probably one of the best free apps available as it has a better uninstaller than Windows does and controls which programs run when Windows starts without using the 'msconfig' command.
    # Now download the latest version of Firefox with your other browser and install it then run the application once and close it down.
    # Open the ''Profiles'' folder on your desktop and inside you will find one or more folders with a name ending in '''.default''' (i.e. ''uomifhku.default''). Right click each folder and select '''Properties''' to see which contains the highest amount of data or the bigger file size. Once you have done that open the largest folder and make sure there is nothing in there with '''... @security.compass''' written on it. If there is then delete it. Hold your ''left'' mouse button and move your mouse pointer over all of the files to highlight in blue. Put your mouse cursor on any one of the files, ''right click'' and select 'Copy' to copy them all to system memory and then close the folder.
    # Go here: '''C:\Users\"YOUR USERNAME"\AppData\Local\Mozilla\Firefox\Profiles''' and find the folder ending in '''.default''' then open it. Now ''right click'' anywhere on the background in the main Payne containing the files and select 'paste'. When prompted to '''Overwrite Files''' and '''Merge Folders''' always accept and proceed. Once done, close the window.
    # Open the '''Profiles2''' folder on your desktop and inside you will find one or more folders with a name ending in '''.default''' (i.e. ''uomifhku.default''). Right click each folder and select '''Properties''' to see which contains the highest amount of data or the bigger file size. Once you have done that open the largest folder and make sure there is nothing in there with '''... @security.compass''' written on it. If there is then delete it. Hold your'' left'' mouse button and move your mouse pointer over all of the files to highlight in blue. Put your mouse cursor on any one of the files, ''right click'' and select '''Copy''' to copy them all to system memory and then close the folder.
    # Go here : '''C:\Users\"YOUR USERNAME"\AppData\Roaming\Mozilla\Firefox\Profiles''' and find the folder ending in '''.default''' then open it. Now right click anywhere on the background in the main Payne containing the files and select '''paste'''. When prompted to '''Overwrite Files''' and '''Merge Folders''' always accept and proceed. Once done, close the window.
    Start Firefox and if all is well you should be working again and it back in the state you left it last without the bug.
    Many thanks, sparkyuiop

  • Windows 8.1 Always Offline Mode

    I have been working with redirected folders and offline files for about a week. We have seen issues with access and drive mappings for users on DirectAccess. I have that sorted out, but during this process I found that Windows 8.1 supports an "Allways
    Offline" mode if you set the offline folder to a Latency of 1.
    http://technet.microsoft.com/en-us/library/hh968298.aspx
    I installed this and it worked fine for a couple of days, but today I noticed that my folders are showing in "Online" mode while connected to the corporate network. I used GPResult on the test computer to confirm that the appropriate settings are
    being applied. Are there any know issues with this feature?
    In Windows 7, they said it is still possible to revert to Online mode if you have a low latency network, but in 8.1 that setting should invoke Offline Mode all the time.

    Hi,
    Did you mean that after the Always Offline policy enabled in your Windows 8.1 machine, but few days later, the
    offline folder shows Online. Isn't it?
    Firstly, you can try to check Event Viewer if it identify this problem.
    In addition, a workaround method I think you can try to using Gpupdate /force
    command to sync the group policy again for test.
    Secondly, please check your Offline files setting if there is any changed recently.
    Roger Lu
    TechNet Community Support

  • I just updated to 4.0.1 on my mac and now it says "Firefox is currently in offline mode and can't browse the web". It is not my internet since I am using Safari just fine. Any suggestions? I sure wish I wouldn't have updated!

    I just updated to 4.0.1 on my mac and now it says "Firefox is currently in offline mode and can't browse the web". It is not my internet since I am using Safari just fine. Any suggestions? I sure wish I wouldn't have updated!

    Make sure that Work Offline is unchecked: File > [] Work Offline

  • I have a problem I can not up grade to the new AOL due to having a MAC 10.4. Now when I go on the site opens but when I finish one thing it tells me error message Offline Mode. What can i do it just shuts the internet down.

    When I open Firefox , and go to AOL.com it goes to the home page with a message to up grade. I have tried that it tells me I can not do it on my operating system MAC 10.4. Now when I sign on to Aol to use my favorites some time it lets me on, but if i write something e-mail or such it sends it them tells me error message Offline mode check off in file which I do, but it shuts down the internet. I cannot get back on.

    You are right, but how could i send it to Apple? when the phone company first replaced my iphone they had in stock alots of iphones and they just sent mine back to Apple and gave me a new one, so all i did is to give them my phone, but now how could i sent it to Apple? and i cant send it by myself, and the store wont do that, its a lost for them.. so sending it to Apple wasnt an option from the begining.
    and for the record, i dont think the store where i bought it is an authorized shop.. its just a store who boughts phone's from Apple in a low price and sells it in much more money..

  • I have been using Firefox for years. I just downloaded your newest version. The new version shows to be downloaded successfully, but when I click Firefox Icon, I get a window that is called "Offline mode"

    It states, "Firefox is curerntly in offline mode and cona't browse the web. It says to uncheck the "work offline" menu item.

    See:
    *File > [ ] Work Offline
    Press F10 or press and hold the Alt key down to bring up the "Menu Bar" temporarily.

  • How can I prevent Firefox from starting in Offline Mode when there is no internet connection?

    Hey!
    When I fire up my laptop from standby it takes some time before the wireless internet connection is established. If i am too quick and open Firefox before that happens, it automatically goes into Offline Mode, which I hate a lot.
    Is there any way to disable this behaviour?
    I have already tried everything mentioned here: [http://superuser.com/questions/208146/can-firefoxs-offline-mode-be-disabled http://superuser.com/questions/208146/can-firefoxs-offline-mode-be-disabled]
    Also I found this addon, which unfortunately does not work with Firefox 11: [https://addons.mozilla.org/de/firefox/addon/disable-automatic-offline-mana/ https://addons.mozilla.org/de/firefox/addon/disable-automatic-offline-mana/]

    That shouldn't happen in Firefox 4 or later. You should just get a page not found or server not found message.
    Can you check the following setting?
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the filter box, type or paste '''offline''' and pause while the list is filtered
    (3) Look for '''network.manage-offline-status''' and reset it to False (either double-click or right-click/reset).
    Does that work?

  • Can I stop Firefox from always opening in Work Offline mode because it's preventing my Macbook from accessing Internet on our wireless home network?

    Sorry, I should have said iMac, not Macbook, if it makes a difference. The problem is Firefox 3.6.10 always starts in Work Offline mode, and Internet won't activate unless we restart, sometimes up to five times.
    The iMac is on our home wireless network which we had no problems with before using Safari on the Macbook we upgraded from.
    Note: I'm posting this query from another computer.

    Did you check the network setting?
    Sounds that you have set to connect automatically when a connection is not available.
    *http://kb.mozillazine.org/Autoconnect
    *http://kb.mozillazine.org/Browser_attempts_to_connect_when_already_connected

  • Get error message "firefox is in offline mode, uncheck the work offline menu and try again " when trying to open firefox after downloading latest version of firefox

    after downloading the latest version of firefox, when trying to open it I recieved the message, "Firefox is in offline mode. cannot browse web. Uncheck the work offline menu and try again". Have tried several times to open with same results. Have even uninstalled firefox and reinstalled latest version and still get meassage after trying to open.

    thank you - that does make sense except i have another computer that connects to the internet in the same way but it doesnt happen on that one. i didnt change anything - it just started a couple of weeks ago after i updated firefox to 11.0. cant find any settings in firefox to alter either - thanks for the help

  • Configuring Weblogic Domain in Offline Mode

    Hi,
    I wrote a java code which invoke wlst command required for configuring weblogic domain in offline mode.
    please give any idea even i do not know exactly what are the required jar file but i have used weblogic.jar,wlfullclient.jar,jython.jar,and some jar files from modules folder which has given in someone post
    i am getting the following error
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.management.scripting.utils.WLSTUtil.initOfflineContext(WLSTUtil.java:291)
    at weblogic.management.scripting.utils.WLSTUtil.setupOfflineInternal(WLSTUtil.java:267)
    at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:234)
    at weblogic.management.scripting.utils.WLSTInterpreter.<init>(WLSTInterpreter.java:134)
    at weblogic.management.scripting.utils.WLSTInterpreter.<init>(WLSTInterpreter.java:76)
    at DomainConfiguration.<init>(DomainConfiguration.java:15)
    at DomainConfiguration.main(DomainConfiguration.java:61)
    Caused by: java.lang.NoClassDefFoundError: com/oracle/cie/wizard/ControllerProxy
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
    at java.lang.Class.getMethod0(Class.java:2670)
    at java.lang.Class.getMethod(Class.java:1603)
    at com.oracle.cie.domain.AbstractManager.getInstanceObject(AbstractManager.java:88)
    at com.oracle.cie.domain.AbstractManager.load(AbstractManager.java:46)
    at com.oracle.cie.domain.ConfigManager.<clinit>(ConfigManager.java:37)
    at com.oracle.cie.domain.DomainConstants.<clinit>(DomainConstants.java:20)
    at com.oracle.cie.domain.script.jython.WLScriptContext.init(WLScriptContext.java:220)
    at com.oracle.cie.domain.script.jython.WLScriptContext.setup(WLScriptContext.java:162)
    at com.oracle.cie.domain.script.jython.WLST_offline.setupContext(WLST_offline.java:105)
    ... 11 more
    thanks in advance

    Hi,
    Make sure that you have weblogic.jar and jython-modules.jar
    You will find weblogic.jar under %BEA_Home% / server / lib
    and you will find jython-modules.jar under %BEA_Home% / common / wlst/modules
    Regards,
    Kal

  • My toolbar was in offline mode and now the only tabs I have or forward, backward & internet the other two or three are missing and the google bar is missing at least in my toolbar. How do I get my toolbar back to normal?

    My firefox was in offline mode I clicked it like it said and it took several times to get it off offline mode. Now my toolbar has items missing how to I get these items back on my toolbar?

    If you had a passcode on the phone when turning on Lost Mode, lost mode is supposed to use that passcode to lock the phone. When found, entering the passcode should unlock the phone. I'm assuming that's what you're trying to do, correct? However, if the phone is now saying it is "Disabled"...after too many wrong passcode attempts, then you have no choice but to restore the phone. Once disabled, you won't get another attempt to enter the passcode.

  • In the past two weeks every time I select the Firefox icon I get a message: "Foreforx is in Offline mode". I click on "try again" and it always comes up. How do I avoid this message and go directly to online status?

    Prior to a couple weeks ago when I clicked on the Fire Fox icon on my MacBook air it went directly to the Fire fox home page. Now when my computer has been off and I choose the Fire Fox icon, I get a message that Fire Fox is in "offline" mode. I then click the box "try again" it always comes up as usual. What can I do to get away from that "offline" message? I do not have the same problem with my desktop iMac.

    Try the solutions at http://support.mozilla.com/en-US/kb/Firefox+hangs#Hang_at_exit

  • (DESKTOP APP) Can't acsess script in offline mode anymore.

    I can’t access my documents using Desktop App in offline mode.
    When I go offline all my documents turn marked “RED” even they were marked “GREEN” in online mode.
    When I try to open a script in Offline Mode I get the following error: “You are trying to open document in offline mode that has not been downloaded fully from Adobe Story account. …” Even though all documents have been downloaded …
    I thought the whole Idea of the DESKTOP APP is to able to work offline.
    Any idea?
    Thanks for your support, Carsten
    System:
    Windows 7 Professional SP1
    Adobe Story CC 2014 3.0.0
    Adobe Air 15.0.0.356

    I have tried that, I opened document, went offline, closed document and tried to open it again - but it won't work and I got the same error.
    This is problem affects all my documents. I can't open any of my documents in offline mode. Only one project somehow is not affected.
    Cheers,
    Carsten

  • Set SPN for a local SQL Server 2008 R2 Express database used for local "Offline Mode" application

    Hi - I have tried searching the web for tips on this situation. Basically, I am trying to recreate a previous employee's client Image. This image is used for one of our companies client application that features and "Offline Mode" where it connects
    (Using Kerberos) to the local DB instead of the central DB server.
    The custom image connects without issue. I cannot seem to recreate his configuration. I am sure of these things:
    - Both images are using the same SQL Server 2008 R2 Express version.
    - Both images have the same user accounts setup.
    - Both images have "Remote Connections" setup with TCP/IP enabled in the Configuration Manager.
    - Both images are joined to the same Domain server currently.
    - Both images has the SQLServer service set to use "NETWORK SERVICE" account.
    This is the error message I get when SQL starts up for the non-working image:
    The SQL Network Interface library could not register the Service Principal Name (SPN) for the SQL Server service. Error: 0x54b, state: 3. Failure to register an SPN may
    cause integrated authentication to fall back to NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies.
    Thank you for any assistance given.

    Hi Gribbled,
    Could you please change the SQL Server Service to run under 'LocalSystem' account and restart SQL Server? Then check if the error still occurs. When the SQL Server service account is configured to use the LocalSystem account, the server will automatically
    publish the SPN.
    Alternatively, to work around this issue, you can manually create the SPN for the SQL Server Service account  using the SETSPN tool. For more details, please review this
    blog.
    Thanks,
    Lydia Zhang

  • Need Javascript to force reading mode on document open...

    Need Javascript to force reading mode on document open... Does anyone know how to do this? Acrobat 8 does not come with a custom action for opening a page in reading mode...
    Would also like the remove the page scroll bar from the document window. Can this also be applied using Javascript?

    This code will embed a script that will open the doc in Reading Mode:
    this.addScript("OpenInReadingMode","app.execMenuItem('ReadingMode');");
    You can't remove the toolbar from the document window, only in full screen mode it's invisible.

Maybe you are looking for

  • I have an iphone 4s why does it have a black screen instead of my background picture when I get a text message?

    I have an iphone 4S why does it have a black screen instead of my background picture when I get a text message?

  • Error While Checking the Preview

    Hi experts, I had the requirement of submitting the inquiry details and getting the inquiry number,when i developed the application in Webdynpro , and deployed and run the application.It is working fine. When I created an i view for this ,and tested

  • Schedule report re-runs when opening

    Hi, I have a scheduled discover report in Discoverer 4.1.48 version, when opening that scheduled report its re-run the query again. Please let me know, the reason. BR, Uma

  • Loading a flat table with duplicate rows in SQL server

    Hi, I'm trying to load a flat table with different levels that has duplicate rows. When I'm loading it from my source SQL server enviornment to target SQL server environment.. I can only load 63 rows out of the 1225 rows.. This is happenning because

  • No Refund !?!?!?!

    Bought a new Mac Pro last week and after much testing found it didn't significantly increase the speed of my tasks - decided to return it and take the restocking fee hit. But wait, I can't return it as it's a "custom" configuration - as near as I can