[OPENIDM-2599] sample6 with fake AD broken since we moved from OpenICF to Created: 24/Nov/14  Updated: 02/Dec/14  Resolved: 02/Dec/14

Status: Closed
Project: OpenIDM
Component/s: _Samples
Affects Version/s: OpenIDM 3.1.0
Fix Version/s: OpenIDM 3.1.0

Type: Bug Priority: Critical
Reporter: Laurent Bristiel [X] (Inactive) Assignee: Laszlo Hordos
Resolution: Fixed Votes: 0
Labels: not-for-release-notes
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
is related to OPENICF-334 The BufferedResultsHandler can not ha... Closed


sample6 using fake AD stopped working after commit:
"Update the OpenICF versions"

So, when we set up sample6 to use fake AD, the AD resource is not available.
For example:

curl --header "X-OpenIDM-Password: openidm-admin" --header "X-OpenIDM-Username: openidm-admin" --request GET "http://localhost:8080/openidm/system/ad/account/?_queryId=query-all-ids"
{"code":500,"reason":"Internal Server Error","message":"java.lang.NoClassDefFoundError cannot be cast to org.identityconnectors.framework.common.objects.ConnectorObject"

and in the log we get:

WARNING: Resource exception: 500 Internal Server Error: "java.lang.NoClassDefFoundError cannot be cast to org.identityconnectors.framework.common.objects.ConnectorObject"
org.forgerock.json.resource.InternalServerErrorException: java.lang.NoClassDefFoundError cannot be cast to org.identityconnectors.framework.common.objects.ConnectorObject
	at org.forgerock.openidm.provisioner.openicf.impl.OpenICFProvisionerService$ObjectClassResourceProvider.queryCollection(OpenICFProvisionerService.java:1495)
	at org.forgerock.json.resource.Resources$CollectionHandler.handleQuery(Resources.java:254)
	at org.forgerock.json.resource.Router.handleQuery(Router.java:264)

=> problem in samples/sample6/alternatives/provisioner.openicf-fakead.json file?

Comment by Gael Allioux [ 24/Nov/14 ]

try to avoid using the VLV by setting "usePagedResultControl" : true

Comment by Gael Allioux [ 24/Nov/14 ]


Comment by Gael Allioux [ 24/Nov/14 ]

you're most probably missing the opendj-ldap-sdk in your bundle/ folder

Comment by Laszlo Hordos [ 24/Nov/14 ]

It depends on this fix in the framework to get the original exception and not another exception that cause of the bug in related issue. The OpenIDM json configuration can disable the OpenICF issue by setting "bufferSize" : 0 which disables the BufferedResultsProxy and the original cause became available to OpenIDM which is the missing class as Gael mentioned.

Comment by Gael Allioux [ 26/Nov/14 ]

fixed by having the dep on DJ SDK resolved

Comment by Laurent Bristiel [X] (Inactive) [ 26/Nov/14 ]

checked OK

Comment by Lana Frost [ 02/Dec/14 ]

Reopen to remove from list of fixed issues in release notes

Generated at Mon Mar 01 10:14:38 UTC 2021 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.