Taffy 3.0.0 is final!

481 views
Skip to first unread message

Adam Tuttle

unread,
Nov 19, 2014, 11:26:41 AM11/19/14
to taffy...@googlegroups.com

Thanks to everyone that contributed in any way to this release!

Adam

Jose Gosende

unread,
Nov 19, 2014, 2:45:45 PM11/19/14
to taffy...@googlegroups.com
I upgraded from 2.2 to 3.0 and I'm getting this error:

Message: Element _TAFFY.SETTINGS.EXCEPTIONLOGADAPTER is undefined in APPLICATION

Here's the relevant code from application.cfc

variables.framework = {
debugKey = "debug"
,reloadKey = "taffyrox"
,reloadPassword = "true"
,serializer = "resources.CustomRepresentationClass"
,returnExceptionsAsJson = true
,exceptionLogAdapter = "taffyV3.bonus.LogToEmail"
,exceptionLogAdapterConfig = {
emailFrom = "jose.g...@gmail.com",
emailTo = "jose.g...@gmail.com",
emailSubj = "Exception Trapped in API",
emailType = "html"
}

I'm sure it's an oversight on my part but can't quite figure out what it is.

TIA

--
You received this message because you are subscribed to the Google Groups "Taffy Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taffy-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Adam Tuttle

unread,
Nov 19, 2014, 2:51:46 PM11/19/14
to taffy...@googlegroups.com
This error ("Element _TAFFY.SETTINGS.EXCEPTIONLOGADAPTER is undefined in APPLICATION") is usually indicative of an error during error handling -- trying to make the exception come back as JSON. 

The real root exception is probably a little bit further down the page. You'll have to scroll past the stack trace. It should show a label of "original exception" that you should be able to search for.

Adam

Jose Gosende

unread,
Nov 19, 2014, 3:10:25 PM11/19/14
to taffy...@googlegroups.com
Bingo! The real exception was related to missing taffy.core.baseRepresentation when being called from CustomRepresentationClass.cfc
Once I replaced baseRepresentation with baseSerializer, it worked like a charm.

Thanks, Adam!

Adam Tuttle

unread,
Nov 19, 2014, 3:21:02 PM11/19/14
to taffy...@googlegroups.com
No problem. Glad you got it sorted. :)

Adam
Reply all
Reply to author
Forward
0 new messages