[
https://jira.nuxeo.com/browse/NXP-7990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benoit Delbosc resolved NXP-7990.
---------------------------------
Resolution: Fixed
Fix Version/s: 5.5
Fixed, the input stream must be open during the ps.execute().
http://hg.nuxeo.org/addons/nuxeo-core-binarymanager-sql/rev/0bb9ab29ab70
> Addon nuxeo-corebinarymanager-sql does not work with PostgreSQL
> ---------------------------------------------------------------
>
> Key: NXP-7990
> URL: https://jira.nuxeo.com/browse/NXP-7990
> Project: Nuxeo Enterprise Platform
> Issue Type: Bug
> Components: Core SQL Storage
> Affects Versions: 5.5-SNAPSHOT
> Environment: PostgreSQL may be other db
> Reporter: Benoit Delbosc
> Assignee: Benoit Delbosc
> Fix For: 5.5
>
>
> When saving a document
> {code}
> org.nuxeo.ecm.core.api.ClientException: Failed to save document
> DocumentModelImpl(d4340eea-48db-41ce-8cbc-67376fcd304f, path=/myfile,
> title=myfile)
> at
> org.nuxeo.ecm.core.api.AbstractSession.saveDocument(AbstractSession.java:1945)
> at
> org.nuxeo.ecm.core.storage.sql.TestSQLBinaryManager.testSQLBinaryManager(TestSQLBinaryManager.java:148)
> ...
> Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception:
> org.nuxeo.ecm.core.storage.StorageException. message: java.io.IOException:
> org.postgresql.util.PSQLException: Incapable de lier les valeurs des
> paramètres pour la commande.
> at
> org.nuxeo.ecm.core.storage.sql.SessionImpl.getBinary(SessionImpl.java:261)
> at
> org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.getBinary(SQLSession.java:703)
> ... 26 more
> ...
> Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception:
> java.io.IOException. message: Bad file descriptor
> at java.io.FileInputStream.readBytes(Native Method)
> at java.io.FileInputStream.read(FileInputStream.java:199)
> at org.postgresql.core.PGStream.SendStream(PGStream.java:493)
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets