Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Well, after a couple of beers and alot of headache, I was able to solve my own problem. I found the <a href="https://github.com/paypal/sdk-core-java/blob/master/src/main/java/com/paypal/sdk/util/ResourceLoader.java">source code for the ResourceLoader object of the paypal core</a> thats being called by the OAuthTokenCredential object to load the sdk_config.properties file. I copied and pasted the ResourceLoader code into my code and ran it to see what it was doing. So basically the ResourceLoader object looks for the sdk_config.properties file on the classpath -- <em>and I use that term loosely because it's not actually checking the classpath of the project which is why it can't find the file</em> -- but it also looks for the .properties file to be in the base package of the project. So I solved the problem by moving the sdk_config.properties file to the base package of the project (meaning I put it directly under the src folder). Now it works!!! </p> <p><strong>Silly piece of Paypal code... Y would something so critical to the processing of payments be hard coded in such a loose way. If there's a paypal developer out there listening, I recommend updating the code to allow the location of the .properties file to be passed into the OAuthTokenCredential constructor and then passing that location to the getResourceAsStream() method. Put this in the next release because I'm sure it's causing alot of people headache and alot of them probably just give up and use something else. Also, fix the searchClasspath() method... it's not searching the classpath of the project.</strong></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload