Topic - xslfo-fop problem
Topic - xslfo-fop problem Topic - xslfo-fop problem
from forum General Support
 forum index   my profile   search 
 new topic  post reply 
moderators: pjr tab
xslfo-fop problem
Joined: 19-February-2005
Posts: 7
Posted: 23-February-2005 00:26
I have a problem testing fop functionality. I have a very simple idoc:
=========================================================
<idoc>
<seq>
<instr>
<type>copy</type>
<operand>file:///C:1060-NKSEDK-2.0.3modulesBenchmarkcontentsample.xml</operand>
<target>var:message</target>
</instr>
<instr>
<type>xslfo-fop</type>
<operand>var:message</operand>
<operator>
<xslfo-fop>
<type>pdf</type>
</xslfo-fop>
</operator>
<target>this:response</target>
</instr>
</seq>
</idoc>

==========================================================
when i attempt to execute it i get the following error:
***********************************************************
Error sourcing resource
resource ffcpl:/xslt/test7.idoc not found in module urn:org:ten60:netkernel:ext:xslfo

executing instruction
INSTR: xslfo-fop operand=message operator=literal
in idoc
ffcpl:/xslt/test7.idoc


Retry the request.

A detailed Exception Trace is available, please report this to the system adminstrator or use it to identify the source of the problem.
Detailed Exception Trace
Id: Exception during request processing
Message: whilst waiting for result...
Request: [SOURCE jetty://localhost:8080/benchmark/xslt/test7 in urn:org:ten60:netkernel:tpt:http as com.ten60.netkernel.urii.aspect.IAspectBinaryStream]
Callstack:
com.ten60.netkernel.scheduler.RequestState.setException() line:125
com.ten60.netkernel.scheduler.Scheduler.receiveAsyncException() line:320
org.ten60.netkernel.dpml.DPMLAccessor.stateException() line:163
org.ten60.netkernel.dpml.DPMLAccessor.receiveAsyncException() line:130
Id: Unhandled exception in DPML
Message: INSTR: xslfo-fop operand=message operator=literal
Request: ffcpl:/xslt/test7.idoc
Callstack:
org.ten60.netkernel.dpml.DPMLAccessor.stateException() line:158
org.ten60.netkernel.dpml.DPMLAccessor.receiveAsyncException() line:130
com.ten60.netkernel.scheduler.Scheduler.stateReturnResult() line:620
com.ten60.netkernel.scheduler.Scheduler.processRequest() line:250
Id: Exception during request processing
Message: whilst waiting for result...
Request: [SOURCE active:xslfo-fop+operand@var%3Amessage+operator@ffcpl%3A/xslt/test7.idoc%23xpointer(/idoc/seq/instr[2]/operator/xslfo-fop) in urn:org:ten60:netkernel:ext:dpml as java.lang.Object]
Callstack:
com.ten60.netkernel.scheduler.RequestState.setException() line:125
com.ten60.netkernel.scheduler.Scheduler.receiveAsyncException() line:320
org.ten60.netkernel.xml.xahelper.XAccessor.requestAsync() line:97
com.ten60.netkernel.scheduler.Scheduler.stateRequestRepresentation() line:420
Id: Unhandled Exception
Message: in org.ten60.xslfo.accessor.FOPAccessor
Request: [SOURCE active:xslfo-fop+operand@var%3Amessage+operator@ffcpl%3A/xslt/test7.idoc%23xpointer(/idoc/seq/instr[2]/operator/xslfo-fop) in urn:org:ten60:netkernel:ext:xslfo as java.lang.Object]
Callstack:
org.ten60.netkernel.xml.xahelper.XAccessor.requestAsync() line:94
com.ten60.netkernel.scheduler.Scheduler.stateRequestRepresentation() line:420
com.ten60.netkernel.scheduler.Scheduler.processRequest() line:235
com.ten60.netkernel.scheduler.Scheduler.processRequest() line:207
Id: Unhandled Exception in XAccessor
Message: whilst requesting operator
Callstack:
org.ten60.netkernel.xml.xahelper.XAHelperImpl.innerGetResource() line:254
org.ten60.netkernel.xml.xahelper.XAHelperImpl.innerGetResource() line:200
org.ten60.netkernel.xml.xahelper.XAHelperImpl.getOperator() line:102
org.ten60.xslfo.accessor.FOPAccessor.source() line:84
Id: Exception during request processing
Message: whilst waiting for result...
Request: [SOURCE ffcpl:/xslt/test7.idoc#xpointer(/idoc/seq/instr[2]/operator/xslfo-fop) in urn:org:ten60:netkernel:ext:xslfo as org.ten60.netkernel.xml.representation.IXAspect]
Callstack:
com.ten60.netkernel.scheduler.RequestState.setException() line:125
com.ten60.netkernel.scheduler.Scheduler.receiveAsyncException() line:320
com.ten60.netkernel.urii.accessor.AccessorImpl.issueResult() line:122
com.ten60.netkernel.module.accessor.ModuleResourceAccessor.source() line:109
Id: Error sourcing resource
Message: resource ffcpl:/xslt/test7.idoc not found in module urn:org:ten60:netkernel:ext:xslfo
Request: ffcpl:/xslt/test7.idoc
Callstack:
com.ten60.netkernel.module.accessor.ModuleResourceAccessor.source() line:108
com.ten60.netkernel.module.accessor.ModuleResourceAccessor.requestAsync() line:70
com.ten60.netkernel.scheduler.Scheduler.stateRequestRepresentation() line:420
com.ten60.netkernel.scheduler.Scheduler.processRequest() line:235

***********************************************************

Being new to 1060 - i am finding this very difficult to trace. I know the source fo file (sample.xml) is ok as i
can convert it to pdf directly via fop and via cocoon.
Also the xslfo-fop install had no problems.

Please let me know if this forum is the correct place to
ask such questions.

Regards,
Franco
Joined: 7-February-2005
Posts: 404
Location: between ROC and a hard place
Posted: 23-February-2005 15:42
I've looked at the xslfo module and found a bug that matches your scenario. It works when inputs are passed by value but not when passed by reference. See:
http://www.1060.org/bugxter/main/edit_bug?id=44

If you look at the last entry in the trace you see that the xslfo module itself is trying to resolve your application specific resource. This is because of a wrongly configured <mapping/> section on the xslfo module definition.

It is a trivial fix that I'll get rolled into the next release. To patch your version you'll need to follow the following steps:

1) expand the xslfo module
2) edit the module.xml file in the root directory and replace the <this/> tag with <this><match>ffcpl:/xusr/.*</match></this>
3) jar the module up again
4) replace the old with the new

xslt-fop bug
Joined: 19-February-2005
Posts: 7
Posted: 24-February-2005 03:27
Thank you for your quick response, that fixed the problem. Seems to be working well now.
ext-xslfo fixed
Joined: 7-February-2005
Posts: 591
Location: UK
Posted: 25-February-2005 15:23
We've posted a patch for the ext-xslfo module...

http://www.1060.org/forum/topic/18/1
 new topic  post reply  To find out about new replies to this post as they occur
please subscribe to one of these feeds:
AtomRSS moderate 
© 2003-2006, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.