Problem with LCDS Data Management Service

4 views
Skip to first unread message

anubhav_RIA

unread,
Jan 8, 2009, 8:18:03 AM1/8/09
to Flex India Community
Hi All,

I am using data management service, cairngorm microarchitecture and
facing a problem. i am able to do create. load, list, update functions
properly, but when i am trying perform DELETE operation. it returns a
fault event saying

Local.Call.Failed

Item with id 'EAE9C961-FCA6-FE03-6AD7-B65985FEAE3D' not managed by
this service. Error on destination 'myService'.

myService : id of the service given in services.mxml file.

Please let me know if any body can give any pointers.

Thanks,
Anubhav

devaki devi

unread,
Jan 8, 2009, 9:03:44 AM1/8/09
to flex_...@googlegroups.com

 Hai
  
      plz can give some suggestions for Viewstack.


          <mx:LinkBar dataProvider="{hostSubModuleDatas}" id="hostLinkBar"  styleName="linkbar"
       direction="horizontal" y="9" x="10" itemClick="changeView(event)" selectedIndex="0" /> 
       
  <mx:ViewStack id="HostSubModuleView" height="90%" y="35"  x="10" width="98%"
      borderStyle="solid" borderColor="black" change="chageIndex()" creationPolicy="all">
   <view:ListHostGroup  label="HostGroup List" id="hostgrouplistId" />
   <view:NewHostGroup label="New HostGroup" id="hostgroupcreationId" /> 
   <view:ListHostConfig label="HostConfig List" id="hostconfiglistId"/>
   <view:ListHost label="Host List" id="hostlistId" />
   <view:CreateHost label="New Host" id="hostcreationId"  />
   <view:EditHostConfig label="EditHostConfig" id="hostConfigEditId" />
  </mx:ViewStack>
      

    Above I mentioned creationpolicy ="all" so creating all components,child containers and controls immediately
    that viewstack contains 6 childrens.For example  currently i want to go 6th children.In that 6th children am calling the
init() method.This method is calling am entering into the 1st child .I think bcz of creationpolicy am getting this problem.
I want to tackle this suitation which type of creation policy I want to use.

  

Jitendra Jain

unread,
Jan 9, 2009, 12:29:43 AM1/9/09
to flex_...@googlegroups.com
which DELETE operation you are talking about? Please be clear.
 
Thanks,
JJain

anubhav_RIA

unread,
Jan 9, 2009, 7:57:10 AM1/9/09
to Flex India Community
HI Jitendra,

Using data management service you can CRUD operation. The server side
abstractAssembler has the implementation of createItem, updateItem,
deleteItem, filll methods. So i am performing these operation on the
data sets in my appicaltion, The CRU operation is working fine but
when performing the delete operation i am facing the below error :

faultCode:Local.Call.Failed faultString:'Item with id
'25682F95-22EB-4B74-9863-BB6F242ADBFF' not managed by this service.
Error on destination 'commandbatch'.' faultDetail:'null'

Please let me know if anty body has some pointers.

Thanks,
Anubhav

On Jan 9, 10:29 am, "Jitendra Jain" <warriorofheavens...@gmail.com>
wrote:

Jitendra Jain

unread,
Jan 10, 2009, 6:57:47 AM1/10/09
to flex_...@googlegroups.com
Can u paste the delete code of assembler and also data-management-config.xml ?


Thanks,

Regards,
JJain


Jitendra Jain

unread,
Jan 10, 2009, 6:59:21 AM1/10/09
to flex_...@googlegroups.com


May be u have quoted a wrong destination id.

Thanks,

Regards,
JJain

anubhav_RIA

unread,
Jan 12, 2009, 12:06:58 AM1/12/09
to Flex India Community
HI Jitendra,

Please find below the code. I am using this id for making the call.
This problem is that the call doesnt goes to the backend. It fails at
flex side only before it is shown on the server. The assembler
deletItem function contains only SOP statements as of now.

--Data-management-config.xml

<destination id="MyAssemblerID">
<adapter ref="java-dao" />
<properties>
<source>com.example.assembler.MyAssembler</source>
<scope>application</scope>
<auto-sync-enabled>true</auto-sync-enabled>

<metadata>
<identity property="id"/>
</metadata>
<use-transactions>false</use-transactions>
<network>
<session-timeout>20</session-timeout>
<paging enabled="false" pageSize="10" />
<throttle-inbound policy="ERROR" max-
frequency="500"/>
<throttle-outbound policy="REPLACE" max-
frequency="500"/>
</network>
</properties>
</destination>

--- Services.as
<mx:DataService id="myservice" destination = "MyAssemblerID"/>

--- MyDelegate.as
var service = getDataService("myservice");
var token : AsyncToken = service.deleteItem(asObj);
reference.addResponder(new DeleteCommand());

Thanks,
Anubhav.

On Jan 10, 4:59 pm, "Jitendra Jain" <warriorofheavens...@gmail.com>
wrote:

Jitendra Jain

unread,
Jan 12, 2009, 1:59:45 AM1/12/09
to flex_...@googlegroups.com

 
Everythings seems to be perfect except the destination id . Please change it to myAssemberID and also if possible please paste the assembler code.
 
Thanks,
 
Regards,
JJain

Jitendra Jain

unread,
Jan 12, 2009, 2:14:20 AM1/12/09
to flex_...@googlegroups.com
DataServices uses MessageBroker for pusing messages. Have u defined this object in services.mxml
??
 
Thanks,
 
regards,
JJain

anubhav_RIA

unread,
Jan 12, 2009, 4:04:58 AM1/12/09
to Flex India Community
Hi Jitendra,

I changed the destination id to all small letters but still on the
same page. Any other try outs????
The assembler code:

--- MyAssembler.java
public void deleteItem(Object obj){
System.out.println(“------------[INFO] In Delete Item
----------------------”);
}

Thanks,
Anubhav

On Jan 12, 12:14 pm, "Jitendra Jain" <warriorofheavens...@gmail.com>
wrote:

anubhav_RIA

unread,
Jan 12, 2009, 4:12:05 AM1/12/09
to Flex India Community
Hi Jatindra,

Which message broker are you talking about???? can you please
elaborate a bit more????
can you paste that tag which needs to be mentioned therre??

But even i dont think it is causing the problem coz i am able to
successfully call createItem, updateItem and fill methods of the same
assembler.

Thanks,
Anubhav


On Jan 12, 12:14 pm, "Jitendra Jain" <warriorofheavens...@gmail.com>
wrote:

Jitendra Jain

unread,
Jan 12, 2009, 5:31:38 AM1/12/09
to flex_...@googlegroups.com
Hi Anubhav,

Check the service id is properly spelled(Case sensitive).

U pasted two different errors so iam bit struck. Leave this thread and start new thread with all fresh code again.

Item with id 'EAE9C961-FCA6-FE03-6AD7-
B65985FEAE3D' not managed by
this service.  Error on destination 'myService'.


faultCode:Local.Call.Failed faultString:'Item with id
'25682F95-22EB-4B74-9863-
BB6F242ADBFF' not managed by this service.
Error on destination 'commandbatch'.' faultDetail:'null'

Hope to see u on the new thread. Sorry for a bit extra work. Bare with me bcoz not properly getting two different errors.

Thanks,

Regards,
JJain

anubhav_RIA

unread,
Jan 12, 2009, 7:14:05 AM1/12/09
to Flex India Community
Hi Jatindra,

Actually i have tried instantiated two services and both are giving
same error.

here i have pasted only the faultString property of the FaultEvent:

FaultString: Item with id 'EAE9C961-FCA6-FE03-6AD7-B65985FEAE3D' not
managed by
this service. Error on destination 'myService'.
-----------
here is the more detailed fault event properties:

faultCode: Local.Call.Failed
faultString: 'Item with id '25682F95-22EB-4B74-9863-BB6F242ADBFF' not
managed by this service.
Error on destination 'commandbatch'.'
faultDetail: 'null'
----------
So the error is same. but the id are diffrent for the service.

i think i have made my self clear. I will be starting the fresh thread
for this problem. Also i will give the link to new thread in this
thread so that in future people can be able to track the solution
down.

Thanks,
Anubhav

On Jan 12, 3:31 pm, "Jitendra Jain" <warriorofheavens...@gmail.com>
wrote:
> Hi Anubhav,
>
> Check the service id is properly spelled(Case sensitive).
>
> U pasted two different errors so iam bit struck. Leave this thread and start
> new thread with all fresh code again.
>
> Item with id 'EAE9C961-FCA6-FE03-6AD7-B65985FEAE3D' not managed by
> this service.  Error on destination 'myService'.
>
> faultCode:Local.Call.Failed faultString:'Item with id
> '25682F95-22EB-4B74-9863-BB6F242ADBFF' not managed by this service.

anubhav_RIA

unread,
Jan 12, 2009, 7:34:29 AM1/12/09
to Flex India Community
Hi All,

This thread is in continuation in a earlier thread with same subject
line.
URL: http://groups.google.com/group/flex_india/browse_thread/thread/74b5b81647447241

please visit the link for earlier discussion.

Thanks,
Anubhav
--------------------

Hi jitendra,

Continuing from our discussion in earlier thread. Describing my
problem again from the start for everybody else:

i am using data management service (LCDS), cariangorm
microarchitecture.
i need to perfortm CRUD operation on the data set. For create, update
and list i am able to call createItem, UpdateItem and fill method on
the server side implementation of my assembler class.
MyAssembler class extends the abstractAssembler has the
implementation of createItem, updateItem, deleteItem, filll methods.
The Create,List & Update operation is working fine but when performing
the delete operation i am facing the below error:

faultCode: Local.Call.Failed
faultString: 'Item with id '25682F95-22EB-4B74-9863-BB6F242ADBFF' not
managed by this service. Error on destination 'commandbatch'.'
faultDetail: 'null'

Please let me know if any body has some pointers.

Thanks,
Anubhav



Jitendra Jain

unread,
Jan 12, 2009, 8:12:22 AM1/12/09
to flex_...@googlegroups.com
Hi Anubhav,

I think when you are making a call you are deleting the item from the list .  As it synchronizes the data automatically. LCDS takes care of this.

Let me know whether it helps  or not.

Thanks,

Regards,
JJain




Jitendra Jain

unread,
Jan 12, 2009, 8:13:58 AM1/12/09
to flex_...@googlegroups.com


It says

faultString: 'Item with id '25682F95-22EB-4B74-9863-
BB6F242ADBFF' not
managed by this service

May be this array collection which is managed by DS has list after deleted.

Regards,
JJain
Reply all
Reply to author
Forward
0 new messages