Hi Kasun, Thanks for your reply. I tried deleting the escape characters. Still the problem persists. Let me explain how I deployed it.
As I posted the file proxy code, I deployed it in " /CARBONHOME/repository/deployment/server/default/proxy services " And I created a file ( input.xml ) with the xml file to transform and dropped into input directory. But I am getting the same error log. ( I have specified xslt file resource as a local entry and specified a key name for it. Which is used in the file proxy code ) Regards Guru -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Tuesday, December 27, 2011 8:05 AM To: [email protected] Subject: Carbon-dev Digest, Vol 47, Issue 513 Send Carbon-dev mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of Carbon-dev digest..." Today's Topics: 1. Re: XSLT Transformation fails (KasunG Gajasinghe) 2. [Bamboo-Build] WSO2 Carbon 3.2.0 > WSO2 Carbon - Platform 3.2.0 > #65 has FAILED (Bamboo) ---------------------------------------------------------------------- Message: 1 Date: Tue, 27 Dec 2011 10:56:30 +0530 From: KasunG Gajasinghe <[email protected]> To: [email protected] Subject: Re: [Carbon-dev] XSLT Transformation fails Message-ID: <CAJYSROuUWx9S7=2sx-ob6ruah_9vv3wngmyj2b7m18pjnsi...@mail.gmail.com> Content-Type: text/plain; charset="windows-1252" Hi, This has probably occurred because of not escaping a returned xml value. I'm not aware about your implementation, but check whether you have tried to use a xml text read from a file without escaping the characters. If that's not the reasom, following might provide a solution for you. http://osdir.com/ml/java.wso2.esb.user/2008-10/msg00084.html Regards, --KasunG On Mon, Dec 26, 2011 at 8:17 PM, <[email protected]> wrote: > Hi**** > > ** ** > > I have created a file proxy to attain the following scenario. ? To > pick a xml file from the local file directory, Send it to a xslt > transformer and forward the transformed xml in another local > directory.**** > > ** ** > > The proxy service code below: **** > > ** ** > > <?xml version="1.0" encoding="UTF-8"?>**** > > <proxy xmlns="http://ws.apache.org/ns/synapse" name="FileProxy" > transports="vfs" startOnLoad="true" trace="disable">**** > > <localEntry xmlns="http://ws.apache.org/ns/synapse" key="xslt" > src="file:resources/trans.xslt"/>**** > > <target>**** > > <inSequence>**** > > <log level="full"/>**** > > <xslt key="xslt-key-req" > /> **** > > <property xmlns:ns2=" > http://org.apache.synapse/xsd" name="transport.vfs.ReplyFileName" > expression="fn:concat('Outputfile', '.txt')" scope="transport"/>**** > > <property name="OUT_ONLY" value="true"/>**** > > <send>**** > > <endpoint name="FileEpr">**** > > <address uri="vfs:file:d:\\test\out"/>**** > > > **** > > </endpoint>**** > > </send>**** > > </inSequence>**** > > </target>**** > > <parameter > name="transport.vfs.ActionAfterProcess">MOVE</parameter>*** > * > > <parameter name="transport.PollInterval">15</parameter>**** > > <parameter > name="transport.vfs.MoveAfterProcess">file:d:\\test\afterprocess</para > meter> > **** > > <parameter > name="transport.vfs.FileURI">file:d:\\test\input</parameter> > **** > > <parameter > name="transport.vfs.MoveAfterFailure">file:d:\\test\afterfailure</para > meter> > **** > > <parameter > name="transport.vfs.FileNamePattern">.*.xml</parameter>**** > > <parameter > name="transport.vfs.ContentType">text/plain</parameter>**** > > <parameter > name="transport.vfs.ActionAfterFailure">MOVE</parameter>*** > * > > </proxy>**** > > ** ** > > INPUT XML File kept:**** > > ** ** > > <?xml version="1.0"?>**** > > <?xml-stylesheet type="text/xsl"?>**** > > <hello-world>**** > > <greeter>An XSLT Programmer</greeter>**** > > <greeting>Hello, World!</greeting>**** > > </hello-world>**** > > ** ** > > XSLT File:**** > > ** ** > > <?xml version="1.0"?>**** > > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > version="1.0">**** > > <xsl:template > match="/hello-world"><HTML><HEAD><TITLE></TITLE></HEAD><BODY><H1><xsl: > value-of > select="greeting"/>**** > > </H1><xsl:apply-templates select="greeter"/></BODY></HTML>**** > > </xsl:template><xsl:template match="greeter"><DIV>from <I>**** > > <xsl:value-of select="."/></I></DIV></xsl:template>**** > > </xsl:stylesheet>**** > > ** ** > > Error after I drop the file in input directory:**** > > ** ** > > [2011-12-26 16:08:53,531] ERROR - XSLTMediator Unable to perform XSLT > transformation using : Value {name ='null', keyValue ='**** > > y/child::*[position()=1] | s12:Body/child::*[position()=1]**** > > org.apache.axiom.om.OMException: > com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '&' > (code 38) in prolog;**** > > at [row,col {unknown-source}]: [1,39]**** > > at > org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java > :296) > **** > > at > org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDo > cumentImpl.java:109) > **** > > at > org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAX > OMBuilder.java:570) > **** > > at > org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAX > OMBuilder.java:566) > **** > > at > org.apache.synapse.util.jaxp.StreamResultBuilder.getNode(StreamResultB > uilder.java:87) > **** > > at > org.apache.synapse.mediators.transform.XSLTMediator.performXSLT(XSLTMe > diator.java:295) > **** > > at > org.apache.synapse.mediators.transform.XSLTMediator.mediate(XSLTMediat > or.java:191) > **** > > at > org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractList > Mediator.java:60) > **** > > at > org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMed > iator.java:114) > **** > > at > org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(Prox > yServiceMessageReceiver.java:154) > **** > > at > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181) > **** > > at > org.apache.axis2.transport.base.AbstractTransportListener.handleIncomi > ngMessage(AbstractTransportListener.java:328 > **** > > at > org.apache.synapse.transport.vfs.VFSTransportListener.processFile(VFST > ransportListener.java:551) > **** > > at > org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirect > ory(VFSTransportListener.java:301) > **** > > at > org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTranspor > tListener.java:157) > **** > > at > org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTranspor > tListener.java:106) > **** > > at > org.apache.axis2.transport.base.AbstractPollingTransportListener$1$1.r > un(AbstractPollingTransportListener.java:67) > **** > > at > org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeW > orkerPool.java:173) > **** > > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecu > tor.java:886) > **** > > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor. > java:908) > **** > > at java.lang.Thread.run(Thread.java:619)**** > > Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected > character '&' (code 38) in prolog; expected '<'**** > > at [row,col {unknown-source}]: [1,39]**** > > at > com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:6 > 48)* > *** > > at > com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.jav > a:2047) > **** > > at > com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)*** > * > > at > org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStre > amReaderWrapper.java:225) > **** > > at > org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilde > r.java:681) > **** > > at > org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java > :214) > **** > > ... 20 more**** > > ** ** > > Please help out in this. **** > > ** ** > > > Regards**** > > Guru**** > > * Please do not print this email unless it is absolutely necessary. > ***** > > The information contained in this electronic message and any > attachments to this message are intended for the exclusive use of the > addressee(s) and may contain proprietary, confidential or privileged > information. If you are not the intended recipient, you should not > disseminate, distribute or copy this e-mail. Please notify the sender > immediately and destroy all copies of this message and any attachments. > > WARNING: Computer viruses can be transmitted via email. The recipient > should check this email and any attachments for the presence of viruses. > The company accepts no liability for any damage caused by any virus > transmitted by this email. > > www.wipro.com > > _______________________________________________ > Carbon-dev mailing list > [email protected] > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- *Kasun Gajasinghe* Software Engineer; WSO2 Inc.; http://wso2.com , *email: **kasung AT spamfree wso2.com** cell: **+94 (77) 678-0813* *blog: **http://blog.kasunbg.org* <http://blog.kasunbg.org> * twitter: **http://twitter.com/kasunbg* <http://twitter.com/kasunbg> * * -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.wso2.org/pipermail/carbon-dev/attachments/20111227/506844fb /attachment-0001.html> ------------------------------ Message: 2 Date: Mon, 26 Dec 2011 13:47:31 -0800 (PST) From: Bamboo <[email protected]> To: [email protected] Subject: [Carbon-dev] [Bamboo-Build] WSO2 Carbon 3.2.0 > WSO2 Carbon - Platform 3.2.0 > #65 has FAILED Message-ID: <1677252607.275.1324936051115.javamail.bam...@db6237242.aspadmin.net> Content-Type: text/plain; charset="utf-8" ----------------------------------------------------------------------- WSO2 Carbon 3.2.0 > WSO2 Carbon - Platform 3.2.0 > #65 failed. ----------------------------------------------------------------------- This build was triggered at the scheduled time of 12:00 PM No failed tests found, a possible compilation error. http://builder4.us1.wso2.org:8888/bamboo/browse/WSO2CARBON320-WSO2CARBON PLATFORM320-65/ -------------- Failing Jobs -------------- - WSO2 Carbon Nightly Build Process (Default Stage): No tests found. -- This message is automatically generated by Atlassian Bamboo -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.wso2.org/pipermail/carbon-dev/attachments/20111226/e667ffad /attachment.html> ------------------------------ _______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev End of Carbon-dev Digest, Vol 47, Issue 513 ******************************************* Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com _______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
