Hi Holger
 
We experienced the same behavior. It got fixed in ULC 6.0.5.
 
Etienne
 
 

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zywietz, Holger
Sent: Wednesday, January 31, 2007 9:19 AM
To: [email protected]
Subject: [ULC-developer] Error in DefaultFileStoreHandler


Hallo
 
I am using the DefaultFileStoreHandler for storing a file on client side. In 
some cases it works and when the file is stored on the client the method 
"onSuccess" of the DefaultFileStoreHandler is called. In some cases no method 
is called (onFailure, onSuccess). In the error case the file is stored on 
client side, but no method is called or no exception is thrown.
 
Could some one give me hint
 
Here the part of code and the DefaultFileStoreHandler class:
...
  ClientContext.storeFile(new OpenFileStoreHandler(bis), 
clientFileNameWithoutQuotes);
..
 
public class OpenFileStoreHandler extends DefaultFileStoreHandler {
 
 public void prepareFile(OutputStream data) throws Exception {
  try {
   super.prepareFile(data);
  } catch (Exception e) {
   e.printStackTrace();
  }
 }
 
 public OpenFileStoreHandler(byte[] in) {
  super(in);
 }
 
 public OpenFileStoreHandler(InputStream in) throws java.io.IOException {
  super(in);
 }
 
 public void onSuccess(String filePath) {
  //showDocument with a String with Quotes does not work......
  System.out.println("onSuccess");
  ClientContext.showDocument(filePath)
 }
 
 public void onFailure(int reason, java.lang.String description) {
  System.out.println("onFailure");
 }
}

I am using ULC 6.0.4
 
regards
 
Holger

Würth Phoenix GmbH 
Holger Zywietz
IT Consultant Business Integration

Industriepark Würth 
Drillberg 6 / Geb. 2 
DE-97980 Bad Mergentheim 
Phone: +49 (0)7931-91-6278 
Fax: +49 (0)7931-91-7278 

www.wuerth-phoenix.de <http://www.wuerth-phoenix.de/>  

Sitz: Bad Mergentheim
Geschäftsführer: Andreas Braun, Hubert Kofler, Jürg Michel
Amtsgericht Crailsheim
HRB 842 M
USt. ID. Nr.: DE 813 870 551

 

Reply via email to