<?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: Android, uploadBuilder, IllegalArgumentException: Value is null in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Android-uploadBuilder-IllegalArgumentException-Value-is-null/m-p/242344#M13518</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/182059"&gt;@afritz a.&lt;/a&gt;&amp;nbsp;Is that definitely the exact code that is triggering this error? The code shows you using&amp;nbsp;the "overwrite" write mode, but the error mentions the "update" write mode instead.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&amp;nbsp;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;I will check this but have to ask the customer about a Setting. I will tell you.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2017 21:32:59 GMT</pubDate>
    <dc:creator>afritz a.</dc:creator>
    <dc:date>2017-09-19T21:32:59Z</dc:date>
    <item>
      <title>Android, uploadBuilder, IllegalArgumentException: Value is null</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Android-uploadBuilder-IllegalArgumentException-Value-is-null/m-p/242327#M13515</link>
      <description>&lt;P&gt;I have an App named "Android Outliner" with DropBox Api2 integration. One of my customers has an issue while trying to upload a file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;fileMetadata = dbxClientV2       &lt;BR /&gt;       .files()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .uploadBuilder("/" + dropboxDir + "/" + file.getName())&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .withAutorename(false)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .withMode(WriteMode.OVERWRITE)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .withMute(false)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .uploadAndFinish(fileInputStream);&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Dropbox: upload file ... treepad Infoca.hjt
Dropbox: Something else went wrong while uploading.
java.lang.IllegalArgumentException: Value is null
        at com.dropbox.core.v2.files.WriteMode.com.dropbox.core.v2.files.WriteMode update(java.lang.String)(SourceFile:170)
        at at.ff.util.Util.java.lang.String uploadFileToDropbox(android.content.Context,java.lang.String,java.lang.String,java.io.File,java.lang.String,java.lang.String)(SourceFile:745)
        at at.ff.outliner.SyncTreepad.boolean exportSync(long,java.util.ArrayList)(SourceFile:414)
        at at.ff.outliner.ActivityList.boolean saveState(boolean)(SourceFile:2667)
        at at.ff.outliner.ActivityList$SaveStateTask.java.lang.Boolean doInBackground(java.lang.Void[])(SourceFile:2896)
        at at.ff.outliner.ActivityList$SaveStateTask.java.lang.Object doInBackground(java.lang.Object[])(SourceFile:2848)
        at android.os.AsyncTask$2.call(AsyncTask.java:295)
        at java.util.concurrent.FutureTask.run(FutureTask.java:237)
        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
        at java.lang.Thread.run(Thread.java:818)
export sync: upload to Dropbox failed null /storage/emulated/0/outliner/sync/treepad/Infoca.hjt&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Creating of folders within the "apps" folder works, just uploading files fails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This happens, even if the user tries with an other dropbox account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Usually the App-folder, which Outliner is allowed to access, always is&lt;/P&gt;&lt;P&gt;"Apps/outliner".&lt;/P&gt;&lt;P&gt;In the case of this customer it is&lt;/P&gt;&lt;P&gt;"Aplicaciones/outliner".&lt;/P&gt;&lt;P&gt;This is also the folder where Outliner successfully created the subfolders.&lt;/P&gt;&lt;P&gt;The customer's Android Settings as well as the Application language is spanish.&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH bkL"&gt;&lt;DIV class="no"&gt;&lt;DIV class="nH bkK nn"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH ar4 z"&gt;&lt;DIV&gt;&lt;DIV class="AO"&gt;&lt;DIV class="Tm aeJ"&gt;The customer also told me that he uses a Linux desktop with a Dropbox client.&lt;BR /&gt;&lt;DIV class="aeF"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH"&gt;&lt;DIV class="nH g"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="Tm aeJ"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 May 2019 09:19:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Android-uploadBuilder-IllegalArgumentException-Value-is-null/m-p/242327#M13515</guid>
      <dc:creator>afritz a.</dc:creator>
      <dc:date>2019-05-29T09:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Android, uploadBuilder, IllegalArgumentException: Value is null</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Android-uploadBuilder-IllegalArgumentException-Value-is-null/m-p/242341#M13517</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/182059"&gt;@afritz a.&lt;/a&gt;&amp;nbsp;Is that definitely the exact code that is triggering this error? The code shows you using&amp;nbsp;the "overwrite" write mode, but the error mentions the "update" write mode instead.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, for reference, the "/Apps" folder name is localized based on the user's account language, but this doesn't affect the API behavior, as app's with the app folder permission don't need to know that app folder root path. The API automatically converts&amp;nbsp;the root path for these apps to be the app folder on the backend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 21:19:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Android-uploadBuilder-IllegalArgumentException-Value-is-null/m-p/242341#M13517</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-09-19T21:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Android, uploadBuilder, IllegalArgumentException: Value is null</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Android-uploadBuilder-IllegalArgumentException-Value-is-null/m-p/242344#M13518</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/182059"&gt;@afritz a.&lt;/a&gt;&amp;nbsp;Is that definitely the exact code that is triggering this error? The code shows you using&amp;nbsp;the "overwrite" write mode, but the error mentions the "update" write mode instead.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&amp;nbsp;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;I will check this but have to ask the customer about a Setting. I will tell you.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 21:32:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Android-uploadBuilder-IllegalArgumentException-Value-is-null/m-p/242344#M13518</guid>
      <dc:creator>afritz a.</dc:creator>
      <dc:date>2017-09-19T21:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Android, uploadBuilder, IllegalArgumentException: Value is null</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Android-uploadBuilder-IllegalArgumentException-Value-is-null/m-p/242357#M13519</link>
      <description>&lt;P&gt;Thanks. For example, I was able to reproduce this using:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;.withMode(WriteMode.update(null))&lt;/PRE&gt;
&lt;P&gt;The value passed in to &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/WriteMode.html#update-java.lang.String-" target="_self"&gt;WriteMode.update&lt;/A&gt; should be the 'rev' value, not null.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 00:22:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Android-uploadBuilder-IllegalArgumentException-Value-is-null/m-p/242357#M13519</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-09-20T00:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Android, uploadBuilder, IllegalArgumentException: Value is null</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Android-uploadBuilder-IllegalArgumentException-Value-is-null/m-p/242726#M13549</link>
      <description>&lt;P&gt;You were completely right, Greg. The user's setting told me that the called code was this one instead of the one I told you in the first post:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;fileMetadata = dbxClientV2
      .files()
      .uploadBuilder("/" + dropboxDir + "/" + file.getName())
      .withAutorename(true)
      .withMode(WriteMode.update(oldRevision))
      .withMute(false)
      .uploadAndFinish(fileInputStream);
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did not cleanup everything correctly after the user changed his sync method from another provider to DropBox and did send a wrong oldRevision.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the quick feedback and the accurate suggestion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 20:18:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Android-uploadBuilder-IllegalArgumentException-Value-is-null/m-p/242726#M13549</guid>
      <dc:creator>afritz a.</dc:creator>
      <dc:date>2017-09-21T20:18:23Z</dc:date>
    </item>
  </channel>
</rss>

