[OpenVPMS Developers] [JIRA] Created: (OBF-206) ArchetypeAwareVoter triggers ClassCastException

ArchetypeAwareVoter triggers ClassCastException -----------------------------------------------

Key: OBF-206 URL: https://openvpms.atlassian.net/browse/OBF-206 Project: Business Framework Issue Type: Bug Affects Versions: 1.3 Reporter: Tim Anderson Assignee: Tim Anderson Fix For: 1.4

ArchetypeAwareVoter triggers a ClassCastException if the IArchetypeService.create(ArchetypeId) method is invoked: {noformat} java.lang.ClassCastException: org.openvpms.component.business.domain.archetype.ArchetypeId at org.openvpms.component.business.service.security.ArchetypeAwareVoter.getArchetypeShortNames(ArchetypeAwareVoter.java:206) at org.openvpms.component.business.service.security.ArchetypeAwareVoter.vote(ArchetypeAwareVoter.java:107) at org.acegisecurity.vote.AffirmativeBased.decide(AffirmativeBased.java:66) at org.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:344) at org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:77) at org.openvpms.component.business.service.security.OpenVPMSMethodSecurityInterceptor.invoke(OpenVPMSMethodSecurityInterceptor.java:54) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy2.create(Unknown Source) at org.openvpms.component.business.service.archetype.rule.ArchetypeRuleService.create(ArchetypeRuleService.java:168) at org.openvpms.component.business.service.archetype.helper.AbstractIMObjectCopyHandler.getObject(AbstractIMObjectCopyHandler.java:48) at org.openvpms.component.business.service.archetype.helper.IMObjectCopier.apply(IMObjectCopier.java:126) at org.openvpms.component.business.service.archetype.helper.IMObjectCopier.apply(IMObjectCopier.java:92) at org.openvpms.archetype.rules.party.PartyMerger.copyIdentities(PartyMerger.java:214) at org.openvpms.archetype.rules.party.PartyMerger.merge(PartyMerger.java:112) at org.openvpms.archetype.rules.party.CustomerRules.mergeCustomers(CustomerRules.java:79) {noformat}

-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://openvpms.atlassian.net/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

_______________________________________________ OpenVPMS Developers Mailing List developers@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/developers Posts from this mailing list can be viewed online and replied to in the OpenVPMS Developer's forum- http://tinyurl.com/openvdf

Syndicate content