[
https://issues.apache.org/jira/browse/KARAF-6527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16981106#comment-16981106
]
ASF GitHub Bot commented on KARAF-6527:
---------------------------------------
jbonofre commented on pull request #33: [KARAF-6527] Fix features gateway
headers to deal with JAXB
URL: https://github.com/apache/karaf-cave/pull/33
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> 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)