You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Krenn Daniel <Da...@team-con.de> on 2019/05/14 14:41:54 UTC
Exception starting HttpContext registration
java.lang.NullPointerException: null
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(AbstractConnection.java:174)
at org.ops4j.pax.url.war.internal.WebBundleConnection.createBundle(WebBundleConnection.java:108)
at org.ops4j.pax.url.war.internal.AbstractConnection.getInputStream(AbstractConnection.java:143)
at org.ops4j.pax.url.war.internal.WarConnection.getInputStream(WarConnection.java:33)
at java.net.URL.openStream(URL.java:1045)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:962)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:884)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:489)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.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
Daniel.Krenn@team-con.de<ma...@team-con.de>
| Tel. +49 (9931) 981 365
T.CON GmbH & Co. KG
Hauptsitz
Straubinger Straße 2
94447 Plattling
T: +49 (0)9931 981 100
F: +49 (0)9931 981 199 www.mescat.de >
www.team-con.de >
Messetermine >
facebook | twitter | xing | linkedin | youtube | instagram
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:
Erhalten Sie wichtige Informationen von T.CON. Jetzt anmelden.
Re: AW: Exception starting HttpContext registration
java.lang.NullPointerException: null
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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:Daniel.Krenn@team-con.de | 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é <jb...@nanthrax.net>
> Gesendet: Mittwoch, 15. Mai 2019 07:16
> An: user@karaf.apache.org
> 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
>>
>> Daniel.Krenn@team-con.de <ma...@team-con.de>
>>
>>
>>
>> | 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é
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: AW: Exception starting HttpContext registration
java.lang.NullPointerException: null
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Daniel,
OK, so there's a conflict between Swagger "WAR" and camel-swagger.
Let me try to reproduce and fix (probably in Camel).
Regards
JB
On 20/05/2019 15:07, Krenn Daniel wrote:
> Hello,
>
>
>
> so now I’ve tried JDK 8, 9 , 10, 11 (Normal and AdoptOpenJDK). It’s
> always the same IndexOutOfBoundsException error. What does that error
> even mean? Why do you think it has something to do with java version?
>
> The kick is that 1/20 times I start karaf, it actually works correctly.
> Anyways, I’m still stuck here.
>
>
>
> *Daniel* *Krenn*
> Consultant MES
>
> Daniel.Krenn@team-con.de <ma...@team-con.de>
>
>
>
> | 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>
>
> *Von:* Freeman Fang <fr...@gmail.com>
> *Gesendet:* Freitag, 17. Mai 2019 16:15
> *An:* user@karaf.apache.org
> *Betreff:* Re: Exception starting HttpContext registration
> java.lang.NullPointerException: null
>
>
>
> Hi,
>
>
>
> Please use JDK11 if you could to see if there’s any difference, JDK9
> isn’t a LTS version.
>
>
>
> Cheers
>
> -------------
>
> Freeman(Yue) Fang
>
>
> Red Hat, Inc.
>
>
>
>
>
>
>
> On May 15, 2019, at 9:50 AM, Krenn Daniel <Daniel.Krenn@team-con.de
> <ma...@team-con.de>> 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:Daniel.Krenn@team-con.de | 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/>
>
>
>
>
> <image341767.png> <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:
>
> <image127107.png>
> <https://www.team-con.de/unternehmen/news-veranstaltungen/veranstaltungen/bme-value-day-2019.html>
>
>
>
> <image073265.jpg>
> <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é <jb@nanthrax.net <ma...@nanthrax.net>>
> Gesendet: Mittwoch, 15. Mai 2019 07:16
> An: user@karaf.apache.org <ma...@karaf.apache.org>
> 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
> >
> > Daniel.Krenn@team-con.de <ma...@team-con.de>
> <ma...@team-con.de>
> >
> >
> >
> > | 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>* <http://www.mescat.de/> >
> > *www.team-con.de <http://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é
> jbonofre@apache.org <ma...@apache.org>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
AW: Exception starting HttpContext registration
java.lang.NullPointerException: null
Posted by Krenn Daniel <Da...@team-con.de>.
Hello,
so now I’ve tried JDK 8, 9 , 10, 11 (Normal and AdoptOpenJDK). It’s always the same IndexOutOfBoundsException error. What does that error even mean? Why do you think it has something to do with java version?
The kick is that 1/20 times I start karaf, it actually works correctly. Anyways, I’m still stuck here.
Daniel Krenn
Consultant MES
Daniel.Krenn@team-con.de<ma...@team-con.de>
| Tel. +49 (9931) 981 365
T.CON GmbH & Co. KG
Hauptsitz
Straubinger Straße 2
94447 Plattling
T: +49 (0)9931 981 100
F: +49 (0)9931 981 199 www.mescat.de >
www.team-con.de >
Messetermine >
facebook | twitter | xing | linkedin | youtube | instagram
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:
Erhalten Sie wichtige Informationen von T.CON. Jetzt anmelden.
Von: Freeman Fang <fr...@gmail.com>
Gesendet: Freitag, 17. Mai 2019 16:15
An: user@karaf.apache.org
Betreff: Re: Exception starting HttpContext registration java.lang.NullPointerException: null
Hi,
Please use JDK11 if you could to see if there’s any difference, JDK9 isn’t a LTS version.
Cheers
-------------
Freeman(Yue) Fang
Red Hat, Inc.
On May 15, 2019, at 9:50 AM, Krenn Daniel <Da...@team-con.de>> 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:Daniel.Krenn@team-con.de | 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/>
<image341767.png><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:
<image127107.png><https://www.team-con.de/unternehmen/news-veranstaltungen/veranstaltungen/bme-value-day-2019.html>
<image073265.jpg><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é <jb...@nanthrax.net>>
Gesendet: Mittwoch, 15. Mai 2019 07:16
An: user@karaf.apache.org<ma...@karaf.apache.org>
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
>
> Daniel.Krenn@team-con.de<ma...@team-con.de> <ma...@team-con.de>
>
>
>
> | 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>* <http://www.mescat.de/> >
> *www.team-con.de<http://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é
jbonofre@apache.org<ma...@apache.org>
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Exception starting HttpContext registration java.lang.NullPointerException: null
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Please use JDK11 if you could to see if there’s any difference, JDK9 isn’t a LTS version.
Cheers
-------------
Freeman(Yue) Fang
Red Hat, Inc.
> On May 15, 2019, at 9:50 AM, Krenn Daniel <Da...@team-con.de> 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:Daniel.Krenn@team-con.de | 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/>
>
> <image341767.png> <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:
> <image127107.png> <https://www.team-con.de/unternehmen/news-veranstaltungen/veranstaltungen/bme-value-day-2019.html>
> <image073265.jpg> <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é <jb...@nanthrax.net>
> Gesendet: Mittwoch, 15. Mai 2019 07:16
> An: user@karaf.apache.org
> 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
> >
> > Daniel.Krenn@team-con.de <ma...@team-con.de>
> >
> >
> >
> > | 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é
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
AW: Exception starting HttpContext registration
java.lang.NullPointerException: null
Posted by Krenn Daniel <Da...@team-con.de>.
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:Daniel.Krenn@team-con.de | Tel. +49 (9931) 981 365
T.CON GmbH & Co. KG
Hauptsitz
Straubinger Straße 2
94447 Plattling
T: +49 (0)9931 981 100
F: +49 (0)9931 981 199 www.mescat.de >
www.team-con.de >
Messetermine >
facebook | twitter | xing | linkedin | youtube | instagram
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:
Erhalten Sie wichtige Informationen von T.CON. Jetzt anmelden.
-----Ursprüngliche Nachricht-----
Von: Jean-Baptiste Onofré <jb...@nanthrax.net>
Gesendet: Mittwoch, 15. Mai 2019 07:16
An: user@karaf.apache.org
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
>
> Daniel.Krenn@team-con.de <ma...@team-con.de>
>
>
>
> | 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é
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Exception starting HttpContext registration
java.lang.NullPointerException: null
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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(AbstractConnection.java:174)
>
> at
> org.ops4j.pax.url.war.internal.WebBundleConnection.createBundle(WebBundleConnection.java:108)
>
> at
> org.ops4j.pax.url.war.internal.AbstractConnection.getInputStream(AbstractConnection.java:143)
>
> at
> org.ops4j.pax.url.war.internal.WarConnection.getInputStream(WarConnection.java:33)
>
> at java.net.URL.openStream(URL.java:1045)
>
> at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:962)
>
> at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:884)
>
> at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:489)
>
> at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)
>
> at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.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
>
> Daniel.Krenn@team-con.de <ma...@team-con.de>
>
>
>
> | 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>
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com