#dan-burke
1 messages · Page 1 of 1 (latest)
The first version that supports the latest API is v22.0.0
Although we will always recommend using the latest and greatest release
i've upgraded to 22.4.0 and now just about anything i do with stripe gives me Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: com/google/gson/ReflectionAccessFilter
i upgraded in the dashboard as well:
here's an example webhook event that failed evt_1MKR2sCw67GoJ0rWb8rHlj02
Is this when making a specific API call or are you receiving webhook events?
i got the same error here with this code: SubscriptionCollection subscriptionCollection = Subscription.list(SubscriptionListParams.builder() .setCustomer(customerId) .setLimit(100L) .build());
the webhook was previously broken with a different error (before the api upgrade)
but the code snippet above used to work
Gotcha, thanks for providing that code. Looking in to what might be happening here
Can you make other API calls? Specifically do other list or subscription calls work?
those two are blocking me from easily trying other requests by using my app
but i could try to figure out a way to do other ones
Could you try writing a quick java snippet that just runs one of those functions and ends?
Good to know. Looking in to whether this is a known bug.
tried upgrading gson to latest but didn't change anything
Quick question, what stripe-java version did you upgrade from?
21.2.0
Can you possibly try making a fresh project with just the Stripe library installed to this version and see if that can make calls? Still looking through things to figure out where this might be coming from.
Can you try reinstalling stripe-java in your main project? Maybe this is just an install gone wrong
i'll try that but fwiw it didn't work when i deployed it to our dev stack -- same error
i just tried copying and pasting the pom.xml from the broken project to the new project, and the new project still works...
very confusing
What didn't work when you deployed it? The new project?
Interesting, it looks like this switch happened in the very latest version of our library https://github.com/stripe/stripe-java/blob/v22.4.0/CHANGELOG.md#2240---2022-12-22
Would you be able to try downgrading to the version before, 22.3.0, just to see if that works?
I am wondering if we left out info on how to actually work with that change
Same result with 22.3.0
Interesting. Does the error message not even change to a different class definition missing?
Same thing
I just tried 21.2.0 again and now that's not working with the same error... what the heck
Is it possible you are running an old build?