Mike,

Your confusion is understandable. A NullPointerException is a generic error
(in a way) that is too specific - or perhaps I should say "symptomatic"
instead of being "causal".  It's rather like saying "the patient has a
fever". Sure it's technically correct but it doesn't give you much more than
that. Why does he have a fever? Is he in love? Does he have pneumonia?
Dyspepsia? Was he bitten by Tse tse fly?  You almost always have to dig a
bit deeper to understand the source of this error. I've seen it cause by
Javacasting, Db driver errors, the cfimage tag etc.  

-Mark



Mark Kruger - CFG
CF Webtools
www.cfwebtools.com
www.coldfusionmuse.com
O: 402.932.3318
E: mkru...@cfwebtools.com
Skype: markakruger



-----Original Message-----
From: Mike K [mailto:afpwebwo...@gmail.com] 
Sent: Saturday, July 20, 2013 10:13 AM
To: cf-talk
Subject: Re: Confused: java.lang.NullPointerException CF9


Thanks Matt.      I dont use mappings so that rules that out.      So I'll
check all my CFC calls and see if that points me to it.

Thanks.

My confusion came because none of the googling i did led to that as the
source.  It's all about drivers and server versions and JVM etc.   But none
of the other sites on that same box exhibit the problem.

If anyone has any other ideas as to what I can examine I'd be grateful.




On Sun, Jul 21, 2013 at 1:09 AM, Matt Quackenbush
<quackfu...@gmail.com>wrote:

>
> Without seeing any code we're just grasping at straws. My first guess is
> that you have a mapping that's not set correctly, and a call to a CFC (or
> perhaps an include) is not finding its target.
>
> Sent from a mobile something
> On Jul 20, 2013 11:01 AM, "Mike K" <afpwebwo...@gmail.com> wrote:
>
> >
> > Can anyone give me some pointers as to where to look for the source or
> > maybe the solution to this problem please?
> >
> > I'm confused - I am getting java.lang.NullPointerException error on a
> site
> > on a shared server, but not getting the error on other sites on that
same
> > server.    So presumably the error is something to do with the code on
> that
> > site.
> >
> > But the error isnt happening on my dev environment, so maybe it's not my
> > code after all.
> >
> > I've looked at all the notes I can find about this and can't see anyone
> > with my environment who's reporting that same error so I can compare
> notes
> > - at least as far as I can tell.
> >
> > Our setup is:
> >
> > Windows2003
> > CF9:   9,0,2,282541   Enterprise
> > Database:   MSSQLServer2005
> >
> > Here's my stack trace if it helps:
> >
> > coldfusion.runtime.EventHandlerException: Event handler exception. at
> >
>
coldfusion.runtime.AppEventInvoker.onRequestStart(AppEventInvoker.java:266)
> > at
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:349)
> > at
> >
>
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
> > at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at
> > coldfusion.filter.PathFilter.invoke(PathFilter.java:94) at
> > coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at
> >
> >
>
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistence
Filter.java:28)
> > at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at
> > coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at
> > coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at
> > coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at
> > coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at
> > coldfusion.CfmServlet.service(CfmServlet.java:200) at
> > coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
> at
> > jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at
> >
> >
>
coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletF
ilter.java:42)
> > at
coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
> > at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at
> > jrun.servlet.FilterChain.service(FilterChain.java:101) at
> > jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at
> > jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at
> >
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
> > at
> >
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
> > at
> >
> >
>
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
> > at
> >
> >
>
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:
320)
> > at
> >
> >
>
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428
)
> > at
> >
> >
>
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:26
6)
> > at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) Caused by:
> > java.lang.NullPointerException
> >
> >
> >
> > --
> > Cheers
> > Mike Kear
> > Windsor, NSW, Australia
> > Adobe Certified Advanced ColdFusion Developer
> > AFP Webworks
> > http://afpwebworks.com
> > ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month
> >
> >
> >
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356252
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to