Title: ClientContext.loadFile never returns

Hi All

We load some gui settings from a file on the client machine with ClientContext.loadFile. With the deployment runner this works fine. If we deploy the code on Tomcat, every now and then we do no get a call backo to onSuccess or onFailure, which means the client hangs forever.

Code:
    protected void loadGuiProperties() {
                ClientContext.loadFile(
                    new IFileLoadHandler() {                   
                        /**
                         * Datei mit den GUI-Properties laden hat geklappt.
                         */
                        public void onSuccess(InputStream in, String filePath) {
                            try {
                                MainGui.this.clientProperties.load(in);
                                startGuiContext();
                            } catch (Exception e) {
                                LOG.warn("Loading Client Properties failed, using defautls.");
                            }                   
                        }
           
                        /**
                         * Datei mit den GUI-Properties laden hat nicht geklappt.
                         */
                        public void onFailure(int reason, String description) {                
                                startGuiContext();
                        }
           
                    },
                    ClientContext.getSystemProperty("user.home") + ClientContext.getSystemProperty("file.separator") + "sic.gui.properties");                  

       
    }


Any Ideas?
Ernst Plüss
Bedag Informatik AG
Abteilung GF GBA
Gutenbergstrasse 1
3012 Bern

Telefon:        +41 (0)31 633 21 21 (direkt 633 25 89)
E-Mail:        
mailto:[EMAIL PROTECTED]
www.bedag.ch


Reply via email to