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

Jean-Baptiste Onofré commented on KARAF-6527:
---------------------------------------------

It also impact {{cave:features-gateway-list}} which also fails with:
{code:java}
karaf@root()> cave:features-gateway-list 
Error executing command: java.lang.NoClassDefFoundError: Could not initialize 
class org.apache.karaf.features.internal.model.JaxbUtil
karaf@root()> log:display
18:00:22.986 ERROR [Karaf local console user karaf] Exception caught while 
executing command
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could 
not initialize class org.apache.karaf.features.internal.model.JaxbUtil
        at java.util.concurrent.FutureTask.report(FutureTask.java:122) 
~[?:1.8.0_172]
        at java.util.concurrent.FutureTask.get(FutureTask.java:192) 
~[?:1.8.0_172]
        at 
org.apache.felix.gogo.runtime.CommandSessionImpl$JobImpl.run(CommandSessionImpl.java:855)
 ~[?:?]
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
~[?:1.8.0_172]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
~[?:1.8.0_172]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
~[?:1.8.0_172]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
~[?:1.8.0_172]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
org.apache.karaf.features.internal.model.JaxbUtil
        at 
org.apache.karaf.cave.gateway.service.FeaturesGatewayServiceImpl.list(FeaturesGatewayServiceImpl.java:109)
 ~[?:?]
        at 
org.apache.karaf.cave.gateway.service.command.FeaturesGatewayListCommand.execute(FeaturesGatewayListCommand.java:34)
 ~[?:?]
        at 
org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
 ~[?:?]
        at 
org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
 ~[?:?]
        at 
org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
 ~[?:?]
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) 
~[?:?]
        at 
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) ~[?:?]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) 
~[?:?]
        at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) ~[?:?]
        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
        ... 4 more
 {code}

> Cave Features Gateway is not able to deal with features repositories
> --------------------------------------------------------------------
>
>                 Key: KARAF-6527
>                 URL: https://issues.apache.org/jira/browse/KARAF-6527
>             Project: Karaf
>          Issue Type: Bug
>          Components: cave
>    Affects Versions: cave-4.2.0
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: cave-4.2.1
>
>
> When adding a features repository with {{cave:features-gateway-register}} 
> command, a {{NullPointerException}} is thrown:
> {code:java}
> Caused by: java.lang.NullPointerException
>         at 
> javax.xml.bind.ContextFinder.handleClassCastException(ContextFinder.java:114) 
> ~[?:1.8.0_172]
>         at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:254) 
> ~[?:1.8.0_172]
>         at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:240) 
> ~[?:1.8.0_172]
>         at javax.xml.bind.ContextFinder.find(ContextFinder.java:375) 
> ~[?:1.8.0_172]
>         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:691) 
> ~[?:1.8.0_172]
>         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:632) 
> ~[?:1.8.0_172]
>         at 
> org.apache.karaf.features.internal.model.JaxbUtil.<clinit>(JaxbUtil.java:60) 
> ~[?:?]
>         at 
> org.apache.karaf.cave.gateway.service.FeaturesGatewayServiceImpl.register(FeaturesGatewayServiceImpl.java:80)
>  ~[?:?]
>         at 
> org.apache.karaf.cave.gateway.service.command.FeaturesGatewayRegisterCommand.execute(FeaturesGatewayRegisterCommand.java:41)
>  ~[?:?]
>         at 
> org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
>  ~[?:?]
>         at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  ~[?:?]
>         at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  ~[?:?]
>         at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) 
> ~[?:?]
>         at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) 
> ~[?:?]
>         at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) 
> ~[?:?]
>         at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) ~[?:?]
>         at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
>         at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
>  {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to