#clairep_java-error

1 messages ¡ Page 1 of 1 (latest)

earnest rivetBOT
orchid fernBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

earnest rivetBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1248299039032737795

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

golden dawn
#

Let's start 1 at a time

#

What's the issue

sudden zodiac
#

I get a window where it display pay now

#

when I click on pay now, nothing happens

#

Whe I check on my dashboard, nothing is received from me

#

I just downloaded the code from your page and I am trying to make it work

#

I did a lot of work before like installing scoop, node.js, npm ....

#

I am not sure if I installed stripe-java-25.10.0.jar the right way

golden dawn
#

So have you started both the front-end and back-end server?

#

Front-end I guess you have since you have the button

#

But are you able to start the java server?

#

Based on Cannot run on older versions of Java than Java 11. it sounds like you're using an older version of java, so that might be the problem

earnest rivetBOT
next pollen
#

clairep_java-error

sudden zodiac
#

Updated java and java libs

#

long message in output the 3 last lines are


Language Client: Starting
Language Client: Ready

#

How do I start the java server

#

in my terminal
cd server
cd : Cannot find path 'B:\EXPO\website\stripeWithSupport\customFlowPayment\server' because it does not exist.
At line:1 char:1

  • cd server
  •   + CategoryInfo          : ObjectNotFound: (B:\EXPO\website...wPayment\server:String) [Set-Location], ItemNotFoundException
      + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
next pollen
#

@sudden zodiac depends a lot on your own set up here. We can't really teach you how to use java/start a java server here.

sudden zodiac
#

Okay I check online and I come back
Could you please keep the thread open

next pollen
#

I'll keep it open for a while but we close threads quickly as we help a lot of people in parallel. If it's closed though you can start a new thread by asking a new question and providing a lot of details!

sudden zodiac
#

answer
[Thread-0] INFO org.eclipse.jetty.server.session - DefaultSessionIdManager workerName=node0
[Thread-0] INFO org.eclipse.jetty.server.session - No SessionScavenger set, using defaults
[Thread-0] INFO org.eclipse.jetty.server.session - node0 Scavenging every 600000ms
[Thread-0] INFO org.eclipse.jetty.server.AbstractConnector - Started ServerConnector@748db9cb{HTTP/1.1, (http/1.1)}{0.0.0.0:4242}
[Thread-0] INFO org.eclipse.jetty.server.Server - Started @548ms

next pollen
#

@sudden zodiac I can help you with Stripe specific question but I can't really teach you java development or read your own specific logs unfortunately

sudden zodiac
#

nothing is happening when I click on the pay button on the public/checkout.html from your tutorial

#

I am not asking you to teach me java but to help me torun this tutorial

next pollen
#

Have you ever done Java development before? Are you familiar with how to make a request from the client-side to your Java server? How to add logs, read the logs of your server, understand the exact port you are running on, etc?

sudden zodiac
#

I am running on port 5500
Maybe I should go to go cardless instead?

next pollen
#

why do you think you run on port 5500? You have [Thread-0] INFO org.eclipse.jetty.server.AbstractConnector - Started ServerConnector@748db9cb{HTTP/1.1, (http/1.1)}{0.0.0.0:4242} that says port 4242 instead

#

what does "go cardless" mean to you?

sudden zodiac
#

an alternative to stripe

#

if I have started the server, it means I should not be far to make it work as I just downloaded your code

next pollen
#

Ah gotcha. It's totally fine to use GoCardless if you prefer yes. I assume they'll have the exact same kind of developer set up steps for you to go through really

#

the problem right now is I don't really know how to help you. You're saying "it doesn't work" but I am not sitting next to you, pairing with you. So I need you to ask clear/detailed questions about what you are doing and trying so I can help you

sudden zodiac
#

When I click on the button, nothing happens it stays where it is

#

That's why I was trying to open the server

#

now that the server is open, it still stays on this page

next pollen
#

Do you know how to write Javascript code?

sudden zodiac
#

It is searching something I would expect it to display a payment interface

#

Yes I know java code

next pollen
#

Java and Javascript are completely different languages though. Do you know how to write Javascript code (what runs in your browser client-side)?

sudden zodiac
#

Is there anything I should add in your tutorial to make it run?

next pollen
#

Please reply to my question first so I can help you

sudden zodiac
#

I have already a basket and an invoice form filled with java using option

next pollen
#

I am trying to help you. You are lost right now, which is normal, and to guide you I need to understand what you know and don't know. Please take a step back, ignore your code for a sec and clarify if you know how to write Javascript and debug it as the developer

sudden zodiac
#

yes
I am going through your codeStep one
Create a payment intent :calculateOrderAmount
I see I will try to find out where the server stops.

next pollen
sudden zodiac
next pollen
#

okay so I downloaded the zip and I followed the instructiosn in the readme and it worked immediately for me.

#

So the problem right now is in the client-side code, it's not rendering our payment form at all so there's an issue client-side

#

If you look in checkout.js do you see an API key properly set at the top of the file?

sudden zodiac
#

B:\EXPO\website\stripeWithSupport\customFlowPayment\src\main\java\com\stripe\sample\Server.java uses or overrides a deprecated API that is marked for removal.

#

It might come from the problems I had before

#

Error: Could not find or load main class ${packageClassName}

next pollen
#

it's possible

#

The next step would be to add logs to both parts of the code to figure out what is and isn't running

sudden zodiac
#

skip non existing resourceDirectory B:\EXPO\website\stripeWithSupport\customFlowPayment\src\main\resources

next pollen
#

Sorry none of this makes any sense to me unfortunately and seems unrelated

#

I looked and I have that exact same log so you can ignore

sudden zodiac
#

I come back a bit later