Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-929

java.lang.NullPointerException when viewing tasks after sending many mails, mails are not delivered


    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1
    • Labels:
    • Steps to Reproduce:

      Send a couple of thousand mails using the cfmail tag.

      Send a couple of thousand mails using the cfmail tag.


      I installed Railo on Tomcat using the Custom jar, immediately upgraded to using http://dev.railo.ch.

      We've got a system for delivering newsletters to the respective subscribers. A few of these newsletters have as many as over 100,000 subscribers (115975 for the one due to go out tonight) - so that's the amount of emails we need to send for each issue.

      We used to run the jobs for sending the newsletter on ColdFusion 8.0.1. We have switched that over to Railo yesterday, hardware and SMTP server (Postfix) remain the same however, so apart from CF8->Railo nothing has changed whatsoever.

      I noticed that I had not received my issue of the newsletter that was being sent out, so I tried to take a look at the tasks-view of the administrator. This throws the following error:

      Railo Error (Java.lang.nullpointerexception)

      The Error Occurred in
      /Users/mic/Projects/Railo/webroot/context31/admin/web.cfm: line 204

      at railo.runtime.op.Caster.toPageException(Caster.java:2967):2967
      at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:756):756
      at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:706):706
      at admin.web_cfm$cf.call(/Users/mic/Projects/Railo/webroot/context31/admin/web.cfm:204):204
      at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:753):753
      at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:197):197
      at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:23):23
      at railo.runtime.PageContextImpl.execute(PageContextImpl.java:1900):1900
      at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:280):280
      at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:32):32
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717):717
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290):290
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206):206
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233):233
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191):191
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127):127
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102):102
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555):555
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109):109
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298):298
      at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190):190
      at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291):291
      at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:774):774
      at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703):703
      at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:896):896
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690):690
      at java.lang.Thread.run(Thread.java:619):619

      /WEB-INF/railo/remote-client/open/ currently holds 19876 files.

      The exception was thrown like this when the filecount was down in the 17k numbers. Shortly afterwards when I tried to open the tasks-view again, I received a "Heap Space" error and was asked to log back in. This took a long time, however, so I decided to restart tomcat. Tomcat did restart and there's nothing unusual in the logs so far as I can see, but I can no longer open the admin interface, I get "Service Temporarily Unavailable"

      I gather that on restart Railo might try to read and execute all the stored tasks, which will probably either take ages or fail altogether. I have tried switching spooling off as the admin interface was still available. So far it seems that sending mails in these amounts is just not working and would render the instance completely unusable eventually, apart from not sending the mails.

      catalina.out doesn't provide any clues as to what's going on:

      25.08.2010 20:35:52 org.apache.coyote.http11.Http11Protocol init
      INFO: Initializing Coyote HTTP/1.1 on http-8080
      25.08.2010 20:35:52 org.apache.catalina.startup.Catalina load
      INFO: Initialization processed in 469 ms
      25.08.2010 20:35:52 org.apache.catalina.core.StandardService start
      INFO: Starting service Catalina
      25.08.2010 20:35:52 org.apache.catalina.core.StandardEngine start
      INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
      Wed Aug 25 20:36:00 CEST 2010-901 Start CFML Controller

      • config:/opt/railo-

      Wed Aug 25 20:36:01 CEST 2010-345 using JRE Date Library
      Wed Aug 25 20:36:01 CEST 2010 Loaded Railo Version 3010219

      • config:/var/www/some/path/_public/webserver/_somedir/WEB-INF/railo
      • webroot:/var/www/some/path/_public/webserver/_somedir/

      The very same application has worked fine with ColdFusion 8.0.1.

        Gliffy Diagrams




              • Assignee:
                micstriit Michael Offner
                mwollny Markus Wollny
              • Votes:
                0 Vote for this issue
                0 Start watching this issue


                • Created: