dennis longnecker
2008-06-17 13:47:21 UTC
My website is getting the following error message on occassion. If I click
refresh, the page displays correctly.
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.
ROOT CAUSE:
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:1276)
at coldfusion.sql.Executive.executeQuery(Executive.java:1008)
at coldfusion.sql.Executive.executeQuery(Executive.java:939)
at coldfusion.sql.SqlImpl.execute(SqlImpl.java:325)
at coldfusion.tagext.sql.QueryTag.executeQuery(QueryTag.java:831)
at coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:521)
at
cfheader2ecfm1821119872.runPage(C:\Inetpub\vhosts\gyro4.org\httpdocs\includes\he
ader.cfm:6)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661)
at
cfIndex2ecfm96819572.runPage(C:\Inetpub\vhosts\gyro4.org\httpdocs\Index.cfm:1)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
My header.cfm starts with:
<cfset todaysdate = "#DateFormat(now(),"mm/dd/yyyy")#">
<cfquery name="Get_Menu" Datasource="gyro4_Content">
SELECT *
FROM DynamicContent
WHERE (StartDate <= #CreateODBCDate(todaysdate)#) AND (EndDate >=
#CreateODBCDate(todaysdate)#) AND (MenuBar = 'Y')
</cfquery>
And each of the values is defined correctly (plus, why would a refresh of the
page work).
ANy suggestions on debugging this further?
refresh, the page displays correctly.
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.
ROOT CAUSE:
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:1276)
at coldfusion.sql.Executive.executeQuery(Executive.java:1008)
at coldfusion.sql.Executive.executeQuery(Executive.java:939)
at coldfusion.sql.SqlImpl.execute(SqlImpl.java:325)
at coldfusion.tagext.sql.QueryTag.executeQuery(QueryTag.java:831)
at coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:521)
at
cfheader2ecfm1821119872.runPage(C:\Inetpub\vhosts\gyro4.org\httpdocs\includes\he
ader.cfm:6)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661)
at
cfIndex2ecfm96819572.runPage(C:\Inetpub\vhosts\gyro4.org\httpdocs\Index.cfm:1)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
My header.cfm starts with:
<cfset todaysdate = "#DateFormat(now(),"mm/dd/yyyy")#">
<cfquery name="Get_Menu" Datasource="gyro4_Content">
SELECT *
FROM DynamicContent
WHERE (StartDate <= #CreateODBCDate(todaysdate)#) AND (EndDate >=
#CreateODBCDate(todaysdate)#) AND (MenuBar = 'Y')
</cfquery>
And each of the values is defined correctly (plus, why would a refresh of the
page work).
ANy suggestions on debugging this further?