Title: ClientContext.loadFile never returns
Hi All
  • We call loadGuiProperties() before any GUI components are visible. Of course if onSuccess/onFailure isn't called, there's no way to get the client doing something else.
  • Very often, it's the first call to ClientContext.loadFile which get's lost, but that's not allways true.
HTH
Ernst
 

Von: Etienne Studer [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 17. Mai 2006 16:34
An: Plüss Ernst, Bedag; [EMAIL PROTECTED]
Betreff: RE: [ULC-developer] ClientContext.loadFile never returns

Hi Ernst/ULC-Team

 

We experience the same problem with our deployed application. Maybe one out of 15 times the scenarion you described happends (ULC6.0.4 Win XP, JWS, Tomcat 5.x).

 

In our case, the app does not hang but somhow ‘ignores’ the upload.

 

Etienne

 

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Plüss Ernst, Bedag
Sent: Wednesday, May 17, 2006 7:27 AM
To: [EMAIL PROTECTED]
Subject: [ULC-developer] 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