Dashlet throws error when processing JSON
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2013 09:13 PM
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:
Update: Pick one URI format and stick with it, was missing a / when calling the repo script.
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.
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2013 02:59 AM
Does your update mean that you've solved the problem now?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2013 01:38 PM
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.
