You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by rsteppac <ra...@vivates.ch> on 2015/09/15 11:51:35 UTC

Re: Nullpointer Exception in jetty ContextHandler on 4.0.0.M2 and M3

Hello Achim,

at last: https://github.com/rsteppac/karaf4_jetty9_npe_showcase

This is a "minimal" project to reproduce the NPE in Jetty. Let me know if
you have any issues with it.


Thanks!
Ralf



--
View this message in context: http://karaf.922171.n3.nabble.com/Nullpointer-Exception-in-jetty-ContextHandler-on-4-0-0-M2-and-M3-tp4041050p4042586.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Nullpointer Exception in jetty ContextHandler on 4.0.0.M2 and M3

Posted by Achim Nierbeck <bc...@googlemail.com>.
great, thanks for the feedback :)


2015-11-06 10:45 GMT+01:00 rsteppac <ra...@vivates.ch>:

> Hi Achim,
>
> I can confirm that Karaf 4.0.2 and the bundled pax-web resolved the issue
> for me.
>
>
> Thanks!
> Ralf
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Nullpointer-Exception-in-jetty-ContextHandler-on-4-0-0-M2-and-M3-tp4041050p4043316.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Re: Nullpointer Exception in jetty ContextHandler on 4.0.0.M2 and M3

Posted by rsteppac <ra...@vivates.ch>.
Hi Achim,

I can confirm that Karaf 4.0.2 and the bundled pax-web resolved the issue
for me.


Thanks!
Ralf



--
View this message in context: http://karaf.922171.n3.nabble.com/Nullpointer-Exception-in-jetty-ContextHandler-on-4-0-0-M2-and-M3-tp4041050p4043316.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Nullpointer Exception in jetty ContextHandler on 4.0.0.M2 and M3

Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,

yeah I just need to make sure I'll do a pax-web release beforehand :D

regards, Achim


2015-10-07 11:17 GMT+02:00 rsteppac <ra...@vivates.ch>:

> Thanks a bunch! Is the fix going to be part of the Karaf 4.0.2 release?
>
> Ralf
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Nullpointer-Exception-in-jetty-ContextHandler-on-4-0-0-M2-and-M3-tp4041050p4042924.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Re: Nullpointer Exception in jetty ContextHandler on 4.0.0.M2 and M3

Posted by rsteppac <ra...@vivates.ch>.
Thanks a bunch! Is the fix going to be part of the Karaf 4.0.2 release?

Ralf



--
View this message in context: http://karaf.922171.n3.nabble.com/Nullpointer-Exception-in-jetty-ContextHandler-on-4-0-0-M2-and-M3-tp4041050p4042924.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Nullpointer Exception in jetty ContextHandler on 4.0.0.M2 and M3

Posted by Achim Nierbeck <bc...@googlemail.com>.
Yeah ...
I finally had some time to look at this.

It's been an easy fix
See PAXWEB-892

regards, Achim


2015-09-15 11:51 GMT+02:00 rsteppac <ra...@vivates.ch>:

> Hello Achim,
>
> at last: https://github.com/rsteppac/karaf4_jetty9_npe_showcase
>
> This is a "minimal" project to reproduce the NPE in Jetty. Let me know if
> you have any issues with it.
>
>
> Thanks!
> Ralf
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Nullpointer-Exception-in-jetty-ContextHandler-on-4-0-0-M2-and-M3-tp4041050p4042586.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Re: Nullpointer Exception in jetty ContextHandler on 4.0.0.M2 and M3

Posted by Achim Nierbeck <bc...@googlemail.com>.
I'll take a look at it, but that requires some real twists in my brain ...
instantiate a Spring Context via a bean in blueprint.xml and try to use it
as a  context initializer for a specialized spring bean registered as a
servlet ...
now that's big shit ...
but right away without further testing just from the top of my head,
did you make sure your own ApplicationContextInitialize is like
org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext

or better derives from it?

It'll take me a bit to find some time for it, so please bear with me :-)

regards, Achim


2015-09-15 11:51 GMT+02:00 rsteppac <ra...@vivates.ch>:

> Hello Achim,
>
> at last: https://github.com/rsteppac/karaf4_jetty9_npe_showcase
>
> This is a "minimal" project to reproduce the NPE in Jetty. Let me know if
> you have any issues with it.
>
>
> Thanks!
> Ralf
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Nullpointer-Exception-in-jetty-ContextHandler-on-4-0-0-M2-and-M3-tp4041050p4042586.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master