NullPointerException JaspicServices over and over in server.log

10 views
Skip to first unread message

Philip Durbin

unread,
Apr 28, 2020, 2:35:04 PM4/28/20
to datave...@googlegroups.com
I switched to Payara for my dev environment (yay) but today I've been seeing the following messages repeated over and over every few seconds or so in server.log. This makes it hard to read the log, of course.

I'm on Payara 5.201 on Mac. This issue makes me think that perhaps it's a race condition on startup: https://github.com/payara/Payara/issues/4397

[2020-04-28T14:30:08.185-0400] [Payara 5.201] [INFO] [] [javax.enterprise.system.container.web.com.sun.web.security] [tid: _ThreadID=126 _ThreadName=admin-thread-pool::admin-listener(2)] [timeMillis: 1588098608185] [levelValue: 800] [[
  Context path from ServletContext:  differs from path from bundle: /]]

[2020-04-28T14:30:08.186-0400] [Payara 5.201] [SEVERE] [AS-WEB-CORE-00037] [javax.enterprise.web.core] [tid: _ThreadID=126 _ThreadName=admin-thread-pool::admin-listener(2)] [timeMillis: 1588098608186] [levelValue: 1000] [[
  An exception or error occurred in the container during the request processing
java.lang.NullPointerException
at com.sun.jaspic.services.JaspicServices.hasExactMatchAuthProvider(JaspicServices.java:215)
at com.sun.enterprise.security.jaspic.config.PayaraJaspicServletServices.<init>(PayaraJaspicServletServices.java:104)
at com.sun.web.security.realmadapter.JaspicRealm.getConfigHelper(JaspicRealm.java:299)
at com.sun.web.security.realmadapter.JaspicRealm.initJaspicServices(JaspicRealm.java:153)
at com.sun.web.security.realmadapter.JaspicRealm.isJaspicEnabled(JaspicRealm.java:163)
at com.sun.web.security.RealmAdapter.isSecurityExtensionEnabled(RealmAdapter.java:261)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
at java.lang.Thread.run(Thread.java:748)
]]

--

Philip Durbin

unread,
May 1, 2020, 10:16:51 AM5/1/20
to datave...@googlegroups.com
This is happening again to me this morning. The same stacktrace, over and over, every few seconds, in server.log. If anyone else is seeing this, please let me know if you have any theories on what is causing it or how to prevent it. I'm starting to wonder if putting your laptop to sleep is enough to cause it, since I recently woke up mine.

Philip Durbin

unread,
Oct 8, 2020, 2:37:27 PM10/8/20
to datave...@googlegroups.com
There have been a few updates on that Payara issue I mentioned but I just unsubscribed from it because I haven't had the problem since I upgraded to Payara 5.2020.2.
Reply all
Reply to author
Forward
0 new messages