I'm using cocoon 2.1.10.
On 3/19/2010 3:16 PM, Robby Pelssers wrote:
I did find the java class which probably get's called by the javascript
wrapper...
src\java\org\apache\cocoon\components\flow\javascript\fom\FOM_Cocoon.java
public void jsFunction_processPipelineTo(String uri, Object map, Ob
I did find the java class which probably get's called by the javascript
wrapper...
src\java\org\apache\cocoon\components\flow\javascript\fom\FOM_Cocoon.java
public void jsFunction_processPipelineTo(String uri, Object map, Object
outputStream) throws Exception
So my best tip is to attach the
mm I actually was searching for the flowscript shipped with cocoon which is
being called... But I can't seem to find it in the cocoon sources... Which
version of cocoon are you using by the way?
I'm trying to understand what the flowscript function does ...since apparently
it should set som
Output:
fmt= pdf2
output_stream = com.spectron.io.fileprogressoutputstr...@fc8361
I know that part works (i can access objects variables in thread)
because I tested it with something like this:
var length=0;
var r = new java.lang.Runnable() {
run: function() {
while(true) length++
You're in fact using a closure here so I'm not sure if that's causing issues.
Can you add following debug statements?
var r = new java.lang.Runnable() {
run: function() {
//add following print statements
print("fmt= " + fmt);
print("output_stream = " + ouput_stream);
I changed the '' to {} like u said, not needed because when I dont use
the thread it works. Same with the pipelines, they work when I don't use
the thread (use_background_thread=false). I think I just need to be able
to set the environment (context?) inside the thread, check the
exceptions I ge
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_file=java.io.File.createTempFile(path,".pdf");
var outpu
On 3/19/2010 1:56 PM, Robby Pelssers wrote:
Function processPipelineTo([String] uri, [Object] bizData,
[java.io.OutputStream] stream)
The api says is should be an object...
So maybe try
cocoon.processPipelineTo(fmt+"_pipe/"+url, {} ,output_stream); //using object
literal
Thats not it,
Function processPipelineTo([String] uri, [Object] bizData,
[java.io.OutputStream] 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 a
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=getRequestPar
px...@nlscli02:/home/pxqa1>wget http://www.w3.org/
--18:36:46-- http://www.w3.org/
=> `index.html'
Resolving www.w3.org... failed: Name or service not known.
px...@nlscli02:/home/pxqa1>
So this must be an issue to do with not being able to access the internet.
Robby
-Original Mes
I have following issue... when deploying the Cocoon application on my laptop on
tomcat everything works like a charm but for some reason I get following
stacktrace when trying to generate svg and serializing it to png on a linux
machine...
Does anyone have any good pointers to where to look fo
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
function create_pdf() {
On 3/19/2010 11:40 AM, Florent André wrote:
Yi,
Perhaps it's just an in mail typo error, but your "pdf-create-pipeline"
spell in :
On Fri, 19 Mar 2010 10:40:51 -0400, Fawzib Rojas
wrote:
cocoon.processPipelineTo("pdf-create-pipeline'',output_stream);
output_stream.close();
Yi,
Perhaps it's just an in mail typo error, but your "pdf-create-pipeline"
spell in :
On Fri, 19 Mar 2010 10:40:51 -0400, Fawzib Rojas
wrote:
>
> cocoon.processPipelineTo("pdf-create-pipeline'',output_stream);
> output_stream.close();
> }
> };
begin wit
I'm trying to create a pipeline in the background using a thread. My
flowscript looks like this:
function create_pdf() {
var output_file=java.io.File.createTempFile("temp",".pdf");
var output_stream=new MyOutputStream(output_file);
//
var r = new java.lang.Runnable() {
ru
16 matches
Mail list logo