Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Ticket #1609 (new defect)

Opened 9 months ago

Last modified 8 months ago

APIException: No <interface> is found that is able to handle a <class>

Reported by: jmiranda Assigned to:
Priority: critical Milestone:
Component: OpenMRS Code Base Keywords:
Cc: Introductory Ticket: 0
Code Review Status:

Description

This exception occurs when the @Transactional annotation is added to the CohortDefinitionPersister interface. This breaks the HandlerUtil as it cannot find the CohortDefinitionPersister handlers due to Spring has turned them into dynamic proxy classes (with names $Proxy56). I think this issue needs to be fixed in order to continue debugging #1588 because we cannot tell whether the issue is (1) the transaction is not propagating through the Service->Persister->Dao or (2) some weird Hibernate bug dealing with an object graph that is very deep.

APIException: No interface org.openmrs.module.cohort.definition.persister.CohortDefinitionPersister is found that is able to handle a class org.openmrs.module.cohort.definition.PatientCharacteristicCohortDefinition

Change History

07/20/09 16:49:59 changed by bwolfe

I don't know how we'd fix this or that we should at this point. Is this still necessary or did the fixes on the serialization branch fix things?

07/21/09 14:39:12 changed by jmiranda

Yeah, I'm not sure if this is an issue or not. I figured the @Transactional was needed for any service/handler class that touched "transactional" data, but that might not be the case.