[JBoss JIRA] (WFLY-10752) NPE on deploy, when Email validation annotation present
by d3coder d3coder (JIRA)
[ https://issues.jboss.org/browse/WFLY-10752?page=com.atlassian.jira.plugin... ]
d3coder d3coder edited comment on WFLY-10752 at 8/7/18 11:48 AM:
-----------------------------------------------------------------
Forgot about this, check it now. Should be uploaded.
was (Author: d3coder):
Forgot about it, check it now. Should be uploaded.
> NPE on deploy, when Email validation annotation present
> -------------------------------------------------------
>
> Key: WFLY-10752
> URL: https://issues.jboss.org/browse/WFLY-10752
> Project: WildFly
> Issue Type: Bug
> Components: Bean Validation
> Affects Versions: 13.0.0.Final
> Environment: Arch linux, openjdk 8, Wildfly 13.0.0.Final
> Reporter: d3coder d3coder
> Assignee: Jason Greene
> Attachments: bvbug-1.0-SNAPSHOT.war, bvbug-1.0-SNAPSHOT.war, bvbug-1.0-SNAPSHOT.war, bvbug.zip
>
>
> I'm making simple app. In one of my DTO's i have field with `javax.validation.constraints.Email` annotation. When this annotation present, wildfly fails to deploy my app with this exception:
> https://gist.github.com/XakepSDK/daa2531203b365ad1969e01b4466b8a1
> My DTO class:
> https://gist.github.com/XakepSDK/a78245b262315437d2800be524018d2e
> CrossField annotation:
> https://gist.github.com/XakepSDK/fde1553339c18bc442820868f573a53a
> CrossField validator:
> https://gist.github.com/XakepSDK/391783e3b79f839a93a8f45c886b38e0
> java -version
> openjdk version "1.8.0_172"
> OpenJDK Runtime Environment (build 1.8.0_172-b11)
> OpenJDK 64-Bit Server VM (build 25.172-b11, mixed mode)
> <------------------ UPD: ------------------>
> I got it, this happens if @Size present with @Email.
> Simple test class:
> https://gist.github.com/XakepSDK/892ec3d886ec2cac7f44d93faa0868c1
> UPD: this happens if field annotated with Email and any other validation annotation.
> It failed with Email and NotNull.
> UPD: Maven project and WAR with [^bvbug-1.0-SNAPSHOT.war] minimal repro. code
> Actually, this project doesn't show issue like my first app, but Email validation doesn't work too.
> Make a POST request to `/` with this:
> `{"email":"test"}` or {"email":"test(a)test.test"}`
> `Content-Type: application/json`
> You will get `NullPointerException` in response, without any extended message.(i made special mapper for that, but seems it doesn't work with that exception)
> In another project, wilfdly refuses to start with NullPointerException, here it work only for request. I don't know, how to make it work like in another project.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (WFLY-10752) NPE on deploy, when Email validation annotation present
by Guillaume Smet (JIRA)
[ https://issues.jboss.org/browse/WFLY-10752?page=com.atlassian.jira.plugin... ]
Guillaume Smet commented on WFLY-10752:
---------------------------------------
Can you upload the modified one so that I can check if I can deploy it here?
Thanks.
> NPE on deploy, when Email validation annotation present
> -------------------------------------------------------
>
> Key: WFLY-10752
> URL: https://issues.jboss.org/browse/WFLY-10752
> Project: WildFly
> Issue Type: Bug
> Components: Bean Validation
> Affects Versions: 13.0.0.Final
> Environment: Arch linux, openjdk 8, Wildfly 13.0.0.Final
> Reporter: d3coder d3coder
> Assignee: Jason Greene
> Attachments: bvbug-1.0-SNAPSHOT.war, bvbug-1.0-SNAPSHOT.war, bvbug.zip
>
>
> I'm making simple app. In one of my DTO's i have field with `javax.validation.constraints.Email` annotation. When this annotation present, wildfly fails to deploy my app with this exception:
> https://gist.github.com/XakepSDK/daa2531203b365ad1969e01b4466b8a1
> My DTO class:
> https://gist.github.com/XakepSDK/a78245b262315437d2800be524018d2e
> CrossField annotation:
> https://gist.github.com/XakepSDK/fde1553339c18bc442820868f573a53a
> CrossField validator:
> https://gist.github.com/XakepSDK/391783e3b79f839a93a8f45c886b38e0
> java -version
> openjdk version "1.8.0_172"
> OpenJDK Runtime Environment (build 1.8.0_172-b11)
> OpenJDK 64-Bit Server VM (build 25.172-b11, mixed mode)
> <------------------ UPD: ------------------>
> I got it, this happens if @Size present with @Email.
> Simple test class:
> https://gist.github.com/XakepSDK/892ec3d886ec2cac7f44d93faa0868c1
> UPD: this happens if field annotated with Email and any other validation annotation.
> It failed with Email and NotNull.
> UPD: Maven project and WAR with [^bvbug-1.0-SNAPSHOT.war] minimal repro. code
> Actually, this project doesn't show issue like my first app, but Email validation doesn't work too.
> Make a POST request to `/` with this:
> `{"email":"test"}` or {"email":"test(a)test.test"}`
> `Content-Type: application/json`
> You will get `NullPointerException` in response, without any extended message.(i made special mapper for that, but seems it doesn't work with that exception)
> In another project, wilfdly refuses to start with NullPointerException, here it work only for request. I don't know, how to make it work like in another project.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (WFLY-10752) NPE on deploy, when Email validation annotation present
by d3coder d3coder (JIRA)
[ https://issues.jboss.org/browse/WFLY-10752?page=com.atlassian.jira.plugin... ]
d3coder d3coder commented on WFLY-10752:
----------------------------------------
I just accidentally put old one, current war doesn't contain it, but error still happens.
> NPE on deploy, when Email validation annotation present
> -------------------------------------------------------
>
> Key: WFLY-10752
> URL: https://issues.jboss.org/browse/WFLY-10752
> Project: WildFly
> Issue Type: Bug
> Components: Bean Validation
> Affects Versions: 13.0.0.Final
> Environment: Arch linux, openjdk 8, Wildfly 13.0.0.Final
> Reporter: d3coder d3coder
> Assignee: Jason Greene
> Attachments: bvbug-1.0-SNAPSHOT.war, bvbug-1.0-SNAPSHOT.war, bvbug.zip
>
>
> I'm making simple app. In one of my DTO's i have field with `javax.validation.constraints.Email` annotation. When this annotation present, wildfly fails to deploy my app with this exception:
> https://gist.github.com/XakepSDK/daa2531203b365ad1969e01b4466b8a1
> My DTO class:
> https://gist.github.com/XakepSDK/a78245b262315437d2800be524018d2e
> CrossField annotation:
> https://gist.github.com/XakepSDK/fde1553339c18bc442820868f573a53a
> CrossField validator:
> https://gist.github.com/XakepSDK/391783e3b79f839a93a8f45c886b38e0
> java -version
> openjdk version "1.8.0_172"
> OpenJDK Runtime Environment (build 1.8.0_172-b11)
> OpenJDK 64-Bit Server VM (build 25.172-b11, mixed mode)
> <------------------ UPD: ------------------>
> I got it, this happens if @Size present with @Email.
> Simple test class:
> https://gist.github.com/XakepSDK/892ec3d886ec2cac7f44d93faa0868c1
> UPD: this happens if field annotated with Email and any other validation annotation.
> It failed with Email and NotNull.
> UPD: Maven project and WAR with [^bvbug-1.0-SNAPSHOT.war] minimal repro. code
> Actually, this project doesn't show issue like my first app, but Email validation doesn't work too.
> Make a POST request to `/` with this:
> `{"email":"test"}` or {"email":"test(a)test.test"}`
> `Content-Type: application/json`
> You will get `NullPointerException` in response, without any extended message.(i made special mapper for that, but seems it doesn't work with that exception)
> In another project, wilfdly refuses to start with NullPointerException, here it work only for request. I don't know, how to make it work like in another project.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (WFCORE-3999) Allow registering a custom HTTP handler for management interface
by Jeff Mesnil (JIRA)
Jeff Mesnil created WFCORE-3999:
-----------------------------------
Summary: Allow registering a custom HTTP handler for management interface
Key: WFCORE-3999
URL: https://issues.jboss.org/browse/WFCORE-3999
Project: WildFly Core
Issue Type: Feature Request
Components: Management
Reporter: Sebastian Łaskawiec
Fix For: 3.0.0.Alpha11
When building [HealthCheck API for Infisnispan|https://github.com/infinispan/infinispan/pull/4499] we noticed there is no way to register a custom endpoint on Management REST interface. Without it, calling the API requires using HTTP POST method (since it includes runtime parameters) and the URL is very long (and not intuitive for our users):
{noformat}
curl --digest -L -D - "http://localhost:9990/management/subsystem/datagrid-infinispan/cache-cont..." --header "Content-Type: application/json" -u ispnadmin:ispnadmin
HTTP/1.1 401 Unauthorized
Connection: keep-alive
WWW-Authenticate: Digest realm="ManagementRealm",domain="/management",nonce="AuZzFxz7uC4NMTQ3MDgyNTU1NTQ3OCfIJBHXVpPHPBdzGUy7Qts=",opaque="00000000000000000000000000000000",algorithm=MD5,qop="auth"
Content-Length: 77
Content-Type: text/html
Date: Wed, 10 Aug 2016 10:39:15 GMT
HTTP/1.1 200 OK
Connection: keep-alive
Authentication-Info: nextnonce="AuZzFxz7uC4NMTQ3MDgyNTU1NTQ3OCfIJBHXVpPHPBdzGUy7Qts=",qop="auth",rspauth="b518c3170e627bd732055c382ce5d970",cnonce="NGViOWM0NDY5OGJmNjY0MjcyOWE4NDkyZDU3YzNhYjY=",nc=00000001
Content-Type: application/json; charset=utf-8
Content-Length: 1927
Date: Wed, 10 Aug 2016 10:39:15 GMT
{
"cache-health" : "GREEN",
"cluster-health" : ["test"],
"cluster-name" : "clustered",
"free-memory" : 96778,
"log-tail" : [
"2016-08-10 11:54:14,706 INFO [org.infinispan.server.endpoint] (MSC service thread 1-5) DGENDPT10001: HotRodServer listening on 127.0.0.1:11222",
"2016-08-10 11:54:14,706 INFO [org.infinispan.server.endpoint] (MSC service thread 1-1) DGENDPT10001: MemcachedServer listening on 127.0.0.1:11211",
"2016-08-10 11:54:14,785 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-6) DGISPN0001: Started ___protobuf_metadata cache from clustered container",
"2016-08-10 11:54:14,800 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-6) DGISPN0001: Started ___script_cache cache from clustered container",
"2016-08-10 11:54:15,159 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-5) DGISPN0001: Started ___hotRodTopologyCache cache from clustered container",
"2016-08-10 11:54:15,210 INFO [org.infinispan.rest.NettyRestServer] (MSC service thread 1-6) ISPN012003: REST server starting, listening on 127.0.0.1:8080",
"2016-08-10 11:54:15,210 INFO [org.infinispan.server.endpoint] (MSC service thread 1-6) DGENDPT10002: REST mapped to /rest",
"2016-08-10 11:54:15,306 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management",
"2016-08-10 11:54:15,307 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990",
"2016-08-10 11:54:15,307 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: Infinispan Server 9.0.0-SNAPSHOT (WildFly Core 2.2.0.CR9) started in 8681ms - Started 196 of 237 services (121 services are lazy, passive or on-demand)"
],
"number-of-cpus" : 8,
"number-of-nodes" : 1,
"total-memory" : 235520
}%
{noformat}
It would be very convenient to allow exposing such endpoints with optional authorization and using custom URLs (e.g. something like http://localhost:9990/health).
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (WFCORE-3999) Allow registering a custom HTTP handler for management interface
by Jeff Mesnil (JIRA)
[ https://issues.jboss.org/browse/WFCORE-3999?page=com.atlassian.jira.plugi... ]
Jeff Mesnil updated WFCORE-3999:
--------------------------------
Description: With (was: When building [HealthCheck API for Infisnispan|https://github.com/infinispan/infinispan/pull/4499] we noticed there is no way to register a custom endpoint on Management REST interface. Without it, calling the API requires using HTTP POST method (since it includes runtime parameters) and the URL is very long (and not intuitive for our users):
{noformat}
curl --digest -L -D - "http://localhost:9990/management/subsystem/datagrid-infinispan/cache-cont..." --header "Content-Type: application/json" -u ispnadmin:ispnadmin
HTTP/1.1 401 Unauthorized
Connection: keep-alive
WWW-Authenticate: Digest realm="ManagementRealm",domain="/management",nonce="AuZzFxz7uC4NMTQ3MDgyNTU1NTQ3OCfIJBHXVpPHPBdzGUy7Qts=",opaque="00000000000000000000000000000000",algorithm=MD5,qop="auth"
Content-Length: 77
Content-Type: text/html
Date: Wed, 10 Aug 2016 10:39:15 GMT
HTTP/1.1 200 OK
Connection: keep-alive
Authentication-Info: nextnonce="AuZzFxz7uC4NMTQ3MDgyNTU1NTQ3OCfIJBHXVpPHPBdzGUy7Qts=",qop="auth",rspauth="b518c3170e627bd732055c382ce5d970",cnonce="NGViOWM0NDY5OGJmNjY0MjcyOWE4NDkyZDU3YzNhYjY=",nc=00000001
Content-Type: application/json; charset=utf-8
Content-Length: 1927
Date: Wed, 10 Aug 2016 10:39:15 GMT
{
"cache-health" : "GREEN",
"cluster-health" : ["test"],
"cluster-name" : "clustered",
"free-memory" : 96778,
"log-tail" : [
"2016-08-10 11:54:14,706 INFO [org.infinispan.server.endpoint] (MSC service thread 1-5) DGENDPT10001: HotRodServer listening on 127.0.0.1:11222",
"2016-08-10 11:54:14,706 INFO [org.infinispan.server.endpoint] (MSC service thread 1-1) DGENDPT10001: MemcachedServer listening on 127.0.0.1:11211",
"2016-08-10 11:54:14,785 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-6) DGISPN0001: Started ___protobuf_metadata cache from clustered container",
"2016-08-10 11:54:14,800 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-6) DGISPN0001: Started ___script_cache cache from clustered container",
"2016-08-10 11:54:15,159 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-5) DGISPN0001: Started ___hotRodTopologyCache cache from clustered container",
"2016-08-10 11:54:15,210 INFO [org.infinispan.rest.NettyRestServer] (MSC service thread 1-6) ISPN012003: REST server starting, listening on 127.0.0.1:8080",
"2016-08-10 11:54:15,210 INFO [org.infinispan.server.endpoint] (MSC service thread 1-6) DGENDPT10002: REST mapped to /rest",
"2016-08-10 11:54:15,306 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management",
"2016-08-10 11:54:15,307 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990",
"2016-08-10 11:54:15,307 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: Infinispan Server 9.0.0-SNAPSHOT (WildFly Core 2.2.0.CR9) started in 8681ms - Started 196 of 237 services (121 services are lazy, passive or on-demand)"
],
"number-of-cpus" : 8,
"number-of-nodes" : 1,
"total-memory" : 235520
}%
{noformat}
It would be very convenient to allow exposing such endpoints with optional authorization and using custom URLs (e.g. something like http://localhost:9990/health).)
> Allow registering a custom HTTP handler for management interface
> ----------------------------------------------------------------
>
> Key: WFCORE-3999
> URL: https://issues.jboss.org/browse/WFCORE-3999
> Project: WildFly Core
> Issue Type: Feature Request
> Components: Management
> Reporter: Sebastian Łaskawiec
>
> With
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (WFLY-10752) NPE on deploy, when Email validation annotation present
by Guillaume Smet (JIRA)
[ https://issues.jboss.org/browse/WFLY-10752?page=com.atlassian.jira.plugin... ]
Guillaume Smet edited comment on WFLY-10752 at 8/7/18 11:39 AM:
----------------------------------------------------------------
Can you check the war you deploy does not contain the validation-api jar?
was (Author: guillaume.smet):
Can you check the war you deploy does not contain the validation-api jar?
> NPE on deploy, when Email validation annotation present
> -------------------------------------------------------
>
> Key: WFLY-10752
> URL: https://issues.jboss.org/browse/WFLY-10752
> Project: WildFly
> Issue Type: Bug
> Components: Bean Validation
> Affects Versions: 13.0.0.Final
> Environment: Arch linux, openjdk 8, Wildfly 13.0.0.Final
> Reporter: d3coder d3coder
> Assignee: Jason Greene
> Attachments: bvbug-1.0-SNAPSHOT.war, bvbug-1.0-SNAPSHOT.war, bvbug.zip
>
>
> I'm making simple app. In one of my DTO's i have field with `javax.validation.constraints.Email` annotation. When this annotation present, wildfly fails to deploy my app with this exception:
> https://gist.github.com/XakepSDK/daa2531203b365ad1969e01b4466b8a1
> My DTO class:
> https://gist.github.com/XakepSDK/a78245b262315437d2800be524018d2e
> CrossField annotation:
> https://gist.github.com/XakepSDK/fde1553339c18bc442820868f573a53a
> CrossField validator:
> https://gist.github.com/XakepSDK/391783e3b79f839a93a8f45c886b38e0
> java -version
> openjdk version "1.8.0_172"
> OpenJDK Runtime Environment (build 1.8.0_172-b11)
> OpenJDK 64-Bit Server VM (build 25.172-b11, mixed mode)
> <------------------ UPD: ------------------>
> I got it, this happens if @Size present with @Email.
> Simple test class:
> https://gist.github.com/XakepSDK/892ec3d886ec2cac7f44d93faa0868c1
> UPD: this happens if field annotated with Email and any other validation annotation.
> It failed with Email and NotNull.
> UPD: Maven project and WAR with [^bvbug-1.0-SNAPSHOT.war] minimal repro. code
> Actually, this project doesn't show issue like my first app, but Email validation doesn't work too.
> Make a POST request to `/` with this:
> `{"email":"test"}` or {"email":"test(a)test.test"}`
> `Content-Type: application/json`
> You will get `NullPointerException` in response, without any extended message.(i made special mapper for that, but seems it doesn't work with that exception)
> In another project, wilfdly refuses to start with NullPointerException, here it work only for request. I don't know, how to make it work like in another project.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months