Coder Social home page Coder Social logo

Comments (11)

quarkus-bot avatar quarkus-bot commented on June 20, 2024

/cc @Karm (mandrel), @galderz (mandrel), @zakkak (mandrel)

from quarkus.

Serkan80 avatar Serkan80 commented on June 20, 2024

I also noticed this yesterday.

After bumping postgres to 42.7.1, we got errors with setting blobs. Now, I've downgraded to 42.6.1.

The problem is also present in 42.7.0.

from quarkus.

gsmet avatar gsmet commented on June 20, 2024

@jedla97 do you have any idea why the core tests didn't catch it? I checked the PR, the tests were executed and I don't see them failing with this issue.

from quarkus.

gsmet avatar gsmet commented on June 20, 2024

/cc @zakkak

from quarkus.

gsmet avatar gsmet commented on June 20, 2024

@zakkak creating a RuntimeReinitializedClassBuildItem for https://github.com/pgjdbc/pgjdbc/pull/3082/files#diff-4a86a9f2f0d5eef4636059fe34d7510c3ea493c87cee72d4e438916d3354d753R31-R33 should work, right?

from quarkus.

jedla97 avatar jedla97 commented on June 20, 2024

do you have any idea why the core tests didn't catch it? I checked the PR, the tests were executed and I don't see them failing with this issue.

@gsmet sorry not at the moment I tried create simple reproducer but wasn't able. But we have this issue only in Narayana modul so I think that can be reason why it was not catched because all other sql module passing without fail.

from quarkus.

gsmet avatar gsmet commented on June 20, 2024

@Serkan80 are you sure it's the same error? I would be surprised if blobs were using a password util. What's your error exactly?

from quarkus.

zakkak avatar zakkak commented on June 20, 2024

@zakkak creating a RuntimeReinitializedClassBuildItem for https://github.com/pgjdbc/pgjdbc/pull/3082/files#diff-4a86a9f2f0d5eef4636059fe34d7510c3ea493c87cee72d4e438916d3354d753R31-R33 should work, right?

Yes, that should do the trick.

from quarkus.

gsmet avatar gsmet commented on June 20, 2024

@jedla97 could you check if #38958 fixes the issue for you?

from quarkus.

jedla97 avatar jedla97 commented on June 20, 2024

@gsmet I tested it and it's working. Thanks for quick fix!

from quarkus.

Serkan80 avatar Serkan80 commented on June 20, 2024

@gsmet

this is the error I get in my integration test, when I update to 42.7.1:

java.lang.NegativeArraySizeException: -1
at org.postgresql.jdbc.PgPreparedStatement.createBlob(PgPreparedStatement.java:1236)
at org.postgresql.jdbc.PgPreparedStatement.setBlob(PgPreparedStatement.java:1261)
at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.setBlob(HikariProxyPreparedStatement.java)
at org.hibernate.type.descriptor.sql.BlobTypeDescriptor$4$1.doBind(BlobTypeDescriptor.java:132)
at org.hibernate.type.descriptor.sql.BasicBinder.bind(BasicBinder.java:73)
at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:276)

There is something breaking in the 42.7.x version of postgresql driver, when I switch back to 42.6.x, then the error is gone.

from quarkus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.