Category "java"

Performance insert by JPA Spring-boot with Oracle database

the first thanks for your time. I am trying to insert data to the database by JPA(spring-boot), the project is using Oracle. Currently, Insert 5000 record, it t

Is it possible for TestNg to show Cucumber Steps (And Hooks)

I have a project with Gradle + Cucumber + TestNG + Spring. Everything is with last versions and runs smooth. The only problem I have is when I run tests from th

Does REDIS support event listeners?

My USE Case: I want to have a key in redis and want a callback to some method (Using Jedis Java client) when the keys value changes or exceeds some threshold.

What is a top level class in java?

What is a top level class in java? What is the definition of a top level class in java ? I know that this is a basic question, but i could not find a clear and

Collect both matching and non-matching in one stream processing?

Is there a way to collect both matching and not matching elements of stream in one processing? Take this example: final List<Integer> numbers = Arrays.as

Spring Data JPA / Hibernate "Unable to locate Attribute with the given name"

We have a problem with a Spring Web Application and Hibernate. It is written in Kotlin. We have an abstract Entity @Inheritance(strategy = InheritanceType.JOI

Android Studio Error "Unsupported class file major version 61"

I moved my Android Studio project from one computer to another computer and now I get this error: "Unsupported class file major version 61" . How can I fix t

Android: Unable to detect vertical plane

I am trying to detect a vertical plane like wall to add image view on a vertical plane. But did not find the vertical plane. As per the default config for a ses

ByteArrayResource usage

I have a template pdf which is stored in either in physical path or in application classpath. I have to read this template and fill its fields for each request

Error inflating class android.fragment.app.FragmentContainerView, can someone tell me what I'm missing

I'm working on getting the Google Place API to appear within a CardView. The particular code I'm looking at is from GitHub, seems to be working for everyone el

Sonar with multi-module gradle project

I have java and kotlin based multi module gradle project. I am trying to setup sonar analysis for the same. I configured sonar at root project and ran analysis

Java 8 optional: ifPresent return object orElseThrow exception

I'm trying to make something like this: private String getStringIfObjectIsPresent(Optional<Object> object){ object.ifPresent(() ->{

Exception in thread "main" java.lang.NoSuchFieldError: Factory

Recently upgraded POI jar version from 3.17 to 5.1 and below code which was working in 3.x is now broken, ( jdk 1.8 ) Below are the set of Jar used below is my

Error when looking up data source name when deploying httpServlet to weblogic 12 server

I am trying to deploy an ear file to a Weblogic 12 server. The ear file contains a HttpServlet. During deployment, the HttpServlet is trying to initialize and

Plugin with id 'com.google.gms.google-services' not found. [ Android ]

I was Setup firebase Firebase Official link I'm Following This Link my 2nd step went through it correctly, but I think I am doing some mistakes in 3rd & the

Eclipse - Sonar S2629 possible false positive with new String

I'm using latest Eclipse and Sonar plugin In answer for logging there's the following line: log.debug("Request body: {}", new String(body, "UTF-8")); Which

Is it possible to access a property value from another maven project?

I have a SpringBoot service: package test; @Service public class TestService { @Value("${service.readTimeout}") private Duration readTimeout; } service

maven web.xml The element type "web-app" must be terminated by the matching end-tag "</web- app>"

Eclipse Java EE IDE Apache Tomcat v9.0 I created the project by New->Maven Project, and select the Maven archetype as maven-archetype-webapp. web.xml content

Maven profiles activates on running jdk not on toolchains jdk

I'm attempting to create a pom that will: Use correct JDK from maven-toolchains-plugin based on java.version property. Activate appropriate profile based on re

How to programmatically authenticate Subscriber and pass in application credentials json for Spring Cloud

I have a Subscriber app in Java using spring-cloud-gcp-starter-pubsub, but I don't want to authenticate to Google Cloud using a JSON file on the filesystem; we