You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Himani Manglani (JIRA)" <ji...@apache.org> on 2014/11/05 21:07:34 UTC

[jira] [Commented] (AXIS2-5675) ERROR-org.apache.axis2.deployment.RepositoryListener: Error occurred while loading modules from classpath - java.lang.NullPointerException

    [ https://issues.apache.org/jira/browse/AXIS2-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14198977#comment-14198977 ] 

Himani Manglani commented on AXIS2-5675:
----------------------------------------

Deepal, the classloader in java is loading module.xml as below. 
 zip:/tools/appsw/.../XXX-ws-ear-2/booywh/APP-INF/lib/axis2.jar!/META-INF/module.xml

If you see the RepositoryListener code, the path is not supported and is throwing null pointer
while (moduleURLs.hasMoreElements()) {
                try {
                    URL url = (URL)moduleURLs.nextElement();
                    URI moduleURI;
                    if (url.getProtocol().equals("file")) {
                        String urlString = url.toString();
                        moduleURI = new URI(urlString.substring(0,
                                urlString.lastIndexOf("/META-INF/module.xml")));
                    } else {
                        // Check if the URL refers to an archive (such as
                        // jar:file:/dir/some.jar!/META-INF/module.xml) and extract the
                        // URL of the archive. In general the protocol will be "jar", but
                        // some containers may use other protocols, e.g. WebSphere uses
                        // "wsjar" (AXIS2-4258).
                        String path = url.getPath();
                        int idx = path.lastIndexOf("!/");
                        if (idx != -1 && path.substring(idx+2).equals("META-INF/module.xml")) {
                            moduleURI = new URI(path.substring(0, idx));
                            if (!moduleURI.getScheme().equals("file")) {
                                continue;
                            }
                        } else {
                            continue;
                        }
                    }

> ERROR-org.apache.axis2.deployment.RepositoryListener: Error occurred while loading modules from classpath - java.lang.NullPointerException
> ------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5675
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5675
>             Project: Axis2
>          Issue Type: Bug
>          Components: deployment
>    Affects Versions: 1.6.2
>         Environment: Linux-X86, WebLogic server 10.3.6
>            Reporter: Rajashekar Banda
>            Priority: Minor
>              Labels: build
>
> ERROR 
> ----------------------- 
> [2014-08-12T20:44:31.878+00:00] [apache] [WARNING] [] [org.apache.axiom.util.stax.dialect.StAXDialectDetector] [tid: 13] [ecid: 0000KVBxjRT2VOf_tXS4yX1JuauQ00000z,0] Weblogic's StAX implementation is unsupported and some Axiom features will not work as expected! Please use Woodstox instead. 
> [2014-08-12T20:44:32.542+00:00] [apache] [ERROR] [] [org.apache.axis2.deployment.RepositoryListener] [tid: 13] [ecid: 0000KVBxjRT2VOf_tXS4yX1JuauQ00000z,0] Error occurred while loading modules from classpath[[ 
> java.lang.NullPointerException 
> at org.apache.axis2.deployment.RepositoryListener.loadClassPathModules(RepositoryListener.java:138) 
> at org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:71) 
> at org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:64) 
> at org.apache.axis2.deployment.DeploymentEngine.loadFromClassPath(DeploymentEngine.java:175) 
> at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:135) 
> at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64) 
> at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210) 
> at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:151) 
> at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:144) 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org