| General Support > xslfo-fop problem |

Joined: 7-February-2005 Posts: 249 Location: Uncharted territory | 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=44If 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 |
| General Support > sending (POST) xml from Netkernel to other Web Services |

Joined: 7-February-2005 Posts: 249 Location: Uncharted territory | Posted:
23-February-2005 15:26 Workarounds I've looked at the source and these characteristics are bugs. I've raised a report on bugxter: http://www.1060.org/bugxter/main/edit_bug?id=42We have always planned to do get a better client side HTTP solution using Apache HTTP Client. We need to get this scheduled soon. This would not be too much work. As a workaround you could use the raw java.net.URLConnection in a beanshell script or java accessor. Let me know if you need more details on how to do this. |
| General Support > xslfo-fop problem |
Joined: 19-February-2005 Posts: 7 | Posted:
23-February-2005 00:26 xslfo-fop problem 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 |
| General Support > sending (POST) xml from Netkernel to other Web Services |
Joined: 19-February-2005 Posts: 7 | Posted:
22-February-2005 21:39 WS xml POST Thanks for your suggestion. I did try something similar using DPML (SOURCE accessor). The "Get" does work but the "POST" fails.
I have a non 1060 hosted 'echo' service. When I use the script: ================================================================= import org.ten60.netkernel.layer1.representation.StringAspect; main() { req = context.createSubRequest(); req.setURI("http://localhost:4088/echo"); doc = "<xml>my document</xml>"; req.addArgument("param",new StringAspect(doc)); r = context.issueSubRequest(req); response = context.createResponseFrom(r); context.setResponse(response); }
================================================================= The echo service receives the the following query string:
/echo+param@var%3Aparam
This doesn't look right. It is a POST though as TCPMON placed between 1060 and the endpoint reports receiving:
POST /echo+param@var%3Aparam HTTP/1.1
The following DPML script: ================================================================= <idoc> <instr> <type>requestWithArgs</type> <uri>http://localhost:4088/echo</uri> <param>mydoc.xml</param> <target>this:response</target> </instr> </idoc> ================================================================= actually performs a 'GET'. If I place tcpmon between 1060 and my uri endpoint, tcpmon reports receiving:
GET /benchmark/post/echo+param@mydoc.xml HTTP/1.1
For a POST request I was looking for something that worked like your wsSOAPClient accessor request. That is the XML document sent as part of the request body but without the SOAP headers. If this is not possible at present I could use your wsSOAPClient accessor and simply strip out the SOAP headers at the endpoint. It's just a bit messier, but will work. Thanks again for your assistance.
|
| General Support > sending (POST) xml from Netkernel to other Web Services |

Joined: 7-February-2005 Posts: 397 Location: UK | Posted:
21-February-2005 16:44 POST using DPML You can do the same thing declaratively in DPML with...
<instr> <type>requestWithArgs</type> <uri>http://myserver.com/myPostHandler</uri> <param>mydoc.xml</param> <target>this:response</target> </instr>
requestWithArgs is just a service that implements the NKF code Tony showed above. |
| General Support > sending (POST) xml from Netkernel to other Web Services |

Joined: 7-February-2005 Posts: 249 Location: Uncharted territory | Posted:
20-February-2005 23:31 This feature isn't well documented. (I'll get this sorted) You can actually pass a single argument to a http: request and this argument is POSTed to server. If no argument is supplied then a GET is issued- here is simple code sample in beanshell- you can paste it into the Script Playpen: import org.ten60.netkernel.layer1.representation.StringAspect; main() { req = context.createSubRequest(); req.setURI("http://myserver.com/myPostHandler"); doc = "<xml>my document</xml>"; req.addArgument("param",new StringAspect(doc)); r = context.issueSubRequest(req); response = context.createResponseFrom(r); context.setResponse(response); } |
(sorry the XML brackets are not coming out well in the formatting- please unescape them) |
| 1060 Forum > Profile not updated |

Joined: 7-February-2005 Posts: 397 Location: UK | Posted:
20-February-2005 21:07 Mmmm. It was just the stylesheet rendering the profile form. It had a default value wired in and wasn't using the value from the DB.
Fixed in CVS - will update site RSN.
Thanks. |
| Installation > command-line installation |

Joined: 7-February-2005 Posts: 397 Location: UK | Posted:
20-February-2005 13:55 |
| 1060 Forum > Profile not updated |
Joined: 15-February-2005 Posts: 127 Location: Fort Collins, CO | Posted:
19-February-2005 18:59 Profile not updated When I edit my profile, I cannot change the hint question. It always reverts back to the default question.
|
| Installation > command-line installation |
Joined: 19-February-2005 Posts: 2 | Posted:
19-February-2005 12:56 I tried "java -Djava.awt.headless=true -jar 1060_NetKernel_SE_DK2.0.3.jar" but I'm getting errors. - Error - java.awt.HeadlessException java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121) at java.awt.Window.<init>(Window.java:274) at java.awt.Frame.<init>(Frame.java:401) at java.awt.Frame.<init>(Frame.java:366) at javax.swing.SwingUtilities$1.<init>(SwingUtilities.java:1641) at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1637) at javax.swing.JDialog.<init>(JDialog.java:211) at javax.swing.JDialog.<init>(JDialog.java:162) at javax.swing.JDialog.<init>(JDialog.java:122) at com.izforge.izpack.installer.GUIInstaller$LanguageDialog.<init>(Unknown Source) at com.izforge.izpack.installer.GUIInstaller.loadLangPack(Unknown Source) at com.izforge.izpack.installer.GUIInstaller.<init>(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:308) at java.lang.Class.newInstance(Class.java:261) at com.izforge.izpack.installer.Installer.main(Unknown Source) |
|