Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Unable to add Users or Groups


Level 2

LCES2.5 turnkey:

I'm trying to add users or groups from Flex, using remoting by calling DirectoryManagerService.createLocalUser(User,password) and I'm getting the following error: "class com.adobe.idp.dsc.util.InvalidCoercionException: Cannot coerce object:{system=false, canonicalName=test, principalType=USER, userid=test, domainName=DefaultDom, local=true, locked=false, disabled=false} of type:java.util.HashMap to type: null".

Weird that I get a similar error when I try the same thing via Webservice.

I'm getting that error when trying it from my Flex code or even via "Test Operation".

Any idea what might be causing that?



ps: I get a similar error when I try to createLocalGroup. all queries work fine though (findDomains, findGroups, findPrincipal, etc.)

2 Replies


Level 10

The message is saying "Can't put a HashMap into an object of type User".

Looks like you're not providing the right data types.



Level 2


Thanks for the reply, but... I imagined that the error indicated a bad

data type, but I am using the Flash Builder plugin to find LCES

services and all the code was introspected and generated by the

plugin. As I mentioned in my post, I tried to use remoting and SOAP,

and in both cases I got a similar response.

Maybe the problem is in the code generation itself.

I tried to use SOAP from other environments and got the same result

with the create group/user. The sample code in QuickStarts is for C3

and tried similar code in Flex and got the same error. There seems to

be an issue on LCES side which does not recognize the data coming from

the call.