axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 15500] New: - nullptr exception during Axis Initialization
Date Wed, 18 Dec 2002 20:28:04 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15500>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15500

nullptr exception during Axis Initialization

           Summary: nullptr exception during Axis Initialization
           Product: Axis
           Version: 1.1beta
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: WSDL processing
        AssignedTo: axis-dev@xml.apache.org
        ReportedBy: anou_mana@hotmail.com


Dec 18 10:52:36 2002: javax.servlet.ServletException: Servlet WebServlet threw 
the exception: 

java.lang.ExceptionInInitializerError	at 
com.sybase.jaguar.servlet.JagServlet.service(JagServlet.java:671)	at 

com.sybase.jaguar.servlet.JagRequestDispatcher.service
(JagRequestDispatcher.java:856)	at 

com.sybase.jaguar.servlet.JagWebResource.service(JagWebResource.java:86)
	at 

com.sybase.jaguar.servlet.JagFilterChain.doFilter(JagFilterChain.java:127)
	at 

com.sybase.jaguar.servlet.ServletEngine._service(ServletEngine.java:795)
	at 

com.sybase.jaguar.servlet.ServletEngine.service(ServletEngine.java:335)	at 

com.sybase.jaguar.servlet.ServletServiceImpl.doService
(ServletServiceImpl.java:52)	at 

com.sybase.jaguar.servlet._sk_JaguarServlet_ServletService.invoke
(_sk_JaguarServlet_ServletService.java:148)
Dec 18 10:52:36 2002: The ServletException contained the following root cause 
exception:
Dec 18 10:52:36 2002: java.lang.ExceptionInInitializerError	at 

org.apache.axis.utils.Messages.<clinit>(Messages.java:81)	at 

org.apache.axis.utils.JavaUtils.isAttachmentSupported(JavaUtils.java:1142)
	at 

org.apache.axis.encoding.DefaultTypeMappingImpl.<init>
(DefaultTypeMappingImpl.java:150)	at 

org.apache.axis.encoding.DefaultTypeMappingImpl.<init>
(DefaultTypeMappingImpl.java:127)	at 

org.apache.axis.encoding.DefaultTypeMappingImpl.getSingleton
(DefaultTypeMappingImpl.java:121)	at 

org.apache.axis.encoding.TypeMappingRegistryImpl.<init>
(TypeMappingRegistryImpl.java:172)	at 

org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.java:511)
	at 

org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java:107)
	at 

org.apache.axis.configuration.FileProvider.configureEngine
(FileProvider.java:210)	at 

org.apache.axis.AxisEngine.init(AxisEngine.java:188)	at 
org.apache.axis.AxisEngine.<init>(AxisEngine.java:173)	

at org.apache.axis.server.AxisServer.<init>(AxisServer.java:126)	at 

org.apache.axis.server.DefaultAxisServerFactory.createServer
(DefaultAxisServerFactory.java:152)	at 

org.apache.axis.server.DefaultAxisServerFactory.getServer
(DefaultAxisServerFactory.java:116)	at 

org.apache.axis.server.AxisServer.getServer(AxisServer.java:111)	at 

org.apache.axis.transport.http.AxisServletBase.getEngine
(AxisServletBase.java:221)	at 

org.apache.axis.transport.http.AxisServletBase.getEngine
(AxisServletBase.java:187)	at 

org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:224)	at 

javax.servlet.http.HttpServlet.service(HttpServlet.java:740)	at 

org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:339)
	at 

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)	at 

com.sybase.jaguar.servlet.JagServlet.service(JagServlet.java:656)	at 

com.sybase.jaguar.servlet.JagRequestDispatcher.service
(JagRequestDispatcher.java:856)	at 

com.sybase.jaguar.servlet.JagWebResource.service(JagWebResource.java:86)
	at 

com.sybase.jaguar.servlet.JagFilterChain.doFilter(JagFilterChain.java:127)
	at 

com.sybase.jaguar.servlet.ServletEngine._service(ServletEngine.java:795)
	at 

com.sybase.jaguar.servlet.ServletEngine.service(ServletEngine.java:335)	at 

com.sybase.jaguar.servlet.ServletServiceImpl.doService
(ServletServiceImpl.java:52)	at 

com.sybase.jaguar.servlet._sk_JaguarServlet_ServletService.invoke
(_sk_JaguarServlet_ServletService.java:148)Caused by: 

java.lang.NullPointerException	at java.util.ResourceBundle.getBundle
(ResourceBundle.java:659)	at 

org.apache.axis.i18n.ProjectResourceBundle$Context.loadBundle
(ProjectResourceBundle.java:458)	at 

org.apache.axis.i18n.ProjectResourceBundle.getBundle
(ProjectResourceBundle.java:356)	at 

org.apache.axis.i18n.ProjectResourceBundle.getBundle
(ProjectResourceBundle.java:326)	at 

org.apache.axis.i18n.MessagesConstants.<clinit>(MessagesConstants.java:71)
	... 29 more

////////////////////
// hacked to make it work
    public static ProjectResourceBundle getBundle(String projectName,
                                                  String packageName,
                                                  String resourceName,
                                                  Locale locale,
                                                  ClassLoader loader,
                                                  ResourceBundle extendsBundle)
        throws MissingResourceException
    {
        if (log.isDebugEnabled()) {
            log.debug("getBundle(" + projectName + ","
                                   + packageName + ","
                                   + resourceName + ","
                                   + String.valueOf(locale) + ",...)");
        }
        
        Context context = new Context();
        context.setLocale(locale);
	// hack for null ptr exception
	if(loader == null)
	{
		loader = ClassLoader.getSystemClassLoader();
	}



// javadoc for class loader says
public ClassLoader <../../java/lang/ClassLoader.html> getClassLoader()
Returns the class loader for the class. Some implementations may use null to 
represent the bootstrap class loader. This method will return null in such 
implementations if this class was loaded by the bootstrap class loader. 

--- So, shouldn't the initialization expect a null loader and not fail with an 
exception ??

Mime
View raw message