Score:-1

java.net.ConnectException : Error connecting to server localhost on port 1,527 with message Connection refused (Connection refused)

kr flag
DBG

I'm running into problems with the use of Apache Derby with IntelliJ's Ultimate edition.

When creating the Data Source and Drivers, after filling the form, I test the connection and I get the following error:

java.net.ConnectException : Error connecting to server localhost on port 1,527 with message Connection refused (Connection refused).

apacheDerbyConnection

I have enabled the ufw and also allowed the connections from port 1527, which is, the main port the Apache Derby uses.

ufw

I have also checked the connection:

ping

Though I still cannot create the connection...

What should I do ?

Thanks in advance !!

vidarlo avatar
om flag
Please [edit] your question to add the the output of `netstat -tlnp | grep 1527`
DBG avatar
kr flag
DBG
After running the command > netstat -tlnp | grep 1527 < I get nothing @vidarlo
vidarlo avatar
om flag
So derby isn't listening on port 1527.
DBG avatar
kr flag
DBG
How to do that ? @vidarlo
vidarlo avatar
om flag
I have no idea. I've never touched derby, but a starting point would be to verify that it's configured correctly and listening on the port you anticipate.
cn flag
Please don't post screenshots of terminal output - [edit] your question to paste the actual text from the terminal.
Score:0
om flag

After running the command > netstat -tlnp | grep 1527 < I get nothing

You get nothing because nothing is listening on port 1527. That's also why you get connection refused; there is nothing that is ready to accept packets on that port.

This is not a firewall issue. The issue is simply that derby isn't running, or isn't running on port 1527.

DBG avatar
kr flag
DBG
I run > systemctl restart * < but I don't know the app name so cannot check if the status is activated @vidarlo
vidarlo avatar
om flag
How did you install and configure Apache Derby?
DBG avatar
kr flag
DBG
I have downloaded the software from: **https://db.apache.org/derby/papers/DerbyTut/install_software.html**
DBG avatar
kr flag
DBG
This page >https://db.apache.org/derby/docs/10.13/adminguide/tadminappssettingportnumb.html< tells the Apache Derby default port which is 1527
vidarlo avatar
om flag
@DBG I'd suggest you ask a new question where you *detail* the steps you have performed, and ask why Derby is not listening. Don't link to the tutorial, show us the running config. You may delete this one if you like, or edit it to be about why derby is not listening.
DBG avatar
kr flag
DBG
The askubuntu's server has banned me from asking other questions...
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.