Questions tagged [java]

Java is a high-level object oriented programming language. Use this tag when you're having problems using or understanding the language itself. This tag is frequently used alongside other tags for libraries and/or frameworks used by Java developers.

0
votes
0answers
2 views

Can Make Redis server return NULL instead of JedisConnectionException?

We are developing an application that uses the Redis server as a cache server. So what We do are when a client request API it first go to Redis to get data if there is no data it returns null so the ...
0
votes
0answers
2 views

Position Graphic @ Bottom-Right in a Block using Apache FOP

Using Apache FOP I want to place an <fo:external-graphic> within an <fo:block> or a <fo:block-container> of a fixed size. The Graphic should be positioned in the bottom right-hand ...
0
votes
0answers
3 views

How is it possible to use constant in nativeQuery?

I use PostgreSQL and have user function in DB: CREATE OR REPLACE FUNCTION char_by_char_compare(searchstring text, mainstring text) RETURNS int AS $$ DECLARE declare currentPos int; declare resul int ;...
0
votes
0answers
2 views

Elastic Search Path Hirerarchy

How Can I implement path hierarchy in Elastic Search on Java I've index files into ES with FilePath. Consider the example if I've a folder structure /Movies/Crime/2020/movie1.jpg /Movies/Crime/2021/...
-1
votes
0answers
3 views

E/AndroidRuntime: FATAL EXCEPTION: main / Could not identify launch activity: Default Activity not found Error while Launching activity

i try to run the app without add the launcher category inside the android manifest i got this error Could not identify launch activity: Default Activity not found Error while Launching activity ...
0
votes
0answers
3 views

Could not create task ':bootBuildImage'

I am applying spring boot gradle plugin from local file system in my build.gradle file. buildscript { dependencies { classpath files('../3rdparty/spring-boot-2/spring-boot-gradle-plugin-2.5....
0
votes
1answer
12 views

File upload in Jenkins using File Parameter

I have a test in which .csv file is uploaded to the application. public void userUploadFile() { LocalFileDetector detector = new LocalFileDetector(); File localFile = detector.getLocalFile(...
0
votes
0answers
4 views

Render problem - only one page is visible

I have problem generating while iterating through list of 30 items only 18 rows of table are visible, they are perfectly cut if I remove @media print it shows part of 19th row but it cuts (when i ...
0
votes
1answer
19 views

How to convert List<AnyClassObject> to List<Map<String, String>> using Stream in java 8?

I have a List, I need to convert it to List<Map<String, String>>. For e.g. consider below scenario: public class AnyClass() { private String letter; } Now, suppose I have a list ...
0
votes
0answers
4 views

Getting an error while deploying a project: HikariPool-1 - Exception during pool initialization

I'm deploying a SpringBoot project and I have got an error called HikariPool-1 - Exception during pool initialization. I'm currently using Intellij and it's giving me this error while trying to run a ...
0
votes
0answers
3 views

Kafka producer Spring Cloud app won't publish anything

i started connected my spring cloud app with kafka and zookeeper hosted in docker-compose file, they're connected, but when i run the application and expect the Producer to publish a message, get ...
0
votes
0answers
6 views

Traverse dynamic JSON properties [duplicate]

I have a JSON file with the following contents. Note that the dates are totally dynamic so I am unable to access them using names. { "calendar": { "dateToDayId": { &...
-7
votes
0answers
19 views

Hi there I need help in refactoring [closed]

Enhance your program by doing the following: ○ Incorporate exception handling to your code. Your code should include at least two try-catch blocks (Go back to the Defensive Programming task if you’re ...
0
votes
1answer
21 views

Java Spring Boot Custom Exception Handler thrown out of controller

I'm trying to throw my custom exception in the "unsuccessfulAuthentication", the problem is I can't catch it in my global exception handler. It's like exceptions thrown out of controllers ...
-4
votes
1answer
28 views

Program that returns true if two strings are similar?

This is the problem: Write a program that returns true if two given strings are nearly identical. Nearly identical means that either all of their characters match, or all but one match. The strings ...

15 30 50 per page
1
2 3 4 5
121605