Comments (7)
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.
Relates to cuba-platform/cuba#744
from bpm.
Git changesets by artamonov
:
31ed9915 in master - Unable to create or edit process instances and process definitions #38
from bpm.
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.
from bpm.
- Create a process instance
- Select process definition
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)
from bpm.
Git changesets by artamonov
:
c901f9ba in master - Unable to create or edit process instances and process definitions #38
from bpm.
- Create a process with the role
- Create a process instance, assign the task to the user
- Try to cancel process
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)
from bpm.
Git changesets by artamonov
:
85453686 in master - Unable to create or edit process instances and process definitions #38
Fix ProcessRuntimeManagerBean cancelProcess
from bpm.
Related Issues (20)
- Process definition deploy action should check the file type and accept only XML files HOT 2
- ScriptTask fails for groovy script HOT 1
- Update Spring version to 5.1 HOT 1
- Compatibility with Screen API of platform version 7 HOT 1
- Process starting may not work for MySQL database
- ProcForm.getFormResult() method result is ignored for process forms written using v7 screen API HOT 2
- NullPointerException when assigning users to task if candidate roles are present
- BPM modeler doesn't save changes when Spring MVC has DEBUG log level HOT 2
- File uploaded in Process Instance Edit and in Start process window does not save
- The script editing window for the BPM script task does not open if it was closed by clicking outside the window
- RemoteException occurs when trying to start bpm process
- ProcessVariablesService is not registered in web-spring.xml
- "Cancel process" dialog cancels the process no matter what dialog button is pressed
- JPQL queries with view may cause unexpected database flushes
- Outcome conditions on sequence flows doesn't work properly inside parallel subprocesses HOT 1
- Specify CHAR length for VARCHAR2 columns in the ORACLE scripts
- Create predefined design-time roles for BPM HOT 1
- Standard actions initializer throws exception on legacy editor screens
- BpmEntitiesService.createProcInstance fails for entity with a composite PK
- Application fails to start with MariaDB database
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bpm.