#dan-burke

1 messages · Page 1 of 1 (latest)

bleak bloomBOT
rapid rampart
#

The first version that supports the latest API is v22.0.0

#

Although we will always recommend using the latest and greatest release

thorn steppe
#

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

shy karma
#

Is this when making a specific API call or are you receiving webhook events?

thorn steppe
#

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

shy karma
#

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?

thorn steppe
#

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

shy karma
#

Could you try writing a quick java snippet that just runs one of those functions and ends?

thorn steppe
#

creating a payment intent failed with the same error

shy karma
#

Good to know. Looking in to whether this is a known bug.

thorn steppe
#

tried upgrading gson to latest but didn't change anything

shy karma
#

Quick question, what stripe-java version did you upgrade from?

thorn steppe
#

21.2.0

shy karma
#

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.

thorn steppe
#

I'll try!

#

it works in the new project 🤔

shy karma
#

Can you try reinstalling stripe-java in your main project? Maybe this is just an install gone wrong

thorn steppe
#

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

shy karma
#

What didn't work when you deployed it? The new project?

thorn steppe
#

the old project

#

so that install on our CI tools also had the same result

shy karma
#

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

thorn steppe
#

Same result with 22.3.0

shy karma
#

Interesting. Does the error message not even change to a different class definition missing?

thorn steppe
#

Same thing

#

I just tried 21.2.0 again and now that's not working with the same error... what the heck

shy karma
#

Is it possible you are running an old build?

thorn steppe
#

going to investigate something

#

i was running it locally using intellij "run" and it wasn't working, but it works when i run it in my terminal. trying to figure out difference / why deployed version isn't working