Thanks for the details.

Let me try to reproduce, but I think it's related to OpenJDK 9.

I keep you posted.

Regards
JB

On 15/05/2019 15:50, Krenn Daniel wrote:
> Hi Jean-Baptiste,
> 
> Apache Camel Version: 3.0.0-M1
> Apache Karaf Version: 4.2.4
> Java Version Normal: build 1.8.0_181-b13 (I hope that helps)
> Java Version Docker: OpenJDK 9
> 
> I tried this with a normal karaf installation and an installation on
> docker, both display the same behaviour.
> 
> Regards,
> Daniel
> Daniel Krenn
> Consultant MES
> 
> mailto:[email protected]  | Tel. +49 (9931) 981 365  
> 
> ​
>  ​T.CON GmbH & Co. KG
>  ​Hauptsitz
>  Straubinger Straße 2
>  94447 Plattling 
>  *T: +49 (0)9931 981 100* <tel:+499931981100>
>  F: +49 (0)9931 981 199 
> 
>       
>  *www.mescat.de* <http://www.mescat.de/> >
>  *www.team-con.de* <http://www.team-con.de/> >
>  
>  *Messetermine*
> <http://www.team-con.de/unternehmen/news-veranstaltungen/veranstaltungen.html>
>  >
>  *facebook* <https://www.facebook.com/TEAMCONde>   |  *twitter  *
> <https://twitter.com/team_consulting>|  *xing*
> <https://www.xing.com/companies/t.congmbhco.kg>  |  *linkedin  *
> <https://www.linkedin.com/company/t-con-gmbh-&-co-kg>*|  *
> <http://www.youtube.com/user/TEAMCONde?>*youtube*
> <https://www.youtube.com/user/TEAMCONde?> *|*
> <http://www.youtube.com/user/TEAMCONde?> *instagram*
> <https://www.instagram.com/team.consulting/>
>  
> 
>       
> T.CON GmbH & Co. KG <https://www.team-con.de/>
> 
> Geschäftsführer: Karl Fuchs, Michael Gulde, Stefan Fiedler
> ​KG, AG Deggendorf HRA 1618 Pers. haftender Ges.
> T.CON Beteiligungs-GmbH AG
> Deggendorf HRB 2053
> 
> Besuchen Sie uns auf folgenden Events:
> 
> BME-Value Day
> <https://www.team-con.de/unternehmen/news-veranstaltungen/veranstaltungen/bme-value-day-2019.html>
> 
> DSAG Jahreskongress
> <https://www.dsag.de/veranstaltungen/2019-09/dsag-jahreskongress-2019>
> 
> Erhalten Sie wichtige Informationen von T.CON. *Jetzt anmelden.*
> <https://www2.team-con.de/newsletter>
> 
> -----Ursprüngliche Nachricht-----
> Von: Jean-Baptiste Onofré <[email protected]>
> Gesendet: Mittwoch, 15. Mai 2019 07:16
> An: [email protected]
> Betreff: Re: Exception starting HttpContext registration
> java.lang.NullPointerException: null
> 
> Hi Daniel,
> 
> can you provide some details about the Karaf, Camel version ?
> 
> I guess you are running with JDK 11 no ?
> 
> Regards
> JB
> 
> On 14/05/2019 16:41, Krenn Daniel wrote:
>> Hello,
>>
>>  
>>
>> I’m trying to get Swagger UI running on karaf. I packaged the Swagger
>> UI in a WAR file, which I drop into the deploy folder in the karaf
> directory.
>>
>> The problem is that I apparantly cannot run camel-swagger-java and the
>> Swagger UI WAR at the same time.
>>
>> If I don’t install camel-swagger-java, I can successfully deploy the
>> Swagger UI WAR, but this is obviously useless as no swagger instance
>> is running.
>>
>> If I install camel-swagger-java before deploying the Swagger UI WAR, I
>> get this error:
>>
>>  
>>
>> Exception starting HttpContext registration
>> java.lang.NullPointerException: null
>>
>> Error deploying web applicationjava.lang.NullPointerException: null
>>
>>  
>>
>> I don’t know what to do with this error. Also, whenever I try to
>> deploy the Swagger UI WAR when I already have camel-swagger-java
>> installed, I get this error:
>>
>>  
>>
>> java.lang.ArrayIndexOutOfBoundsException: 19
>>
>>         at aQute.bnd.osgi.Clazz.parseClassFile(Clazz.java:576)
>>
>>         at aQute.bnd.osgi.Clazz.parseClassFile(Clazz.java:494)
>>
>>         at
>> aQute.bnd.osgi.Clazz.parseClassFileWithCollector(Clazz.java:483)
>>
>>         at aQute.bnd.osgi.Clazz.parseClassFile(Clazz.java:473)
>>
>>         at aQute.bnd.osgi.Analyzer.analyzeJar(Analyzer.java:2177)
>>
>>         at
>> aQute.bnd.osgi.Analyzer.analyzeBundleClasspath(Analyzer.java:2114)
>>
>>         at aQute.bnd.osgi.Analyzer.analyze(Analyzer.java:138)
>>
>>         at aQute.bnd.osgi.Analyzer.calcManifest(Analyzer.java:616)
>>
>>         at
>> org.ops4j.pax.swissbox.bnd.BndUtils.createBundle(BndUtils.java:161)
>>
>>         at
>> org.ops4j.pax.url.war.internal.AbstractConnection.createBundle(Abstrac
>> tConnection.java:174)
>>
>>         at
>> org.ops4j.pax.url.war.internal.WebBundleConnection.createBundle(WebBun
>> dleConnection.java:108)
>>
>>         at
>> org.ops4j.pax.url.war.internal.AbstractConnection.getInputStream(Abstr
>> actConnection.java:143)
>>
>>         at
>> org.ops4j.pax.url.war.internal.WarConnection.getInputStream(WarConnect
>> ion.java:33)
>>
>>         at java.net.URL.openStream(URL.java:1045)
>>
>>         at
>> org.apache.felix.fileinstall.internal.DirectoryWatcher.install(Directo
>> ryWatcher.java:962)
>>
>>         at
>> org.apache.felix.fileinstall.internal.DirectoryWatcher.install(Directo
>> ryWatcher.java:884)
>>
>>         at
>> org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(Direc
>> toryWatcher.java:489)
>>
>>         at
>> org.apache.felix.fileinstall.internal.DirectoryWatcher.process(Directo
>> ryWatcher.java:365)
>>
>>         at
>> org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWa
>> tcher.java:316)
>>
>>  
>>
>> I don’t know what to do with this error, either.
>>
>>  
>>
>> Can you please help me resolve this issue?
>>
>>  
>>
>> Regards,
>>
>> Daniel
>>
>>  
>>
>> *Daniel* *Krenn*
>> Consultant MES
>>
>> [email protected] <mailto:[email protected]>
>>
>>
>>
>>  |   Tel. +49 (9931) 981 365
>>
>>
>>
>>  
>>
>>  
>>
>> ​
>>  ​T.CON GmbH & Co. KG
>>  ​Hauptsitz
>>  Straubinger Straße 2
>>  94447 Plattling
>>  *T: +49 (0)9931 981 100* <tel:+499931981100>
>>  F: +49 (0)9931 981 199
>>
>>
>>  *www.mescat.de* <http://www.mescat.de/> >
>>  *www.team-con.de* <http://www.team-con.de/> >
>>  
>>  *Messetermine*
>> <http://www.team-con.de/unternehmen/news-veranstaltungen/veranstaltung
>> en.html> >
>>  *facebook* <https://www.facebook.com/TEAMCONde>   |  *twitter  *
>> <https://twitter.com/team_consulting>|  *xing*
>> <https://www.xing.com/companies/t.congmbhco.kg>  |  *linkedin  *
>> <https://www.linkedin.com/company/t-con-gmbh-&-co-kg>*|  *
>> <http://www.youtube.com/user/TEAMCONde?>*youtube*
>> <https://www.youtube.com/user/TEAMCONde?> *|*
>> <http://www.youtube.com/user/TEAMCONde?> *instagram*
>> <https://www.instagram.com/team.consulting/>
>>  
>>
>>
>> T.CON GmbH & Co. KG <https://www.team-con.de/>
>>
>> Geschäftsführer: Karl Fuchs, Michael Gulde, Stefan Fiedler ​KG, AG
>> Deggendorf HRA 1618 Pers. haftender Ges.
>> T.CON Beteiligungs-GmbH AG
>> Deggendorf HRB 2053
>>
>> Besuchen Sie uns auf folgenden Events:
>>
>> BME-Value Day
>> <https://www.team-con.de/unternehmen/news-veranstaltungen/veranstaltun
>> gen/bme-value-day-2019.html>
>>
>> DSAG Jahreskongress
>> <https://www.dsag.de/veranstaltungen/2019-09/dsag-jahreskongress-2019>
>>
>> Erhalten Sie wichtige Informationen von T.CON. *Jetzt anmelden.*
>> <https://www2.team-con.de/newsletter>
>>
> 
> --
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com

-- 
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to