I know there are lot of people out there losing their sleep
on this (I wish). But just to give you guys (& girls) an
update, I noticed that although error is being reported on
<CFQUERY ---- > line but in the debug information I can see
that query did run. Bit confusing, cause if query tag had an error
how did CF managed to run the query which produced 1 record???
Please see below the error discription ....
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\wwwroot\mysite\queries\qry_menu_contained_HTabs.cfm:
line 8
6 : </cfoutput>
7 : --->
8 : <cfquery name="HTabsd"
datasource="#application.datasource#" dbname="#application.dbname#"
username="#application.dbusername#"
password="#application.dbpassword#">
9 : SELECT EXTRACT(DOW FROM TIMESTAMP 'now()') as day0fWeek
10 : </cfquery>
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/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Remote Address 127.0.0.1
Referrer
http://127.0.0.1/mysite/menuContainerPage.cfm
Date/Time 27-Jun-07 05:47 PM
Stack Trace
at
cfqry_menu_contained_HTabs2ecfm1805417246.runPage(C:\Inetpub\wwwroot\mysite\queries\qry_menu_contained_HTabs.cfm:8)
at
cfmenu_contained2ecfm2088362365.runPage(C:\Inetpub\wwwroot\mysite\menu_contained.cfm:64)
java.lang.NullPointerException
at java.lang.String.<init>(Unknown Source)
at macromedia.jdbc.slbase.BaseConnection.setCatalog(Unknown
Source)
at
coldfusion.server.j2ee.sql.JRunConnection.setCatalog(JRunConnection.java:481)
at
coldfusion.server.j2ee.sql.JRunConnectionHandle.setCatalog(JRunConnectionHandle.java:133)
at
coldfusion.tagext.sql.QueryTag.doFinally(QueryTag.java:607)
at
cfqry_menu_contained_HTabs2ecfm1805417246.runPage(C:\Inetpub\wwwroot\swindon\queries\qry_menu_contained_HTabs.cfm:8)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
at
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
at
coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1915)
at
cfmenu_contained2ecfm2088362365.runPage(C:\Inetpub\wwwroot\swindon\menu_contained.cfm:64)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
at
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
at
coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:210)
at
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at
coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
at
coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
at
coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
at
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at
coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at
coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at
coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115)
at coldfusion.CfmServlet.service(CfmServlet.java:107)
at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
at
jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
Debugging Information
ColdFusion Server Developer 7,0,1,116466
Template /mysite/menu_contained.cfm
Time Stamp 27-Jun-07 05:47 PM
Locale English (UK)
User Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Remote IP 127.0.0.1
Host Name 127.0.0.1
Execution Time top level (0ms)
C:\Inetpub\wwwroot\mysite\Application.cfm
top level (469ms)
C:\Inetpub\wwwroot\mysite\menu_contained.cfm
· arrowtop level (250ms)
C:\Inetpub\wwwroot\mysite\queries\qry_menu_contained_HTabs.cfm @
line 64
(2328 ms) STARTUP, PARSING, COMPILING, LOADING, &
SHUTDOWN
(2797 ms) TOTAL EXECUTION TIME
red = over 250 ms execution time
Exceptions
17:47:35.035 - java.lang.NullPointerException - in
C:\Inetpub\wwwroot\mysite\queries\qry_menu_contained_HTabs.cfm :
line 8
SQL Queries HTabsd (Datasource=mysite_new, Time=0ms,
Records=1) in
C:\Inetpub\wwwroot\mysite\queries\qry_menu_contained_HTabs.cfm @
17:47:35.035
SELECT EXTRACT(DOW FROM TIMESTAMP 'now()') as day0fWeek