<?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: Problems with DbxAuthFinish in Java DropBox V 3.0.3 in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problems-with-DbxAuthFinish-in-Java-DropBox-V-3-0-3/m-p/225088#M12192</link>
    <description>&lt;P&gt;I just got the Java API from the webpage&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/releases/tag/v3.0.3" target="_self"&gt;https://github.com/dropbox/dropbox-sdk-java/releases/tag/v3.0.3&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and added the jar to my Eclipse project. Then build and configure the path's to the .jar's and compile it. Works fine just until the line marked on the stacktrace error i pasted above.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2017 21:46:33 GMT</pubDate>
    <dc:creator>pabloAlvarezmv</dc:creator>
    <dc:date>2017-06-09T21:46:33Z</dc:date>
    <item>
      <title>Problems with DbxAuthFinish in Java DropBox V 3.0.3</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problems-with-DbxAuthFinish-in-Java-DropBox-V-3-0-3/m-p/224661#M12141</link>
      <description>&lt;P&gt;Hello, when i try to connect to the Java App i've created for the first time using no redirect requesting i get a fatal error just on the DbxAuthFinish, giving me a &lt;STRONG&gt;java.lang.ExceptionInitializerError&lt;/STRONG&gt;. I checked out many times but my code is still the same as the example found in the API tutorials. Here is my code:&lt;/P&gt;&lt;PRE&gt;	String accessToken = "";
		String userLocale = null;
		DbxRequestConfig requestConfig = new DbxRequestConfig("text-edit/0.1",userLocale);
	     DbxAppInfo appInfo = new DbxAppInfo(APP_KEY,SECRET_KEY);
	     DbxWebAuth auth = new DbxWebAuth(requestConfig, appInfo);
	     DbxWebAuth.Request requestAuth = DbxWebAuth.newRequestBuilder().withNoRedirect().build(); 	
	     String authorizeUrl = auth.authorize(requestAuth);
	     System.out.println("1. Go to " + authorizeUrl);
	     System.out.println("2. Click \"Allow\" (you might have to log in first).");
	     System.out.println("3. Copy the authorization code.");
	    
		//Abrimos el enlace de autenticación del paciente en la carpeta de DropBox
		try {
			URL authenticationURL = new URL(authorizeUrl);
			Desktop.getDesktop().browse(authenticationURL.toURI());
			
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		String code = JOptionPane.showInputDialog(this.ventanaControlada, "Inserta el codigo de verificación.");
		System.out.println(code);
		code = code.trim();
		
		try {			
			 DbxAuthFinish authFinish = auth.finishFromCode(code);
	         
			accessToken = authFinish.getAccessToken();
			
		} catch (Exception e) {
		&lt;/PRE&gt;&lt;P&gt;Thanks for all, i hope you can find any response soon!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:21:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problems-with-DbxAuthFinish-in-Java-DropBox-V-3-0-3/m-p/224661#M12141</guid>
      <dc:creator>pabloAlvarezmv</dc:creator>
      <dc:date>2019-05-29T09:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with DbxAuthFinish in Java DropBox V 3.0.3</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problems-with-DbxAuthFinish-in-Java-DropBox-V-3-0-3/m-p/224705#M12144</link>
      <description>Can you share the full error/stack trace? Thanks in advance!</description>
      <pubDate>Wed, 07 Jun 2017 17:42:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problems-with-DbxAuthFinish-in-Java-DropBox-V-3-0-3/m-p/224705#M12144</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-06-07T17:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with DbxAuthFinish in Java DropBox V 3.0.3</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problems-with-DbxAuthFinish-in-Java-DropBox-V-3-0-3/m-p/224722#M12147</link>
      <description>&lt;PRE&gt;Exception in thread "main" java.lang.ExceptionInInitializerError
	at com.dropbox.core.DbxRequestUtil.buildUserAgentHeader(DbxRequestUtil.java:146)
	at com.dropbox.core.DbxRequestUtil.addUserAgentHeader(DbxRequestUtil.java:131)
	at com.dropbox.core.DbxRequestUtil.startPostRaw(DbxRequestUtil.java:228)
	at com.dropbox.core.DbxRequestUtil.startPostNoAuth(DbxRequestUtil.java:211)
	at com.dropbox.core.DbxRequestUtil$2.run(DbxRequestUtil.java:389)
	at com.dropbox.core.DbxRequestUtil.runAndRetry(DbxRequestUtil.java:434)
	at com.dropbox.core.DbxRequestUtil.doPostNoAuth(DbxRequestUtil.java:386)
	at com.dropbox.core.DbxWebAuth.finish(DbxWebAuth.java:401)
	at com.dropbox.core.DbxWebAuth.finish(DbxWebAuth.java:383)
	at com.dropbox.core.DbxWebAuth.finishFromCode(DbxWebAuth.java:295)
	at Control.ImageDropBoxController.StartFirstConnection(ImageDropBoxController.java:154)
	at Control.ImageDropBoxController.main(ImageDropBoxController.java:171)
Caused by: java.lang.RuntimeException: Error loading version from resource "sdk-version.txt": Text doesn't follow expected pattern: "${project.version}"
	at com.dropbox.core.DbxSdkVersion.loadVersion(DbxSdkVersion.java:66)
	at com.dropbox.core.DbxSdkVersion.&amp;lt;clinit&amp;gt;(DbxSdkVersion.java:17)
	... 12 more&lt;/PRE&gt;&lt;P&gt;ImageDropBoxController it's the class where im testing the connection.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 23:23:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problems-with-DbxAuthFinish-in-Java-DropBox-V-3-0-3/m-p/224722#M12147</guid>
      <dc:creator>pabloAlvarezmv</dc:creator>
      <dc:date>2017-06-07T23:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with DbxAuthFinish in Java DropBox V 3.0.3</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problems-with-DbxAuthFinish-in-Java-DropBox-V-3-0-3/m-p/224846#M12152</link>
      <description>Thanks! It looks like the contents of the sdk-version.txt file aren't in the format expected. It should be a version number, instead of "${project.version}".&lt;BR /&gt;&lt;BR /&gt;How did you install the SDK? Did you successfully build the SDK first? This value should get expanded when you do so:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java#building-from-source" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java#building-from-source&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Alternatively, you can download the built library from Gradle or Maven by specifying it as a dependency as shown here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java#setup" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java#setup&lt;/A&gt;</description>
      <pubDate>Thu, 08 Jun 2017 18:43:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problems-with-DbxAuthFinish-in-Java-DropBox-V-3-0-3/m-p/224846#M12152</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-06-08T18:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with DbxAuthFinish in Java DropBox V 3.0.3</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problems-with-DbxAuthFinish-in-Java-DropBox-V-3-0-3/m-p/225088#M12192</link>
      <description>&lt;P&gt;I just got the Java API from the webpage&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/releases/tag/v3.0.3" target="_self"&gt;https://github.com/dropbox/dropbox-sdk-java/releases/tag/v3.0.3&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and added the jar to my Eclipse project. Then build and configure the path's to the .jar's and compile it. Works fine just until the line marked on the stacktrace error i pasted above.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 21:46:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problems-with-DbxAuthFinish-in-Java-DropBox-V-3-0-3/m-p/225088#M12192</guid>
      <dc:creator>pabloAlvarezmv</dc:creator>
      <dc:date>2017-06-09T21:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with DbxAuthFinish in Java DropBox V 3.0.3</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problems-with-DbxAuthFinish-in-Java-DropBox-V-3-0-3/m-p/225089#M12193</link>
      <description>Did you add dropbox-core-sdk-3.0.3.jar or dropbox-core-sdk-3.0.3-sources.jar? You should add dropbox-core-sdk-3.0.3.jar to use the library.</description>
      <pubDate>Fri, 09 Jun 2017 21:56:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problems-with-DbxAuthFinish-in-Java-DropBox-V-3-0-3/m-p/225089#M12193</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-06-09T21:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with DbxAuthFinish in Java DropBox V 3.0.3</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problems-with-DbxAuthFinish-in-Java-DropBox-V-3-0-3/m-p/225101#M12196</link>
      <description>&lt;P&gt;Yeah, i had both of them, i removed the dropbox-core-sd-3.0.3-sources.jar and now works perfectly fine. Thanks for all!&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@8BFF634FABEFCD8860E49834D32E544B/images/emoticons/1f601.png" alt=":grin:" title=":grin:" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 22:28:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problems-with-DbxAuthFinish-in-Java-DropBox-V-3-0-3/m-p/225101#M12196</guid>
      <dc:creator>pabloAlvarezmv</dc:creator>
      <dc:date>2017-06-09T22:28:35Z</dc:date>
    </item>
  </channel>
</rss>

