cancel
Showing results for 
Search instead for 
Did you mean: 

Dashlet throws error when processing JSON

ashex
Champ in-the-making
Champ in-the-making
I'm working on a dashlet that runs a search query and returns it as JSON output. The repo web script works just fine, it's the webscript on the share side which is causing me problems. It's supposed to present an atom feed but instead throws the following error:


org.springframework.extensions.webscripts.WebScriptException - 05060009 TypeError: Cannot parse XML: Scanner State 24 not Recognized (jar:file:/usr/share/tomcat6/shared/lib/recent-docs.jar!/alfresco/site-webscripts/org/tibco/components/dashlets/recent-docs.get.js#13(eval)#1)

org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:328)

Update: Pick one URI format and stick with it, was missing a / when calling the repo script.
2 REPLIES 2

ddraper
World-Class Innovator
World-Class Innovator
Does your update mean that you've solved the problem now?

ashex
Champ in-the-making
Champ in-the-making
Yup, I just need to sort out how to add error handling. The presentation webscript was calling the repo script with /recent-docs?site as opposed to /recent-docs/?site.