Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Je kan geen assignee aanwijzen via BPMN #113

Closed
Niek-Ritense opened this issue Jan 23, 2025 · 1 comment · Fixed by valtimo-platform/valtimo-backend-libraries#1704
Closed
Assignees
Labels
bug Something isn't working

Comments

@Niek-Ritense
Copy link

Verwacht gedrag

Als je DocumentDelegateService.setAssignee(execution, email) aanroept word de case overgedragen aan de keycloak user die dat email heeft

Huidig gedrag

Er word een error gegooit dat de cache klasse bean er niet is(zie error onderaan)

Mogelijke oplossing (optioneel)

?

Stappen om te reproduceren

Geef een duidelijke reeks stappen om deze bug te reproduceren.
Voeg code toe om te reproduceren, indien relevant

  1. Maak een bpmn met een service taak waarbij de DocumentDelegateService.setAssignee(execution, email) word aangeroepen
@Niek-Ritense Niek-Ritense added the bug Something isn't working label Jan 23, 2025
@Niek-Ritense
Copy link
Author

error:
Caused by: org.springframework.beans.factory.support.ScopeNotActiveException: Error creating bean with name 'scopedTarget.requestScopeUserCache': Scope 'request' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:374)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
at org.springframework.aop.target.SimpleBeanTargetSource.getTarget(SimpleBeanTargetSource.java:35)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:203)
at jdk.proxy2/jdk.proxy2.$Proxy158.get(Unknown Source)
at com.valtimo.keycloak.service.KeycloakUserManagementService.findByEmail(KeycloakUserManagementService.java:139)
at com.ritense.processdocument.service.DocumentDelegateService.setAssignee(DocumentDelegateService.kt:100)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at org.camunda.bpm.impl.juel.jakarta.el.ELUtil.invokeMethod(ELUtil.java:227)
at org.camunda.bpm.impl.juel.jakarta.el.BeanELResolver.invoke(BeanELResolver.java:440)
at org.camunda.bpm.impl.juel.jakarta.el.CompositeELResolver.invoke(CompositeELResolver.java:198)
at org.camunda.bpm.impl.juel.AstMethod.invoke(AstMethod.java:91)
at org.camunda.bpm.impl.juel.AstMethod.eval(AstMethod.java:75)
at org.camunda.bpm.impl.juel.AstEval.eval(AstEval.java:50)
at org.camunda.bpm.impl.juel.AstNode.getValue(AstNode.java:26)
at org.camunda.bpm.impl.juel.TreeValueExpression.getValue(TreeValueExpression.java:112)
at org.camunda.bpm.engine.impl.delegate.ExpressionGetInvocation.invoke(ExpressionGetInvocation.java:40)
at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:58)
at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocationInContext(DefaultDelegateInterceptor.java:92)
at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:63)
at org.camunda.bpm.engine.impl.el.JuelExpression.getValue(JuelExpression.java:60)
... 103 common frames omitted
Caused by: java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
at org.springframework.web.context.request.RequestContextHolder.currentRequestAttributes(RequestContextHolder.java:131)
at org.springframework.web.context.request.AbstractRequestAttributesScope.get(AbstractRequestAttributesScope.java:42)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:362)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants