Category "java"

Running Python scripts in Java class activity in Android Studio with Chaquopy

I am trying to utilize some python scripts in an Android Application (Java). I have configured Chaquopy following the instructions on their website. https://ch

Is it possible to configure spring-openapi to generate predictable order output in v3 api-docs?

When producing the output for the springdoc OpenAPI v3 api-docs, any slight change would cause this to produce quite different order in the generated v3 api doc

How to run @QuarkusIntegrationTest in a Gradle project?

I want to run a Quarkus integration test in order to verify OpenAPI yaml generated from the source code. According to the documentation, it should be possible t

Counting true/false occurences on XML

I need to count specifics occurences on XML ("true" or "false") and get the results in a table I try using a tXMLMap but so far without success. Any idea where

org.springframework.boot.web.reactive.error.DefaultErrorAttributes is not getting called anymore in org.springframework.boot:2.3.1.RELEASE

Spring reactive web: Earlier in spring boot 2.2.*, i was using a class that extends DefaultErrorAttributes. This class was used to handle exceptions globally fo

How to tell Java to not exit when interrupt signal (Ctrl+C) is received

I know how to shutdown Java application gracefully by adding shutdown hook, or how to handle signals like interrupt or TERM. The problem here is, in C, when I h

how to pass variable between to vue file?

how to pass variable between to vue file ? Hello, this is my file SendCode.vue has variable NewEmail which I want to use it in another file changePass.vue . Is

java.lang.AbstractMethodError in Firebase Android (FirebaseInstallationServiceClient.readGenerateAuthTokenResponse)

We have this crash that in Play Console has occurred some 1.1million times and counting, with no success figuring out why. The report: java.lang.AbstractMethodE

How i can get selection model from one method to another metod from other class with Table View? [duplicate]

I want to get one selected model with name, author,key_words to next window. Where it will be in tex fields. After i changing this, i want to

How do you Externalize a List in Java

I have a class which implements Externalizable which contains three objects and a List of one of those three object types. I have assumed you would simply imple

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