Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Data Services for CairgnormStore sample

Avatar

Former Community Member
I am trying to run CairngormStore for Flex 2 end-to-end.

It looks like the only deployment/configuration problem left
is the configuration of Data Services.



What is already done:



- Flex 2 SDK is installed

- Flex 2 builder is up and running

- Flex 2 Data Service Express is installed with the option
"JRun"

- Cairngorm Library is installed



- Project CairngormStore_2 is created in FlexBuilder (
Project type "Flex Data Service")

- the path to the Cairngorm Library is defined

- the path to the JRun is defined

- CairngormStore is build OK

- JRun starts successfully



Attempt to run the CairngormStore results in run-time alert
message "Products can't be retrieved".

Obviously my deployemnt /configuration of Data Services on
the client and server side is not complete.

Given pretty involved combination of declarative
configuration parameters and configuration files it is

not easy to figure out what the problem is and how to cure
it.



Any hint, advise will be greately appreciated.
3 Replies

Avatar

Former Community Member
Open services-config.xml and find <logging>. Make sure
you have the following <target ... level="Debug">. This will
make sure you have all the debugging information. Check in
\WEB-INF\flex\logs for the log. It should give you more
information.

Avatar

Former Community Member
matamel, thanks for the reply.



The point is that there the app does not crash, so there is
not much information in the log.

First, after the execution of

public var model : ShopModelLocator =
ShopModelLocator.getInstance();



there is a log message: "didn't find all selected items"



and later after execution of

CairngormEventDispatcher.getInstance().dispatchEvent( new
CairngormEvent( GetProductsEvent.EVENT_GET_PRODUCTS ) );



there is a message issued by



Alert.show( "Products could not be retrieved!" );



So there is not much to analyze so far.

Avatar

Former Community Member
At the end of the day, whatever function is trying to
retrieve the products is using a destination defined in
remoting-config.xml, data-management-config.xml or
messaging-config.xml. I'd try to find out what that destination is
and see if it needs to be configured further.