<?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: Server error when attaching large blob file in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/server-error-when-attaching-large-blob-file/m-p/313278#M279</link>
    <description>&lt;P&gt;Do the same file uploads work correctly via the Nuxeo user interface?&lt;/P&gt;</description>
    <pubDate>Tue, 06 May 2014 20:36:56 GMT</pubDate>
    <dc:creator>Steven_Huwig1</dc:creator>
    <dc:date>2014-05-06T20:36:56Z</dc:date>
    <item>
      <title>Server error when attaching large blob file</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/server-error-when-attaching-large-blob-file/m-p/313275#M276</link>
      <description>&lt;P&gt;This is the error message that I get when attaching large blob file in a Document.&lt;/P&gt;
&lt;P&gt;02:01:12.922 [main] DEBUG o.a.h.i.conn.DefaultClientConnection - Connection 0.0.0.0:41419&amp;lt;-&amp;gt;10.30.10.175:8080 closed
02:01:12.922 [main] DEBUG o.a.h.i.c.PoolingClientConnectionManager - Connection released: [id: 3][route: {}-&amp;gt;http://10.30.10.175:8080][total kept alive: 0; route allocated: 0 of 2; total allocated: 0 of 20]
02:01:12.922 [main] INFO  tv.migo.transcode.util.RESTUtils - org.nuxeo.ecm.automation.client.RemoteException: Server Error
02:01:12.922 [main] INFO  tv.migo.transcode.util.RESTUtils - uploading failed.&lt;/P&gt;
&lt;P&gt;This is my code from &lt;A href="http://doc.nuxeo.com/display/NXDOC56/Using+Nuxeo+Automation+Client" target="test_blank"&gt;http://doc.nuxeo.com/display/NXDOC56/Using+Nuxeo+Automation+Client&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;HttpAutomationClient automationClient = new HttpAutomationClient("http://10.30.10.175:8080/nuxeo/site/automation");
Session session = automationClient.getSession("Administrator", "Administrator");&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;	try {
		// Get The Root
		Document root = (Document) session.newRequest("Document.Fetch").set("value", destinationPath).execute();

		// Create a File Document
		Document documentFolder = (Document) session.newRequest("Document.Create").setInput(root).set("type", "asset").set("name", filename)
				.set("properties", "dc:title=" + TRANSCODED_DIR).execute();
		// Create a File Document
		Document document = (Document) session.newRequest("Document.Create").setInput(documentFolder).set("type", "File").set("name", filename)
				.set("properties", "dc:title=" + filename).execute();

		// Upload The file
		FileBlob fb = new FileBlob(file);
		fb.setMimeType("text/xml");
		// uploading a file will return null since we used HEADER_NX_VOIDOP
		session.newRequest("Blob.Attach").setHeader(Constants.HEADER_NX_VOIDOP, "true").setInput(fb).set("document", document.getPath()).execute();

		logger.info("Done!");
		automationClient.shutdown();
		logger.info("uploading success");
		return document;
	} catch (Exception e) {
		logger.info(e.toString());
	}
	logger.info("uploading failed.");
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This code works on smaller size file. I'm wondering if its the Connection-keep-alive should be set true. But how do I do that on Automation Client?&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2014 05:30:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/server-error-when-attaching-large-blob-file/m-p/313275#M276</guid>
      <dc:creator>marlon1300_</dc:creator>
      <dc:date>2014-05-01T05:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Server error when attaching large blob file</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/server-error-when-attaching-large-blob-file/m-p/313276#M277</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2014 14:14:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/server-error-when-attaching-large-blob-file/m-p/313276#M277</guid>
      <dc:creator>Vladimir_Pasqui</dc:creator>
      <dc:date>2014-05-05T14:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Server error when attaching large blob file</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/server-error-when-attaching-large-blob-file/m-p/313277#M278</link>
      <description>&lt;P&gt;5.9.3 is the version. Tomcat is the server used.&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2014 08:12:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/server-error-when-attaching-large-blob-file/m-p/313277#M278</guid>
      <dc:creator>marlon1300_</dc:creator>
      <dc:date>2014-05-06T08:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Server error when attaching large blob file</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/server-error-when-attaching-large-blob-file/m-p/313278#M279</link>
      <description>&lt;P&gt;Do the same file uploads work correctly via the Nuxeo user interface?&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2014 20:36:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/server-error-when-attaching-large-blob-file/m-p/313278#M279</guid>
      <dc:creator>Steven_Huwig1</dc:creator>
      <dc:date>2014-05-06T20:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Server error when attaching large blob file</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/server-error-when-attaching-large-blob-file/m-p/313279#M280</link>
      <description>&lt;P&gt;Yes. The web gui works. I can also upload small size files via blob attach in automation client.&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2014 03:20:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/server-error-when-attaching-large-blob-file/m-p/313279#M280</guid>
      <dc:creator>marlon1300_</dc:creator>
      <dc:date>2014-05-07T03:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Server error when attaching large blob file</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/server-error-when-attaching-large-blob-file/m-p/313280#M281</link>
      <description>&lt;P&gt;Weird. If you change &lt;CODE&gt;logger.info(e.toString());&lt;/CODE&gt; in your error handler to print the entire stacktrace and original exception, maybe the cause will be more clear. Really the try/catch does nothing for you in this snippet, so an alternative to printing the whole trace is to just remove the try/catch.&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2014 15:42:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/server-error-when-attaching-large-blob-file/m-p/313280#M281</guid>
      <dc:creator>Steven_Huwig1</dc:creator>
      <dc:date>2014-05-07T15:42:07Z</dc:date>
    </item>
  </channel>
</rss>

