Category "java"

how to exclude a folder from checkstyle of Gradle on Intellij

I am new for IntelliJ and Gradle, but I have enough experience on Java and Eclipse. I generated some java classes from wsdl file. I put them under src/main/reso

Cannot use WifiP2pManager.setDeviceName on Android 11 (Wi-Fi Direct)

My team and I are working with Wi-Fi Direct technology on Android devices. Until now, the used devices were on Android 8, 9 and 10. We were able to change the W

Server is not connected. Deploy is not available. IntelliJ 13 and Tomcat 7

Trying to run my app with IntelliJ 13 and Apache tomcat 7.0.42. JDK1.6 Always getting the error Artifact app:war exploded: Server is not connected. Deploy is n

Jenkins does not start properly after reboot on GCE

If I need to restart Jenkins due to installing a plugin for instance the slaves are never turned on. I am using Google Compute Engine. I followed this tutorial:

I want to remove the association between two objects via @DeleteMapping. Java spring boot

Unfortunately, I am unable to deal with the error. I have 2 id's of which the "mieszkanie" is owned by the "deweloper". Would anyone be able to help?

Running code after Spring Boot starts

I want to run code after my spring-boot app starts to monitor a directory for changes. I have tried running a new thread but the @Autowired services have not

Creating and adding codelets to YAWL

I'm developing an application with YAWL 4. I need to add a codelet to an automatized task. I wrote a java class and added it following various tutorials, but no

How to add new Datasource at runtime Spring Boot

I have this, but I don't find any possible solution. All the answers I found was about configuring two or more Datasource or Multitenant Dabatase, but It is not

What exactly makes Java Virtual Threads better

I am pretty hyped for Project Loom, but there is one thing that I can't fully understand. Most Java servers use thread pools with a certain limit of threads (20

How to set SameSite=None in JSESSIONID Cookie

I have a spring boot API hosted at Heroku and when I try to access it via a Angular app in Google Chrome (In Firefox it works fine) I'm facing the following pro

SSL handshake_failure on Websphere 8.5 (working on Tomcat)

Long story short; is there any reason why an application working on a Tomcat isn't able to communicate with Paypal servers? Some background: we are developing a

URL prefix for JSF/IceFaces application

I have a java/ICE 3.3 application that runs correctly on a jboss server and responds to some url http://jbserver/app I have a second Apache proxy server that se

Elasticsearch OutOfMemoryError Java heap space

I am running an 8 cores, 32g RAM elasticsearch node with 5 shards, 400 million (small) documents. Everything works great until I run an agg search, then shards

IntelliJ IDEA not showing subproject

A stupid problem happened to me, but I don't understand where I went wrong. I have a project with subprojects. In the IDE I see this picture My root build.gra

How to write code in Java 11, but target Java 8 and above?

I am working on a small library and for obvious reasons I would like to write code using all the Java 11 features (except modules I guess for now), but I would

How to getGroups() in keycloak using UserFederatedStorageProvider

I have created a User storage provider that connects with keycloak with an external DB and gets the Users & other related details successfully. In the same

Getting intermittent error java.sql.SQLException: ORA-01005: null password given; logon denied issue

I am creating database connection pool using Hikari and it connects and create connection pool successfully on application startup. Application also works fine

Android Is it possible to get the currency code of the country, where the user and device is?

Is it possible to get the currency code of the country, where the user and device is. i want to set the country code of the present country of the user as defau

Fortify's denial of service problem in stringbuilder in java

Fortify client gives the error and recommendations for string builder, problem code: StringBuilder sb=new StringBuilder(); sb.append(request.getParameter("i

Failed to build app with Maven, I can run code locally, but fail to deploy on heroku

This is my code in github: https://github.com/q463746583/CS4500-Assignment2 I can run it successfully in the local, but while I try to deploy the code on heroku