[
https://issues.apache.org/jira/browse/SYNCOPE-1387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16660314#comment-16660314
]
Alexander Tsvetkov commented on SYNCOPE-1387:
---------------------------------------------
Looking at the code of syncope 2_1_X
{code:java}
private List<ProvisioningReport> update(final SyncDelta delta, final
List<String> keys)
...
output = update(delta, Collections.singletonList(key));
for (PullActions action : profile.getActions()) {
action.after(profile, delta, RealmTO.class.cast(output), result);
}{code}
This class cast exception should be reproducible
Anyway we are using syncope 2.0.8 and would like to have this fix there.
> ClassCast exception when pull realms
> ------------------------------------
>
> Key: SYNCOPE-1387
> URL: https://issues.apache.org/jira/browse/SYNCOPE-1387
> Project: Syncope
> Issue Type: Bug
> Components: core
> Affects Versions: 2.0.8
> Reporter: Alexander Tsvetkov
> Priority: Major
> Fix For: 2.0.11, 2.1.2, 3.0.0
>
>
> I create pull task to import realms from Active Directory (AD)
> Pull task has Matching rule: LINK
>
> {code:java}
> 14:49:18.473 ERROR
> org.apache.syncope.core.provisioning.api.pushpull.SyncopeResultHandler -
> Could not update Realm MYOU1
> java.lang.ClassCastException: Cannot cast java.util.ArrayList to
> org.apache.syncope.common.lib.to.RealmTO
> at java.lang.Class.cast(Class.java:3369) ~[?:1.8.0_72]
> at
> org.apache.syncope.core.provisioning.java.pushpull.DefaultRealmPullResultHandler.link(DefaultRealmPullResultHandler.java:515)
> ~[syncope-core-provisioning-java-2.0.8.jar:2.0.8]
> at
> org.apache.syncope.core.provisioning.java.pushpull.DefaultRealmPullResultHandler.doHandle(DefaultRealmPullResultHandler.java:742)
> ~[syncope-core-provisioning-java-2.0.8.jar:2.0.8]
> at
> org.apache.syncope.core.provisioning.java.pushpull.DefaultRealmPullResultHandler.handle(DefaultRealmPullResultHandler.java:91)
> ~[syncope-core-provisioning-java-2.0.8.jar:2.0.8]
> at sun.reflect.GeneratedMethodAccessor845.invoke(Unknown Source) ~[?:?]
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:1.8.0_72]
> {code}
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)