karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Kilian <pit.kil...@googlemail.com>
Subject Re: NPE in Pax Web
Date Mon, 19 Dec 2011 12:27:45 GMT
Hi Jean-Baptiste,

thank you for the fast response.

Best Regards

Peter

2011/12/19 Jean-Baptiste Onofré <jb@nanthrax.net>

> Hi Peter,
>
> thanks for the report. I will raise a Jira (at Karaf or Pax Web) and work
> on the issue.
>
> We are going to take a look but it will be at least for Karaf 2.2.6 as
> 2.2.5 is quite ready for a vote.
>
> Regards
> JB
>
>
> On 12/19/2011 12:54 PM, Peter Kilian wrote:
>
>> Hi,
>>
>> i have a problem with Karaf 2.2.4 and Eclipse RAP. I develop a web
>> application with Eclipse RAP 1.5 M4 [1], more precisely i use the RWT
>> widget toolkit and the RWT-OSGi [2] integration bundle to create a OSGi
>> based application.
>>
>> Starting my application on Karaf 2.2.4, i see in the log file that the
>> rwt-osgi integration bundle registers a special servlet
>> "/servlet_context_finder" and also my servlet.
>>
>> Later the rwt-osgi integration bundle unregisters the servlet
>> "/servlet_context_finder", which cause to stop the the ServletModel. A
>> call to my application results then in a NPE:
>>
>> 2011-12-19 11:51:05,757 | DEBUG | 6076-49 - /reach | log
>>              | .eclipse.jetty.util.log.**Slf4jLog   70 | 53 -
>> org.eclipse.jetty.util - 7.4.5.v20110725 | REQUEST /reach on
>> org.eclipse.jetty.server.nio.**SelectChannelConnector$**
>> SelectChannelHttpConnection@**16b01f@127.0.0.1:8080
>> <http://127.0.0.1:8080><->127.**0.0.1:52046 <http://127.0.0.1:52046>
<
>> http://127.0.0.1:52046>
>>
>> 2011-12-19 11:51:05,757 | DEBUG | 6076-49 - /reach | ServerModel
>>              | eb.service.spi.model.**ServerModel  269 | 68 -
>> org.ops4j.pax.web.pax-web-spi - 1.0.7 | Matching [/reach]...
>> 2011-12-19 11:51:05,757 | DEBUG | 6076-49 - /reach | ServerModel
>>              | eb.service.spi.model.**ServerModel  293 | 68 -
>> org.ops4j.pax.web.pax-web-spi - 1.0.7 | Path [/reach] matched to
>> {pattern=/reach/.*,model=**ServletModel{id=org.ops4j.pax.**
>> web.service.spi.model.**ServletModel-32,name=org.**
>> ops4j.pax.web.service.spi.**model.ServletModel-32,**
>> urlPatterns=[/reach/*],alias=/**reach,servlet=org.eclipse.rap.**
>> rwt.osgi.internal.**CutOffContextPathWrapper@**
>> 152cb9a,initParams={},context=**ContextModel{id=org.ops4j.pax.**
>> web.service.spi.model.**ContextModel-30,name=,**
>> httpContext=org.eclipse.rap.**rwt.osgi.internal.**
>> HttpContextWrapper@fe4ac9,**contextParams={}}}}
>> 2011-12-19 11:51:05,757 | WARN  | 6076-49 - /reach | log
>>              | .eclipse.jetty.util.log.**Slf4jLog   50 | 53 -
>> org.eclipse.jetty.util - 7.4.5.v20110725 | /reach
>> java.lang.NullPointerException
>> at
>> org.ops4j.pax.web.service.**jetty.internal.**
>> JettyServerHandlerCollection.**handle(**JettyServerHandlerCollection.**
>> java:72)[70:org.ops4j.pax.web.**pax-web-jetty:1.0.7]
>> at
>> org.eclipse.jetty.server.**handler.HandlerWrapper.handle(**
>> HandlerWrapper.java:110)[59:**org.eclipse.jetty.server:7.4.**5.v20110725]
>> at
>> org.eclipse.jetty.server.**Server.handle(Server.java:342)**
>> [59:org.eclipse.jetty.server:**7.4.5.v20110725]
>> at
>> org.eclipse.jetty.server.**HttpConnection.handleRequest(**
>> HttpConnection.java:589)[59:**org.eclipse.jetty.server:7.4.**5.v20110725]
>> at
>> org.eclipse.jetty.server.**HttpConnection$RequestHandler.**
>> headerComplete(HttpConnection.**java:1048)[59:org.eclipse.**
>> jetty.server:7.4.5.v20110725]
>> at
>> org.eclipse.jetty.http.**HttpParser.parseNext(**
>> HttpParser.java:601)[55:org.**eclipse.jetty.http:7.4.5.**v20110725]
>> at
>> org.eclipse.jetty.http.**HttpParser.parseAvailable(**
>> HttpParser.java:214)[55:org.**eclipse.jetty.http:7.4.5.**v20110725]
>> at
>> org.eclipse.jetty.server.**HttpConnection.handle(**
>> HttpConnection.java:411)[59:**org.eclipse.jetty.server:7.4.**5.v20110725]
>> at
>> org.eclipse.jetty.io.nio.**SelectChannelEndPoint.handle(**
>> SelectChannelEndPoint.java:**535)[54:org.eclipse.jetty.io:7**
>> .4.5.v20110725]
>> at
>> org.eclipse.jetty.io.nio.**SelectChannelEndPoint$1.run(**
>> SelectChannelEndPoint.java:40)**[54:org.eclipse.jetty.io:7.4.**
>> 5.v20110725]
>> at
>> org.eclipse.jetty.util.thread.**QueuedThreadPool$3.run(**
>> QueuedThreadPool.java:529)[53:**org.eclipse.jetty.util:7.4.5.**v20110725]
>> at java.lang.Thread.run(Thread.**java:662)[:1.6.0_24]
>>
>> I attached the log file. Sorry, if this is not the right mailing list.
>>
>> Best Regards,
>>
>> Peter Kilian
>>
>> [1] http://www.eclipse.org/rap/
>> [2] http://www.codeaffine.com/**2011/08/26/raprwt-osgi-**integration/<http://www.codeaffine.com/2011/08/26/raprwt-osgi-integration/>
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Mime
View raw message