000034409 - NullPointerException in aa_server.log with webapps deployed in Weblogic 10 and 12 in RSA Adaptive Authentication (on Premise)

Document created by RSA Customer Support Employee on Nov 23, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 3Show Document
  • View in full screen mode

Article Content

Article Number000034409
Applies ToRSA Product Set: Adaptive Authentication (OnPrem)
RSA Version/Condition: 7.1 P6
Platform: WebLogic 10 and 12
 
IssueCustomer was seeing NullPointerException in aa_server.log (rsa/logs/aa_server.log) with webapps deployed in Weblogic 12c as below:
 
2016-11-16 10:39:06,064 ERROR [pool-712100-thread-1] 
[b16-:96f52ec6851:3b52ce42-||1479330503197] [a16-:96f52ec6851:3b52ce42-_TRX] [org.apache.axis2.deployment.RepositoryListener] -
<Error occurred while loading modules from classpath>
java.lang.NullPointerException
2016-11-16 10:39:06,064 ERROR [pool-712100-thread-1]
[b16-:96f52ec6851:3b52ce42-||1479330503197] [a16-:96f52ec6851:3b52ce42-_TRX] [org.apache.axis2.deployment.RepositoryListener] -
<Error occurred while loading modules from classpath>
java.lang.NullPointerException



 
ResolutionThis is a known issue with Weblogic 10 and 12.

This is an Axis2 bug. The axis2 RepositoryListener class file is unable to load the addressing module from the class-path due to the scheme undefined of the resource URI. There are server specific class loader files have been used to load the different classes.


The classloader in Weblogic is loading the module.xml file as follows: zip:/export/…. /axis2-1.6.2.jar!/META-INF/module.xml, here Scheme is undefined.


Whereas the file is being loaded in Tomcat server in a different fashion: jar:file:/C:/Program…../axis2-1.6.2.jar!/META-INF/module.xml, here Scheme is ‘file’.


As the Scheme is undefined for the URI for weblogic server, the Axis2 code is breaking at one point and throwing NullPointerException.
Below is the line of code which is causing error:


org.apache.axis2.deployment.RepositoryListener:
if (idx != -1 && path.substring(idx+2).equals("META-INF/module.xml")) {
moduleURI = new URI(path.substring(0, idx).replaceAll(" ", "%20"));
if (!moduleURI.getScheme().equals("file"))
{ continue; }
} else {
continue;
}

 

This is an Axis2 issue and we have already created an Apache JIRA ticket on this: https://issues.apache.org/jira/browse/AXIS2-5685.
 

Attachments

    Outcomes