axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Venkat Gyambavantha (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-4336) NPE when creating AxisConfigBuilder programatically. This happens only when log4j.logger.org.apache.axis2 is set to DEBUG
Date Thu, 07 May 2009 18:46:45 GMT
NPE when creating AxisConfigBuilder programatically. This happens only when log4j.logger.org.apache.axis2
is set to DEBUG
-------------------------------------------------------------------------------------------------------------------------

                 Key: AXIS2-4336
                 URL: https://issues.apache.org/jira/browse/AXIS2-4336
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: client-api
    Affects Versions: 1.4.1
            Reporter: Venkat Gyambavantha


NPE when constructing AxisConfigBuilder by reading axis2.xml file, if log4j.logger.org.apache.axis2
is set to DEBUG.

Sample Code:

InputStream  axisConfigStream = getClass().getClassLoader().getResourceAsStream(AXIS2_CONF_FILE);
       	
AxisConfiguration axisConfiguration = new AxisConfiguration();
AxisConfigBuilder configBuilder = new AxisConfigBuilder( axisConfigStream  , this.axisConfiguration
, null  );
configBuilder.populateConfig();

StackTrace:
 java.lang.NullPointerException
	at java.io.Writer.write(Writer.java:126)
	at java.io.PrintWriter.newLine(PrintWriter.java:408)
	at java.io.PrintWriter.println(PrintWriter.java:559)
	at java.io.PrintWriter.println(PrintWriter.java:684)
	at java.lang.Throwable.printStackTrace(Throwable.java:510)
	at org.apache.axis2.util.JavaUtils.stackToString(JavaUtils.java:577)
	at org.apache.axis2.util.JavaUtils.callStackToString(JavaUtils.java:564)
	at org.apache.axis2.description.ParameterIncludeImpl.debugParameterAdd(ParameterIncludeImpl.java:316)
	at org.apache.axis2.description.ParameterIncludeImpl.addParameter(ParameterIncludeImpl.java:106)
	at org.apache.axis2.description.AxisDescription.addParameter(AxisDescription.java:104)
	at org.apache.axis2.deployment.DescriptionBuilder.processParameters(DescriptionBuilder.java:568)
	at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:96)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message