You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Michael Vorburger (JIRA)" <ji...@apache.org> on 2017/06/06 17:25:18 UTC

[jira] [Commented] (KARAF-3374) NullPointerException when starting Karaf distribution for the first time with feature with non-osgi dependency

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

Michael Vorburger commented on KARAF-3374:
------------------------------------------

This error "just" seems to mean that an OSGi bundle required for early stage start up is not found under the system/ local Karaf Maven repo directory. It happens to us over on https://bugs.opendaylight.org/show_bug.cgi?id=4290 in a configuration under Pax Exam where we've modified /etc/org.ops4j.pax.url.mvn.cfg to not use any remote repos.

> 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.15#6346)