I have a primary onException function setup in my main.cfc handler that is defined in Coldbox.cfc.
I then wrapped the function with a try catch
and I still get random NullPointerExceptions
does anyone have any insite why this is happening. It works 98% of the time perfectly. about 2% of the time it throw an error.
------------------ stack trace ---------------------
java.lang.NullPointerException
at railo.runtime.op.Caster.toPageException(Caster.java:2982):2982
at railo.runtime.tag.ThreadTag.register(ThreadTag.java:296):296
at coldbox.system.cache.providers.cacheboxprovider_cfc$cf.udfCall3(/var/lib/tomcat6/webapps/ROOT/coldbox/system/cache/provider s/CacheBoxProvider.cfc:561):561
at coldbox.system.cache.providers.cacheboxprovider_cfc$cf.udfCall(/var/lib/tomcat6/webapps/ROOT/coldbox/system/cache/providers/CacheBoxProvider.cfc):-1
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214
at railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418
at railo.runtime.type.UDFImpl.call(UDFImpl.java:383):383
at railo.runtime.ComponentImpl._call(ComponentImpl.java:573):573
at railo.runtime.ComponentImpl._call(ComponentImpl.java:502):502
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1757):1757
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:733):733
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1438):1438
at coldbox.system.cache.cache factory_cfc$cf.udfCall2(/var/lib/tomcat6/webapps/ROOT/coldbox/system/cache/CacheFactory.cfc:433):433
at coldbox.system.cache.cachefactory_cfc$cf.udfCall(/var/lib/tomcat6/webapps/ROOT/coldbox/system/cache/CacheFactory.cfc):-1
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214
at railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418
at railo.runtime.type.UDFImpl.call(UDFImpl.java:383):383
at railo.runtime.ComponentImpl._call(ComponentImpl.java:573):573
at railo.runtime.ComponentImpl._call(ComponentImpl.java:502):502
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1757):1757
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:733):733
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1438):1438
& nbsp; at coldbox.system.web.services.requestservice_cfc$cf.udfCall(/var/lib/tomcat6/webapps/ROOT/coldbox/system/web/services/RequestService.cfc:115):115
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214
at railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418
at railo.runtime.type.UDFImpl.call(UDFImpl.java:383):383
at railo.runtime.ComponentImpl._call(ComponentImpl.java:573):573
at railo.runtime.ComponentImpl._call(ComponentImpl.java:502):502
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1757):1757
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:733):733
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1438):1438
at coldbox.system.coldbox_cfc$cf.udfCall1(/var/lib/tomcat6/webapps/ROOT/cold box/system/Coldbox.cfc:193):193
at coldbox.system.coldbox_cfc$cf.udfCall(/var/lib/tomcat6/webapps/ROOT/coldbox/system/Coldbox.cfc):-1
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214
at railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418
at railo.runtime.type.UDFImpl.call(UDFImpl.java:383):383
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:738):738
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1438):1438
at application_cfc$cf.udfCall(/var/lib/tomcat6/webapps/ROOT/Application.cfc:84):84
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214
at railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418
at railo.runtime.type.UDFImpl.call(UDFImpl.java:383):383
& nbsp; at railo.runtime.ComponentImpl._call(ComponentImpl.java:573):573
at railo.runtime.ComponentImpl._call(ComponentImpl.java:502):502
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1757):1757
at railo.runtime.listener.ModernAppListener.call(ModernAppListener.java:347):347
at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:106):106
at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:23):23
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:1985):1985
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:1952):1952
at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:282):282
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.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:776):776
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705):705
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898):898
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690):690
at java.lang.Thread.run(Thread.java:636):636
Jeremy R. DeYoung
Phone:615.261.8201
RantsFromAMadMan.com