Questions tagged [java]

Programming language and runtime environment that allows compiled Java programs to run unchanged on most hardware and software platforms

Filter by
Sorted by
Tagged with
0 votes
1 answer
92 views

Why do udp and udp6 have different port behaviors?

I have two Linux servers. I run the same Java application on both of them. One of them runs as udp and the other as udp6. When I send a request to the udp application, it returns to me over a ...
Omer Faruk Balli's user avatar
0 votes
1 answer
31 views

Tomcat8.5.78 fileUploadBase Error

When I attempt to upload a document using a form, I get the following error : org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. /...
SegmentationFault's user avatar
0 votes
0 answers
17 views

doveadm http API payload size

I'm using docker-mailserver. I can connect to it using the doveadm http API, which allows me to read messages and perform other tasks. I can send e-mail using SMTP through Java. I want to be able to ...
Bumptious Q Bangwhistle's user avatar
0 votes
0 answers
19 views

Update-alternatives does not update all Java symlinks

I'm getting some strange behavior from update-alternatives on RHEL 7.9 when I have Amazon Correto Java 11 and the normal Java 1.8.0 both installed. When Correto is selected as the default, this is the ...
Juan Jimenez's user avatar
0 votes
1 answer
41 views

Error deploying Java Spring Boot app on Google App Engine: Timed out fetching pod (Error Response: [4])

This is my first time deploying on Google App Engine [or, at least, trying to]. I've built a Java Spring Boot app, configured the app.yaml and did the other preparation steps. However, when I run ...
Alex Braga's user avatar
0 votes
0 answers
31 views

java.net.SocketException: Too many open files error in java 8 and wildfly

We are using wildfly 8 with jdk version 1.8 in centos stream 8 for our application. Recently we have been facing like application stop responding and on same time we found "Caused by: java.net....
Sandy's user avatar
  • 1
0 votes
1 answer
83 views

Can a Docker container run as a Jenkins build node with both Java 11 and Java 8?

I have a customer who is excited about the idea of Docker containers as Jenkins build nodes, but a few of their pipelines still have dependencies on Java 8. Can a Docker container have Java 11 and ...
Juan Jimenez's user avatar
0 votes
1 answer
98 views

Making Tomcat log in /var/log

I'm trying to make our Tomcat 9 server log its internal log in /var/log instead of ${catalina.base}/logs. I tried to change the destinations in logging.properties, but the logs directory in ${catalina....
Alexis Dufrenoy's user avatar
0 votes
1 answer
64 views

Payara / Glassfish 5 - [NCLS-SECURITY-05054] The SSL certificate has expired - cert_81_trustis_fps_root_ca81

Today noticed the error message below the logs of my Payara5 server and since Glassfish is so popular these days, I spent a bit of time to find out what to do. [2024-01-31T16:44:11.325+0000] [Payara 5....
Scream's user avatar
  • 11
1 vote
1 answer
181 views

How does Java handle multiple client keys in the keystore but 1 in trust store when doing mtls

I have a situation where I am trying to setup mtls where the client has multiple keys. I cant seem to find how the resolution of which alias works so can somewhere here guide me? How does Java decide ...
Jackie's user avatar
  • 191
0 votes
0 answers
42 views

several tomcat apps running as user, using single java jdk installation owned by root

We administer server with java web applications: alfresco/solr running on tomcat. Up to now java jdk sources of same versions were extracted/copied in several directories next to each other, so ...
groovehunter's user avatar
0 votes
0 answers
61 views

Wrong remote port shown in TCP Connections

We have a RFID application in Java, by default it will listen on TCP port 5084. Which is the default port for LLRP (Low Level Reader Protocol). The application is on Windows Server 2019. The ...
MAF's user avatar
  • 1
0 votes
1 answer
30 views

Glassfish domains start automatically without intervention?

Steps to Recreate pkill -f glassfish. pkill -9 java. Repeat this a couple of times for being sure. ps -aux| grep 'glassfish_domain_name/config' It shows it is running from root user. All domains ...
barnyard9's user avatar
  • 101
0 votes
0 answers
42 views

[name=Redis, majorVersion=6]; user must register resolver or explicitly set 'hibernate.dialect'

I have asked this question in stackoverflow already, but I think the question is more suitable here. Sorry for cross-posting. After successfully creating datasource for redis in wildfly, I am now ...
Sudipta Roy's user avatar
0 votes
0 answers
81 views

Prometheus can't scrape custom metrics

I'm trying to set up Prometheus to scrape some custom metrics exposed by a java service with the java lib Prometheus Micrometer. I have no error whatsoever in prometheus log except for proto: bad ...
Ror's user avatar
  • 323
0 votes
2 answers
102 views

Issues with VPS provider limiting CPU usage with data processing Spring Boot application

I developed a Java Spring Boot application with a PostgreSQL database. Since the data being processed is quite a lot, the processing can take time and it uses a lot of CPU (e.g. up to 100% obviously). ...
BullyWiiPlaza's user avatar
0 votes
0 answers
22 views

Kafka Scripts in bin Directory throws an error is "java.net.BindException: Address in use (Bind failed)"

I have Deployed Kafka as a Stateful Set on k8's and the Service type is ClusterIP. It's Up & running. However, when I'm logging into Kafka brokers (using kubectl exec -it pod_name -- bash) and go ...
RAM's user avatar
  • 1
0 votes
1 answer
81 views

Uninstall Oracle Java JRE where misexec reports "this is only valid for products that are currently installed"

I have several end users where Oracle Java JRE 1.8.0_xxx is installed but the automation to use the UninstallString via msiexec /X is failing by saying the product isn't installed. On these machines ...
Peter Blumpkin's user avatar
0 votes
0 answers
141 views

how to fix error failed to mark memory page as executable

Nov 28 12:29:01 VM-ECTS-LS-TST systemd[1]: ects.service: Failed with result 'exit-code'.\ Nov 28 12:29:11 VM-ECTS-LS-TST systemd[1]: ects.service: Scheduled restart job, restart counter is at 6.\ ...
Godfrey Temu's user avatar
0 votes
0 answers
259 views

JAVA UnsupportedOperationException (The Security Manager is deprecated) on Windows 10 + OpenJDK

I am using OpenJDK on Windows 10. C:\Users\divym>java -version openjdk version "1.8.0_332" OpenJDK Runtime Environment (Temurin)(build 1.8.0_332-b09) OpenJDK 64-Bit Server VM (Temurin)(...
m.divya.mohan's user avatar
0 votes
0 answers
49 views

Proxy Error - Java Web Applications / Glassfish / MySQL / Apache

I have some Java Servlet Web applications running on Glassfish, on an AWS Linux server. The applications are integrated with a MySQL database, installed on the same server. Also, access management is ...
EduOK's user avatar
  • 1
0 votes
0 answers
125 views

How to correctly load balance requests from a Java client to an NLB over multiple AZs

Requests from a Java client to an NLB over multiple AZs Not load-balanced Summary: Expectation: every request from Java is load balanced between two nodes. Actual behavior: all the requests go to one ...
ŌHARA Kazutaka's user avatar
0 votes
0 answers
11 views

Cloned Subscription: Messages lost while consuming messages

We have two servers with cloned subscriptions. It is observed when both subscribers are started, messages get lost while consuming from topic. For performance test, I pile up 5000 messages on QM and ...
user17745726's user avatar
2 votes
0 answers
782 views

How to monitor Java non-heap memory usage?

I need to run a bunch of java processes, that I'm not sure, what their maximum heap usage can be. To make better use of server's heap memory I tried solution described in 1. I found in documentation, ...
Alojzij Blatnik's user avatar
0 votes
1 answer
69 views

Does Wildfly process HTTP requests in order of arrival in a single queue?

Java web application deployed on wildfly 10. This application exposes Rest webservices. Users, from different PCs, use a client which interacts with web services. Packets travel through the network. ...
user3637971's user avatar
3 votes
1 answer
1k views

Could not start a new session. Response code 500. Message: Failed to read marionette port

I am trying to use Selenium with Java and Firefox but I am getting the below issue. org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: Failed to ...
Akshay Wakchaure's user avatar
0 votes
0 answers
122 views

JBoss CLI command running into failure

I want to automatically delete my Wildfly logs after a certain period of time (e.g. 3 days). As I am running my application in a container which has no access to crontab, I want to do this via a JBoss ...
Hannes Oberberger's user avatar
0 votes
0 answers
129 views

Accessing the Kubernetes API from a Pod

I am trying to access to Kubernetes API from a Pod using Java Client library. I have followed in cluster config example from below URL: https://github.com/kubernetes-client/java/blob/master/examples/...
Radha Gupta's user avatar
0 votes
0 answers
74 views

Maven Repositories - Nexus Alternative

We are using BitBucket and Git for source control of a Java Spring Boot application that uses Maven as it build tool hosted on AWS. We want to create a repository to store out dependencies. We did ...
Richard's user avatar
  • 145
0 votes
0 answers
16 views

Starting karaf in mvn deployed servicemix 7

On Fedora 39 rawhide, I have finally got mvn-3.9.1-3 to complete the "jar:jar install:install" goals. But using find I could not find executable files for karaf or a bin dir. dnf has no ...
ArrowInTree's user avatar
0 votes
0 answers
108 views

Why does Windows not launch specific application associated with a file type?

I have .jsp files associated with 'javaws' (Java Web Start) from my JRE installation. When I double click on .jsp files nothing happens. If I associate the .jsp files with other applications such as ...
user2125853's user avatar
-1 votes
1 answer
438 views

Unable to install openjdk-8-jre-headless

root@kvm6241 ~ # sudo apt install openjdk-8-jre-headless Reading package lists... Done Building dependency tree... Done Reading state information... Done Package openjdk-8-jre-headless is a virtual ...
BLD Abderrahime's user avatar
0 votes
0 answers
389 views

Automatically delete log files with JBoss CLI for Wildfly application

I want to automatically delete my Wildfly logs after a certain period of time (e.g. 3 days). As I am running my application in a container which has no access to crontab, I want to do this via a JBoss ...
Hannes Oberberger's user avatar
0 votes
0 answers
855 views

Exception when trying to connect Eureka Server with Config Server in Docker Compose ("Connection refused")

I have created a Eureka Server and a Config Server and I am trying to get the Euketa Server properties that are in the Config. I'm trying to dockerize these two services and for that I created a ...
Gustavo Cruz's user avatar
1 vote
1 answer
2k views

Delombok Lombok cannot find symbol location: package javax.annotation after spring boot 3 and jdk17 migration

I've migrated my project to spring boot 3. Once I've done it project stopped working. cannot find symbol [ERROR] symbol: class Generated [ERROR] location: package javax.annotation [ERROR] -> [...
vivan sai's user avatar
0 votes
0 answers
96 views

Java Application (Tomcat) unable to locate license file after Windows Server 2016 in-place upgrade

Description Hello ServerFault community, We recently performed an in-place upgrade from Windows Server 2012 R2 to Windows Server 2016, on which Apache Tomcat 8.5 is running. After the upgrade, we ...
Robert Fridzema's user avatar
0 votes
0 answers
113 views

Java SIGSEGV exception in libjvm library (Ubuntu)

I previously posted here About a bug I encountered; apparently that wasn't the correct place to post. Hopefully this is, I am unsure where to put this. To recap, I am running a Minecraft server on ...
MadAtTheKeyboard's user avatar
0 votes
1 answer
3k views

Docker compose - flyway not connecting to mysql

I'm trying to dockerize a microservice built with Spring Boot that uses the MySQL database and Flyway. When I run the microservice through the IDE, the flyway manages to connect with MYSQL, but when I ...
Gustavo Cruz's user avatar
0 votes
0 answers
899 views

Tomcat 11 error compiled by a more recent version of the Java Runtime (class file version 61.0)

I have installed Tomcat 11.0.0-M6 and I get this error message every time I want to start it for the first time: Error: LinkageError occurred while loading main class org.apache.catalina.startup....
JBD's user avatar
  • 101
1 vote
2 answers
361 views

Apache httpd cannot connect to Tomcat over Unix Domain Socket - SELinux denied

I have an Apache httpd v2.4.57 configured on Rocky9 to connect to Tomcat9 / Java17 over a unix domain socket. SELinux kicks in and says denied, as follows: type=AVC msg=audit(1685376249.480:134): avc: ...
Graham Leggett's user avatar
0 votes
0 answers
88 views

Lenovo ThinkServer RD440 Remote KVM not working

I've got two ThinkServer RD440 servers and equipped them with the extension to use KVM via BMC Web interface. But it's not completely working: When starting the server I can send the F1 key to enter ...
Callya's user avatar
  • 11
1 vote
1 answer
160 views

Saltstack set java alternative using command instead of path

I am trying to apply a salt.states.alternatives to set my default java to java 11. However, I need to put in the full path for the openjdk, which includes the version number that changes every time ...
nothingistrue's user avatar
0 votes
0 answers
856 views

Tomcat 404 error after calling the web services

For the first time, I want to deploy a java web application in tomcat9 (On the Linux OS). I have successfully deployed it and tomcat is running. Also, on the browser, the index.jsp page is shown ...
Mona Kouhi's user avatar
0 votes
1 answer
387 views

Fix Zabbix Java Gateway with a custom Java version (error "compiled by a more recent version of the Java Runtime")

In a production environment we have a simple Zabbix monitoring system that works very well to collect metrics from various Tomcat instances and other Java applications. In short, this is our current ...
Valerio Bozz's user avatar
0 votes
0 answers
48 views

Hosting a Java website using tomcat on a Google Domain

First off I would like to apologize as I am a noob to this. I have have been trying to figure out how to get a website to be able to be accessed publicly with Google Domain. I made the website with ...
sal42's user avatar
  • 1
0 votes
0 answers
95 views

Why the /var/log/maillog reports mail_max_userip_connections=10 if set for mail_max_userip_connections = 1000 in dovecot?

I have a Java web application which interacts with dovecot 2.2.36 and postfix 3.3.1 and I see errors from application log as keeps: Java application Log: 04-06-2023 10:18:40 ERROR http-nio-8080-exec-...
user3637971's user avatar
0 votes
0 answers
33 views

How to force Hadoop Daemon or JVM to use given hostname instead of nodes actual hostname

0 I have 5 nodes hadoop cluster with different fqdns with domain xyz.com like node1.xyz.com, node2.xyz.com ... node5.xyz.com, its hostnames are configured with this domains, so if we write hostname ...
uds0128's user avatar
1 vote
1 answer
544 views

Yum dependencies and metadata for java-headless

I'm trying to install Java 8 and Tomcat 9 on a RockyLinux 9 server. Installing tomcat (from EPEL) requires java-headless >= 1:1.8.0 which is resolved to java-11-openjdk-headless. So Java 11 gets ...
nathou's user avatar
  • 163
1 vote
1 answer
1k views

Configure WildFly to use HTTPS

I am using WildFly25, and have it running with default settings. Server console WildFly Full 25.0.0.Final (WildFly Core 17.0.1.Final) started in 3938ms - Started 308 of 547 services (338 services are ...
Richard's user avatar
  • 145
0 votes
0 answers
14 views

New Java licensing on servers - JDK or Java SE? [duplicate]

I'm evaluating whether I should code a new (possibly commercial) Linux server software in Java 19. I just noticed that beside of the major Oracle license disaster a few years ago, there is a new ...
CodeShark's user avatar
  • 103

1
2 3 4 5
37