<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: a Picture upload error in 5.8 HF05 in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/a-picture-upload-error-in-5-8-hf05/m-p/326133#M13134</link>
    <description>&lt;P&gt;I updated the original question with your stack trace. Please don't use the answers section to post things that are not answers.&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jan 2014 19:29:18 GMT</pubDate>
    <dc:creator>Florent_Guillau</dc:creator>
    <dc:date>2014-01-31T19:29:18Z</dc:date>
    <item>
      <title>a Picture upload error in 5.8 HF05</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/a-picture-upload-error-in-5-8-hf05/m-p/326131#M13132</link>
      <description>&lt;P&gt;After the picture upload there is no preview of it. In the logfile is recorded:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;2014-01-31 18:26:30,701 WARN  [Transaction] Error ending association for XAResource org.apache.geronimo.transaction.manager.WrapperNamedXAResource@4e3d3e45; transaction will roll back. XA error code: -3
javax.transaction.xa.XAException
...&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Caused by: org.nuxeo.ecm.core.storage.StorageException: Could not insert: INSERT INTO "image_metadata" ("id", "icc_profile", "white_balance", "pixel_xdimension", "yresolution", "copyright", "color_space", "date_time_original", "orientation", "xresolution", "user_comment", "image_description", "pixel_ydimension", "iso_speed_ratings", "equipment", "fnumber", "focal_length", "exposure_time") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCRowMapper.insertSimpleRows(JDBCRowMapper.java:606)
...&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Caused by: java.sql.BatchUpdateException: Batch entry 0 INSERT INTO "image_metadata" ("id", "icc_profile", "white_balance", "pixel_xdimension", "yresolution", "copyright", "color_space", "date_time_original", "orientation", "xresolution", "user_comment", "image_description", "pixel_ydimension", "iso_speed_ratings", "equipment", "fnumber", "focal_length", "exposure_time") VALUES ('c85a74b1-f253-441e-bdcf-d440a2aef14f', NULL, 'auto', 3264, 72, NULL, 'SRGB', '2014-01-31 10:43:44.000000 +01:00:00', 'TOP_LEFT', 72, 'KJKJAKJKJAdz?ecuteBatch(AbstractJdbc2Statement.java:2893)
at org.apache.tomcat.dbcp.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)
at org.apache.tomcat.dbcp.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)
at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCRowMapper.insertSimpleRows(JDBCRowMapper.java:590)
... 20 more&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Caused by: org.postgresql.util.PSQLException: ERROR: invalid byte sequence for encoding "UTF8": 0x00
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2157)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1886)
... 25 more&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 31 Jan 2014 16:10:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/a-picture-upload-error-in-5-8-hf05/m-p/326131#M13132</guid>
      <dc:creator>adam_bo_</dc:creator>
      <dc:date>2014-01-31T16:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: a Picture upload error in 5.8 HF05</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/a-picture-upload-error-in-5-8-hf05/m-p/326132#M13133</link>
      <description>&lt;P&gt;The stack trace is incomplete at the end, we're missing a detailed cause.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 16:23:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/a-picture-upload-error-in-5-8-hf05/m-p/326132#M13133</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2014-01-31T16:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: a Picture upload error in 5.8 HF05</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/a-picture-upload-error-in-5-8-hf05/m-p/326133#M13134</link>
      <description>&lt;P&gt;I updated the original question with your stack trace. Please don't use the answers section to post things that are not answers.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 19:29:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/a-picture-upload-error-in-5-8-hf05/m-p/326133#M13134</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2014-01-31T19:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: a Picture upload error in 5.8 HF05</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/a-picture-upload-error-in-5-8-hf05/m-p/326134#M13135</link>
      <description>&lt;P&gt;The cause is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;ERROR: invalid byte sequence for encoding "UTF8": 0x00
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So one of the strings that is passed contains a U+0000 character, which PostgreSQL forbids. Which string exactly is difficult to determine using just the logs, but it seems to be the EXIF UserComment field that contains garbage&lt;/P&gt;
&lt;P&gt;We'll see if the strings can be sanitized a bit before being saved into the Nuxeo document. I opened &lt;A href="https://jira.nuxeo.com/browse/NXP-13682"&gt;NXP-13682&lt;/A&gt; for this. If possible please attach to that ticket an example image for which the problem occurs (if the image can be freely distributed — if not, please send it by email to me, fg@nuxeo.com).&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 19:48:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/a-picture-upload-error-in-5-8-hf05/m-p/326134#M13135</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2014-01-31T19:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: a Picture upload error in 5.8 HF05</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/a-picture-upload-error-in-5-8-hf05/m-p/326135#M13136</link>
      <description>&lt;P&gt;I will send it by email&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 21:33:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/a-picture-upload-error-in-5-8-hf05/m-p/326135#M13136</guid>
      <dc:creator>adam_bo_</dc:creator>
      <dc:date>2014-01-31T21:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: a Picture upload error in 5.8 HF05</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/a-picture-upload-error-in-5-8-hf05/m-p/326136#M13137</link>
      <description>&lt;P&gt;The User-Comment metadata can be a binary. There is already an issue tracking that&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 22:09:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/a-picture-upload-error-in-5-8-hf05/m-p/326136#M13137</guid>
      <dc:creator>Thomas_Roger</dc:creator>
      <dc:date>2014-01-31T22:09:05Z</dc:date>
    </item>
  </channel>
</rss>

