Hello,
I have been looking at customising the Correspondence Management Flex applications, I have been able to update the logo for example, rebuild the ear file and deploy it. The logo is successfully updated but there is a problem with the CreateCorrespondence application, whenever it is launched it displays the following error message:
'A letter was not specified for filling'
I set flex.debug=true in the top level build script and rebuilt/deployed. When attaching the Flex debugger I get the following output:
[SWF] /cmsa/dc/index.swf - 3,553,122 bytes after decompression
{icc} info [com.adobe.icc.external.pdf::FormBridgeApi/_initialize]@10:42:37 > initializing FormBridge External API
{icc} info [com.adobe.icc.external.dc::ExternalApi/_initialize]@10:42:37 > initializing DC External API
{icc} info [IndexModel]@10:42:37 > Start of IndexModel constructor
{icc} info [com.adobe.icc.asset::AssetLoader/load]@10:42:37 > found 13 style properties: loading asset styles...
{icc_dc} info [IndexModel/appPreInitHandler]@10:42:37 > In appPreInitHandler
{icc_dc} info [IndexModel/appInitHandler]@10:42:38 > In appInitHandler
{icc_dc} info [IndexModel/appInitHandler]@10:42:38 > externalAPI.available: true
{icc_dc} info [IndexModel/appInitHandler]@10:42:38 > bridgeApi.available: true
{icc_dc} info [IndexModel/appInitHandler]@10:42:38 > invoke url: null
{icc_dc} info [IndexModel/appInitHandler]@10:42:38 > invoke params: {ivp id: null, name: null, state: -1, ver: 0, useTestData: false, xmlData: null, dataUrl: null, ddkeMap: null, preview: false, debug: false, fbDebug: false, dataDebug: false}
{icc_dc} info [IndexModel/appInitHandler]@10:42:38 > loading flex config...
{icc_dc} info [IndexModel/_loadFlexConfig]@10:42:38 > DC is loading the Flex configuration...
[SWF] /cmsa/dc/adobe-acm-ccr_styles.swf - 513,779 bytes after decompression
{icc_dc} info [com.adobe.icc.asset::AssetLoader/styleLoadCompleteHandler]@10:42:38 > asset styles loaded: loading style properties...
{icc_dc} info [com.adobe.icc.asset::AssetLoader/styleLoadCompleteHandler]@10:42:38 > style properties loaded
{icc_dc} info [IndexModel.as:266:Function/<anonymous>]@10:42:38 > configuring Data Dictionary service
{icc_dc} info [IndexModel.as:272:Function/<anonymous>]@10:42:38 > Finished configuring the Data Dictionary service
{icc_dc} info [IndexModel.as:274:Function/<anonymous>]@10:42:38 > loading dc config...
{icc_dc} info [IndexModel/_loadDcConfigHandler]@10:42:38 > The http service has returned the DC config
{icc_dc} info [IndexModel/_loadUser]@10:42:38 > About to load the user (and authenticate)
{icc_dc} info [com.adobe.icc.services.user.providers::UserManager/loadUserSuccessHa ndler]@10:42:38 > loadUserSuccessHandler
{icc_dc} info [IndexModel/_loadUserCompleteHandler]@10:42:38 > The user was loaded and authenticated
{icc_dc} info [com.adobe.icc.widget::IccApplication/set ssoTimeout]@10:42:38 > ssoTimeout: 4464145
ReferenceError: Error #1056: Cannot create property expressionSwf on com.adobe.consulting.pst.vo.Letter.
ReferenceError: Error #1056: Cannot create property dataDictionaryRefs on com.adobe.consulting.pst.vo.Letter.
ReferenceError: Error #1056: Cannot create property expressionSwf on com.adobe.consulting.pst.vo.Letter.
ReferenceError: Error #1056: Cannot create property dataDictionaryRefs on com.adobe.consulting.pst.vo.Letter.
ReferenceError: Error #1056: Cannot create property expressionSwf on com.adobe.consulting.pst.vo.Letter.
ReferenceError: Error #1056: Cannot create property dataDictionaryRefs on com.adobe.consulting.pst.vo.Letter.
ReferenceError: Error #1056: Cannot create property expressionSwf on com.adobe.consulting.pst.vo.Letter.
ReferenceError: Error #1056: Cannot create property dataDictionaryRefs on com.adobe.consulting.pst.vo.Letter.
ReferenceError: Error #1056: Cannot create property expressionSwf on com.adobe.consulting.pst.vo.Letter.
ReferenceError: Error #1056: Cannot create property dataDictionaryRefs on com.adobe.consulting.pst.vo.Letter.
ReferenceError: Error #1056: Cannot create property expressionSwf on com.adobe.consulting.pst.vo.Letter.
ReferenceError: Error #1056: Cannot create property dataDictionaryRefs on com.adobe.consulting.pst.vo.Letter.
ReferenceError: Error #1056: Cannot create property expressionSwf on com.adobe.consulting.pst.vo.Letter.
ReferenceError: Error #1056: Cannot create property dataDictionaryRefs on com.adobe.consulting.pst.vo.Letter.
Something seems to be wrong in the 'com.adobe.consulting.pst.vo.Letter' class, this class is in the adobe-acm-flex-services.swc which is in the assetcomposer building block.
Looking into the adobe-acm-flex-services.swc, the Letter class does NOT contain getter/setter properties for 'expressionSwf', it does contain a reference for 'dataDictionaryRef' NOT 'dataDictionaryRefs'. The client/server definitions for the com.adobe.consulting.pst.vo.Letter class are not compatible.
The default install of the Correspondence Management SA works fine without the above errors, it only fails after I have rebuilt the ear file.
Thanks
The ReferenceErrors are warnings that can be ignored. There must be more in the logs beynd that. Could you share that?
Also, what is the URL with which you are invoking the Create Correspondence app?
Would also be helpful if you could enlist the steps that you had taken to customize the solution, so that we could confirm if there is nothing amiss there.
Hi
Thanks for the response.
There are no errors in server.log, is there anywhere else I should be looking?
The customisation was a change of logo in the appHeader.css file. The ear file succcessully builds and deploys with the logo change but the 'create correspondence' application fails with the above error message.
Cheers
Looking at the flash logs :
......
......
{icc_dc} info [IndexModel/appInitHandler]@10:42:38 > invoke url: null
{icc_dc} info [IndexModel/appInitHandler]@10:42:38 > invoke params: {ivp id: null, name:null, state: -1, ver: 0, useTestData: false, xmlData: null, dataUrl: null, ddkeMap: null, preview: false, debug: false, fbDebug: false, dataDebug: false}
......
......
it seems that the CCR app could not pick the correct URL. Was the DC application SWF built successfully and correctly?
What Flash player version are you using?
Hi,
Flash Player version: WIN 10,1,102,64 (Debug player)
Here is the output from the build script:
c:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\build>ant
Buildfile: c:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\build\build.xml
build-st:
unjar-ear:
[unjar] Expanding: c:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\deploy\adobe-correspondencemanagement.ear into c:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\deploy\ear
[delete] Deleting: c:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\deploy\adobe-correspondencemanagement.ear
[unjar] Expanding: c:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\deploy\ear\correspondencemanagement-web.war into c:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\deploy\ear\war
[delete] Deleting: c:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\deploy\ear\correspondencemanagement-web.war
build-and-copy-managetemplates:
clean:
[delete] Deleting directory c:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\ManageTemplates\dist
init:
[mkdir] Created dir: c:\Program Files (x86)\Adobe\Adobe LiveCycle WorkbenchES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\Fin ancialServicesInsurance\FSIApp\ManageTemplates\build
[mkdir] Created dir: c:\Program Files (x86)\Adobe\Adobe LiveCycle WorkbenchES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\Fin ancialServicesInsurance\FSIApp\ManageTemplates\dist
compile:
[mxmlc] Loading configuration file C:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\Flex_SDK\frameworks\flex-config.xml
[mxmlc] Warning: Source path entry, 'C:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\ManageTemplates\src\locale\en_US', is a subdirectory of source path entry, 'C:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\ManageTemplates\src'.
[mxmlc]
[mxmlc] C:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\ManageTemplates\src\index.mxml(167): Warning: return value for function 'anonymous' has no type declaration.
[mxmlc]
[mxmlc] DataDictionaryRegistryServiceImpl.getInstance().addEventListener(DCTS erviceEvent.CREATE_DATA_DICTIONARY,function(event:Event){executeForceP olling();});
[mxmlc]
[mxmlc] C:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\ManageTemplates\src\index.mxml(168): Warning: return value for function 'anonymous' has no type declaration.
[mxmlc]
[mxmlc] DataDictionaryRegistryServiceImpl.getInstance().addEventListener(DCTS erviceEvent.DELETE_DATA_DICTIONARY,function(event:Event){executeForceP olling();});
[mxmlc]
[mxmlc] C:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\ManageTemplates\src\index.mxml(169): Warning: return value for function 'anonymous' has no type declaration.
[mxmlc]
[mxmlc] DataDictionaryRegistryServiceImpl.getInstance().addEventListener(DCTS erviceEvent.UPDATE_DATA_DICTIONARY,function(event:Event){executeForceP olling();});
[mxmlc]
[mxmlc] C:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\ManageTemplates\src\index.mxml(26): Warning: Data binding will not be able to detect assignments to "defaultButton".
[mxmlc]
[mxmlc] defaultButton="{defaultButton}"
[mxmlc]
[mxmlc] C:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\ManageTemplates\src\index.mxml(299): Warning: The CSS type selector 'StatusIcon' was not processed, because the type was not used in the application.
[mxmlc]
[mxmlc]
[mxmlc]
[mxmlc] C:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\ManageTemplates\src\index.mxml(277): Warning: The CSS type selector 'SelectContentListLCatColumn' was not processed, because the type was not used in the application.
[mxmlc]
[mxmlc] {
[mxmlc]
[mxmlc] C:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\ManageTemplates\src\index.mxml(329): Warning: The CSS type selector 'VDividedBox'was not processed, because the type was not used in the application.
[mxmlc]
[mxmlc] <mx:Style source="/css/appHeader.css"/>
[mxmlc]
[mxmlc] C:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\ManageTemplates\src\index.mxml(271): Warning: The CSS type selector 'SelectContentListUCatColumn' was not processed, because the type was not used in the application.
[mxmlc]
[mxmlc] {
[mxmlc]
[mxmlc] C:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\ManageTemplates\src\index.mxml(283): Warning: The CSS type selector 'SelectContentListStateColumn' was not processed, because the type was not used in the application.
[mxmlc]
[mxmlc] null,
[mxmlc]
[mxmlc] C:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\ManageTemplates\src\index.mxml(63): Warning: The CSS type selector 'RichTextAreaRO' was not processed, because the type was not used in the application.
[mxmlc]
[mxmlc] import com.adobe.icc.ams.IccErrorManager;
[mxmlc]
[mxmlc] C:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\ManageTemplates\src\index.mxml(330): Warning: The CSS type selector 'VDividedBoxWH' was not processed, because the type was not used in the application.
[mxmlc]
[mxmlc] <mx:Style source="/css/appToolbar.css"/>
[mxmlc]
[mxmlc] C:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\ManageTemplates\src\index.mxml(259): Warning: The CSS type selector 'SelectContentListNameColumn' was not processed, because the type was not used in the application.
[mxmlc]
[mxmlc] ExternalInterface.call("window.open", appUrl, "_top", "");
[mxmlc]
[mxmlc] C:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\ManageTemplates\src\index.mxml(564): Warning: The CSS type selector 'HelpSticky' was not processed, because the type was not used in the application.
[mxmlc]
[mxmlc]
[mxmlc]
[mxmlc] C:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\ManageTemplates\src\index.mxml(113): Warning: The CSS type selector 'ButtonRO' wasnot processed, because the type was not used in the application.
[mxmlc]
[mxmlc] var styleSwfName:String = "slate";
[mxmlc]
[mxmlc] C:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\ManageTemplates\src\index.mxml(265): Warning: The CSS type selector 'SelectContentListDescColumn' was not processed, because the type was not used in the application.
[mxmlc]
[mxmlc] FileUploadManager.userManager = userManager;
[mxmlc]
[mxmlc] C:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\ManageTemplates\dist\index.swf (2250650 bytes)
[delete] Deleting directory c:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\ManageTemplates\build
wrapper:
[copy] Copying 164 files to c:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\ManageTemplates\dist
[copy] Copying 1 file to c:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\ManageTemplates\dist
dist:
[copy] Copying 166 files to c:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\deploy\ear\war\assetmanager
build-and-copy-createcorrespondence:
clean:
[delete] Deleting directory c:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\CreateCorrespondence\dist
init:
[mkdir] Created dir: c:\Program Files (x86)\Adobe\Adobe LiveCycle WorkbenchES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\Fin ancialServicesInsurance\FSIApp\CreateCorrespondence\build
[mkdir] Created dir: c:\Program Files (x86)\Adobe\Adobe LiveCycle WorkbenchES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\Fin ancialServicesInsurance\FSIApp\CreateCorrespondence\dist
compile:
[mxmlc] Loading configuration file C:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\Flex_SDK\frameworks\flex-config.xml
[mxmlc] C:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\CreateCorrespondence\dist\index.swf (1507621 bytes)
[delete] Deleting directory c:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\CreateCorrespondence\build
wrapper:
[copy] Copying 17 files to c:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\CreateCorrespondence\dist
[copy] Copying 1 file to c:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\FSIApp\CreateCorrespondence\dist
copy-styles-swf:
dist:
[copy] Copying 19 files to c:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\deploy\ear\war\dc
copy-fsipotal-webapp-resources:
compile-copy-classes:
[echo] ...Including necessary jar files...
[echo] ...Compiling java files...
[javac] c:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\build\build.xml:74: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
repack-ear:
[jar] Building jar: c:\Program Files (x86)\Adobe\Adobe LiveCycle WorkbenchES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\Fin ancialServicesInsurance\deploy\ear\correspondencemanagement-web.war
[delete] Deleting directory c:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\deploy\ear\war
[jar] Building jar: c:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\deploy\adobe-correspondencemanagement.ear
[delete] Deleting directory c:\Program Files (x86)\Adobe\Adobe LiveCycle Workbench ES2\LiveCycle_ES_SDK\SA_SDK_9.5\CorrespondenceManagement\FinancialSer vicesInsurance\deploy\ear
BUILD SUCCESSFUL
Total time: 56 seconds
Thanks.
I found the solution, unfortunately the html wrapper that the CreateCorrespondence app sits in had been reset to the standard Flex wrapper, I think this may have happened when I changed the SDK to the required Flex 3.4 SDK. So it was missing a link to the dcScript.js. The invoked parameters were not being seen as the Flex app was using the external interface to talk to dcScript.js to get them.
Thanks
North America
Europe, Middle East and Africa
Asia Pacific