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 02:13:55 +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=CiBsRLR1ZPz+8fMAkkwuvgvaTM8ToQJwRwOI9Yj17xE=; b=Gpq7zOfBu8XjtHMyuQr1VgiDcO30rr2cYGT/+6AG4fauLrMrPHsfki6yxR3ZLs+ekfZCPCaLJQbayWSakS35Zf+/JTivdOHyMCki8TApV89cQjm3tX4jEcHJQnM6suY0wStWjywX6/6/4rp4uJKJ1vJ3IkkW9N6L4PupCvtuVIFkpTQ/gVA8N86uPqKEeWC0A6DZQzwLQYBtYqUXQ/C92qbiFdKYpUjtdmQxRFA98ifI7mqNDYwXkel3yqNsc7rzfoczTK5o04B3Q5AeTZkdbPi7igWitvvo7rcAFjEj5q68DNIBXdHIAeqdexJRM/jMrHIc5JEzmY8kCo++tzitxA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YNCD1xdxyIRunNFoarc1ZDibr2rvb9/tqQEsfCkrvR7MK88f34AmEroMSPcewf4dngSx2PR0qOKaWYTk3xAEGS/M919sKiFyBPl8gXYttwqbgiBzex95+S5Keho1O8mwdNqjNEqL4toA+1E7ZkW0k/roExCXCXynpWi5RfFLyDLLhjvNK5yOYGJNyjJmuV3RWDVakHqmej6mLLj/pLcbHC6bt6wzra2gLCfzlKCBrV/zObzeeT9X/Z3olAIGgDzeNb98ipT7apWNfGshfXS7HkK8XW1xO/g0Tj+IfOJHQ/JI1vG77lFsjfPSaaDp8LujQKB+vNodo70MBc7BBfF+3w==
  • 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+HeZB6GOsLVgAEZiYAAAMqttA=
  • Thread-topic: [jetty-users] Error message after upgrade to from JJetty-9.4.20 to Jetty-9.4.33

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.
=====================================================

Back to the top