Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3AE5917942 for ; Wed, 5 Nov 2014 20:11:35 +0000 (UTC) Received: (qmail 30028 invoked by uid 500); 5 Nov 2014 20:11:34 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 29909 invoked by uid 500); 5 Nov 2014 20:11:34 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 29895 invoked by uid 99); 5 Nov 2014 20:11:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2014 20:11:34 +0000 Date: Wed, 5 Nov 2014 20:11:34 +0000 (UTC) From: "Himani Manglani (JIRA)" To: java-dev@axis.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (AXIS2-5675) ERROR-org.apache.axis2.deployment.RepositoryListener: Error occurred while loading modules from classpath - java.lang.NullPointerException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14198977#comment-14198977 ] Himani Manglani edited comment on AXIS2-5675 at 11/5/14 8:10 PM: ----------------------------------------------------------------- Deepal, the classloader in weblogic 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; } } was (Author: himani manglani): 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.(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.(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