<?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 Dropbox V2 API Java, Client call on Tomcat fails without any log details in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-V2-API-Java-Client-call-on-Tomcat-fails-without-any-log/m-p/169551#M6291</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;We are facing a really weird problem we can’t seem to get our head’s round. We have developed a simple Java call that will store our local files on our Dropbox account.&lt;/P&gt;
&lt;P&gt;We used the V2 API reference code as shown on &lt;A href="https://www.dropbox.com/developers/documentation/java#tutorial" rel="nofollow noreferrer" target="_blank"&gt;https://www.dropbox.com/developers/documentation/java#tutorial&lt;/A&gt; without to many changes.&lt;/P&gt;
&lt;P&gt;The communication is performed based on the App token we have generated for the app on the OAuth 2 “Generated Access Token” section.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Running the app locally works just fine without issues, we are perfectly able to upload files to the Dropbox account.&lt;/P&gt;
&lt;P&gt;However when we deploy the app to a Tomcat server to run attended on our server the process fails for no given reason.&lt;/P&gt;
&lt;P&gt;On Client call the API code is performed, skips some code (which it does not do on the local developer machine) and then simply returns without any warning or issue.&lt;/P&gt;
&lt;P&gt;No files are however uploaded.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Although we have tried lots of stuff we can’t seem to figure out what is going wrong exactly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there anybody that could point us in the right direction?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt; Tomcat 8.0&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;JDK&lt;/STRONG&gt;:&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.7_72&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;API V2:&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.0.3&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:32:48 GMT</pubDate>
    <dc:creator>Information M.</dc:creator>
    <dc:date>2019-05-29T09:32:48Z</dc:date>
    <item>
      <title>Dropbox V2 API Java, Client call on Tomcat fails without any log details</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-V2-API-Java-Client-call-on-Tomcat-fails-without-any-log/m-p/169551#M6291</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;We are facing a really weird problem we can’t seem to get our head’s round. We have developed a simple Java call that will store our local files on our Dropbox account.&lt;/P&gt;
&lt;P&gt;We used the V2 API reference code as shown on &lt;A href="https://www.dropbox.com/developers/documentation/java#tutorial" rel="nofollow noreferrer" target="_blank"&gt;https://www.dropbox.com/developers/documentation/java#tutorial&lt;/A&gt; without to many changes.&lt;/P&gt;
&lt;P&gt;The communication is performed based on the App token we have generated for the app on the OAuth 2 “Generated Access Token” section.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Running the app locally works just fine without issues, we are perfectly able to upload files to the Dropbox account.&lt;/P&gt;
&lt;P&gt;However when we deploy the app to a Tomcat server to run attended on our server the process fails for no given reason.&lt;/P&gt;
&lt;P&gt;On Client call the API code is performed, skips some code (which it does not do on the local developer machine) and then simply returns without any warning or issue.&lt;/P&gt;
&lt;P&gt;No files are however uploaded.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Although we have tried lots of stuff we can’t seem to figure out what is going wrong exactly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there anybody that could point us in the right direction?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt; Tomcat 8.0&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;JDK&lt;/STRONG&gt;:&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.7_72&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;API V2:&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.0.3&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:32:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-V2-API-Java-Client-call-on-Tomcat-fails-without-any-log/m-p/169551#M6291</guid>
      <dc:creator>Information M.</dc:creator>
      <dc:date>2019-05-29T09:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox V2 API Java, Client call on Tomcat fails without any log details</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-V2-API-Java-Client-call-on-Tomcat-fails-without-any-log/m-p/169552#M6292</link>
      <description>&lt;P&gt;Unfortunately there's not much to go on here. Can you elaborate on what you mean when you say "the process fails for no given reason". Are you basing that just on the lack a new file in your account? (Also, note that if you upload the same exact data to the same path, that won't create a new revision.)&lt;/P&gt;
&lt;P&gt;Anyway, I wouldn't expect something to fail without some error somewhere, but lacking that, I would check that the source file exists and is accessible to the process.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 01:24:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-V2-API-Java-Client-call-on-Tomcat-fails-without-any-log/m-p/169552#M6292</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-06-14T01:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox V2 API Java, Client call on Tomcat fails without any log details</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-V2-API-Java-Client-call-on-Tomcat-fails-without-any-log/m-p/169553#M6293</link>
      <description>&lt;P&gt;Hi Gregory,&lt;/P&gt;
&lt;P&gt;Thanks for the reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;During testing I've cleared the dropbox account between tests as I did notice that files wouldn't be overwritten, so this isn't the cause of our problem.&lt;/P&gt;
&lt;P&gt;During development I ran the code using a unit test. It retrieved the test file from an FTP server changed its name (adding a timestamp to prevent duplicate names) and then uploaded this file to the dropbox account. So far so good.&lt;/P&gt;
&lt;P&gt;Once I had completed the development of the required code I performed a test on a locally running tomcat 8 server. This is where the strangeness starts.&lt;/P&gt;
&lt;P&gt;The following code simply won't execute properly:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;private DbxClientV2 getDropboxClient(String authToken) throws ProcessFailedException{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;log.debug("getDropboxClient");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;try{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;//Create the Dropbox connection client&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;DbxRequestConfig config = new DbxRequestConfig("xxxxxxxxxxxxx", "nl_NL");&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;DbxClientV2 client = new DbxClientV2(config, passwordEncryptionService.decryptPassword(authToken));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;return client;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;} catch (Exception e){&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;throw new ProcessFailedException(e);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The DbxRequestConfig is created but once I try to initialize the DbxClientV2 nothing happens. No exceptions are thrown, no messages are displayed in the log. As far as I can see the call to dropbox isn't ever made.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 15:31:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-V2-API-Java-Client-call-on-Tomcat-fails-without-any-log/m-p/169553#M6293</guid>
      <dc:creator>Information M.</dc:creator>
      <dc:date>2016-06-14T15:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox V2 API Java, Client call on Tomcat fails without any log details</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-V2-API-Java-Client-call-on-Tomcat-fails-without-any-log/m-p/169554#M6294</link>
      <description>&lt;P&gt;The code you shared doesn't make an API call to Dropbox, it just creates and returns the client you would use to make calls. What do you mean it doesn't run properly?&amp;nbsp;Presumably you're calling&amp;nbsp;getDropboxClient somewhere. What gets returned?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 00:03:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-V2-API-Java-Client-call-on-Tomcat-fails-without-any-log/m-p/169554#M6294</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-06-15T00:03:54Z</dc:date>
    </item>
  </channel>
</rss>

