XML is the default return format for a component remote function. If you have a void return type, which is what you have in your code, the response is A) Null and B) cannot be serialized. As such, the error is thrown that there is no element.On March 18, 2016 at 4:51:26 PM, Jay B (@Jay_B) wrote:
OK…probably means I should just go home this late on a Friday but can anyone tell me why accessing a super simple test page (to prove my complex page wasn’t broken by something else)
https://www.mystite.ca/cfc/text.cfc?method=test
which is simply
produces
XML Parsing Error: no element found
Location: https://www.mystite.ca/cfc/adminMail.cfc?method=test
Line Number 1, Column 1:
^
as found on another post here adding &returnformat=json to the URL makes the error go away…but there wasn’t an explanation (and I’m not using it anywhere else…)
This is the first time I’ve run across this. Other remote calls (ie: via JS) seem to be working fine…
running Lucee 4.5.2.018 final on 2012r2
TIA
–
Love Lucee? Become a supporter and be part of the Lucee project today! - http://lucee.org/supporters/become-a-supporter.html
You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/09230be9-3882-4efc-ac9a-488f78edd718%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.