Category "java"

Can not resolve symbol "security" in spring boot application

I'm trying to learn Java Spring and doing exactly like here: https://spring.io/guides/gs/securing-web/ But my IDE says "cannot resolve 'security' symbol" while

org.apache.http.TruncatedChunkException

I am getting this issue when trying performance testing with jmeter. the application built on spring and ui with bootstrap with angularjs. this application work

Run multiple spring boot jars in one jvm

My project contains several services, each one is annotated with @SpringBootApplication and can be run on a random port via "gradle bootRun". Is it possible to

H2 database compiled into a native-image is only functional as a client

After build the native image I've the following error I'm using a H2 database in file mode. Do I should understand that it's not possible to use H2 in native m

ORDER BY Not Working in JPQL Query

I have the following method that returns a HashMap based on a Users Department and Building. I want to ORDER BY ASC based on the user name private HashMap<L

r2dbc-pool connection not released after cancel

I have a strange behaviour with R2DBC Pool: We happen to create a large number of threads and send them to the R2DBC pool to acquire a DB connection. When all o

How to add non-English words as text part to multi-part request in volley lib?

I have a custom json request class to upload multi-part files to server this class in an Android application , it works fine when I add English words as keys an

Error: Unable to initialize main class StartServer Caused by: java.lang.NoClassDefFoundError: org/omg/PortableServer/Servant

The structure of my project When I try to run my server code, the error shows up "C:\Program Files\Java\jdk-10.0.2\bin\java.exe" "-javaagent:C:\Program Files\J

How to get JSON metadata of a class in Spring Boot

I'm trying to get metadata in JSON format of a class in Spring Boot, but I don't really know how to start. I have created my class, that is a random one, just t

'mvnw' is not recognized as an internal or external command

I am getting the following, while running 'mvnw' command. How to add maven wrapper to a project? project_root>mvnw 'mvnw' is not recognized as an inter

java program to print array element when index is entered by user

Forgive me if my question is stupid, I am a beginner, I found some Java code in which html components and some data were encoded and stored in array as string..

How to create a multiple activity in java

I want to create an app using AIDE, which randomly generates a number and tell if it's even or odd in the background. That is, the main activity xml file shows

Using Selenium how to get network request

I want to take all the network request using selenium..I am not getting any way to find this solution.If anyone can suggest me or provide code or library that w

Can we use object as a key in hashmap in Java?

How to use an object as a key in a hashmap. If you use an object as key do you need to override equals and hashcode methods for that object?

Unable to deserialize Kafka stream to pojo. Could not find class specified in writer's schema

Getting exception while reading from kafka topic: Caused by: org.apache.kafka.common.errors.SerializationException: Error deserializing Avro message for

AWS S3 Java file upload without access keys/credentials

I am new to AWS, I used AWS CLI to locally configure my AWS credentials, as I can't have an IAM role attached to my laptop, I can see my credentials properly c

Hibernate 5 Native query support - Slow response generation

I am trying to fetch 1000 rows using the Hibernate createNativeQuery. The query contains two joins. When I execute the same in SQL developer I see that response

How to create a multiple activity in java

I want to create an app using AIDE, which randomly generates a number and tell if it's even or odd in the background. That is, the main activity xml file shows

kotlin kapt3 KaptBaseError: Error while annotation processing ::For Room Database

I am running into this strange issue in the Room database operation classes. There are lot of Annotations are used, starting from Database then Entity, DAO... N

How to send a string from java client to python server

I'm sending strings to Python server.py from client.java, but there is some error in the string format while receiving into the server. Here are some outputs: