java - Weblogic Server getting SAXParse Exception -
using weblogic 12.1.2 trying use below code while parsing xsl getting below error,
transformerfactory tfactory = new transformerfactoryimpl(); source xslsource = new javax.xml.transform.stream.streamsource(myxslfile); transformer transformer = tfactory.newtransformer(xslsource); stringreader reader = new stringreader(xmlfile); stringwriter writer = new stringwriter(); transformer.transform(new javax.xml.transform.stream.streamsource(reader), new javax.xml.transform.stream.streamresult(writer));
exception
net.sf.saxon.trans.xpathexception: org.xml.sax.saxparseexception;org.xml.sax.saxparseexception; linenumber: 12; columnnumber: 58; @ net.sf.saxon.event.sender.sendsaxsource(sender.java:418) @ net.sf.saxon.event.sender.send(sender.java:214) @ net.sf.saxon.event.sender.send(sender.java:50) @ net.sf.saxon.controller.transform(controller.java:1611)
this same piece of code working fine if run seperately once deployed war in weblogic server not working , throwing exception. please suggest there way resolve issue
Comments
Post a Comment