For some reason, throws an error when calling any third-party method from the servlet. To this hour, the project worked fine. There is a backup of the project (working version), but at startup it gives the same error. Last thing I did, I cleaned the maven local repository.

[2016-10-22T11:47:22.704+0300] [glassfish 4.1] [WARNING] [] [javax.enterprise.web] [tid: _ThreadID=31 _ThreadName=http-listener-1(2)] [timeMillis: 1477126042704] [levelValue: 900] [[ StandardWrapperValve[loginController]: Servlet.service() for servlet loginController threw exception java.lang.NullPointerException at com.bpmw.web.controllers.user.LoginController.doPost(LoginController.java:65) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:415) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:282) at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167) at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201) at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175) at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235) at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561) at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545) at java.lang.Thread.run(Thread.java:745) ]] 

I think that the problem is somewhere in the settings of Glassfish or IDEA, maybe I accidentally deleted some necessary for the library to work.

In the debug I found out, as soon as it comes to calling a method from another class, the application crashes.

Restoring working copies of the project does not help.

  • You are written what error and even in what line of what class. java.lang.NullPointerException at com.bpmw.web.controllers.user.LoginController.doPost(LoginController.java:65) Think about how this happened. And we have something to guess, not seeing the source, even small pieces. - Sergey
  • The problem is definitely not with the code, but in the setting. I am using backup version. (I save the project daily). So, all versions refuse to work, even the reinstallation of the glossish from the newly exposed configs did not help. I don’t know where to look, I have already tried everything. - Petrovtsev
  • If the code is broken, and nobody knows the correct settings, then you should try to understand by code that he needs. And the settings they all may differ from the standard, even very much. Servlet would have seemed like a servlet in Africa too, but I have differences from yours, starting with ntbeans instead of inteliji, wildfly instead of glassfish, ant instead of maven. Throw you your config? So you all will fall and will never rise. - Sergey
  • Here is the code, if you can, please see github.com/petrovtsev/BPMW?files=1 - Petrovtsev
  • If the source matches the log, then I don’t even know what could be a listViewsModel. If it is allowed, then it is being introduced in such a null ... But is it possible? Just so without warnings to implement null? All right from what producer. Or is it because of the problems of injection up the chain? But there is an ejb service at the top. If there are problems with it, the application would not even be deployed by the server. Probably this is some other source. Or somewhere in returnViewsActiveUser, but for some reason the log ended on LoginController. Above / below there is still a log of a treys? - Sergey

0