[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:
---------------------------------------
The one you just attached still contains the validation-api jar AFAICS.
With a scope {{provided}} validation-api dependency, it should not.
> 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 updated WFLY-10752:
-----------------------------------
Attachment: bvbug-1.0-SNAPSHOT.war
> 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 Guillaume Smet (JIRA)
[ https://issues.jboss.org/browse/WFLY-10752?page=com.atlassian.jira.plugin... ]
Guillaume Smet commented on WFLY-10752:
---------------------------------------
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
[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:
----------------------------------------
Same error
> 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.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:
---------------------------------------
Taking a look at the war, I think the issue is that you provide a validation-api jar in the war. I suspect it is in conflict with the one provided by WildFly.
Could you change your Bean Validation dependency to {{provided}} so that the validation-api jar is not included in the war and see how it goes?
> 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.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:
----------------------------------------
[~guillaume.smet] see update
> 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.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 updated WFLY-10752:
-----------------------------------
Description:
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.
was:
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)
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.
> 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.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 updated WFLY-10752:
-----------------------------------
Description:
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)
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.
was:
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)
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.
> 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.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)
> 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 updated WFLY-10752:
-----------------------------------
Description:
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)
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.
was:
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)
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.
> 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.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)
> 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 updated WFLY-10752:
-----------------------------------
Description:
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)
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.
was:
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.
> 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.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)
> 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