karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Assigned] (KARAF-3374) NullPointerException when starting Karaf distribution for the first time with feature with non-osgi dependency
Date Tue, 25 Nov 2014 02:22:12 GMT

     [ https://issues.apache.org/jira/browse/KARAF-3374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jean-Baptiste Onofré reassigned KARAF-3374:
-------------------------------------------

    Assignee: Jean-Baptiste Onofré

> NullPointerException when starting Karaf distribution for the first time with feature
with non-osgi dependency
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-3374
>                 URL: https://issues.apache.org/jira/browse/KARAF-3374
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 3.0.2
>         Environment: Windows 7, JDK 1.7, JDK 1.8, maven 3.2.3
>            Reporter: Raphael Majeed
>            Assignee: Jean-Baptiste Onofré
>         Attachments: karaf-bug.zip
>
>
> 1. Create osgi bundle with any non-osgi dependency (e.g. PostgreSQL driver jar, which
does not have osgi-fields in MANIFEST) 
> 2. Create pom for feature xml which installs the bundle from 1
> 3. Create a custom karaf distribution which uses feature from 2
> 4. mvn clean install succeeds
> 5. Start Karaf: exits with NullPointerException:
> Error installing bundle listed in startup.properties with url: wrap:mvn:org.post
> gresql/postgresql/9.3-1102-jdbc4 and startlevel: 80
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.karaf.main.Main.destroy(Main.java:517)
>         at org.apache.karaf.main.Main.main(Main.java:173)
> 6. Starting karaf again: Karaf starts, no errors
> See attached files to reproduce the error. 
> With the attached project, the following commands will produce the error
> # mvn clean install
> # distro\target\assembly\bin\karaf.bat



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

Mime
View raw message