You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/12/29 09:43:13 UTC
DO NOT REPLY [Bug 41255] New: - NullPointer Exception in at org.apache.xml.utils.TreeWalker.dispatachChars
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41255>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41255
Summary: NullPointer Exception in at
org.apache.xml.utils.TreeWalker.dispatachChars
Product: Apache httpd-1.3
Version: HEAD
Platform: Other
OS/Version: Windows XP
Status: NEW
Severity: blocker
Priority: P2
Component: core
AssignedTo: bugs@httpd.apache.org
ReportedBy: sohankumar.soni@sos.sungard.com
I am getting this error while running my application.
I really dont have any clue why this is happening?
Can somebody please help me, as I really can not proceed with my application?
Here is the code which I am using for creating doc from string and creating
string from doc.
public static Document getDocFromString(String xmlString){
Document doc = null;
try
{
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
doc = db.parse(new InputSource(new StringReader(xmlString)));
}
catch( Exception Ex ){
Ex.printStackTrace();
try {
throw Ex;
} catch (Exception ef) {}
}
return doc;
}
// convert a Document Object to a String
public static String documentToString(Document pDoc) {
StringWriter sw = new StringWriter();
try {
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer();
transformer.transform(new DOMSource(pDoc), new StreamResult(sw));
} catch (Exception e) {
e.printStackTrace();
try {
throw e;
} catch (Exception ef) {}
}
return sw.toString();
}
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 41255] - NullPointer Exception in at org.apache.xml.utils.TreeWalker.dispatachChars
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41255>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41255
wrowe@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From wrowe@apache.org 2006-12-29 01:23 -------
Apache httpd is a c language web server. Go to a peer support list for your
java application development issues, bugzilla is strictly for reporting bugs
in the specific project's source code.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org