Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Issue during embedded Jetty startup

Ike,

You can configure what jetty does with uncovered http methods by using the ConstraintSecurityHandler.setDenyUncoveredMethods(boolean).

You see the stacktrace along with the "uncovered methods" warning because you have debug enabled.

Jan


On 28 May 2018 at 15:39, Ike Ikonne <iikonne@xxxxxxxxxx> wrote:
Hi Chris,

I thank you so much for your response, indeed, I have read the servlet spec that you pointed and it is clear
to me. I would like to know the default behavior of Jetty when an uncovered HTTP method is encountered,
does Jetty deny requests from uncovered HTTP methods? I am not able to display a logon
page since I started encountering this error message. Also, I wonder if the uncovered HTTP
method has something to do with this other stacktrace that I see in my log file ... I do appreciate
your insights



 WriteFlusher@9ca821da{IDLE}->null
java.nio.channels.ClosedChannelException: null
at org.eclipse.jetty.io.WriteFlusher.onClose(WriteFlusher.java:532) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.AbstractEndPoint.onClose(AbstractEndPoint.java:353) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.ChannelEndPoint.onClose(ChannelEndPoint.java:216) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.AbstractEndPoint.doOnClose(AbstractEndPoint.java:225) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.AbstractEndPoint.close(AbstractEndPoint.java:192) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.AbstractEndPoint.close(AbstractEndPoint.java:175) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.doShutdownOutput(SslConnection.java:1151) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.doClose(SslConnection.java:1179) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.AbstractEndPoint.doOnClose(AbstractEndPoint.java:220) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.AbstractEndPoint.close(AbstractEndPoint.java:192) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.fill(SslConnection.java:852) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.server.HttpConnection.fillRequestBuffer(HttpConnection.java:331) ~[jetty-server-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:243) ~[jetty-server-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:291) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:151) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:319) ~[jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:175) ~[jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:139) ~[jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.ManagedSelector$$Lambda$28.0000000016FD7C70.run(Unknown Source) ~[?:?]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:754) [jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:672) [jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at java.lang.Thread.run(Thread.java:785) [?:2.6 (07-22-2017)]
2018-05-27 12:51:14,691 [qtp1642398232-27] DEBUG FillInterest - onClose FillInterest@d6b4b8cb{null}
2018-05-27 12:51:14,691 [qtp1642398232-28] DEBUG SslConnection - filled b[0]= SslConnection@3621f46f{NEED_TASK,eio=0/-1,di=-1}=>HttpConnection@58fbf36a[p=HttpParser{s=START,0 of -1},g=HttpGenerator@7831c0df{s=START}]=>HttpChannelOverHttp@b88a9bbd{r=0,c=false,a=IDLE,uri=null,age=0}<-SocketChannelEndPoint@d20337b2{/127.0.0.1:59114<->/127.0.0.1:7777,OPEN,fill=-,flush=-,to=4/30000}{io=0/0,kio=0,kro=1}->SslConnection@3621f46f{NEED_TASK,eio=0/-1,di=-1}=>HttpConnection@58fbf36a[p=HttpParser{s=START,0 of -1},g=HttpGenerator@7831c0df{s=START}]=>HttpChannelOverHttp@b88a9bbd{r=0,c=false,a=IDLE,uri=null,age=0}
2018-05-27 12:51:14,691 [qtp1642398232-27] DEBUG QueuedThreadPool - queue org.eclipse.jetty.io.ManagedSelector$DestroyEndPoint@983ee30
2018-05-27 12:51:14,692 [qtp1642398232-27] DEBUG AbstractEndPoint - close SocketChannelEndPoint@9c6bb5c4{/127.0.0.1:59113<->/127.0.0.1:7777,CLOSED,fill=-,flush=-,to=4/30000}{io=0/0,kio=-1,kro=-1}->SslConnection@7245868e{NEED_UNWRAP,eio=337/-1,di=-1}=>HttpConnection@f7e54f0[p=HttpParser{s=START,0 of -1},g=HttpGenerator@97f95d93{s=START}]=>HttpChannelOverHttp@bed0e0e5{r=0,c=false,a=IDLE,uri=null,age=0}
2018-05-27 12:51:14,692 [qtp1642398232-27] DEBUG AbstractEndPoint - close(null) SocketChannelEndPoint@9c6bb5c4{/127.0.0.1:59113<->/127.0.0.1:7777,CLOSED,fill=-,flush=-,to=5/30000}{io=0/0,kio=-1,kro=-1}->SslConnection@7245868e{NEED_UNWRAP,eio=337/-1,di=-1}=>HttpConnection@f7e54f0[p=HttpParser{s=START,0 of -1},g=HttpGenerator@97f95d93{s=START}]=>HttpChannelOverHttp@bed0e0e5{r=0,c=false,a=IDLE,uri=null,age=0}
2018-05-27 12:51:14,692 [qtp1642398232-32] DEBUG QueuedThreadPool - run org.eclipse.jetty.io.ManagedSelector$DestroyEndPoint@983ee30
2018-05-27 12:51:14,692 [qtp1642398232-32] DEBUG ManagedSelector - Destroyed SocketChannelEndPoint@9c6bb5c4{/127.0.0.1:59113<->/127.0.0.1:7777,CLOSED,fill=-,flush=-,to=5/30000}{io=0/0,kio=-1,kro=-1}->SslConnection@7245868e{NEED_UNWRAP,eio=337/-1,di=-1}=>HttpConnection@f7e54f0[p=HttpParser{s=START,0 of -1},g=HttpGenerator@97f95d93{s=START}]=>HttpChannelOverHttp@bed0e0e5{r=0,c=false,a=IDLE,uri=null,age=0}
2018-05-27 12:51:14,692 [qtp1642398232-32] DEBUG AbstractConnection - onClose HttpConnection@f7e54f0[p=HttpParser{s=START,0 of -1},g=HttpGenerator@97f95d93{s=START}]=>HttpChannelOverHttp@bed0e0e5{r=0,c=false,a=IDLE,uri=null,age=0}<-DecryptedEndPoint@369dc39d{/127.0.0.1:59113<->/127.0.0.1:7777,CLOSED,fill=-,flush=-,to=16/30000}->HttpConnection@f7e54f0[p=HttpParser{s=START,0 of -1},g=HttpGenerator@97f95d93{s=START}]=>HttpChannelOverHttp@bed0e0e5{r=0,c=false,a=IDLE,uri=null,age=0}->SocketChannelEndPoint@9c6bb5c4{/127.0.0.1:59113<->/127.0.0.1:7777,CLOSED,fill=-,flush=-,to=5/30000}{io=0/0,kio=-1,kro=-1}->SslConnection@7245868e{NEED_UNWRAP,eio=337/-1,di=-1}=>HttpConnection@f7e54f0[p=HttpParser{s=START,0 of -1},g=HttpGenerator@97f95d93{s=START}]=>HttpChannelOverHttp@bed0e0e5{r=0,c=false,a=IDLE,uri=null,age=0}
2018-05-27 12:51:14,692 [qtp1642398232-32] DEBUG AbstractConnection - onClose SslConnection@7245868e{NEED_UNWRAP,eio=337/-1,di=-1}=>HttpConnection@f7e54f0[p=HttpParser{s=START,0 of -1},g=HttpGenerator@97f95d93{s=START}]=>HttpChannelOverHttp@bed0e0e5{r=0,c=false,a=IDLE,uri=null,age=0}<-SocketChannelEndPoint@9c6bb5c4{/127.0.0.1:59113<->/127.0.0.1:7777,CLOSED,fill=-,flush=-,to=5/30000}{io=0/0,kio=-1,kro=-1}->SslConnection@7245868e{NEED_UNWRAP,eio=337/-1,di=-1}=>HttpConnection@f7e54f0[p=HttpParser{s=START,0 of -1},g=HttpGenerator@97f95d93{s=START}]=>HttpChannelOverHttp@bed0e0e5{r=0,c=false,a=IDLE,uri=null,age=0}
2018-05-27 12:51:14,692 [qtp1642398232-32] DEBUG QueuedThreadPool - ran org.eclipse.jetty.io.ManagedSelector$DestroyEndPoint@983ee30
2018-05-27 12:51:14,692 [qtp1642398232-27] DEBUG WriteFlusher - ignored: WriteFlusher@244f3a{IDLE}->null
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.ibm.jsse2.c.a(c.java:26) ~[?:8.0 build_20170606]
at com.ibm.jsse2.aq.a(aq.java:76) ~[?:8.0 build_20170606]
at com.ibm.jsse2.aq.unwrap(aq.java:353) ~[?:8.0 build_20170606]
at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:11) ~[?:8.0 build_20150122]
at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.fill(SslConnection.java:681) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.server.HttpConnection.fillRequestBuffer(HttpConnection.java:331) ~[jetty-server-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:243) ~[jetty-server-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:291) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:151) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118) ~[jetty-io-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:319) ~[jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:175) ~[jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:139) ~[jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.io.ManagedSelector$$Lambda$28.0000000016FD7C70.run(Unknown Source) ~[?:?]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:754) [jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:672) [jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at java.lang.Thread.run(Thread.java:785) [?:2.6 (07-22-2017)]
2018-05-27 12:51:14,695 [qtp1642398232-27] DEBUG FillInterest - onFail FillInterest@950ae512{null}



From:        Chris Walker <chris@xxxxxxxxxxx>
To:        JETTY user mailing list <jetty-users@xxxxxxxxxxx>
Date:        05/25/2018 04:22 PM
Subject:        Re: [jetty-users] Issue during embedded Jetty startup
Sent by:        jetty-users-bounces@eclipse.org




Ike,

It is reporting that you have HTTP methods not protected for the context. Uncovered HTTP methods are discussed in the servlet spec (section 13.8.4), and we discuss them in our documentation in regards to authentication and authorization. I am guessing you have a security realm set up but not all HTTP methods are covered. The ConstraintSecurityHandler class is picking that up and giving a warning on it. 

Best,
Chris

On Fri, May 25, 2018 at 5:00 PM, Ike Ikonne <iikonne@xxxxxxxxxx> wrote:
Hi all,

I had posted this issue before, I am just trying to see if anyone in the group has an any
idea as to why I am getting this stacktrace during jetty startup, any hints will be
highly appreciated.


2018-05-21 09:49:20,060 [main] WARN  SecurityHandler - ServletContext@o.e.j.w.WebAppContext@3fc7e522{/SspJsf,
file:///C:/SSPConfig3432-20180307-MAINT-BUILD08/apps/jetty/webservices/webapps/SspJsf/,STARTING}{C:\SSPConfig3432-20180307-MAINT-BUILD08\apps\jetty\webservices\webapps\SspJsf.war} has uncovered http methods for path: /*
2018-05-21 09:49:20,060 [main] DEBUG SecurityHandler - 
java.lang.Throwable: null
at org.eclipse.jetty.security.ConstraintSecurityHandler.checkPathsWithUncoveredHttpMethods(ConstraintSecurityHandler.java:808) [jetty-security-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.security.ConstraintSecurityHandler.doStart(ConstraintSecurityHandler.java:446) [jetty-security-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138) [jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108) [jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) [jetty-server-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.server.handler.ScopedHandler.doStart(ScopedHandler.java:123) [jetty-server-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.server.session.SessionHandler.doStart(SessionHandler.java:503) [jetty-server-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138) [jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108) [jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) [jetty-server-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.server.handler.ScopedHandler.doStart(ScopedHandler.java:123) [jetty-server-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:844) [jetty-server-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:370) [jetty-servlet-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1497) [jetty-webapp-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1459) [jetty-webapp-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:785) [jetty-server-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:287) [jetty-servlet-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545) [jetty-webapp-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138) [jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117) [jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) [jetty-server-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:167) [jetty-server-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138) [jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117) [jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) [jetty-server-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138) [jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.server.Server.start(Server.java:419) [jetty-server-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108) [jetty-util-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) [jetty-server-9.4.9.v20180320.jar:9.4.9.v20180320]
at org.eclipse.jetty.server.Server.doStart(Server.java:386) [jetty-server-9.4.9.v20180320.jar:9.4.9.v20180320]




Ike Ikonne


Aricent Engineering



_______________________________________________
jetty-users mailing list

jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

https://dev.eclipse.org/mailman/listinfo/jetty-users

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users



_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users



--
Jan Bartel <janb@xxxxxxxxxxx>
www.webtide.com
Expert assistance from the creators of Jetty and CometD


Back to the top