aspose file tools*
The moose likes Product and Other Certifications and the fly likes related with java and xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "related with java and xml" Watch "related with java and xml" New topic
Author

related with java and xml

Vishal Methi
Ranch Hand

Joined: Jan 14, 2004
Posts: 52
Hi Friends,
I m new to java and xml, hope that you can help me out to reslove my problem. I have an application which is running perfectly on java 1.4 and throwing an exception when i m using java 1.5 which i have (an exception) put at the bottom of this msg.
I have found out when i m getting this exception.
Below is my method where i m getting an exception and
I m getting exception after this line
"transformer.transform(source, result);" i.e last line of this method.

public void transform(String text,
StreamSource stylesource,
StreamResult result)
{
Parser parser = new Parser();
Document document = parser.parse(text);

// Use a Transformer for output
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(stylesource);

DOMSource source = new DOMSource(document);


transformer.transform(source, result);

}


Could you please help me out.. if you have any idea about it..

and this is the exception which i m getting :

java.lang.StackOverflowError
at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:366)

at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:383)

at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.processAttrib
ute(ToHTMLStream.java:950)
at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.processAttrib
utes(ToHTMLStream.java:1628)
at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.closeStartTag
(ToHTMLStream.java:1654)
at com.sun.org.apache.xml.internal.serializer.ToStream.characters(ToStre
am.java:1382)
at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.characters(To
HTMLStream.java:1433)
at com.sun.org.apache.xml.internal.utils.FastStringBuffer.sendSAXcharact
ers(FastStringBuffer.java:986)
at com.sun.org.apache.xml.internal.dtm.ref.sax2dtm.SAX2DTM2.dispatchChar
actersEvents(SAX2DTM2.java:3086)
at com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl.characters(SAXImp
l.java:1554)
at com.sun.org.apache.xalan.internal.xsltc.dom.DOMAdapter.characters(DOM
Adapter.java:320)
at com.sun.org.apache.xalan.internal.xsltc.dom.MultiDOM.characters(Multi
DOM.java:533)
at GregorSamsa.applyTemplates()
at GregorSamsa.template$dot$2()
at GregorSamsa.applyTemplates()
 
wood burning stoves
 
subject: related with java and xml