Log.debug statement causes NullPointerException
-----------------------------------------------
Key: AXIS2-3729
URL: https://issues.apache.org/jira/browse/AXIS2-3729
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: kernel
Affects Versions: 1.3
Environment: Windows XP SP2, Java 6, log4j
Reporter: Raul Kripalani
When setting the log4j.category.org.apache.axis2.transport=DEBUG in the
log4j.properties config file, line 156 from class TransportUtils:
log.debug("createSOAPEnvelope using Builder (" +
builder.getClass() + ") selected from type (" + type
+")");
causes the following uncontrolled NullPointerException to be thrown:
2008-04-10 18:14:10,577 [-] [I/O dispatcher 7] DEBUG ServerHandler HTTP
connection [localhost/127.0.0.1:2591]: Content decoder [content length: 285; p
os: 252; completed: false]
Exception in thread "HttpServerWorker-1" java.lang.NullPointerException
at
org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:156)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:111)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:270)
at
org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:226)
at
org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:190)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]