On a clean Alfresco 2.1 Community Edition with Flexbuilder 3 I have downloaded from the SVN\HEAD (revision 1698) the modules ACE and flex-sdk. In flexbuilder 3 I have created a project and configured it to work with the ACE/flex-sdk projects. I can build an ACE module and start the main application (main.htm) to run against the started alfresco application, however the application throws the following XML parse errors by the WebScriptService.
Does the ACE application support Alfresco 2.1 Community or does it only work with Alfresco 2.9 (i.e. differences in webscript handling?)? If the ACE flex application should work against Alfresco 2.1 Community, what should I check/configure to make this work?
Kind regards,
Alex
Application Error: Execution of web script failed:Error #1096: XML parser failure: Unterminated element.
Stack Trace: Error: Execution of web script failed:Error #1096: XML parser failure: Unterminated element. at org.alfresco.framework.service.webscript::WebScriptService/raiseFailureEvent()[C:\Documents and Settings\Administrator\My Documents\Flex Builder 3\Ace\src\org\alfresco\framework\service\webscript\WebScriptService.as:256] at org.alfresco.framework.service.webscript::WebScriptService/onFaultEvent()[C:\Documents and Settings\Administrator\My Documents\Flex Builder 3\Ace\src\org\alfresco\framework\service\webscript\WebScriptService.as:239] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:168] at mx.rpc.http::HTTPService/http://www.adobe.com/2006/flex/mx/internal:rocessResult()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\http\HTTPService.as:843] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:186] at mx.rpc::Responder/result()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:41] at mx.rpc::AsyncRequest/acknowledge()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:74] at DirectHTTPMessageResponder/completeHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:381] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete()
ACE is not general purpose. It depends on the knowledge-base project in modules and its content models etc. It might be dependent on 2.9 (I am using some of ace's code, but only have with the latest 2.9 from nightly builds). Dependencies on the knowledge-base module can be removed from the code by switching to a generic search webscript call, removing the stuff about user details and other knowledge-base module types. ACE gives you examples of login, basic search, logout.
The search results in ACE has a flash preview pane of swf docs or docs with flash renditions The preview will have a little broken link icon unless you do all the following (or have another pdf generation / flash rendition mechanism (from Adobe, etc.) 1. You add the \modules\knowledge-base\config\alfresco\module\org.alfresco.module.knowledgeBase\transform\custom-transform-context.xml from knowledge-base in your server extensions area 2. Have swftools from http://www.swftools.org installed on your server's path for use of pdf2swf in custom-transform-context.xml. 3. Have a headless OpenOfflce setup and working correctly, and running on your alfresco server (to get open office docs, ms office docs, html, text, to pdf for complex transformation chaining into pdf2swf) 4. Have code in place to generate flash renditions of docs on upload and/or update, etc ( like in ArticleAspect.java in knowledge-base)
Also, general purpose Alfresco Flex clients with a good set of features (FlexSpaces and FlexSpaces+AIR) are on the way from my company.