-
Notifications
You must be signed in to change notification settings - Fork 351
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
Jersey2.26 - Cdi2 don't work with BeanValidation #3753
Milestone
Comments
@SamuelHyman Commented |
@sburlyaev Commented |
|
Same problem here, but with Jersey 2.27 |
Same here. Just adding this dependency
into
|
I have created a PR for this issue |
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Changes in issue eclipse-ee4j#4208 resolved the IllegalArgumentException, however bean validation doesn't work.
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Changes in issue eclipse-ee4j#4208 resolved the IllegalArgumentException, however bean validation doesn't work.
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Changes in issue eclipse-ee4j#4208 resolved the IllegalArgumentException, however bean validation doesn't work.
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Changes in issue eclipse-ee4j#4208 resolved the IllegalArgumentException, however bean validation doesn't work.
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Changes in issue eclipse-ee4j#4208 resolved the IllegalArgumentException, however bean validation doesn't work. Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Changes in issue eclipse-ee4j#4208 resolved the IllegalArgumentException, however bean validation doesn't work. Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Changes in issue eclipse-ee4j#4208 resolved the IllegalArgumentException, however bean validation doesn't work. Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Changes in issue eclipse-ee4j#4208 resolved the IllegalArgumentException, however bean validation doesn't work. Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 28, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 30, 2019
Changes in issue eclipse-ee4j#4208 resolved the IllegalArgumentException, however bean validation doesn't work. Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 30, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 30, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 30, 2019
Changes in issue eclipse-ee4j#4208 resolved the IllegalArgumentException, however bean validation doesn't work. Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Aug 30, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Sep 3, 2019
Changes in issue eclipse-ee4j#4208 resolved the IllegalArgumentException, however bean validation doesn't work. Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Sep 3, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Sep 5, 2019
Changes in issue eclipse-ee4j#4208 resolved the IllegalArgumentException, however bean validation doesn't work. Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Sep 5, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Sep 9, 2019
Changes in issue eclipse-ee4j#4208 resolved the IllegalArgumentException, however bean validation doesn't work. Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Sep 9, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Oct 2, 2019
Changes in issue eclipse-ee4j#4208 resolved the IllegalArgumentException, however bean validation doesn't work. Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Oct 2, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Oct 4, 2019
Changes in issue eclipse-ee4j#4208 resolved the IllegalArgumentException, however bean validation doesn't work. Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Oct 4, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Oct 18, 2019
Changes in issue eclipse-ee4j#4208 resolved the IllegalArgumentException, however bean validation doesn't work. Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Oct 18, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Oct 24, 2019
Changes in issue eclipse-ee4j#4208 resolved the IllegalArgumentException, however bean validation doesn't work. Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Oct 24, 2019
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Oct 27, 2019
Changes in issue eclipse-ee4j#4208 resolved the IllegalArgumentException, however bean validation doesn't work. Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Oct 27, 2019
Signed-off-by: pappy <[email protected]>
@jsikkes, AFAIR , that PR was closed because the tests that pass on my system fail on Travis. |
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Jan 22, 2020
Changes in issue eclipse-ee4j#4208 resolved the IllegalArgumentException, however bean validation doesn't work. Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Jan 22, 2020
Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Mar 10, 2020
Changes in issue eclipse-ee4j#4208 resolved the IllegalArgumentException, however bean validation doesn't work. Signed-off-by: pappy <[email protected]>
pa314159
added a commit
to pa314159/jersey
that referenced
this issue
Mar 10, 2020
Signed-off-by: pappy <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I configured Grizzly + Jersey2 and I started to use "jersey-cdi2-se" but when jersey-bean-validation is included, it didn't work
First, at compile time I getting this Error
Exception in thread "main" java.lang.IllegalArgumentException: Can not set javax.validation.ValidatorFactory field org.glassfish.jersey.server.validation.internal.ValidationBinder$ConfiguredValidatorProvider.factory to org.hibernate.validator.internal.engine.ConfigurationImpl at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167) at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171) at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81) at java.lang.reflect.Field.set(Field.java:764) at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:94) at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:335) at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:346) at org.jboss.weld.injection.producer.ResourceInjector$1.proceed(ResourceInjector.java:69) at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48) at org.jboss.weld.injection.producer.ResourceInjector.inject(ResourceInjector.java:71) at org.jboss.weld.injection.producer.BasicInjectionTarget.inject(BasicInjectionTarget.java:117) at org.glassfish.jersey.inject.cdi.se.injector.JerseyInjectionTarget.inject(JerseyInjectionTarget.java:171) at org.glassfish.jersey.inject.cdi.se.bean.SupplierClassBean.create(SupplierClassBean.java:127) at org.glassfish.jersey.inject.cdi.se.bean.SupplierClassBean.create(SupplierClassBean.java:89) at org.jboss.weld.contexts.AbstractContext.get(AbstractContext.java:96) at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:100) at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50) at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:676) at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:699) at org.jboss.weld.util.ForwardingBeanManager.getReference(ForwardingBeanManager.java:64) at org.jboss.weld.bean.builtin.BeanManagerProxy.getReference(BeanManagerProxy.java:86) at org.glassfish.jersey.inject.cdi.se.bean.SupplierBeanBridge.getSupplier(SupplierBeanBridge.java:162) at org.glassfish.jersey.inject.cdi.se.bean.SupplierBeanBridge.create(SupplierBeanBridge.java:133) at org.jboss.weld.contexts.unbound.DependentContextImpl.get(DependentContextImpl.java:70) at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:100) at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50) at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:676) at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:699) at org.jboss.weld.util.ForwardingBeanManager.getReference(ForwardingBeanManager.java:64) at org.jboss.weld.bean.builtin.BeanManagerProxy.getReference(BeanManagerProxy.java:86) at org.glassfish.jersey.inject.cdi.se.CdiSeInjectionManager.getInstanceInternal(CdiSeInjectionManager.java:183) at org.glassfish.jersey.inject.cdi.se.CdiSeInjectionManager.getInstance(CdiSeInjectionManager.java:166) at org.glassfish.jersey.server.model.internal.ResourceMethodInvokerConfigurator.lambda$postInit$0(ResourceMethodInvokerConfigurator.java:78) at org.glassfish.jersey.server.model.ResourceMethodInvoker$Builder.build(ResourceMethodInvoker.java:218) at org.glassfish.jersey.server.internal.routing.RuntimeModelBuilder.createInflector(RuntimeModelBuilder.java:130) at org.glassfish.jersey.server.internal.routing.RuntimeModelBuilder.createMethodRouter(RuntimeModelBuilder.java:117) at org.glassfish.jersey.server.internal.routing.RuntimeModelBuilder.createResourceMethodRouters(RuntimeModelBuilder.java:311) at org.glassfish.jersey.server.internal.routing.RuntimeModelBuilder.buildModel(RuntimeModelBuilder.java:200) at org.glassfish.jersey.server.internal.routing.Routing$Builder.buildStage(Routing.java:247) at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:422) at org.glassfish.jersey.server.ApplicationHandler.lambda$initialize$1(ApplicationHandler.java:316) at org.glassfish.jersey.internal.Errors.process(Errors.java:316) at org.glassfish.jersey.internal.Errors.process(Errors.java:298) at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:256) at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:315) at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:282) at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:269) at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.<init>(GrizzlyHttpContainer.java:334) at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory.createHttpServer(GrizzlyHttpServerFactory.java:117)
I tried to register org.glassfish.jersey.server.validation.internal.ValidationBinder and the error disappears but bean validation is ignored and the service doesn't work.
If I use jersey-hk2 bean validation start to work but without CDI.
The text was updated successfully, but these errors were encountered: