Category "java"

LinkageError: loading constraint violation when overriding method javax/xml/stream/XMLInputFactory.createXMLEventReader

I'm upgrading an application that's hosted on WebSphere 9 running IBM JDK 8 from Spring 4.0.3 to 5.3.18. While doing so I updated the project's Jackson, Woodsto

when scroll end multiple request retrofit send when user two time bottom hit how to control it

I am using retrofit in my app to get data from server 15 results each request all working is fine but when I hit bottom retrofit send a request for new data it'

Android - Save my image To Gallery / External Storage in Android Studio

I am making a framer app which can be used to frame your image. And i Want to save that image in gallery after framing and for this i have set a button to perfo

Why stream created with Spliterators is not being processed in parallel?

This is probably very basic, but I am not a Java person. Here is my processing code which simply prints and sleeps: private static void myProcessings(int va

How do I center align the components in a Java GUI?

I am a beginner programmer and I'm currently working on a project by making a simple Login screen layout using Java. So far I'm doing pretty good, but is there

Can I send/receive Java objects to RabbitMQ using Java built-in IO classes instead of Spring AMQP?

I need to send/receive Java POJOs to/from RabbitMQ. There is a ready solution with Spring AMQP, but I've managed to do it with built-in java.io.* (serialize POJ

Java 17 and maven-archetype-quickstart gives error: Source Option 5 is no longer supported

When using the maven command to create a simple Maven project (with the latest versions of maven and java), I get the error: [ERROR] Source option 5 is no longe

How to set activiti task name dynamically?

I need to set task name dynamically for activiti 7, just like below snippt code: <userTask id='theTask' name='${taskNameDynamically}' > ... </u

How to extract the text iterating specific rows within a table using XPath with Selenium and Java

I want to iterate through this table and need to get a text from each row like text inside td= health1, health 2 and health 3, similarly, I need text inside the

Web socket CORS issue in SpringBoot

I was working on implementing web sockets in springboot, I followed the example spring has given in there docs. But I am getting cors error while trying to conn

How to open an activity on the lock screen after FCM notification

How can I open an activity on the lock screen without the user having to click on it? Like for example an alarm or a call. In my code I can get the FCM notifica

Debugging issue in testng test cases

I am using intelliJ v2021.3.2 (Community Edition) My project is a java Maven TestNG (v7.4.0) project When I run test cases it executes successfully, but when I

How to convert String to Generics in java

I have a class similar to this: public class Car<T> { private T model; private CarBodyParts body; } public class CarBodyParts { private Integer

How do I make a Totem of Undying like item with Fabric?

I am new to Minecraft Fabric Modding and I am trying to make a Item like the Totem of Undying but I can't find the Totem code! There is nothing lika a TotemOfU

How to set custom value in SAN while generating CSR in java?

Need to generate CSR with SAN like this Subject Alternative Names: DirName:/SN=1345332443jff432/UID=12347577400003/title=0011/registeredAddress=Sample E/busines

Building multi-module maven project for SonarCloud

I am building a maven project of X amount of modules for the first time for SonarCloud. The sonar.projectKey value needs to be unique, so I set it to ${project.

SEVERE: Servlet [Jersey Web Application] in web application [/restapp] threw load() exception

This is my REST API project. I don't know what this error is. I am trying resolve this error from two days now and i am exhausted now, anyone help me here web p

How can I manage duplicate letters in Wordle Game (JavaFx)?

In my algorithm to compare the secret word with the guessed word, I need to manage the duplicated letters. For example, if the secret word is newly and the gue

How to read Excel cell having Date with Apache POI?

I'm using Apache POI 3.6, I want to read an excel file which has a date like this 8/23/1991. switch (cell.getCellType()) { ... ... case HSSFCell.CE

export and import gson - Failed to invoke public ) with no args

i'm learning how to convert array to json file and import that array with using gson. I have abstract class Shape; public abstract class Shape { private Type ty