Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Error message after upgrade to from JJetty-9.4.20 to Jetty-9.4.33
  • From: Eze Ikonne <ike.ikonne@xxxxxxxxxx>
  • Date: Mon, 9 Nov 2020 03:23:16 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=aricent.com; dmarc=pass action=none header.from=aricent.com; dkim=pass header.d=aricent.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HkJbZGEb2YBtzBOYHtiKn0Xlh4F+tyT++79fu2qMANY=; b=g74qXhPB20K+E/Qa0ttaLvDUR+9ZQIANwuqyEDOM4tYMDUArRWcBgVgPZ2/U8VbEhqQkf/rbSYiNAhpDYXh/wl6qtDRa+PuqPO9FNf/CY5gfzEZieHU7j/3bNX9o3KzvqzZcgK3WxF7dC17WZdGVWwXR55fxXKXhU+NOuv92gEY0WSmvLPHg6KcVX3rALAxznjmGjsdq5VzWskdbhmOyU6ldELwcyCpS/Qn62qeGgxWYeqpAtRGWkqfJTYnuPrOE2AoLYRy0dbbOQdEvCAbo2iZ/MiH14dzIeS5Ml3dMt6OEimUmlaFtn9yFo5piO1Zim5IeR9vVnM2PGXwsbkzSzQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OIJ0SjT3p+ud+dtORmrCjjHyekreq58LOXoaySQwUTjPTvRn9mqGAYxa4uq+ndWip/nYmXLj/2fpVhB0ZaBAkBzj3znyBK4g57dyg4wyw5eHKGo+cIzKsHatXM2oeNOhFm92j3svozg+IefdAN5Cgw7RAjGkTl2mfgvI31ZBiF8nlZ8nKs6a86mC37m4DHiNofy9KcLII48QPmqDzGmB01ead8qVU5+mHEcauSs1A9adqMrnBoBc8/MGgyZpLlrFeP9AJ0jdsD0Ozo4//ztITJy2epGu/uwD/Uy/ZB1Y+R5bqM4Msrp7ma7cEyOpX41ECk4Ud3SEEPxefRao735teg==
  • Delivered-to: jetty-users@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jetty-users>
  • List-help: <mailto:jetty-users-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jetty-users>, <mailto:jetty-users-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jetty-users>, <mailto:jetty-users-request@eclipse.org?subject=unsubscribe>
  • Thread-index: Ada2H1oR+vuag/luTr+HeZB6GOsLVgAEZiYAAAMqttAAAFoRgAACKaWQ
  • Thread-topic: [jetty-users] Error message after upgrade to from JJetty-9.4.20 to Jetty-9.4.33

Hi Lachlan,

My web apps are up now with Jetty-9.4.34. I am grateful for the hint.

 

Thanks

 

From: jetty-users-bounces@xxxxxxxxxxx <jetty-users-bounces@xxxxxxxxxxx> On Behalf Of Lachlan Roberts
Sent: Sunday, November 8, 2020 8:21 PM
To: JETTY user mailing list <jetty-users@xxxxxxxxxxx>
Subject: Re: [jetty-users] Error message after upgrade to from JJetty-9.4.20 to Jetty-9.4.33

 

** This mail has been sent from an external source **

 

This looks like it is the same as https://github.com/eclipse/jetty.project/issues/5555 which was a bug in 9.4.33 but fixed in 9.4.34.

Try upgrading to 9.4.34 and see if it fixes this for you.

 

On Mon, Nov 9, 2020 at 1:14 PM Eze Ikonne <ike.ikonne@xxxxxxxxxx> wrote:

Hi Lachlan,

 

Thanks so very much, I did remove that jetty-jaspi jar file, which I didn’t need anyway, but now I am getting the following stacktrace. These are war files that were working in Jetty-9.4.20 before the upgrade to Jetty-9.4.33. Any hints will be appreciated.

 

Thanks,

 

Ike

 

 

java.lang.NullPointerException: null

                at org.eclipse.jetty.servlet.ServletHandler.getFilterChain(ServletHandler.java:617) ~[jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:527) ~[jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) ~[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602) ~[jetty-security-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) ~[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1612) ~[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) ~[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434) ~[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) ~[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501) ~[jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1582) ~[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) ~[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349) ~[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:234) ~[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146) ~[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.server.Server.handle(Server.java:516) ~[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383) ~[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.server.HttpChannel$$Lambda$69/0000000013BC4450.dispatch(Unknown Source) ~[?:?]

                at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556) ~[jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375) [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273) [jetty-server-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [jetty-io-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) [jetty-io-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:540) [jetty-io-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:395) [jetty-io-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:161) [jetty-io-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) [jetty-io-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) [jetty-io-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) [jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) [jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) [jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) [jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375) [jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:773) [jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905) [jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]

                at java.lang.Thread.run(Thread.java:820) [?:2.9 (04-02-2020)]

 

From: jetty-users-bounces@xxxxxxxxxxx <jetty-users-bounces@xxxxxxxxxxx> On Behalf Of Lachlan Roberts
Sent: Sunday, November 8, 2020 6:41 PM
To: JETTY user mailing list <jetty-users@xxxxxxxxxxx>
Subject: Re: [jetty-users] Error message after upgrade to from JJetty-9.4.20 to Jetty-9.4.33

 

** This mail has been sent from an external source **

 

Hi Eze,

 

It means you are including the jetty-jaspi jar which now exposes its AuthenticatorFactory with the ServiceLoader. 

You need some additional dependencies to get this to work properly. 

So if you are not intending to use jetty-jaspi you should exclude it from your dependencies.

 

See issues

 

On Mon, Nov 9, 2020 at 9:34 AM Eze Ikonne <ike.ikonne@xxxxxxxxxx> wrote:

Hi all,

 

Could anyone explain to me why I am getting this stacktrace, I upgraded from jetty-9.4.20 to jetty-9.4.33. Why do I need AuthenticatorFactory?

 

2020-11-08 17:26:01,012 [main] WARN  SecurityHandler - Error while loading AuthenticatorFactory with ServiceLoader

java.util.ServiceConfigurationError: org.eclipse.jetty.security.Authenticator$Factory: Provider org.eclipse.jetty.security.jaspi.JaspiAuthenticatorFactory could not be instantiated

                at java.util.ServiceLoader.fail(ServiceLoader.java:243) ~[?:1.8.0]

                at java.util.ServiceLoader.access$100(ServiceLoader.java:196) ~[?:1.8.0]

                at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:395) ~[?:1.8.0]

                at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:415) ~[?:1.8.0]

                at java.util.ServiceLoader$1.next(ServiceLoader.java:491) ~[?:1.8.0]

                at org.eclipse.jetty.security.SecurityHandler.<clinit>(SecurityHandler.java:88) [jetty-security-9.4.33.v20201020.jar:9.4.33.v20201020]

                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0]

                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:83) ~[?:1.8.0]

                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:57) ~[?:1.8.0]

                at java.lang.reflect.Constructor.newInstance(Constructor.java:437) [?:1.8.0]

                at org.eclipse.jetty.servlet.ServletContextHandler.newSecurityHandler(ServletContextHandler.java:331) [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.servlet.ServletContextHandler.getSecurityHandler(ServletContextHandler.java:396) [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.servlet.ServletContextHandler.relinkHandlers(ServletContextHandler.java:240) [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.servlet.ServletContextHandler.<init>(ServletContextHandler.java:162) [jetty-servlet-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.webapp.WebAppContext.<init>(WebAppContext.java:278) [jetty-webapp-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.webapp.WebAppContext.<init>(WebAppContext.java:207) [jetty-webapp-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.deploy.providers.WebAppProvider.createContextHandler(WebAppProvider.java:322) [jetty-deploy-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.deploy.App.getContextHandler(App.java:99) [jetty-deploy-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.deploy.bindings.StandardDeployer.processBinding(StandardDeployer.java:39) [jetty-deploy-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:188) [jetty-deploy-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:517) [jetty-deploy-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:157) [jetty-deploy-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:173) [jetty-deploy-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.deploy.providers.WebAppProvider.fileAdded(WebAppProvider.java:427) [jetty-deploy-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:66) [jetty-deploy-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:784) [jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:753) [jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.util.Scanner.scan(Scanner.java:641) [jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:540) [jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72) [jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:146) [jetty-deploy-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72) [jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:605) [jetty-deploy-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:252) [jetty-deploy-9.4.33.v20201020.jar:9.4.33.v20201020]

                at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72) [jetty-util-9.4.33.v20201020.jar:9.4.33.v20201020]

                at com.sterlingcommerce.hadrian.system.jetty.JettyHttpServiceImpl.startJetty(JettyHttpServiceImpl.java:442) [sspconfig.jar:?]

                at com.sterlingcommerce.hadrian.system.jetty.JettyHttpServiceImpl.start(JettyHttpServiceImpl.java:155) [sspconfig.jar:?]

                at $ServiceWithLifecycle_175a9f74f4b.start($ServiceWithLifecycle_175a9f74f4b.java) [?:?]

                at $ServiceWithLifecycle_175a9f74f41.start($ServiceWithLifecycle_175a9f74f41.java) [?:?]

                at com.sterlingcommerce.hadrian.system.ServiceManagerImpl.initStartGlobalServices(ServiceManagerImpl.java:201) [sspconfig.jar:?]

                at com.sterlingcommerce.hadrian.system.ServiceManagerImpl.start(ServiceManagerImpl.java:70) [sspconfig.jar:?]

                at $ServiceManager_175a9f74f26.start($ServiceManager_175a9f74f26.java) [?:?]

                at $ServiceManager_175a9f74f24.start($ServiceManager_175a9f74f24.java) [?:?]

                at com.sterlingcommerce.hadrian.Main.main(Main.java:354) [sspconfig.jar:?]

Caused by: java.lang.NoClassDefFoundError: javax.security.auth.message.AuthException

                at java.lang.J9VMInternals.newInstanceImpl(Native Method) ~[?:2.9 (04-02-2020)]

                at java.lang.Class.newInstance(Class.java:1852) ~[?:2.9 (04-02-2020)]

                at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:391) ~[?:1.8.0]

                ... 41 more

Caused by: java.lang.ClassNotFoundException: javax.security.auth.message.AuthException

                at java.net.URLClassLoader.findClass(URLClassLoader.java:610) ~[?:1.8.0]

                at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:944) ~[?:2.9 (04-02-2020)]

                at java.lang.ClassLoader.loadClass(ClassLoader.java:889) ~[?:2.9 (04-02-2020)]

                at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[?:1.8.0]

                at java.lang.ClassLoader.loadClass(ClassLoader.java:872) ~[?:2.9 (04-02-2020)]

                at java.lang.J9VMInternals.newInstanceImpl(Native Method) ~[?:2.9 (04-02-2020)]

                at java.lang.Class.newInstance(Class.java:1852) ~[?:2.9 (04-02-2020)]

                at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:391) ~[?:1.8.0]

                ... 41 more

=====================================================
Please refer to https://northamerica.altran.com/email-disclaimer
for important disclosures regarding this electronic communication.
=====================================================

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jetty-users

=====================================================
Please refer to https://northamerica.altran.com/email-disclaimer
for important disclosures regarding this electronic communication.
=====================================================

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jetty-users

=====================================================
Please refer to https://northamerica.altran.com/email-disclaimer
for important disclosures regarding this electronic communication.
=====================================================

Back to the top