Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Information M.
10 years agoNew member | Level 1
Dropbox V2 API Java, Client call on Tomcat fails without any log details
Hi All,
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.
We used the V2 API...
Information M.
10 years agoNew member | Level 1
Hi Gregory,
Thanks for the reply.
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.
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.
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.
The following code simply won't execute properly:
private DbxClientV2 getDropboxClient(String authToken) throws ProcessFailedException{
log.debug("getDropboxClient");
try{
//Create the Dropbox connection client
DbxRequestConfig config = new DbxRequestConfig("xxxxxxxxxxxxx", "nl_NL");
DbxClientV2 client = new DbxClientV2(config, passwordEncryptionService.decryptPassword(authToken));
return client;
} catch (Exception e){
throw new ProcessFailedException(e);
}
}
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.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!