smares323
asked on
Coldfusion 10 EVALUATE
The code below use to work in ColdFusion MX7. Upgraded to ColdFusion 10 and don't work no more.
<CFLOOP INDEX="ListIndex" LIST="#TRIM(UserGroup)#">
<CFSET UserGroup = SpanExcluding(ListIndex, "|*|")>
<CFSET UserGroupType = Replace(ListIndex, "|*|","")>
<CFSET UserGroupType = Replace(UserGroupType, UserGroup,"")>
<CFSET StartDate = EVALUATE("FORM.StartDate#T RIM(UserGr oup)##TRIM (UserGroup Type)#")>
<CFSET EndDate = EVALUATE("FORM.EndDate#TRI M(UserGrou p)##TRIM(U serGroupTy pe)#")>
<CFSET OnGoing = EVALUATE("FORM.OnGoing#TRI M(UserGrou p)##TRIM(U serGroupTy pe)#")>
<CFSET TempEndDate = EVALUATE("FORM.TempEndDate #TRIM(User Group)##TR IM(UserGro upType)#") >
<CFSET SubscriberAcctNumber = EVALUATE("FORM.SubscriberA cctNumber# TRIM(UserG roup)##TRI M(UserGrou pType)#")>
<!--- check SubscriberAcctNumber length and pad with leading zeroes, if necessary --->
<CFIF IsDefined("SubscriberAcctN umber") AND LEN(TRIM(SubscriberAcctNum ber)) GT 0>
<CFIF LEN(TRIM(SubscriberAcctNum ber)) LT 7 AND TRIM(SubscriberAcctNumber) GT "">
<CFSET SubscriberAcctNumberLength = LEN(TRIM(SubscriberAcctNum ber))>
<CFLOOP CONDITION="SubscriberAcctN umberLengt h LT 7">
<CFSET SubscriberAcctNumber = 0 & TRIM(SubscriberAcctNumber) >
<CFSET SubscriberAcctNumberLength = LEN(SubscriberAcctNumber)>
</CFLOOP>
</CFIF>
</CFIF>
<CFQUERY NAME="AddModUser" DATASOURCE="DB">
{ CALL prMembership
('#TRIM(UserID)#','#TRIM(U serGroup)# ','#TRIM(U serGroupTy pe)#','#TR IM(StartDa te)#','#TR IM(EndDate )#','#TRIM (TempEndDa te)#','',' ','#TRIM(O nGoing)#', '#TRIM(Sub scriberAcc tNumber)#' )
}
</CFQUERY>
</CFLOOP>
<CFLOOP INDEX="ListIndex" LIST="#TRIM(UserGroup)#">
<CFSET UserGroup = SpanExcluding(ListIndex, "|*|")>
<CFSET UserGroupType = Replace(ListIndex, "|*|","")>
<CFSET UserGroupType = Replace(UserGroupType, UserGroup,"")>
<CFSET StartDate = EVALUATE("FORM.StartDate#T
<CFSET EndDate = EVALUATE("FORM.EndDate#TRI
<CFSET OnGoing = EVALUATE("FORM.OnGoing#TRI
<CFSET TempEndDate = EVALUATE("FORM.TempEndDate
<CFSET SubscriberAcctNumber = EVALUATE("FORM.SubscriberA
<!--- check SubscriberAcctNumber length and pad with leading zeroes, if necessary --->
<CFIF IsDefined("SubscriberAcctN
<CFIF LEN(TRIM(SubscriberAcctNum
<CFSET SubscriberAcctNumberLength
<CFLOOP CONDITION="SubscriberAcctN
<CFSET SubscriberAcctNumber = 0 & TRIM(SubscriberAcctNumber)
<CFSET SubscriberAcctNumberLength
</CFLOOP>
</CFIF>
</CFIF>
<CFQUERY NAME="AddModUser" DATASOURCE="DB">
{ CALL prMembership
('#TRIM(UserID)#','#TRIM(U
}
</CFQUERY>
</CFLOOP>
ASKER
I get this error on the insert.
{ CALL prMembership ('112973','WSJ','REGULAR', '01/01/10, 01/01/20', '','','',' ','y,y','' ) }
{ CALL prMembership ('112973','WSJ','REGULAR',
That is not an error, what is the error message?
The thing that looks weird is 'y,y' --- is that supposed to be two "y" ? or just "Y"
same thing with the date..t. here are 2 dates in this quote..
01/01/10,01/01/20
The thing that looks weird is 'y,y' --- is that supposed to be two "y" ? or just "Y"
same thing with the date..t. here are 2 dates in this quote..
01/01/10,01/01/20
ASKER
Ok the Evaluate use to filter the multiple records that where submitted. that's actually 2 grouptype that were selected and its not looping the startdate and ongoing for each record. The Y is for the Ongoing field.
ASKER
In the past the Evaulate was for more then 1 record that was submitted through the form.
<CFSET StartDate = EVALUATE("FORM.StartDate#T RIM(UserGr oup)##TRIM (UserGroup Type)#")>
<CFSET EndDate = EVALUATE("FORM.EndDate#TRI M(UserGrou p)##TRIM(U serGroupTy pe)#")>
<CFSET OnGoing = EVALUATE("FORM.OnGoing#TRI M(UserGrou p)##TRIM(U serGroupTy pe)#")>
<CFSET TempEndDate = EVALUATE("FORM.TempEndDate #TRIM(User Group)##TR IM(UserGro upType)#") >
<CFSET SubscriberAcctNumber = EVALUATE("FORM.SubscriberA cctNumber# TRIM(UserG roup)##TRI M(UserGrou pType)#")>
<CFSET StartDate = EVALUATE("FORM.StartDate#T
<CFSET EndDate = EVALUATE("FORM.EndDate#TRI
<CFSET OnGoing = EVALUATE("FORM.OnGoing#TRI
<CFSET TempEndDate = EVALUATE("FORM.TempEndDate
<CFSET SubscriberAcctNumber = EVALUATE("FORM.SubscriberA
> In the past the Evaulate was for more then 1 record that was submitted through the form.
Ok, that was the past. How is it now? Do you still have more than one record in your form? How are you looping them now?
Ok, that was the past. How is it now? Do you still have more than one record in your form? How are you looping them now?
ASKER
Also MX7 the Evaulate would allow each startdate to insert in its own UserGroup record not like this 01/01/10,01/01/20
ASKER
<!---------------->
<CFPARAM NAME="UserID" DEFAULT="">
<CFIF TRIM(UserID) GT "">
<CFQUERY NAME="Subscribed" DATASOURCE="db">
{ CALL prUGMembership ('#TRIM(UserID)#') }
</CFQUERY>
<!--- <cfdump var="#Subscribed#"> --->
<CFQUERY NAME="AllGroups" DATASOURCE="db">
{ CALL prUGTypesList }
</CFQUERY>
<!--- <cfdump var="#AllGroups#"> --->
<CFELSE>
<CFABORT>
</CFIF>
<CFSET GroupList = "">
<CFSET OnGoingList = "">
<CFOUTPUT QUERY="Subscribed">
<CFSET GroupList = "#TRIM(GroupList)##TRIM(Us erGroup)## TRIM(UserG roupType)# ,">
<!-- 101,239,48,39,932 -->
<CFIF TRIM(OnGoing) IS "Y">
<CFSET OnGoingList = "#TRIM(OnGoingList)##TRIM( UserGroup) ##TRIM(Use rGroupType )#,">
</CFIF>
</CFOUTPUT>
<HTML>
<HEAD>
<Style Type="text/css">
.link1 {text-decoration:none; color:#000000;}
.button0 {font-size:7pt;}
.textEntry1 {font:9pt}
</Style>
</HEAD>
<BODY bgcolor="#ffffff" vlink=blue alink=blue>
<CFOUTPUT>
<FORM name="GroupForm" action="/admin/onlineAccou nt/userGro upSub.cfm? sid=#sid#& tkn=#tkn#& UserID=#Us erID#" METHOD="POST" TARGET="list">
</CFOUTPUT>
<TABLE border=0 cellspacing=0 cellpadding=0 width=99%>
<TR>
<td width=5><spacer type=block></td>
<td>
<table border=0 cellspacing=2 cellpadding=0 width=100%>
<TR bgcolor="#eeeeee">
<td colspan=2><font face=arial,helvetica size=1>
<u>Available Groups</u>
</td>
<td><font face=arial,helvetica size=1>
<u>Region</u>
</td>
<td><font face=arial,helvetica size=1>
<u>On Going</u>
</td>
<td><font face=arial,helvetica size=1>
<u>Subscriber<br>Account</ u>
</td>
<td><font face=arial,helvetica size=1>
<u>Start Date</u>
</td>
<td><font face=arial,helvetica size=1>
<u>End Date</u>
</td>
</TR>
<CFOUTPUT QUERY="AllGroups">
<CFSET zGroup = "#TRIM(AllGroups.UserGroup )##TRIM(Al lGroups.Us erGroupTyp e)#">
<CFSET zTempEndDate = "">
<CFSET zStartDate = "">
<CFSET zEndDate = "">
<CFSET zSubscriberID = "">
<TR>
<td valign=top>
<input type="Checkbox" name="UserGroup" value="#TRIM(AllGroups.Use rGroup)#|* |#TRIM(All Groups.Use rGroupType )#"<CFIF TRIM(GroupList) CONTAINS "#TRIM(AllGroups.UserGroup )##TRIM(Al lGroups.Us erGroupTyp e)#"> checked</CFIF>>
</td>
<td><font face=arial,helvetica size=1>
<a href="##" title="#TRIM(AllGroups.Use rGroupName )#" Class="link1">
#TRIM(AllGroups.UserGroup) # #TRIM(AllGroups.UserGroupT ype)#</a>
</td>
<td><font face=arial,helvetica size=1>
#LEFT(RegionCode, 2)#
</td>
<td>
<input type="text" size=1 name="OnGoing#TRIM(Subscri bed.UserGr oup)##TRIM (Subscribe d.UserGrou pType)#" value="<CFIF TRIM(OnGoingList) CONTAINS "#TRIM(AllGroups.UserGroup )##TRIM(Al lGroups.Us erGroupTyp e)#">Y</CF IF>" Class="textEntry1">
</td>
<td>
<CFLOOP QUERY="Subscribed">
<CFIF "#TRIM(zGroup)#" IS "#TRIM(Subscribed.UserGrou p)##TRIM(S ubscribed. UserGroupT ype)#">
<CFSET zSubscriberID = "#Subscribed.SubscriptionA ccountNumb er#">
<CFSET zStartDate = DateFormat("#TRIM(Subscrib ed.StartDa te)#","mm/ dd/yy")>
<CFSET zEndDate = DateFormat("#TRIM(Subscrib ed.EndDate )#","mm/dd /yy")>
<CFSET zTempEndDate = DateFormat("#TRIM(Subscrib ed.TempEnd Date)#","m m/dd/yy")>
</CFIF>
</CFLOOP>
<!--- baseview account number ---><!--- #TRIM(Subscribed.UserGroup )##TRIM(Su bscribed.U serGroupTy pe)# --->
<input type="text" name="SubscriberAcctNumber #TRIM(Subs cribed.Use rGroup)##T RIM(Subscr ibed.UserG roupType)# " value="#zSubscriberID#" size="7" maxlength="30" Class="textEntry1">
</td>
<td>
<input type="text" name="StartDate#TRIM(Subsc ribed.User Group)##TR IM(Subscri bed.UserGr oupType)#" value="#TRIM(zStartDate)#" size=7 maxlength=30 Class="textEntry1">
</td>
<td><input type="text" name="EndDate#TRIM(Subscri bed.UserGr oup)##TRIM (Subscribe d.UserGrou pType)#" value="#TRIM(zEndDate)#" size=7 maxlength=30 Class="textEntry1">
<input type="hidden" name="TempEndDate#TRIM(Sub scribed.Us erGroup)## TRIM(Subsc ribed.User GroupType) #" value="#TRIM(zTempEndDate) #">
</td>
</TR>
<CFIF zSubscriberID GT ''>
<!--- query baseview --->
<CFQUERY NAME="CA" DATASOURCE="CIRC">
SELECT subscription.account, subscription.status, subscription.expiration,
publication.publication_na me, occupant.company, subscription.notes, publication.publicationcod e
FROM subscription
INNER JOIN publication ON subscription.publicationID = publication.publication_id
INNER JOIN occupant ON occupant.name_id = subscription.namedentityid
WHERE subscription.account = '#zSubscriberID#'
</CFQUERY>
<!--- <cfdump var="#CA#"> --->
<CFIF IsDefined("CA.account") AND CA.account GT 0>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td valign="top">
<font face=arial,helvetica size=1>
#CA.account#
<br />#CA.publication_name# <cfif trim(CA.publicationcode) gt "">(#trim(CA.publicationco de)#)</cfi f>
<br />#CA.company#
<br />#CA.notes#
</td>
<td valign="top">
<font face=arial,helvetica size=1>
Status: #TRIM(CA.status)#
<br /><CFIF #TRIM(CA.status)# EQ 1>Active<CFELSE><font color="red">Inactive</font ></CFIF>
</font>
</td>
<td valign="top">
<font face=arial,helvetica size=1>
Exp: #DateFormat(CA.expiration, "mm/dd/yy")#
</font>
</td>
</tr>
</CFIF>
</CFIF>
</CFOUTPUT>
<TR>
<td colspan=5 height=50 align=center>
<input type=submit value=" Save " Class="button0">
</td>
</TR>
</table>
</td>
</TR>
<TR><td height=50> </td></TR>
</TABLE>
</form>
</BODY>
</HTML>
<CFPARAM NAME="UserID" DEFAULT="">
<CFIF TRIM(UserID) GT "">
<CFQUERY NAME="Subscribed" DATASOURCE="db">
{ CALL prUGMembership ('#TRIM(UserID)#') }
</CFQUERY>
<!--- <cfdump var="#Subscribed#"> --->
<CFQUERY NAME="AllGroups" DATASOURCE="db">
{ CALL prUGTypesList }
</CFQUERY>
<!--- <cfdump var="#AllGroups#"> --->
<CFELSE>
<CFABORT>
</CFIF>
<CFSET GroupList = "">
<CFSET OnGoingList = "">
<CFOUTPUT QUERY="Subscribed">
<CFSET GroupList = "#TRIM(GroupList)##TRIM(Us
<!-- 101,239,48,39,932 -->
<CFIF TRIM(OnGoing) IS "Y">
<CFSET OnGoingList = "#TRIM(OnGoingList)##TRIM(
</CFIF>
</CFOUTPUT>
<HTML>
<HEAD>
<Style Type="text/css">
.link1 {text-decoration:none; color:#000000;}
.button0 {font-size:7pt;}
.textEntry1 {font:9pt}
</Style>
</HEAD>
<BODY bgcolor="#ffffff" vlink=blue alink=blue>
<CFOUTPUT>
<FORM name="GroupForm" action="/admin/onlineAccou
</CFOUTPUT>
<TABLE border=0 cellspacing=0 cellpadding=0 width=99%>
<TR>
<td width=5><spacer type=block></td>
<td>
<table border=0 cellspacing=2 cellpadding=0 width=100%>
<TR bgcolor="#eeeeee">
<td colspan=2><font face=arial,helvetica size=1>
<u>Available Groups</u>
</td>
<td><font face=arial,helvetica size=1>
<u>Region</u>
</td>
<td><font face=arial,helvetica size=1>
<u>On Going</u>
</td>
<td><font face=arial,helvetica size=1>
<u>Subscriber<br>Account</
</td>
<td><font face=arial,helvetica size=1>
<u>Start Date</u>
</td>
<td><font face=arial,helvetica size=1>
<u>End Date</u>
</td>
</TR>
<CFOUTPUT QUERY="AllGroups">
<CFSET zGroup = "#TRIM(AllGroups.UserGroup
<CFSET zTempEndDate = "">
<CFSET zStartDate = "">
<CFSET zEndDate = "">
<CFSET zSubscriberID = "">
<TR>
<td valign=top>
<input type="Checkbox" name="UserGroup" value="#TRIM(AllGroups.Use
</td>
<td><font face=arial,helvetica size=1>
<a href="##" title="#TRIM(AllGroups.Use
#TRIM(AllGroups.UserGroup)
</td>
<td><font face=arial,helvetica size=1>
#LEFT(RegionCode, 2)#
</td>
<td>
<input type="text" size=1 name="OnGoing#TRIM(Subscri
</td>
<td>
<CFLOOP QUERY="Subscribed">
<CFIF "#TRIM(zGroup)#" IS "#TRIM(Subscribed.UserGrou
<CFSET zSubscriberID = "#Subscribed.SubscriptionA
<CFSET zStartDate = DateFormat("#TRIM(Subscrib
<CFSET zEndDate = DateFormat("#TRIM(Subscrib
<CFSET zTempEndDate = DateFormat("#TRIM(Subscrib
</CFIF>
</CFLOOP>
<!--- baseview account number ---><!--- #TRIM(Subscribed.UserGroup
<input type="text" name="SubscriberAcctNumber
</td>
<td>
<input type="text" name="StartDate#TRIM(Subsc
</td>
<td><input type="text" name="EndDate#TRIM(Subscri
<input type="hidden" name="TempEndDate#TRIM(Sub
</td>
</TR>
<CFIF zSubscriberID GT ''>
<!--- query baseview --->
<CFQUERY NAME="CA" DATASOURCE="CIRC">
SELECT subscription.account, subscription.status, subscription.expiration,
publication.publication_na
FROM subscription
INNER JOIN publication ON subscription.publicationID
INNER JOIN occupant ON occupant.name_id = subscription.namedentityid
WHERE subscription.account = '#zSubscriberID#'
</CFQUERY>
<!--- <cfdump var="#CA#"> --->
<CFIF IsDefined("CA.account") AND CA.account GT 0>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td valign="top">
<font face=arial,helvetica size=1>
#CA.account#
<br />#CA.publication_name# <cfif trim(CA.publicationcode) gt "">(#trim(CA.publicationco
<br />#CA.company#
<br />#CA.notes#
</td>
<td valign="top">
<font face=arial,helvetica size=1>
Status: #TRIM(CA.status)#
<br /><CFIF #TRIM(CA.status)# EQ 1>Active<CFELSE><font color="red">Inactive</font
</font>
</td>
<td valign="top">
<font face=arial,helvetica size=1>
Exp: #DateFormat(CA.expiration,
</font>
</td>
</tr>
</CFIF>
</CFIF>
</CFOUTPUT>
<TR>
<td colspan=5 height=50 align=center>
<input type=submit value=" Save " Class="button0">
</td>
</TR>
</table>
</td>
</TR>
<TR><td height=50> </td></TR>
</TABLE>
</form>
</BODY>
</HTML>
ASKER
That's how in the form
ASKER
In the form im using a cfquery output to get usergroup value
ASKER
Any suggestions or advice gdemaria
So, the problem is these two columns that are doubling the data, right?
{ CALL prMembership ('112973','WSJ','REGULAR', '01/01/10, 01/01/20', '','','',' ','y,y','' ) }
What is the name of the form field for this data: '01/01/10,01/01/20
AND for this data : 'Y,Y'
We need to see if these fields are set up differently, they should have a name tag with a variable NAME="XXX#variable#"
{ CALL prMembership ('112973','WSJ','REGULAR',
What is the name of the form field for this data: '01/01/10,01/01/20
AND for this data : 'Y,Y'
We need to see if these fields are set up differently, they should have a name tag with a variable NAME="XXX#variable#"
ASKER
form.StartDate = 01/01/10,01/01/20
form.EndDate = doing the same
form.OnGoing = y,y
form.TempEndDate = doing the same
form.SubscriberAcctNumber = doing the same
form.EndDate = doing the same
form.OnGoing = y,y
form.TempEndDate = doing the same
form.SubscriberAcctNumber = doing the same
ASKER
Sorry I think you meant this
name="OnGoing#TRIM(Subscri bed.UserGr oup)##TRIM (Subscribe d.UserGrou pType)#"
name="StartDate#TRIM(Subsc ribed.User Group)##TR IM(Subscri bed.UserGr oupType)#"
name="EndDate#TRIM(Subscri bed.UserGr oup)##TRIM (Subscribe d.UserGrou pType)#"
name="TempEndDate#TRIM(Sub scribed.Us erGroup)## TRIM(Subsc ribed.User GroupType) #"
name="SubscriberAcctNumber #TRIM(Subs cribed.Use rGroup)##T RIM(Subscr ibed.UserG roupType)# "
name="OnGoing#TRIM(Subscri
name="StartDate#TRIM(Subsc
name="EndDate#TRIM(Subscri
name="TempEndDate#TRIM(Sub
name="SubscriberAcctNumber
So they are all duplicating?
On your form page, view the source and look for the startDate field
<input type="text" name="StartDate#TRIM(Subsc ribed.User Group)##TR IM(Subscri bed.UserGr oupType)#"
You will probably see more than one field named StartdateX where x is some value. NAME="StartDateX" should be unique, there should only be one of them, the "X" value (whatever it is) needs to be different every time
On your form page, view the source and look for the startDate field
<input type="text" name="StartDate#TRIM(Subsc
You will probably see more than one field named StartdateX where x is some value. NAME="StartDateX" should be unique, there should only be one of them, the "X" value (whatever it is) needs to be different every time
ASKER
gdemaria you were right about the name being unique, but I'm still getting an error if the recordcount is more then 19 records that the form submits. The evaluate did work also.
HTTP Status 500 - ROOT CAUSE:
type Exception report
message ROOT CAUSE:
description The server encountered an internal error that prevented it from fulfilling this request.
exception
HTTP Status 500 - ROOT CAUSE:
type Exception report
message ROOT CAUSE:
description The server encountered an internal error that prevented it from fulfilling this request.
exception
ASKER
type Exception report
message ROOT CAUSE:
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletExcep tion: ROOT CAUSE:
java.lang.IllegalStateExce ption: Cannot call sendError() after the response has been committed
at org.apache.catalina.connec tor.Respon seFacade.s endError(R esponseFac ade.java:4 50)
at javax.servlet.http.HttpSer vletRespon seWrapper. sendError( HttpServle tResponseW rapper.jav a:119)
at coldfusion.tagext.io.cache .ehcache.G enericResp onseWrappe r.sendErro r(GenericR esponseWra pper.java: 91)
at coldfusion.filter.FormScop e.parseQue ryString(F ormScope.j ava:524)
at coldfusion.filter.FormScop e.parsePos tData(Form Scope.java :468)
at coldfusion.filter.FormScop e.fillForm (FormScope .java:414)
at coldfusion.filter.FormScop e.setEncod ing(FormSc ope.java:8 6)
at coldfusion.runtime.CFPage. SetEncodin g(CFPage.j ava:1194)
at cfclassic2ecfm557356615._f actor21(C: \ColdFusio n10\cfusio n\wwwroot\ WEB-INF\de bug\classi c.cfm:19)
at cfclassic2ecfm557356615._f actor32(C: \ColdFusio n10\cfusio n\wwwroot\ WEB-INF\de bug\classi c.cfm:12)
at cfclassic2ecfm557356615.ru nPage(C:\C oldFusion1 0\cfusion\ wwwroot\WE B-INF\debu g\classic. cfm:1)
at coldfusion.runtime.CfJspPa ge.invoke( CfJspPage. java:244)
at coldfusion.tagext.lang.Inc ludeTag.do StartTag(I ncludeTag. java:446)
at coldfusion.filter.Cfinclud eFilter.in voke(Cfinc ludeFilter .java:65)
at coldfusion.filter.Cfinclud eFilter.in clude(Cfin cludeFilte r.java:33)
at coldfusion.filter.BrowserD ebugFilter .invoke(Br owserDebug Filter.jav a:114)
at coldfusion.filter.ClientSc opePersist enceFilter .invoke(Cl ientScopeP ersistence Filter.jav a:28)
at coldfusion.filter.BrowserF ilter.invo ke(Browser Filter.jav a:38)
at coldfusion.filter.NoCacheF ilter.invo ke(NoCache Filter.jav a:58)
at coldfusion.filter.GlobalsF ilter.invo ke(Globals Filter.jav a:38)
at coldfusion.filter.Datasour ceFilter.i nvoke(Data sourceFilt er.java:22 )
at coldfusion.filter.CachingF ilter.invo ke(Caching Filter.jav a:62)
at coldfusion.filter.RequestT hrottleFil ter.invoke (RequestTh rottleFilt er.java:15 1)
at coldfusion.CfmServlet.serv ice(CfmSer vlet.java: 219)
at coldfusion.bootstrap.Boots trapServle t.service( BootstrapS ervlet.jav a:89)
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:303 )
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:2 08)
at coldfusion.monitor.event.M onitoringS ervletFilt er.doFilte r(Monitori ngServletF ilter.java :42)
at coldfusion.bootstrap.Boots trapFilter .doFilter( BootstrapF ilter.java :46)
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:241 )
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:2 08)
at org.apache.catalina.core.S tandardWra pperValve. invoke(Sta ndardWrapp erValve.ja va:220)
at org.apache.catalina.core.S tandardCon textValve. invoke(Sta ndardConte xtValve.ja va:122)
at org.apache.catalina.authen ticator.Au thenticato rBase.invo ke(Authent icatorBase .java:501)
at org.apache.catalina.core.S tandardHos tValve.inv oke(Standa rdHostValv e.java:171 )
at org.apache.catalina.valves .ErrorRepo rtValve.in voke(Error ReportValv e.java:102 )
at org.apache.catalina.valves .AccessLog Valve.invo ke(AccessL ogValve.ja va:950)
at org.apache.catalina.core.S tandardEng ineValve.i nvoke(Stan dardEngine Valve.java :116)
at org.apache.catalina.connec tor.Coyote Adapter.se rvice(Coyo teAdapter. java:422)
at org.apache.coyote.ajp.AjpP rocessor.p rocess(Ajp Processor. java:199)
at org.apache.coyote.Abstract Protocol$A bstractCon nectionHan dler.proce ss(Abstrac tProtocol. java:607)
at org.apache.tomcat.util.net .JIoEndpoi nt$SocketP rocessor.r un(JIoEndp oint.java: 314)
at java.util.concurrent.Threa dPoolExecu tor.runWor ker(Thread PoolExecut or.java:11 45)
at java.util.concurrent.Threa dPoolExecu tor$Worker .run(Threa dPoolExecu tor.java:6 15)
at org.apache.tomcat.util.thr eads.TaskT hread$Wrap pingRunnab le.run(Tas kThread.ja va:61)
at java.lang.Thread.run(Threa d.java:722 )
coldfusion.monitor.event.M onitoringS ervletFilt er.doFilte r(Monitori ngServletF ilter.java :70)
coldfusion.bootstrap.Boots trapFilter .doFilter( BootstrapF ilter.java :46)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.54 logs.
message ROOT CAUSE:
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletExcep
java.lang.IllegalStateExce
at org.apache.catalina.connec
at javax.servlet.http.HttpSer
at coldfusion.tagext.io.cache
at coldfusion.filter.FormScop
at coldfusion.filter.FormScop
at coldfusion.filter.FormScop
at coldfusion.filter.FormScop
at coldfusion.runtime.CFPage.
at cfclassic2ecfm557356615._f
at cfclassic2ecfm557356615._f
at cfclassic2ecfm557356615.ru
at coldfusion.runtime.CfJspPa
at coldfusion.tagext.lang.Inc
at coldfusion.filter.Cfinclud
at coldfusion.filter.Cfinclud
at coldfusion.filter.BrowserD
at coldfusion.filter.ClientSc
at coldfusion.filter.BrowserF
at coldfusion.filter.NoCacheF
at coldfusion.filter.GlobalsF
at coldfusion.filter.Datasour
at coldfusion.filter.CachingF
at coldfusion.filter.RequestT
at coldfusion.CfmServlet.serv
at coldfusion.bootstrap.Boots
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at coldfusion.monitor.event.M
at coldfusion.bootstrap.Boots
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.authen
at org.apache.catalina.core.S
at org.apache.catalina.valves
at org.apache.catalina.valves
at org.apache.catalina.core.S
at org.apache.catalina.connec
at org.apache.coyote.ajp.AjpP
at org.apache.coyote.Abstract
at org.apache.tomcat.util.net
at java.util.concurrent.Threa
at java.util.concurrent.Threa
at org.apache.tomcat.util.thr
at java.lang.Thread.run(Threa
coldfusion.monitor.event.M
coldfusion.bootstrap.Boots
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.54 logs.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I also found the same solution. thanks for you time and effort.
But since you mention evaluate() you can remove evaluate by doing this...
<CFSET StartDate = FORM["StartDate#TRIM(UserG
instead of this..
<CFSET StartDate = EVALUATE("FORM.StartDate#T