Category "java"

What does a "Cannot find symbol" or "Cannot resolve symbol" error mean?

Please explain the following about "Cannot find symbol", "Cannot resolve symbol" or "Symbol not found" errors (in Java): What do they mean? What things can caus

Mock page factory and appium with mockito

I am (beginner, so go easy on me), trying to write unit tests for some of the custom functions I wrote on an appium test framework. public class BasePageNewTest

How to count the amount of substring occurences? [duplicate]

How do I count the amount of times a substring appears in a string? So far I have static boolean doesAppear(String a, String b){ boolean a

Joining strings with limit

Using only the standard Java library, what is a simple mechanism to join strings up to a limit, and append an ellipsis when the limit results in a shorter strin

Connection of Android Studio project to MySQL database

I am developing an android studio project and would like to be able to access data from a database sitting on the pc which I am programming from. I would like t

I am getting java.lang.ClassNotFoundException: Cannot find implementation for com.example.demo.mapper.DoctorMapper

This is a mapper interface for mapping: @Mapper public interface DoctorMapper { DoctorMapper INSTANCE = Mappers.getMapper(DoctorMapper.class); DoctorDto toD

Apache Camel SFTP get file content null

Java Code @Component @RequiredArgsConstructor public class WireInboundFileListener extends RouteBuilder { private final JwtWireTokenService jwtWireTokenSe

Guice-persist: inconsistent data from EntityManagers

I have a problem with the persistence in a java web application. We use Ninjaframework (6.8.1) which uses Guice as dependency injection framework and for persis

Overwrite text with modifications or additions in VS Code

I wanted to use a function available in Intellij that allows to write this in java: "Hello, World!".sout And have it converted to: System.out.println("Hello, W

I have created a java program in intellij idea. I need to send it to my friend. How do we create a doc file for this?

I have created a java program in intellij idea. I need to send it to my friend. How do we create a doc file for this to send it to him ?

JavaFX with Gradle error module not found

I'm creating a sample demo application with JavaFX in IntelliJ, but I need to use a library called the JavaFaker library. I'm using Gradle as the build system,

Spring boot native configuration

I am trying to migrate existing spring boot application to spring native. In this case, I have application.properties and application-dev.properties. package co

How to create Session Factory when sending async messages via ActiveMQ Artemis in Spring Boot?

I'm trying to send simple message to a topic from sender Spring Boot app to a receiver Spring Boot app. But I keep getting two exceptions. First exception occur

Executor pauses and doesn't process pending queues

I have a long-running task of creating a bitmap saving it and recreating more bitmaps which I was doing on a single background thread ExecutorService executor =

Parallel test execution and growing active connections to mongodb

I have an application with thousands of tests through MockMvc. The tests are running in band, so 1 at a time and whole process takes hours. I decided to try par

Error message when opening IntelliJ, from command line in Linux

I changed my IntelliJs base JDK, to try and fix an error, and now it will not even let me open up Intellij. I tried to re-install, but that did not work. Intell

Cannot use search view to filter list view displaying data pulled from SQL server

I am very new to app development and i'm trying to create an app connect to an sql server. The app pulls data from the server and displays it in a list view. I

To print the number of steps this RandomQuickSort Takes. Java code

I have this Java algorithm and I am having trouble printing the number of steps it takes to solve the sorting. Here is the code /* The main function that im

How to parse XML files without knowledge of filename

I have a directory in which I receive orders as XML file. I want to parse this file and then do some things with it. I can set a scheduled job to check this dir

Can't see implementation of protected abstract functions in Android package

I have been going over the android package a bit. I am using sdk 30 and for example in SensorManager.java there is a function protected abstract List<Sensor&