<?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: ZipException in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ZipException/m-p/405517#M22063</link>
    <description>&lt;P&gt;Thanks for the report! I just tried this and it's working properly for me, so we'll need to investigate this further. Can you let me know:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;what operating system and version are you seeing this with?&lt;/LI&gt;
&lt;LI&gt;what version of Java are you seeing this with?&lt;/LI&gt;
&lt;LI&gt;what version of the&amp;nbsp;Dropbox Java SDK&amp;nbsp;are you seeing this with?&lt;/LI&gt;
&lt;LI&gt;how did you install the&amp;nbsp;Dropbox Java SDK?&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Tue, 31 Mar 2020 15:07:02 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-03-31T15:07:02Z</dc:date>
    <item>
      <title>ZipException</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ZipException/m-p/405417#M22061</link>
      <description>&lt;P&gt;Using literally exactly the same code as on the GitHub tutorial, I get a ZipException whenever I try to call a method with client.files().&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DbxRequestConfig config = DbxRequestConfig.newBuilder("Greysia Bot").build();
DbxClientV2 client = new DbxClientV2(config, ACCESS_TOKEN);
ListFolderResult result = client.files().listFolder("");&lt;/PRE&gt;&lt;PRE&gt;[01:48:22] [Thread-37/WARN]: Caused by: java.lang.RuntimeException: Error loading from "/com/dropbox/core/trusted-certs.raw": invalid stored block lengths
[01:48:22] [Thread-37/WARN]:    at com.dropbox.core.util.LangUtil.mkAssert(LangUtil.java:15)
[01:48:22] [Thread-37/WARN]:    at com.dropbox.core.http.SSLConfig.loadKeyStore(SSLConfig.java:347)
[01:48:22] [Thread-37/WARN]:    at com.dropbox.core.http.SSLConfig.createTrustManager(SSLConfig.java:214)
[01:48:22] [Thread-37/WARN]:    at com.dropbox.core.http.SSLConfig.&amp;lt;clinit&amp;gt;(SSLConfig.java:60)
[01:48:22] [Thread-37/WARN]:    ... 12 more
[01:48:22] [Thread-37/WARN]: Caused by: java.util.zip.ZipException: invalid stored block lengths
[01:48:22] [Thread-37/WARN]:    at java.util.zip.InflaterInputStream.read(Unknown Source)
[01:48:22] [Thread-37/WARN]:    at java.util.zip.InflaterInputStream.read(Unknown Source)
[01:48:22] [Thread-37/WARN]:    at java.io.FilterInputStream.read(Unknown Source)
[01:48:22] [Thread-37/WARN]:    at java.io.DataInputStream.readUnsignedShort(Unknown Source)
[01:48:22] [Thread-37/WARN]:    at com.dropbox.core.http.SSLConfig.deserializeCertificates(SSLConfig.java:396)
[01:48:22] [Thread-37/WARN]:    at com.dropbox.core.http.SSLConfig.loadKeyStore(SSLConfig.java:375)
[01:48:22] [Thread-37/WARN]:    at com.dropbox.core.http.SSLConfig.loadKeyStore(SSLConfig.java:341)
[01:48:22] [Thread-37/WARN]:    ... 14 more&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Mar 2020 06:50:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ZipException/m-p/405417#M22061</guid>
      <dc:creator>Visualizeding</dc:creator>
      <dc:date>2020-03-31T06:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: ZipException</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ZipException/m-p/405517#M22063</link>
      <description>&lt;P&gt;Thanks for the report! I just tried this and it's working properly for me, so we'll need to investigate this further. Can you let me know:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;what operating system and version are you seeing this with?&lt;/LI&gt;
&lt;LI&gt;what version of Java are you seeing this with?&lt;/LI&gt;
&lt;LI&gt;what version of the&amp;nbsp;Dropbox Java SDK&amp;nbsp;are you seeing this with?&lt;/LI&gt;
&lt;LI&gt;how did you install the&amp;nbsp;Dropbox Java SDK?&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 31 Mar 2020 15:07:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ZipException/m-p/405517#M22063</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-03-31T15:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: ZipException</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ZipException/m-p/405593#M22065</link>
      <description>&lt;UL&gt;&lt;LI&gt;I'm using the Windows 10 operating system, it should be the latest version of it.&lt;/LI&gt;&lt;LI&gt;Java Version:&amp;nbsp;1.8.0_151 (according to Eclipse)&lt;/LI&gt;&lt;LI&gt;I'm using the Dropbox SDK core version 3.1.3.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;I'm using Maven, to use the SDK as a dependency in my project.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I've attempted to fix this various ways by:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Creating a new account (then creating a new app in the app console)&lt;/LI&gt;&lt;LI&gt;Regenerating the access token&lt;/LI&gt;&lt;LI&gt;Deleting dropbox from my local repository&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Also, I'm getting this exception just before the ZipException&lt;/P&gt;&lt;PRE&gt;java.lang.ExceptionInInitializerError: null
        at com.dropbox.core.http.StandardHttpRequestor.prepRequest(StandardHttpRequestor.java:213) ~[?:?]
        at com.dropbox.core.http.StandardHttpRequestor.startPost(StandardHttpRequestor.java:71) ~[?:?]
        at com.dropbox.core.http.StandardHttpRequestor.startPost(StandardHttpRequestor.java:29) ~[?:?]
        at com.dropbox.core.DbxRequestUtil.startPostRaw(DbxRequestUtil.java:276) ~[?:?]
        at com.dropbox.core.v2.DbxRawClientV2$1.execute(DbxRawClientV2.java:146) ~[?:?]
        at com.dropbox.core.v2.DbxRawClientV2.executeRetriable(DbxRawClientV2.java:330) ~[?:?]
        at com.dropbox.core.v2.DbxRawClientV2.executeRetriableWithRefresh(DbxRawClientV2.java:351) ~[?:?]
        at com.dropbox.core.v2.DbxRawClientV2.rpcStyle(DbxRawClientV2.java:137) ~[?:?]
        at com.dropbox.core.v2.files.DbxUserFilesRequests.listFolder(DbxUserFilesRequests.java:2082) ~[?:?]
        at com.dropbox.core.v2.files.DbxUserFilesRequests.listFolder(DbxUserFilesRequests.java:2132) ~[?:?]&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Mar 2020 19:19:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ZipException/m-p/405593#M22065</guid>
      <dc:creator>Visualizeding</dc:creator>
      <dc:date>2020-03-31T19:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: ZipException</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ZipException/m-p/405623#M22071</link>
      <description>&lt;P&gt;Thanks! That should all be fine. I just tried Dropbox Java SDK v3.1.3 loaded by Maven with Java 1.8 in Eclipse on Windows and it worked for me, so there must be something more specific causing this.&lt;/P&gt;
&lt;P&gt;The account, app registration, and access token likely shouldn't matter here, as it looks like the app is failing to connect to the&amp;nbsp;Dropbox servers, before any of that would be validated (which happens on the server).&lt;/P&gt;
&lt;P&gt;Instead, the issue is with preparing the request, when the SDK reads the file that contains the trusted certificates for the&amp;nbsp;Dropbox API server TLS configuration.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any special setup in your project that may be interfering with loading a local resource like that?&lt;/P&gt;
&lt;P&gt;Also, does &lt;A href="https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/tutorial" target="_self"&gt;the "Tutorial Example"&lt;/A&gt; work for you? That uses Gradle, so that would be a good test to see if the installation method makes a difference. If that does work, you can try switching that to Maven to see if the issue then reproduces.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 21:04:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ZipException/m-p/405623#M22071</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-03-31T21:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: ZipException</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ZipException/m-p/405628#M22072</link>
      <description>&lt;P&gt;Hi, switching to Maven, on that tutorial class, worked perfectly. I'm actually writing a plugin for a minecraft server. That is probably what is causing the issue and interfering with it. I'll try and find a way to get it to work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 21:17:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ZipException/m-p/405628#M22072</guid>
      <dc:creator>Visualizeding</dc:creator>
      <dc:date>2020-03-31T21:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: ZipException</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ZipException/m-p/405866#M22075</link>
      <description>&lt;P&gt;I see, thanks for the additional context. It sounds like there is something about that environment that is interfering then. Unfortunately we can't provide support or guidance for working in a plugin like that though. Apologies I can't be of more help in that regard!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 15:40:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ZipException/m-p/405866#M22075</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-01T15:40:12Z</dc:date>
    </item>
  </channel>
</rss>

