[ http://issues.apache.org/jira/browse/GERONIMO-2605?page=all ]
Rakesh Midha updated GERONIMO-2605:
-----------------------------------
Attachment: npeNoGroup.patch
Minor change, null pointer check required before using groupId
> NPE if exporting plugin for module having dependency on module with no groupId
> ------------------------------------------------------------------------------
>
> Key: GERONIMO-2605
> URL: http://issues.apache.org/jira/browse/GERONIMO-2605
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: Plugins
> Affects Versions: 2.0
> Reporter: Rakesh Midha
> Assigned To: Rakesh Midha
> Fix For: 2.0
>
> Attachments: npeNoGroup.patch
>
>
> If you have an application say ABC.war which has dependency on ABC.jar
> and if dependency is defined without groupid
> like in this case
> <dependencies>
> <dependency>
> <artifactId>ABC</artifactId>
> </dependency>
> </dependencies>
> You will get NPE with stacktrace:
> java.lang.NullPointerException
> at
> org.apache.geronimo.system.plugin.PluginInstallerGBean.processDepende
> ncyList(PluginInstallerGBean.java:1561)
> at
> org.apache.geronimo.system.plugin.PluginInstallerGBean.createDefaultM
> etadata(PluginInstallerGBean.java:1204)
> at
> org.apache.geronimo.system.plugin.PluginInstallerGBean.getPluginMetad
> ata(PluginInstallerGBean.java:204)
> at
> org.apache.geronimo.system.plugin.PluginInstallerGBean$$FastClassByCG
> LIB$$cebc327e.invoke(<generated>)
> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira