Strange Error about Undefined Values
Hi I just migrated my site over to a new hosting provider about 3 weeks ago. I never had this error pop up until after I moved, so not sure if its an actual coding error on my part or something else. Anyway, I have a CF site and a database with about 1700 records so far. On my home page I have a list of "sections" or categories for the products on my DB. For example, photo lighting, television bulbs, medical lamps, and general lighting are just some of the categories I have the products divided in. When I click on one of these categories, it of course performs a query that returns the results WHERE category = "photo"
So this pulls every records containing the condition "photo", but every so often This error comes up saying something about Null pointer, or Undefined Values.
Here is the error:
The web site you are accessing has experienced an unexpected error.
Please contact the website administrator.The following information is meant for the website developer for debugging purposes.
Error Occurred While Processing Request
The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code.
Null Pointers are another name for undefined values.
The error occurred in C:\inetpub\vhosts\teed-younger.com\httpdocs\photoLighting.cfm: line 1
1 : <cfquery name="rsPhoto" datasource="rlbulbs">
2 : SELECT a.item,
3 : a.price,--------------------------------------------------------------------------------
Resources:
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; HPDTDF)
Remote Address 74.124.178.176
Referrer http://teed-younger.com/
Date/Time 15-Sep-10 08:02 AM
Stack Trace (click to expand)
at cfphotoLighting2ecfm1611342530.runPage(C:\inetpub\vhosts\teed-younger.com\httpdocs\photoLighting.cfm:1)
java.lang.NullPointerException
at com.mysql.jdbc.Statement.setMaxRows(Statement.java:2178)
at coldfusion.server.j2ee.sql.JRunStatement.setMaxRows(JRunStatement.java:214)
at coldfusion.sql.Executive.executeQuery(Executive.java:1267)
at coldfusion.sql.Executive.executeQuery(Executive.java:1009)
at coldfusion.sql.Executive.executeQuery(Executive.java:940)
at coldfusion.sql.SqlImpl.execute(SqlImpl.java:325)
at coldfusion.tagext.sql.QueryTag.executeQuery(QueryTag.java:838)
at coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:528)
at cfphotoLighting2ecfm1611342530.runPage(C:\inetpub\vhosts\teed-younger.com\httpdocs\photoLighting.cfm:1)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:483)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:288)
at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.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.CfmServlet.service(CfmServlet.java:198)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.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:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
btw, it also gives this same error sometimes when I perform a search from my site as well. Whats strange is I can click the back button in my browser and do the same thing again and the error doesnt appear. Thanks for any help!
