java.net.UnknownHostException: 189.216.xxx.xxx:58157: invalid IPv6 address - when accessing h2-console in SpringBoot App - h2

In SpringBoot app when accessing h2-console get the following error.
java.net.UnknownHostException: 189.216.xxx.xxx:58157: invalid IPv6 address
at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1344)
at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1301)
at java.base/java.net.InetAddress.getByName(InetAddress.java:1251)
at org.h2.util.NetworkConnectionInfo.<init>(NetworkConnectionInfo.java:37)
at org.h2.server.web.WebServlet.doGet(WebServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:655)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
The error appears ONLY when I use h2 database "1.4.200" and SUPERIOR VERSIONS. The SpringBoot App is deployed in Azure in an App Service Linux.
The IP 189.216.xxx.xxx that appears in the error is the client IP.
In the web browser I get error 500
As I said before, using h2 database version 1.4.199 and lower I do not get errors and I can access h2-console in Azure in an App Service Linux.
Strangely, deploying in localhost (http://localhost/api/v1/h2-console/) there is NO error in any version of h2.

Related

Bad gateway error code 502 host error on tomcat server

So i have a spring boot web application. I have done my application pretty muuch and I have a remote ubuntu vps server to deploy from hostinger. I configured all of needs server for my application. when i try to click "deploy" button my .war file to a tomcat server after a couple of seconds (about a minute) it returns bad gateway error code 502 following ss in my case
I tried every singe method both here and elsewhere but nothing done
here is my screen shot

I'm getting 403 Fobidden Error after successfully deploying my laravel app using Deployer

I successfully deployed my laravel app to app.example.com using deployer on windows (my local pc I mean), the app is deployed to a VPS Server running on Linux with a LEMP Stack configuration. There were no errors in deployment as shown in the image below; however when I attempt to access app.example.com I get a 403 Error. How do I resolve this? Any help?
Snapshot of Successful Deployment
Snapshot of Forbidden Error

AEM XTM Translation Connector needs to be proxied

I am currently working in a AEM 6.5 environment trying to setup the XTM Translation Connector. I have successfully configured this on my local environment by doing the following:
Installing the XTM Translation Connector content package
Configuring credential (Web Service URI, XTM Client Name, User ID, Password) into /mnt/overlay/cq/translation/cloudservices/editor.html/conf/corp/settings/cloudconfigs/translation/xtm/xtm-translation
When I click the Verify button I am prompted with the message:
Connection parameters correct.
That said when I follow these same steps in my dev, stage, prod environments in a different network than my local, I am prompted with the message:
Connection parameters incorrect.
I dove into the logs and found:
[com.xtm.translation.connector.xtm-for-aem.core:1.5.2.SNAPSHOT]
...
Caused by: java.net.SocketTimeoutException: SocketTimeoutException invoking Web_Service_URI: connect timed out
I happen to know that this network uses a proxy server for external connections and reaching out to the internet. So I tried configuring the Apache HTTP Components Proxy Configuration in /system/console/configMgr and then testing the XTM Translation Connector connection again but it doesn't even seems like the XTM Translation Connector is even trying to use the proxy when it tries connecting based on error.log messages.
How can I get this XTM Translation Connector to use this proxy ?
Any thoughts on this are welcomed.
Thanks.

spring boot h2 console connect mem testdb fail

Today I encountered a very strange situation. I started my spring boot project, and wanted to access h2 console(http://localhost:8081/h2-console).
Everything is ok now, unitl I cliked Connect button.
Connected failed, it gave me below message:
Wrong user name or password [28000-190] 28000/28000 (Help)
But before I have connected successfully, and meantime the same project I deployed at another server, and access that h2 console, I still could connect successfully.
And if I changed another db name , e.g. jdbc:h2:mem:foo;DB_CLOSE_DELAY=-1, this time I can connect it suceesfully.
Now I'm very confused what's wrong with my local embeded h2, why I can't connect default testdb?

Netbeans7.4 build-impl.xml:1045 : Access to tomcat server has not been authorized

I've created a project in Netbeans 7.4 and Apache 7.0.41.0 All of a sudden when I'm trying to run the project it is giving the error.
Deployment error: Access to Tomcat server has not been authorized. Set the correct username and password with the "manager-script" role in the Tomcat customizer in the Server Manager.See the server log for details.
can some one say how can I solve this error?
Is it a option that you use XAMPP(link: https://www.apachefriends.org/download.html)? XAMPP comes with a tomcat server, which you can easily turn it on or off.

Resources