it looks like the data.filename is not containing what you think it should


On 5/1/07, Asim Manzur <[EMAIL PROTECTED]> wrote:
>
> my typo error on posting.
> the codes are:
>
> <cffunction access="public" name="onAdd" output="no">
>       <cfargument name="CFEvent" type="struct" required="yes">
>       <cfset data=CFEvent.data>
>
> <cfmail to="[EMAIL PROTECTED]" from="[EMAIL PROTECTED]" subject="New
> Log File Created!">
>       Msg: Log file attached.
>       Filename: #data.filename#
>       <cfmailparam file="#data.filename#" type="text/plain">
> </cfmail>
> </cffunction>
>
> The event is executing as soon as the new file created.
> If I take the <cfmailparam file="#data.filename#" type="text/plain"> line
> out everything works fine.
> With this line in the code its generating the error in exception.log.
>
> Error invoking CFC for gateway SendLogsEvent: String index out of range:
> -1"
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
>
>
> Pelase advise.
>
> --
> .......................................
> Regards,
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276630
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to