Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Usage of bytea #36

Closed
smahad786 opened this issue Feb 22, 2020 · 1 comment
Closed

Question: Usage of bytea #36

smahad786 opened this issue Feb 22, 2020 · 1 comment

Comments

@smahad786
Copy link

I tried to use AbstractMapping with bytea and I got this error. I am able to create pgConnection and I used a simple Java object with UUID and byte[]. I used mapByteArray and I get this error.

Exception in thread "main" org.postgresql.util.PSQLException: ERROR: syntax error at or near ")"
Position: 28
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2510)
at org.postgresql.core.v3.QueryExecutorImpl.processCopyResults(QueryExecutorImpl.java:1172)
at org.postgresql.core.v3.QueryExecutorImpl.startCopy(QueryExecutorImpl.java:881)
at org.postgresql.copy.CopyManager.copyIn(CopyManager.java:44)
at org.postgresql.copy.PGCopyOutputStream.(PGCopyOutputStream.java:45)
at de.bytefish.pgbulkinsert.PgBulkInsert.saveAll(PgBulkInsert.java:54)
at com.aexp.rtf.active.bootstrap.PostGresProvenanceSourceTest.bulkInsertEventStateData(PostGresProvenanceSourceTest.java:135)
at com.aexp.rtf.active.bootstrap.PostGresProvenanceSourceTest.main(PostGresProvenanceSourceTest.java:50)
Suppressed: de.bytefish.pgbulkinsert.exceptions.BinaryWriteFailedException: java.lang.NullPointerException
at de.bytefish.pgbulkinsert.pgsql.PgBinaryWriter.close(PgBinaryWriter.java:174)
at de.bytefish.pgbulkinsert.PgBulkInsert.saveAll(PgBulkInsert.java:58)
... 2 more
Caused by: java.lang.NullPointerException
at de.bytefish.pgbulkinsert.pgsql.PgBinaryWriter.close(PgBinaryWriter.java:169)
... 3 more

@smahad786
Copy link
Author

fixed it. sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant