cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robby Pelssers" <>
Subject RE: Runnable in flowscript?
Date Fri, 19 Mar 2010 17:56:17 GMT
Function processPipelineTo([String] uri, [Object] bizData, [] stream) 

The api says is should be an object...

So maybe try

cocoon.processPipelineTo(fmt+"_pipe/"+url, {} ,output_stream); //using object literal

I don't know if you need a context but you sure aren't setting any...


-----Original Message-----
From: Fawzib Rojas [] 
Sent: Friday, March 19, 2010 6:43 PM
Subject: Re: Runnable in flowscript?

Yes those are all typos the exception I'm getting is not typo related. :)
I'll post the real code I'm using for debugging:

function create_pdf() {
     var use_background_thread=true;
     var path=cocoon.parameters["report"];
     var fmt=cocoon.parameters["format"];
     var queryInfo=getRequestParameters();
     var url=path+"?"+queryInfo;
     var output_stream=new;
         var r = new java.lang.Runnable() {
             run: function() {
                 // gives an exception here on the console
         new java.lang.Thread(r).start();
         // this works, just never finishes because of exception in thread
         while(!output_stream.isClosed()) {
             cocoon.sendPageAndWait("progress.jx",{ "length" : 
output_file.length(), "output_path" : output_file.getCanonicalPath(), });
     cocoon.sendPage( fmt+"_pipe/"+url, {file_name : 
output_file.getCanonicalPath() } );

On 3/19/2010 1:01 PM, Robby Pelssers wrote:
> I actually see a bunch of typos (?)  Always indent your code properly dear friend so
it's easy to track errors... I indented your code for this little exercise without making
any modifications...
> So check yourself if those are typos or not !!
> Cheers,
> Robby Pelssers

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message