Axis based webservice on Weblogic fails with ExceptionInInitializerError due to IllegalArgumentException (Doc ID 1313745.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle WebLogic Server - Version 10.3.3 and later
Information in this document applies to any platform.
***Checked for relevance on 01-May-2014***

Symptoms

Invocation of AXIS based webservice on Weblogic Server (WLS) fails with the following exception -

Kernel.Default (self-tuning)'> <> <><> <1302246070348> <BEA-101020>
<[ServletContext@21045784[app:www-portal module:/ path:spec-version:2.5]] Servlet failed with Exception
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at javax.xml.soap.FactoryFinder.newInstance(FactoryFinder.java:59)
at javax.xml.soap.FactoryFinder.find(FactoryFinder.java:98)
at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:108)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.<init>(HttpSOAPConnection.java:53)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory.createConnection(HttpSOAPConnectionFactory.java:25)
at com.sun.identity.saml.SAMLClient.artifactQueryHandler(SAMLClient.java:695)
at com.sun.identity.saml.SAMLClient.getAssertionByArtifact(SAMLClient.java:294)
at com.mycompany.isg.saml.api.AssertionProviderImpl.fetchAssertion(AssertionProviderImpl.java:191)
at com.mycompany.isg.saml.servlets.SAMLReceiverFilter.processArtifact(SAMLReceiverFilter.java:329)
at com.mycompany.isg.saml.servlets.SAMLReceiverFilter.doFilter(SAMLReceiverFilter.java:177)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at com.mycompany.filter.tracking.INSCookieFilter.doFilter(INSCookieFilter.java:73)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at com.mycompany.filter.tracking.MSCCookieFilter.doFilter(MSCCookieFilter.java:176)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at com.mycompany.filter.tracking.DMCookieFilter.doFilter(DMCookieFilter.java:73)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at com.mycompany.filter.secure.HttpsWholeSiteFilter.doFilter(HttpsWholeSiteFilter.java:217)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused
By: java.lang.IllegalArgumentException:
com.sun.xml.internal.messaging.saaj.soap.LocalStrings !=
com.sun.xml.messaging.saaj.soap.LocalStrings
at java.util.logging.Logger.getLogger(Logger.java:314)
at com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.<clinit>(MessageFactoryImpl.java:36)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance

 

Note:  This is a very simple Axis webservice (eg. without the use of SAAJ). 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms