Closed natfirst closed 6 years ago
Now IllegalArgumentException
is thrown:
IllegalArgumentException: You have attempted to set a value of type class
com.haulmont.bpm.entity.ProcInstance for parameter procInstance with expected type of class
java.util.UUID from query string select pt from bpm$ProcTask pt left join pt.procActor pa left join
pa.user pau where pt.procInstance.id = :procInstance and (pau.id = :userId or (pa is null and
exists(select pt2 from bpm$ProcTask pt2 join pt2.candidateUsers cu where pt2.id = pt.id and cu.id =
:userId))) and pt.endDate is null.
Git changesets by artamonov
:
31ed9915 in master - Unable to create or edit process instances and process definitions #38
When trying to deploy the process:
IllegalArgumentException: You have attempted to set a value of type class
com.haulmont.bpm.entity.ProcModel for parameter model with expected type of class java.util.UUID
from query string select pd from bpm$ProcDefinition pd where pd.model.id = :model order by pd.name, pd.deploymentDate desc.
java.lang.IllegalArgumentException: You have attempted to set a value of type class
com.haulmont.bpm.entity.ProcDefinition for parameter custom_procDefinition with expected type
of class java.util.UUID from query string
select pr from bpm$ProcRole pr where pr.procDefinition.id = :custom_procDefinition order by pr.name
.
at org.eclipse.persistence.internal.jpa.QueryImpl.setParameterInternal(QueryImpl.java:944)
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.setParameter(EJBQueryImpl.java:609)
at com.haulmont.cuba.core.sys.QueryImpl$Param.apply(QueryImpl.java:758)
at com.haulmont.cuba.core.sys.QueryImpl.getQuery(QueryImpl.java:153)
at com.haulmont.cuba.core.sys.QueryImpl.getResultList(QueryImpl.java:369)
at com.haulmont.cuba.core.app.RdbmsStore.executeQuery(RdbmsStore.java:756)
at com.haulmont.cuba.core.app.RdbmsStore.getResultList(RdbmsStore.java:664)
at com.haulmont.cuba.core.app.RdbmsStore.loadList(RdbmsStore.java:225)
at com.haulmont.cuba.core.app.DataManagerBean.loadList(DataManagerBean.java:74)
at com.haulmont.cuba.core.app.DataServiceBean.loadList(DataServiceBean.java:54)
Git changesets by artamonov
:
c901f9ba in master - Unable to create or edit process instances and process definitions #38
java.lang.IllegalArgumentException: You have attempted to set a value of type class com.haulmont.bpm.entity.ProcInstance for parameter procInstance with expected type of class java.util.UUID from query string select a from bpm$ProcTask a where a.procInstance.id = :procInstance and a.endDate is null.
at org.eclipse.persistence.internal.jpa.QueryImpl.setParameterInternal(QueryImpl.java:944)
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.setParameter(EJBQueryImpl.java:609)
at com.haulmont.cuba.core.sys.QueryImpl$Param.apply(QueryImpl.java:758)
at com.haulmont.cuba.core.sys.QueryImpl.getQuery(QueryImpl.java:153)
at com.haulmont.cuba.core.sys.QueryImpl.getResultList(QueryImpl.java:369)
at com.haulmont.bpm.core.ProcessRuntimeManagerBean.cancelProcess(ProcessRuntimeManagerBean.java:128)
at com.haulmont.bpm.service.ProcessRuntimeServiceBean.cancelProcess(ProcessRuntimeServiceBean.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
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:343)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)
at com.haulmont.cuba.core.sys.ServiceInterceptor.aroundInvoke(ServiceInterceptor.java:117)
at sun.reflect.GeneratedMethodAccessor130.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:174)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
at com.sun.proxy.$Proxy269.cancelProcess(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
Git changesets by artamonov
:
85453686 in master - Unable to create or edit process instances and process definitions #38
Fix ProcessRuntimeManagerBean cancelProcess
Environment
Description of the bug or enhancement
A.R. Exception will appear The same exception appears in the Process Definitions screen when clicking Edit
For QA: check the https://app.zenhub.com/workspace/o/cuba-platform/cuba-gradle-plugin/issues/71