Comments (16)
@DavideD I prepared a minimalistic reproducer, which doesn't involve the TS.
git clone https://github.com/fedinskiy/reproducer -b db-panache-no-update
mvn quarkus:dev
curl -X PUT http://localhost:8080/library/book/2/Around_the_World_in_Eighty_Days # fails
mvn quarkus:dev -Dquarkus.platform.version=3.10.0
$ curl -X PUT http://localhost:8080/library/book/2/Around_the_World_in_Eighty_Days # succeeds
4
$ curl -XGET http://localhost:8080/library/book/4
Around_the_World_in_Eighty_Days
There is also a test, ResourceTest
, which does the same. mvn clean test
fails, mvn clean test -Dquarkus.platform.version=3.10.0
succeeds
UPD: It also looks like, that this error affects Postgres and Oracle, but not MariaDB, MySQL, or MSSQL
from quarkus.
I guess. I will check.
from quarkus.
I have some test failures, but I see a different error.
I'm working on it
from quarkus.
/cc @DavideD (hibernate-reactive), @gavinking (hibernate-reactive)
from quarkus.
from quarkus.
Hey @DavideD , could this be a regression in Hibernate Reactive?
from quarkus.
@michalvavrik Not sure if this is related, but an association in Hibernate is supposed to be mapped in a different way than the one in the tests.
It should be:
@Entity
class Book {
...
@ManyToOne
Author author;
...
}
Is there a specific reason for the test to use just the id?
from quarkus.
I have some test failures, but I see a different error.
Sorry, it was late night, if you want adjustments to the reproduce, just shout!
Is there a specific reason for the test to use just the id?
Hey @DavideD ,
In general, we just try to identify legit cases, I don't think it is required for this particular test. So we can change this. Before we do so, I'd like to understand this is not supported / encouraged use case:
class Book {
@NotNull
private Integer author;
}
I'd think that mapping only id when I don't need to work with entity is logical. I suppose if an entity instance is lazy loaded but still contains PK (that is loaded eagerly) then I can use the entity data type instead. So people shouldn't do this but it worked (with quotes :-)) in past and now the validation is improved?
from quarkus.
It's supported in the sense that it should work for simple cases. Not encouraged.
But:
- it's not mentioned in the official Hibernate documentation
- Hibernate is not aware that that's an association, meaning that they are not covered by these tests
- users might not understand that this approach is not encouraged and copy it
That said, I don't know the requirements for this project.
And I don't think it's related to this issue, so I will move on.
from quarkus.
Sorry, I couldn't figure out why it's not working in Quarkus.
I've created a test for Hibernate Reactive and it seems to work as expected.
I couldn't really launch the test suite, when I've tried manually the validation didn't seem to work.
I think an error is happening when Hibernate is trying to initialize Validator: https://github.com/hibernate/hibernate-orm/blob/9ba0dd7af03d63dc39ce0ac8acd6688803ea0af9/hibernate-core/src/main/java/org/hibernate/boot/beanvalidation/BeanValidationIntegrator.java#L139
In theory, it should call TypeSafeActivator, but something happens before reaching that point. But the debugger couldn't tell me anything.
It's worth mentioning, that if something goes wrong with the creation of the validator factory, Hibernate won't say anything about it.
I don't think I will have more time to work on this, if somebody wants to continue.
from quarkus.
Thank you for the time you put into the investigation @DavideD .
from quarkus.
Thanks a lot! I can finally see the nullpointer and I'm trying to figure out what's going on.
from quarkus.
from quarkus.
@DavideD "debugging is a murder mystery, there you are a detective, a culprit and a victim".
Can we expect a fix during this week, or we better disable the affected tests for a while?
from quarkus.
Can we expect a fix during this week, or we better disable the affected tests for a while?
The latter. Even if @DavideD is going to work during his PTO (bad!), there's little chance the fix makes its way to a Hibernate Reactive release and a Quarkus release by the end of the week.
from quarkus.
Yes, sorry. Like Yoann said. At the moment, I can't make any promises.
from quarkus.
Related Issues (20)
- Remote development mode: RemoteSyncHandler interrupted exception
- Quarkus 3.10 doesn't load configs for profile other than the one it was used in the build phase HOT 7
- Remote development mode: out of sync application
- Micrometer performance improvements - vert.x HOT 1
- Micrometer performance improvements HOT 1
- Quarkus jctools REF_ELEMENT_SHIFT substitution conflicts with DD substitution HOT 4
- Quarkus 3.10.0 doesnt support flyway with Postgresql 16 HOT 2
- Apache Pulsar Reference Guide doc error HOT 1
- Gradle task Openapi output not correctly defined HOT 1
- Path param annotated with @Encoded are not url encoded by the quarkus-rest-client-jackson anymore HOT 5
- Dev Services for MySQL doesn't work in FIPS-enabled environment even though it could HOT 1
- Cannot inject generated grpc client in quarkus extension HOT 2
- Support profiling for quarkus-kubernetes extension .yml/.json file path HOT 1
- Support chaining Kafka Transactions with Hibernate ORM transactions HOT 3
- AWS ECS java.lang.IllegalStateException: Unable to create folder at path '/tmp/vertx-cache/1082414833831755185' HOT 4
- Quarkus bump to 3.10.0 fails to start when using flyway HOT 2
- Issue found with Brotli4J compression run in Openshift in native mode HOT 2
- WebSockets Next: make it possible to specify the close status code/reason
- WebSockets Next: close the connection if the security identity has expired
- QuarkusConfigFactory not a subtype when using Uni HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quarkus.