You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Postgres Quarkus Panache Suppressed: io.vertx.core.impl.NoStackTraceThrowable: Parameter at position[2] with class = [org.hibernate.engine.jdbc.BlobProxy] and value = [org.hibernate.engine.jdbc.BlobProxy@6949d1f3] can not be coerced to the expected class = [io.vertx.core.buffer.Buffer] for encoding.
#1944
Open
dkostakev opened this issue
Jun 23, 2024
· 4 comments
Hi,
I am new to Quarkus and Hibernate reactive. I am using it with Postgres and I am getting the following error :
Suppressed: io.vertx.core.impl.NoStackTraceThrowable: Parameter at position[2] with class = [org.hibernate.engine.jdbc.BlobProxy] and value = [org.hibernate.engine.jdbc.BlobProxy@6949d1f3] can not be coerced to the expected class = [io.vertx.core.buffer.Buffer] for encoding.
My code looks like :
I have an entity class which I define as @lob
public byte[] data;
and in database I have a column with the following definition
@ApplicationScoped
public class LogoRepository extends AbstractRepository implements PanacheRepository { ...
This exception is being thrown when calling "repository.persist(entity)".
Could you please help me resolve this issue?
The text was updated successfully, but these errors were encountered:
dkostakev
changed the title
Suppressed: io.vertx.core.impl.NoStackTraceThrowable: Parameter at position[2] with class = [org.hibernate.engine.jdbc.BlobProxy] and value = [org.hibernate.engine.jdbc.BlobProxy@6949d1f3] can not be coerced to the expected class = [io.vertx.core.buffer.Buffer] for encoding.
Postgres Quarkus Suppressed: io.vertx.core.impl.NoStackTraceThrowable: Parameter at position[2] with class = [org.hibernate.engine.jdbc.BlobProxy] and value = [org.hibernate.engine.jdbc.BlobProxy@6949d1f3] can not be coerced to the expected class = [io.vertx.core.buffer.Buffer] for encoding.
Jun 23, 2024
dkostakev
changed the title
Postgres Quarkus Suppressed: io.vertx.core.impl.NoStackTraceThrowable: Parameter at position[2] with class = [org.hibernate.engine.jdbc.BlobProxy] and value = [org.hibernate.engine.jdbc.BlobProxy@6949d1f3] can not be coerced to the expected class = [io.vertx.core.buffer.Buffer] for encoding.
Postgres Quarkus Panache Suppressed: io.vertx.core.impl.NoStackTraceThrowable: Parameter at position[2] with class = [org.hibernate.engine.jdbc.BlobProxy] and value = [org.hibernate.engine.jdbc.BlobProxy@6949d1f3] can not be coerced to the expected class = [io.vertx.core.buffer.Buffer] for encoding.
Jun 24, 2024
Hi,
I am new to Quarkus and Hibernate reactive. I am using it with Postgres and I am getting the following error :
Suppressed: io.vertx.core.impl.NoStackTraceThrowable: Parameter at position[2] with class = [org.hibernate.engine.jdbc.BlobProxy] and value = [org.hibernate.engine.jdbc.BlobProxy@6949d1f3] can not be coerced to the expected class = [io.vertx.core.buffer.Buffer] for encoding.
My code looks like :
I have an entity class which I define as
@lob
public byte[] data;
and in database I have a column with the following definition
data BYTEA NOT NULL
I am using Quarkus version 3.1.0.Final
with dependency management :
<dependencyManagement> <dependencies> <dependency> <groupId>${quarkus.platform.group-id}</groupId> <artifactId>${quarkus.platform.artifact-id}</artifactId> <version>${quarkus.platform.version}</version> <type>pom</type> <scope>import</scope> </dependency>
The repository is defined as :
@ApplicationScoped
public class LogoRepository extends AbstractRepository implements PanacheRepository { ...
This exception is being thrown when calling "repository.persist(entity)".
Could you please help me resolve this issue?
The text was updated successfully, but these errors were encountered: