Category "java"

The class 'javax.persistence.Convert' is required to be in the selected libraries

When selecting a user library as the JPA implementation in Eclipse Dali's project settings, the following error message is displayed: The class 'javax.persi

How to find file path to a bash file when the folder is renamed or moved to a new drive?

I've made an executable jar file for a terminal game that can be opened by typing java -jar name.jar in the Terminal. Then I made a .sh file inside the same fol

java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map;

I am unable to find answer through the following links One Two Three Following is my pom.xml dependency <dependencies> <dependency>

Why CompletableFuture.runAsync is not executed? [duplicate]

I consider that main thread must end after sub thread. However, below code shows the process finished before print the "async end". What is th

Android app crashes at start with "E/dex2oat: Failed to create oat file" and "non-0 exit status"

My app (still WIP) runs fine on different devices. But suddenly it refuses to start on Huawei Honor 7 (Android 6.0/EMUI 4.0.3). Logcat gives me the following:

java.io.IOException: grpc failed

When I use call getFromLocationName I get an IOException with description "grpc failed". Code that's ran @Override public void onMapReady(GoogleMap googleMap)

Java, get calling instance [duplicate]

Following example public class C{ A myA; public C(){ myA = new A(); } } public class A{ C myOrigin; public A(){

What are trustAnchors ? and How do I configure it?

I was recently assigned a java project. I am not very familiar with Java. I have been trying to build the projects but I am having the following error: the trus

Unable to create same parameter value twice in json array

In this code, I am trying to creating something like this- public String KLYA_JSON_LookUp_MultiNode(String KLYA_To,String KLYA_DLRURL,String KLYA_To2) {

How do you take an initial sample from a flux?

The sample operation takes the first entry from flux after the duration. How can I make it such that I take the first entry on subscribe and then do the rest?

How to verify icon's presence in statusBar of Android with Selenium?

I need to write code (Java, Selenium) that verifies icon's presence in Android status bar. For instance, after enabling airplane mode, a plane icon appears. But

How to output/serialize correct YearMonth value to display on form using Spring annotation?

I have the following variable in my POJO class being used to load the correct saved data into a form: @JsonDeserialize(using=YearMonthDeserializer.class) @JsonS

Streams Processor key-value types

I'm trying to implement a custom topology processing step implementing the Processor interface and then adding an instance of my custom processor to the topolog

Accessing application property in Spring boot application from MapStruct mapper

I want to access basic-info.expiration from application.yml a Spring boot application. application.yml basic-info: expiration: 6 UserMapper.java @Mapper(comp

How can I change JDK 1.8 to JDK 11 in Heroku?

I created pipelines for bitbucket to deploy app to Heroku. I use java 11 but Heroku installs 1.8. How to fix it? I also created system.properties in main/resou

Android Studio - Trying to Read MP3 FIles from the Music Directory on Android Device

I have a function below that I got from a post on here, where I am trying to read the music files from the device. public List<AudioModel> getAllAudioF

Tomcat catalina logging

I am using SpringMVC framework and Java 8 for development. In the Tomcat catalina.out file, the date timestamp and threadid are not added along with my applicat

SQL error coming while trying to access SQLite.db

I am trying to access my SQLite database which is in a Java package. When I am giving it's absolute path then it's OK, but when I am putting my db file inside j

Can't get a Java heapdump from a docker container

My Java process is stuck and hogging a lot of CPU on the VM. I am trying to get to the root of the issue by getting a heapdump. This process is running in a doc

Problem with Obsolete file handle running Java Webapp with Log4j2 in Tomcat server farm

We have a Java Spring web application with Log4j2 configured with RollingFile active running on a Tomcat server farm with NFS storage configured. Catalina out l