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

Terrien Jean-Yves commented on KARAF-7676:
------------------------------------------

 

Hi,

Thank you for that answer.
Inspired by your proposal, I moved standard and enterprise features into 
BootFeatures
And it seems that solves the problem.
{code:java}
                    <startupFeatures>
                        <feature>eventadmin</feature>
                    </startupFeatures>
                    <bootFeatures>
                        <feature>standard</feature>
                        <feature>entreprise</feature> 
....{code}
I wonder if a little note in the custom-distribution documentation should not 
warn of this situation. Visibly, puting the "standard" feature in 
StartupFeatures installs bundles that can no longer be updated.

A+JYT

> NullPointerException at Startup
> -------------------------------
>
>                 Key: KARAF-7676
>                 URL: https://issues.apache.org/jira/browse/KARAF-7676
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.3.7, 4.4.3
>            Reporter: Terrien Jean-Yves
>            Priority: Major
>
> I use a custom distribution
> defined as:
> {code:java}
>                     <startupFeatures>
>                         <feature>eventadmin</feature>
>                         <feature>enterprise</feature>
>                         <feature>standard</feature>
>                     </startupFeatures>
>                     <bootFeatures>
>                         <feature>http</feature>
>                         <feature>shell</feature>
>                         <feature>jdbc</feature>
>                         <feature>pax-jdbc</feature>
>                         <feature>pax-jdbc-config</feature>
>                         <feature>pax-jdbc-oracle</feature>
>                         <feature>pax-jdbc-pool-dbcp2</feature>
>                         <feature>pax-jms-config</feature>
>                         <feature>pax-jms-activemq</feature>
>                     </bootFeatures>
>                     <installedFeatures />
>                     <archiveZip>false</archiveZip>
>                     <archiveTarGz>true</archiveTarGz>
>                     <javase>11</javase>{code}
> and I have several exceptions at startup:
> {code:java}
> 2023-03-07T17:33:35,242 | ERROR | activator-1-thread-2 | 
> FeatureDeploymentListener        | 35 - org.apache.karaf.deployer.features - 
> 4.4.3 | Unable to update deployed features for bundle: 
> org.apache.karaf.features.extension - 4.4.3
> java.lang.NullPointerException: null
>     at 
> org.apache.karaf.deployer.features.FeatureDeploymentListener.bundleChanged(FeatureDeploymentListener.java:254)
>  ~[?:?]
>  {code}
> How to solve this problem ?
> Thank



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to