Category "java"

How to edit the contents of an existing PDF programmatically in JAVA [closed]

Let's assume I have an existing pdf with a fixed header and footer and blank body like the below image And I have to add content to the body(

Java web application not binding with Heroku $PORT

I have made a Java web application and trying to host it on Heroku with a Dockerfile, CMD as : CMD ["java", "-Dserver.port=$PORT", "-jar", "/usr/local/lib/backe

post api pblm in backend

const newItem = { name, price, img, detail, email } fetch("http://localhost:5000/add", { method: "POST", header: { "content

Intellij and jar file: No Persistence provider for EntityManager named xxx

I use intellij to create a jar package, but it does not work correctly. After it is created and all the external library jar files are created as well, when I s

I am unable to use auto Image slider but not able to do so

I just wanted to use Auto image Slider, but after adding all the dependencies and other requirments like jitpack.io still I am unable to use sliderLayout of aut

Transform Stream

I have a GenericRecord stream with value deserialised using Avro, schema has name and age. KafkaSource<GenericRecord> source = KafkaSource.<GenericRec

The flutter app doesn't run with java.lang.AssertionError

An exception has occurred in the compiler (1.8.0_242-release). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.jav

Why method print() of my class CustomDateFormatter using with my custom spring annotation is never called?

I have a issue with creation of custom annotation in springboot application: I've got a form with few fields with datepicker. Dates must have to be parsed in 2

Why not firebase fields not getting updated?

I am trying to update my firebase database based on "aadhar" field but I am failing to do it so. I don't know where it is going wrong. Here is my activity code

Spring error "Bean named 'x' is expected to be of type 'y', but was actually of type [com.sun.proxy.$Proxy]"

I am trying to implement a DAO based authentication in an application using Spring Security. When I tried to log in to the application with a user I got this er

org.sonarsource.scanner.maven:sonar-maven-plugin:3.8.0.2131:sonar failed: An API incompatibility was encountered while executing

my Software version sonarqube 7.0 maven: 3.6.3 jdk: 17 sonar-maven-plugin: 3.8.0.2131 when I run mvn --batch-mode clean verify org.sonarsource.scanner.maven:so

CallLog.Calls.CACHED_LOOKUP_URI not working on Xiaomi/MIUI devices

I need to get the contact URI given the Call Log in order to be able to open the native "Contacts" app to show the info of the Contact that made a call, if any.

Spring boot WebSecurityConfigurerAdapter basic authentication user password validation issue

I'm writing a simple REST API using Spring Boot and I want to enable basic authentication. Therefore I have used the WebSecurityConfigurerAdapter as shown below

Hibernate GROUP BY results in syntax error

My Hibernate query is: SELECT M.uid, P.userUid, COUNT(*) FROM PostXMentionsEntity M JOIN PostsEntity P GROUP BY M.uid, P.userUid ORDER BY COUNT(*) DESC where P

How to get Swagger UI in SpringBoot (404 error)

I'm trying to add Swagger UI to my REST Api but I can't find swagger ui path or there is a problem with it. Because when I check the paths where swagger ui must

bean creation error when starting spring boot application

When i try to run my spring boot application i get this Exception: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'conf

"Unable to find method ''void org.apache.commons.compress.archivers.zip.ZipFile.<init>(java.nio.channels.SeekableByteChannel)''"

The problem: I'm currently using Android Studio and Gradle to compile code from a github repository (00-Evan/shattered-pixel-dungeon) and while I can run some t

how to convert nested for loop in stream API for the program [closed]

List<Emp> list = Arrays.asList( new Emp(123, "ABC"), new Emp(123, "BCD"), new Emp(1243, "AUBC"),

Under which condition should I choose the JDK provider and its pros and cons? [closed]

May I know what are the JDK provider choices for Spring Boot if I am using Kotlin with Java 8 along with AWS EC2? I saw many providers out the

JFrame Isn't Closable Despite frame.setDefaultCloseOperation()

I am having a problem where the panel doesn't load in the JFrame and the JFrame itself doesn't set the default close operation, but performs setSize() and setVi