Query failed because class org.openvpms.component.business.domain.im.act.DocumentAct and org.openvpms.component.business.domain.im.act.FinancialAct are of different types
OBF-259
Add sequence column to act_relationships to allow act relationships to be ordered
OBF-258
Add support for uni-directional lookup relationships
OBF-257
Cache ArchetypeId instances to reduce memory footprint
OBF-234
Extend ArchetypeQuery to support details nodes in eq, ne constraints
OBF-236
Provide query API for plugins
OBF-249
Update to hibernate 5, ehcache 3
OBF-255
CachingLookupService should refresh related lookups
OBF-196
User retrieval not populating relationships correctly
OBF-245
Extract core API from openvpms-framework for plugins
OBF-248
Update spring, hibernate dependencies
OBF-237
dataload not loading relationships
OBF-216
Add support to revert rule changes on transaction rollback
OBF-202
Increase length of node_descriptors defaultValue and derivedValue fields
OBF-239
Archetype Data Extractor utility
OBF-7
Add support for different user authorities
OBF-235
Relationship active status should be determined by exclusive upper bound
OBF-243
Quartz jobs implementing StatefulJob should be run via StatefulJobRunner
OBF-240
Collection cardinality validation error incomplete when baseName not specified
OBF-218
Add support to access lookup nodes via archetype dot notation
OBF-242
Modify ReadOnly attribute behaviour
OBF-115
ArchetypeServiceDescriptorTestCase failing with StaleObjectStateException
OBF-167
Unit Tests should check for initialised test database and load any archetype sand data they require
OBF-141
Archetype editing - Deleting Nodes with archetype assertions causes validation error
OBF-10
Data Loader - Acts with mandatory participations or actrelationships cannot be loaded
OBF-116
OpenVPMSTypeConverter String -> Date conversion doesn't support different locales
OBF-125
Add ArchetypeQueryHelper.getActs() method that allows the participation node name to be specified
OBF-129
Add test cases for IArchetypeService.getByNamedQuery()
OBF-133
Rule Integration - Modify rule definition location, storage and loading process
OBF-8
Work on web services interface for ArchetypService
OBF-12
Release first version of Architecture overview document
OBF-16
Upgrade test cases to use hypersonic database
OBF-5
Archetype Service - Service to allow application to force refresh of Archetype Cache
OBF-9
Add support for uni-directional entity relationships
OBF-228
Add support for UTF-8 encoded archetype descriptors
OBF-230
Replace bidirectional many-to-many relationship between users and roles with unidirectional one to improve performance
OBF-233
Change serialisation of IMObjectReference for details nodes to enable comparison
OBF-232
Add description column to node_descriptors to support tool tips
OBF-229
Change openvpms:get() and openvpms:lookup() functions to support null
OBF-224
Add JXPath extension function to format dates using SimpleDateFormat
OBF-223
java.lang.IllegalArgumentException: Invalid argument 'archetypeId'
OBF-219
Serialise Dates as Timestamps to avoid storing timezone information
OBF-225
NullPointerException during validation
OBF-220
QueryIterator performance improvement
OBF-227
Create tool to compare archetypes
OBF-226
IMObjectDAOHibernate doesn't use archetype id when querying by IMObjectReference
OBF-215
Add support to UserDAOHibermate to filter users by archetype
OBF-214
EntityBean.getNodeSourceEntityRefs() and EntityBean.getNodeTargetEntityRefs() should filter nulls
OBF-213
JXPathContextFactory initialisation should happen before first call to JXPathHelper.newContext()
OBF-212
java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result.
OBF-211
issue 1 of 226

Query failed because class org.openvpms.component.business.domain.im.act.DocumentAct and org.openvpms.component.business.domain.im.act.FinancialAct are of different types

Description

From a 2.1.1 error report, triggered when printing patient history:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 org.openvpms.component.business.service.archetype.ArchetypeServiceException: Failed to execute query: ArchetypeQuery[firstResult=0,maxResults=-1,count=false,constraints=ShortNameConstraint[constraints={NodeConstraint[alias=<null>,nodeName=id,operator=IN,parameters={1388093,1388123,1388125,1388126,1388132,1388133,1388227,1388249,1388251,1388257,1388258,1388259,1388339,1388340,1388341,1388384,1388385,1388428,1388434,1388500,1388543,1388544,1388720,1388727,1388746,1388792,1388818,1388894,1388895,1388897,1388898,1388899,1388900,1389033,1389148,1389222,1389223,1389493,1389795,1389846,1390181,1390200,1390201,1390203,1390204,1390206,1390207,1390208,1390209,1390273,1390274,1390275,1390603,1390834,1390887,1391013,1391121,1391807,1391808,1391942,1391943,1391944,1391945,1391946,1391947}]},alias=<null>,state=BOTH,primaryOnly=false,shortNames={act.patientInvestigation,act.customerAccountInvoiceItem,act.patientMedication,act.patientWeight,act.patientDocumentAttachment,act.patientClinicalNote,act.patientDocumentForm}]]. at org.openvpms.component.business.service.archetype.ArchetypeService.get(ArchetypeService.java:374) at sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:68) at org.openvpms.component.business.service.security.OpenVPMSMethodSecurityInterceptor.invoke(OpenVPMSMethodSecurityInterceptor.java:50) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy55.get(Unknown Source) at org.openvpms.component.business.service.archetype.DelegatingArchetypeService.get(DelegatingArchetypeService=2Ejava:301) at org.openvpms.web.component.im.act.ActHelper.getActs(ActHelper.java:142) at org.openvpms.web.component.im.act.ActHelper.getActMap(ActHelper.java:159) at org.openvpms.web.component.im.act.ActHierarchyFilter.getActs(ActHierarchyFilter.java:266) at org.openvpms.web.component.im.act.ActHierarchyFilter.getChildren(ActHierarchyFilter.java:250) at org.openvpms.web.component.im.act.ActHierarchyFilter.getChildren(ActHierarchyFilter.java:222) at org.openvpms.web.component.im.act.ActHierarchyFilter.filter(ActHierarchyFilter.java:93) at org.openvpms.web.component.im.act.ActHierarchyLister.buildTree(ActHierarchyLister.java:125) at org.openvpms.web.component.im.act.ActHierarchyLister.buildTree(ActHierarchyLister.java:106) at org.openvpms.web.component.im.act.ActHierarchyLister.list(ActHierarchyLister.java:54) at org.openvpms.web.component.im.act.ActHierarchyIterator.flattenTree(ActHierarchyIterator.java:158) at org.openvpms.web.component.im.act.ActHierarchyIterator$ActIterator.advance(ActHierarchyIterator.java:246) at org.openvpms.web.component.im.act.ActHierarchyIterator$ActIterator.hasNext(ActHierarchyIterator.java:204) at org.openvpms.report.jasper.IMObjectCollectionDataSource.next(IMObjectCollectionDataSource.java:121) at net.sf.jasperreports.engine.fill.JRFillDataset.advanceDataSource(JRFillDataset.java:1422) at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:1271) at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:1250) at net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:1010) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:117) at net.sf.jasperreports.engine.fill=2EJRBaseFiller.fill(JRBaseFiller.java:558) at net.sf.jasperreports.engine.fill.BaseReportFiller.fill(BaseReportFiller.java:414) at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:122) at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:667) at org.openvpms.report.jasper.AbstractJasperIMReport.report(AbstractJasperIMReport.java:500) at org.openvpms.report.jasper.AbstractJasperIMReport=2Egenerate(AbstractJasperIMReport.java:374) at org.openvpms.web.component.im.report.Reporter.lambda$getDocument$0(Reporter.java:141) at org.openvpms.web.component.im.report.ReportRunner.run(ReportRunner.java:80) at org.openvpms.web.component.im.report.Reporter.generate(Reporter.java:284) at org.openvpms.web.component.im.report.Reporter.getDocument(Reporter.java:141) at org.openvpms.web.component.im.print.AbstractIMPrinter.getDocument(AbstractIMPrinter.java:136) at org.openvpms.web.component.print.InteractivePrinter.getDocument(InteractivePrinter.java:222) at org.openvpms.web.component.print.InteractivePrinter.getDocument(InteractivePrinter.java:209) at org.openvpms.web.component.print.InteractivePrinter.download(InteractivePrinter.java:461) at org.openvpms.web.component.print.InteractivePrinter$1.onPreview(InteractivePrinter.java:369) at org.openvpms.web.component.print.PrintDialog$1.onAction(PrintDialog.java:169) at org.openvpms.web.echo.event.ActionListener.actionPerformed(ActionListener.java:40) at nextapp.echo2.app.button.AbstractButton.fireActionPerformed(AbstractButton.java:135) at echopointng.ButtonEx$1.actionPerformed(ButtonEx.java:120) at nextapp.echo2.app.button.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:70) at echopointng.model.DefaultButtonModelEx.doAction(DefaultButtonModelEx.java:51) at echopointng.ButtonEx.processInput(ButtonEx.java:202) at nextapp.echo2.app.update.ClientUpdateManager.process(ClientUpdateManager.java:116) at nextapp.echo2.app.update.UpdateManager.processClientUpdates(UpdateManager.java:89) at nextapp.echo2.webcontainer.ContainerSynchronizeService.renderUpdate(ContainerSynchronizeService.java:471) at nextapp.echo2.webrender.service.SynchronizeService.service(SynchronizeService.java:279) at nextapp.echo2.webrender.WebRenderServlet.process(WebRenderServlet.java:273) at org.openvpms.web.echo.servlet.SpringWebContainerServlet.processRequest(SpringWebContainerServlet.java:234) at org.openvpms.web.echo.servlet.SpringWebContainerServlet.process(SpringWebContainerServlet.java:173) at nextapp.echo2.webrender.WebRenderServlet.doPost(WebRenderServlet.java:189) at javax.servlet.http.HttpServlet.service(HttpServlet.java:661) at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org=2Eapache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.openvpms.web.echo.servlet.Log4JMDCUserFilter.doFilter(Log4JMDCUserFilter.java:58) at org=2Eapache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:316) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:122) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter=2Ejava:111) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:169) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:48) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:205) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:64) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:53) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:660) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) Caused by: org.openvpms.component.business.dao.hibernate.im.query.QueryBuilderException: Query failed because class org.openvpms.component.business.domain.im.act.DocumentAct and org.openvpms.component.business.domain.im.act.FinancialAct are of different types at org.openvpms.component.business.dao.hibernate.im.query.TypeSet.getClass(TypeSet.java:315) at org.openvpms.component.business.dao.hibernate.im.query.TypeSet.<init>(TypeSet.java:77) at org.openvpms.component.business.dao.hibernate.im.query.TypeSet.create(TypeSet.java:212) at org.openvpms.component.business.dao.hibernate.im.query.QueryBuilder.getTypeSet(QueryBuilder.java:642) at org.openvpms.component.business.dao.hibernate.im.query.QueryBuilder.process(QueryBuilder.java:216) at org.openvpms.component.business.dao.hibernate.im.query.QueryBuilder.processConstraint(QueryBuilder.java:731) at org.openvpms.component.business.dao.hibernate.im.query.QueryBuilder.process(QueryBuilder.java:120) at org.openvpms.component.business.dao.hibernate.im.query.QueryBuilder.build(QueryBuilder.java:104) at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate$DefaultQueryDelegator.get(IMObjectDAOHibernate.java:1022) at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate$QueryDelegator.get(IMObjectDAOHibernate.java:984) at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate.get(IMObjectDAOHibernate.java:225) at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate$$FastClassBySpringCGLIB$$69c8dab2.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:717) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:653) at org.openvpms.component.business.dao.hibernate.im.IMObjectDAOHibernate$$EnhancerBySpringCGLIB$$1f3fe691.get(<generated>) at org.openvpms.component.business.service.archetype.ArchetypeService.get(ArchetypeService.java:371) ... 117 more

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Fix versions

Affects versions

2.0
2.1

Priority

Minor