Category "java"

Amazon DynamoDB delete data based on partition key

I am trying to delete multiple records in DynamoDB table using the partition key and sort key. The approach is taking lot of time to delete the records. I am fo

Java Spring JPA Query Error: '(',<expression>,FUNCTION or identifier expected, got '('

I'm asking the question cuz all the related posts i found are not answered Error at line 21 Screenshot Hello guys I need some help with this Query, at line 21 I

Some table rows are not returned by hibernate native query

I'm having a big problem that a few rows of the table are not returning by the native query of hibernate (Spring Data), although if I put the same query in the

Unable to access CDI

I have a class that contains a method annotated with @PostConstruct which fetchs list of customers @ViewScoped @Named public class CustomerController e

How to write Github workflow for JDK 17

This is the current Github for JDK 11 and works fine. I have migrated my project to JDK 17. It works fine locally but breaks in Github workflows. I don't know h

Error "the constructor HighScore(int,int,String)is undefined" ( game = new HighScore((id, score, user); )

when run the code is shown the constructor HighScore(int, int, String)is undefined" import java.util.Scanner; public class HighScore{ public static HighSc

Can we access to a list of available contexts to an object in java?

We know that we have many types of context in java. Regardless of what these types can do and where to use them, i want to know is there any way to get a list o

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