Category "java"

Apache Server Reverse Proxy Issue

I have Microservices implemented using Spring Boot hosted in VM. I have Apache HTTP Server which act as load balancer and have configured reverse proxy to redir

AutoPopulate EditText in Android Studio from SQLite Database

I am attempting to autocomplete the EditText in my application, however not through means of typing but from one entry to another. What I mean is that when the

Intellij doesn't show run button

Intellij doesn't show run button even if that file is in src folder. Maybe do you know what to do? P. s. It's strange because that file used to show run but

Spring: Generic RowMapper for dynamic queries

I am using SpringBatch to read from Oracle and write into ElasticSearch. My code works fine for static queries. Example: select emp_id, emp_name from employee_

How to control web page using parameters separate with slash in wicket

I want to create some wicket web page where I will use slash delimeter. Main page will be: http://some.url/team/ will display list of team (Here I just mou

gradle classes are not generated

I am trying to convert my project to gradle and unable to get the class files generated under build folder. Here is the build.gradle file: import org.gradle.in

vaadin 23 reporting debug mode when built for production

I've built my vaadin 23 app in production mode via: mvn clean package -Pproduction -DskipTests -U My pom.xml contains the necessary profile: <!-- vaadin pro

How to view the metrics ready to be sent off to Datadog

So I am new to metrics and micrometer. I am have followed this tutorial in which we set up some basics Meters like a counter and a Gauge and expose the metrics.

Getting null pointer exception while running helloworld in drools

I got the following error while running a simple helloworld sample drools project. 199 [main] ERROR org.drools.compiler.kie.builder.impl.KieContainerImpl - Unk

Spring RestTemplate and generic types ParameterizedTypeReference collections like List<T>

An Abstract controller class requires List of objects from REST. While using Spring RestTemplate its not mapping it to required class instead it returns Linked

Error while adding Galaxy Store review broadcast

I publish my apps and games on Galaxy Store some apps are here in this LINK Using official (document)[https://developer.samsung.com/galaxy-store/customer-review

Connection Java - MySQL : Public Key Retrieval is not allowed

I try to connect MySQL database with Java using connector 8.0.11. Everything seems to be OK, but I get this exception: Exception in thread "main" java.sql.SQL

Quarkus static content response filter

Is there a way to add a filter/interceptor to static resources served from META-INF/resources? I seem have tried all the possible options: @ServerResponseFilter

Command line load-time weaving

So I am starting with AspectJ and have a problem. The following example works perfectly in Eclipse but when I try to run it in bash - it does not work. This i

How can I create single-thread coroutine context under Common pool in Kotlin?

Short requirement: have ability to create corotine context, which will executed in the single thread only (e.g. without parallelism). Additional requirement: i

Run librxtxSerial.so on Embedded Linux Device

I am currently trying to interface a RFID reader unit. The provided SDK offers a test project in Java. On my windows system it does work. The target device, how

Is there any way to generate video from ppt with animation using aspose library in Java

I have one requirement to generate the video from pptx file with animations. I am able to generate the video but animation are not getting applied in the video.

Predicate on a field of an entity class which is type of a parent class and filter on fields of its children

In the entity class A there is a field of type P1 named as p. Class P2 and P3 is extended from P1. In the predicate I want to filter the result based on a field

How can I fill empty space with null in a pdf? using pdfbox

I am using Java PDFBOX to read a pdf It is a very long pdf with more than 40 pages, and I need to extract more than 100 elements on each page, doing it manually

Spring AOP with Around advice and @annotation not working

I am using Spring AOP for logging in my application. Here is the applicationContext.xml file <mvc:annotation-driven /> <context:component-scan base-