[JBoss JIRA] (WFLY-13495) RestEasy - java.lang.NoClassDefFoundError handling PATCH request
by Ranabir Chakraborty (Jira)
[ https://issues.redhat.com/browse/WFLY-13495?page=com.atlassian.jira.plugi... ]
Ranabir Chakraborty reassigned WFLY-13495:
------------------------------------------
Assignee: Ranabir Chakraborty (was: Alessio Soldano)
> RestEasy - java.lang.NoClassDefFoundError handling PATCH request
> ----------------------------------------------------------------
>
> Key: WFLY-13495
> URL: https://issues.redhat.com/browse/WFLY-13495
> Project: WildFly
> Issue Type: Bug
> Components: REST
> Reporter: Ranabir Chakraborty
> Assignee: Ranabir Chakraborty
> Priority: Major
> Attachments: app.war, eap-7.4.0.CD19-CR1.postman_collection.json
>
>
> We get the follwing error when handling PATCH requests (we are using JDK8 on RHEL7):
> {noformat}
> 10:23:52,492 ERROR [io.undertow.request] (default task-1) UT005023: Exception handling request to /StudentPatchTest/students/1: java.lang.NoClassDefFoundError: Failed to link com/github/fge/jsonpatch/JsonPatchMessages (Module "com.github.fge.json-patch" version 1.9.0.redhat-00002 from local module loader @5f2108b5 (finder: local module finder @31a5c39e (roots: /home/tborgato/tmp/jboss-eap-7.4/modules,/home/tborgato/tmp/jboss-eap-7.4/modules/system/layers/microprofile,/home/tborgato/tmp/jboss-eap-7.4/modules/system/layers/base,/home/tborgato/tmp/jboss-eap-7.4/modules/system/add-ons/spring))): com/github/fge/msgsimple/load/MessageBundleLoader
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
> at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:423)
> at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:555)
> at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:339)
> at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:126)
> at org.jboss.modules.Module.loadModuleClass(Module.java:731)
> at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:247)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
> at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
> at com.github.fge.jsonpatch.JsonPatch.<clinit>(JsonPatch.java:95)
> at org.jboss.resteasy.plugins.providers.jackson.PatchMethodFilter.filter(PatchMethodFilter.java:88)
> at org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:306)
> at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:387)
> at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:356)
> at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:329)
> at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:440)
> at org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:229)
> at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:135)
> at org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:356)
> at org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:138)
> at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:215)
> at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:227)
> at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
> at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
> at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
> at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
> at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
> at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
> at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> at io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68)
> at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)
> at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
> at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
> at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
> at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
> at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
> at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)
> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:269)
> at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:78)
> at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:133)
> at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:130)
> at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
> at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
> at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1541)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1541)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1541)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1541)
> at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249)
> at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:78)
> at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:99)
> at io.undertow.server.Connectors.executeRootHandler(Connectors.java:376)
> at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
> at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
> at java.lang.Thread.run(Thread.java:748)
> {noformat}
> To reproduce deploy attached app.war;
> It's taken from RestEasy test org.jboss.resteasy.test.resource.patch.StudentResource and the code handling the PATCH request is the following:
> {code}
> @PATCH
> @Path("/{id}")
> @Consumes(MediaType.APPLICATION_JSON_PATCH_JSON)
> @Produces(MediaType.APPLICATION_JSON)
> public Student patchStudent(@PathParam("id") long id, Student student)
> {
> if (studentsMap.get(id) == null)
> {
> throw new NotFoundException();
> }
> studentsMap.put(id, student);
> return student;
> }
> {code}
> Then create the entity:
> {code}
> curl --location --request POST 'http://localhost:8080/app/students' \
> --header 'Content-Type: application/json' \
> --header 'Content-Type: text/plain' \
> --data-raw '{"id":"1","firstName":"Jones","school":"SomeVeryImportantSchool"}'
> {code}
> Finally patch the entity and you get the error:
> {code}
> curl --location --request PATCH 'http://localhost:8080/app/students/1' \
> --header 'Content-Type: application/json-patch+json' \
> --header 'Content-Type: text/plain' \
> --data-raw '[{"op":"copy","from":"/firstName","path":"/lastName"},{"op":"replace","path":"/firstName","value":"John"},{"op":"remove","path":"/school"},{"op":"add","path":"/gender","value":"male"}]'
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 2 months
[JBoss JIRA] (WFLY-13495) RestEasy - java.lang.NoClassDefFoundError handling PATCH request
by Ranabir Chakraborty (Jira)
[ https://issues.redhat.com/browse/WFLY-13495?page=com.atlassian.jira.plugi... ]
Ranabir Chakraborty reassigned WFLY-13495:
------------------------------------------
Assignee: Alessio Soldano (was: Ranabir Chakraborty)
> RestEasy - java.lang.NoClassDefFoundError handling PATCH request
> ----------------------------------------------------------------
>
> Key: WFLY-13495
> URL: https://issues.redhat.com/browse/WFLY-13495
> Project: WildFly
> Issue Type: Bug
> Components: REST
> Reporter: Ranabir Chakraborty
> Assignee: Alessio Soldano
> Priority: Major
> Attachments: app.war, eap-7.4.0.CD19-CR1.postman_collection.json
>
>
> We get the follwing error when handling PATCH requests (we are using JDK8 on RHEL7):
> {noformat}
> 10:23:52,492 ERROR [io.undertow.request] (default task-1) UT005023: Exception handling request to /StudentPatchTest/students/1: java.lang.NoClassDefFoundError: Failed to link com/github/fge/jsonpatch/JsonPatchMessages (Module "com.github.fge.json-patch" version 1.9.0.redhat-00002 from local module loader @5f2108b5 (finder: local module finder @31a5c39e (roots: /home/tborgato/tmp/jboss-eap-7.4/modules,/home/tborgato/tmp/jboss-eap-7.4/modules/system/layers/microprofile,/home/tborgato/tmp/jboss-eap-7.4/modules/system/layers/base,/home/tborgato/tmp/jboss-eap-7.4/modules/system/add-ons/spring))): com/github/fge/msgsimple/load/MessageBundleLoader
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
> at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:423)
> at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:555)
> at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:339)
> at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:126)
> at org.jboss.modules.Module.loadModuleClass(Module.java:731)
> at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:247)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
> at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
> at com.github.fge.jsonpatch.JsonPatch.<clinit>(JsonPatch.java:95)
> at org.jboss.resteasy.plugins.providers.jackson.PatchMethodFilter.filter(PatchMethodFilter.java:88)
> at org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:306)
> at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:387)
> at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:356)
> at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:329)
> at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:440)
> at org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:229)
> at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:135)
> at org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:356)
> at org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:138)
> at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:215)
> at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:227)
> at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
> at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
> at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
> at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
> at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
> at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
> at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> at io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68)
> at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)
> at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
> at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
> at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
> at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
> at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
> at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)
> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:269)
> at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:78)
> at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:133)
> at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:130)
> at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
> at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
> at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1541)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1541)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1541)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1541)
> at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249)
> at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:78)
> at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:99)
> at io.undertow.server.Connectors.executeRootHandler(Connectors.java:376)
> at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
> at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
> at java.lang.Thread.run(Thread.java:748)
> {noformat}
> To reproduce deploy attached app.war;
> It's taken from RestEasy test org.jboss.resteasy.test.resource.patch.StudentResource and the code handling the PATCH request is the following:
> {code}
> @PATCH
> @Path("/{id}")
> @Consumes(MediaType.APPLICATION_JSON_PATCH_JSON)
> @Produces(MediaType.APPLICATION_JSON)
> public Student patchStudent(@PathParam("id") long id, Student student)
> {
> if (studentsMap.get(id) == null)
> {
> throw new NotFoundException();
> }
> studentsMap.put(id, student);
> return student;
> }
> {code}
> Then create the entity:
> {code}
> curl --location --request POST 'http://localhost:8080/app/students' \
> --header 'Content-Type: application/json' \
> --header 'Content-Type: text/plain' \
> --data-raw '{"id":"1","firstName":"Jones","school":"SomeVeryImportantSchool"}'
> {code}
> Finally patch the entity and you get the error:
> {code}
> curl --location --request PATCH 'http://localhost:8080/app/students/1' \
> --header 'Content-Type: application/json-patch+json' \
> --header 'Content-Type: text/plain' \
> --data-raw '[{"op":"copy","from":"/firstName","path":"/lastName"},{"op":"replace","path":"/firstName","value":"John"},{"op":"remove","path":"/school"},{"op":"add","path":"/gender","value":"male"}]'
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 2 months
[JBoss JIRA] (WFLY-13495) RestEasy - java.lang.NoClassDefFoundError handling PATCH request
by Ranabir Chakraborty (Jira)
[ https://issues.redhat.com/browse/WFLY-13495?page=com.atlassian.jira.plugi... ]
Ranabir Chakraborty moved JBEAP-19522 to WFLY-13495:
----------------------------------------------------
Project: WildFly (was: JBoss Enterprise Application Platform)
Key: WFLY-13495 (was: JBEAP-19522)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: REST
(was: REST)
Affects Version/s: (was: 7.4.0.CD19)
> RestEasy - java.lang.NoClassDefFoundError handling PATCH request
> ----------------------------------------------------------------
>
> Key: WFLY-13495
> URL: https://issues.redhat.com/browse/WFLY-13495
> Project: WildFly
> Issue Type: Bug
> Components: REST
> Reporter: Ranabir Chakraborty
> Assignee: Ranabir Chakraborty
> Priority: Major
> Attachments: app.war, eap-7.4.0.CD19-CR1.postman_collection.json
>
>
> We get the follwing error when handling PATCH requests (we are using JDK8 on RHEL7):
> {noformat}
> 10:23:52,492 ERROR [io.undertow.request] (default task-1) UT005023: Exception handling request to /StudentPatchTest/students/1: java.lang.NoClassDefFoundError: Failed to link com/github/fge/jsonpatch/JsonPatchMessages (Module "com.github.fge.json-patch" version 1.9.0.redhat-00002 from local module loader @5f2108b5 (finder: local module finder @31a5c39e (roots: /home/tborgato/tmp/jboss-eap-7.4/modules,/home/tborgato/tmp/jboss-eap-7.4/modules/system/layers/microprofile,/home/tborgato/tmp/jboss-eap-7.4/modules/system/layers/base,/home/tborgato/tmp/jboss-eap-7.4/modules/system/add-ons/spring))): com/github/fge/msgsimple/load/MessageBundleLoader
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
> at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:423)
> at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:555)
> at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:339)
> at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:126)
> at org.jboss.modules.Module.loadModuleClass(Module.java:731)
> at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:247)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
> at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
> at com.github.fge.jsonpatch.JsonPatch.<clinit>(JsonPatch.java:95)
> at org.jboss.resteasy.plugins.providers.jackson.PatchMethodFilter.filter(PatchMethodFilter.java:88)
> at org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:306)
> at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:387)
> at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:356)
> at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:329)
> at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:440)
> at org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:229)
> at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:135)
> at org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:356)
> at org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:138)
> at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:215)
> at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:227)
> at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
> at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
> at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
> at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
> at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
> at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
> at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> at io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68)
> at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)
> at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
> at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
> at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
> at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
> at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
> at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)
> at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:269)
> at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:78)
> at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:133)
> at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:130)
> at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
> at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
> at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1541)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1541)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1541)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1541)
> at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249)
> at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:78)
> at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:99)
> at io.undertow.server.Connectors.executeRootHandler(Connectors.java:376)
> at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
> at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
> at java.lang.Thread.run(Thread.java:748)
> {noformat}
> To reproduce deploy attached app.war;
> It's taken from RestEasy test org.jboss.resteasy.test.resource.patch.StudentResource and the code handling the PATCH request is the following:
> {code}
> @PATCH
> @Path("/{id}")
> @Consumes(MediaType.APPLICATION_JSON_PATCH_JSON)
> @Produces(MediaType.APPLICATION_JSON)
> public Student patchStudent(@PathParam("id") long id, Student student)
> {
> if (studentsMap.get(id) == null)
> {
> throw new NotFoundException();
> }
> studentsMap.put(id, student);
> return student;
> }
> {code}
> Then create the entity:
> {code}
> curl --location --request POST 'http://localhost:8080/app/students' \
> --header 'Content-Type: application/json' \
> --header 'Content-Type: text/plain' \
> --data-raw '{"id":"1","firstName":"Jones","school":"SomeVeryImportantSchool"}'
> {code}
> Finally patch the entity and you get the error:
> {code}
> curl --location --request PATCH 'http://localhost:8080/app/students/1' \
> --header 'Content-Type: application/json-patch+json' \
> --header 'Content-Type: text/plain' \
> --data-raw '[{"op":"copy","from":"/firstName","path":"/lastName"},{"op":"replace","path":"/firstName","value":"John"},{"op":"remove","path":"/school"},{"op":"add","path":"/gender","value":"male"}]'
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 2 months
[JBoss JIRA] (DROOLS-5351) Allow to provide relative resource resolver for DMN runtime
by Maciej Swiderski (Jira)
Maciej Swiderski created DROOLS-5351:
----------------------------------------
Summary: Allow to provide relative resource resolver for DMN runtime
Key: DROOLS-5351
URL: https://issues.redhat.com/browse/DROOLS-5351
Project: Drools
Issue Type: Enhancement
Components: dmn engine
Affects Versions: 7.37.0.Final
Reporter: Maciej Swiderski
Assignee: Matteo Mortari
Currently DMN Runtime assumes that imported resources will always be on class path, that might not always be the case so use of relative resource resolvers allows to provide an alternative way to supply imported resources content.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 2 months
[JBoss JIRA] (DROOLS-5346) Enhance unit test to detect non-externalized lambda widely
by Toshiya Kobayashi (Jira)
[ https://issues.redhat.com/browse/DROOLS-5346?page=com.atlassian.jira.plug... ]
Toshiya Kobayashi commented on DROOLS-5346:
-------------------------------------------
Done by https://github.com/kiegroup/drools/commit/cb2b1026de219fd005dc8490d146e2b...
> Enhance unit test to detect non-externalized lambda widely
> ----------------------------------------------------------
>
> Key: DROOLS-5346
> URL: https://issues.redhat.com/browse/DROOLS-5346
> Project: Drools
> Issue Type: Sub-task
> Components: executable model
> Affects Versions: 7.37.0.Final
> Reporter: Toshiya Kobayashi
> Assignee: Toshiya Kobayashi
> Priority: Major
>
> Currently "lambda is not externalized" issue is not widely detected in unit tests. We need to write a specific assertion like this:
> {code:java}
> @Test
> public void testExternalizeBindingVariableLambda() throws Exception {
> String str =
> "package defaultpkg;\n" +
> "import " + Person.class.getCanonicalName() + ";" +
> "global java.util.List list;\n" +
> "rule R when\n" +
> " $p : Person($n : name == \"Mario\")\n" +
> "then\n" +
> " list.add($n);\n" +
> "end";
> KieModuleModel kieModuleModel = KieServices.get().newKieModuleModel();
> kieModuleModel.setConfigurationProperty("drools.externaliseCanonicalModelLambda", Boolean.TRUE.toString());
> KieSession ksession = getKieSession(kieModuleModel, str );
> final List<String> list = new ArrayList<>();
> ksession.setGlobal("list", list);
> if (testRunType == RUN_TYPE.FLOW_DSL || testRunType == RUN_TYPE.PATTERN_DSL) {
> RuleImpl rule = (RuleImpl)ksession.getKieBase().getRule("defaultpkg", "R");
> Pattern pattern = (Pattern)rule.getLhs().getChildren().get(0);
> Declaration declaration = pattern.getDeclarations().get("$n");
> LambdaReadAccessor lambdaReadAccessor = (LambdaReadAccessor)declaration.getExtractor();
> Field field = LambdaReadAccessor.class.getDeclaredField("lambda");
> field.setAccessible(true);
> Function1.Impl function1 = (Function1.Impl)field.get(lambdaReadAccessor);
> Object lambda = function1.getLambda();
> assertThat(lambda.getClass().getName(), containsString("LambdaExtractor")); // materialized Lambda
> }
> Person me = new Person( "Mario", 40 );
> ksession.insert( me );
> ksession.fireAllRules();
> Assertions.assertThat(list).containsExactlyInAnyOrder("Mario");
> }
> {code}
> This JIRA is to enhance unit tests to assert it widely.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 2 months
[JBoss JIRA] (WFLY-13494) Upgrade Narayana to 5.10.5.Final
by Ondrej Chaloupka (Jira)
Ondrej Chaloupka created WFLY-13494:
---------------------------------------
Summary: Upgrade Narayana to 5.10.5.Final
Key: WFLY-13494
URL: https://issues.redhat.com/browse/WFLY-13494
Project: WildFly
Issue Type: Component Upgrade
Components: Transactions
Reporter: Ondrej Chaloupka
Assignee: Ondrej Chaloupka
Component upgrade of Narayana to version 5.10.5.Final.
This version provides the capability for CDI interceptors of context propagation and async handling.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 2 months
[JBoss JIRA] (DROOLS-5350) Externalize lambda for "from" clause
by Toshiya Kobayashi (Jira)
Toshiya Kobayashi created DROOLS-5350:
-----------------------------------------
Summary: Externalize lambda for "from" clause
Key: DROOLS-5350
URL: https://issues.redhat.com/browse/DROOLS-5350
Project: Drools
Issue Type: Sub-task
Components: executable model
Affects Versions: 7.37.0.Final
Reporter: Toshiya Kobayashi
Assignee: Toshiya Kobayashi
lambda for "from" clause is not externalized. e.g. CompilerTest#testFrom()
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 2 months