Category "java"

How to convert. APK file to .AAB file?

How to convert. APK file to .AAB file? Even if it is irrelavant to your field, Please do share this to your friends who are expert in android app development. I

Spring native query with GROUP BY and ORDER BY also pagination

What if I have my native query (with PostgreSQL) in a more "complex" way, which I need to GROUP the data in order to apply an ORDER BY clause? Well, doing so wi

When Onclick operates in fragment xml, app crashes

I'm new to the development scene and I'm just trying my hand at fragments. I have an onClick event defined in one of my fragment XML files, but when I click the

How do you embed a Swing JPanel into a JavaFX frame?

From Integrating JavaFX 2.0 with Swing and SWT there is a code that allows you to embed a JFXPanel inside a Swing JFrame. I was wondering is there a reverse of

Compose DslPart for complex json

Please could someone assist me create a dslPart object for the below json. I'm stuck at the components array within the content object for type: Component 2. I'

Make test task for kotlin incremental in Gradle?

I would like to make my test task incremental, but I noticed that it looks for files in java instead of kotlin: Task ':test' is not up-to-date because: Task.u

Convert a list of enums and store as 'varchar[]'

Trying to figure out how to store a list of enums in a single table column. I started with a String and it worked. I'll show only the relevant parts of the code

IM getting "HTTP Status 500 - Servlet.init() for servlet dispatcher threw exception" error,new to spring-mvc and java

I'm new to java ,self-learning through video's and stackoverflow , I cannot find where I committed error in this code. this is my web.xml : <?xml version="1.

IM getting "HTTP Status 500 - Servlet.init() for servlet dispatcher threw exception" error,new to spring-mvc and java

I'm new to java ,self-learning through video's and stackoverflow , I cannot find where I committed error in this code. this is my web.xml : <?xml version="1.

Firestore Query Default Order

The following is stated in the official documentation: By default, a query retrieves all documents that satisfy the query in ascending order by document ID. Yo

Add trace.id and transaction.id Springboot

I have a Springboot micro-service. For logging I'm using Elastic common scheme, implemented using ecs-logging-java. I want to set the trace.ID and a transactio

Elasticsearch query serialization returns empty string

I want to extract the JSON representation of an Elasticsearch Query, which was built by the Java client API (Java API Client 8.0.0). The following code shows my

Run ES docker image with custom port using testcontainers

I want to run a container tests that running ES image via Docker. After some research I found https://www.testcontainers.org/ and they also have a built-it ES m

Java, Intellij IDEA problem Unrecognized option: --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED

I have newly installed IntelliJ IDEA 2021.2 (Ultimate Edition) Build #IU-212.4746.92, built on July 27, 2021 Licensed to XXXXXX Subscription is active until Aug

CodecNotFoundException while writing to Amazon Keyspaces

I am trying to write a Spark DF to AWS Keyspaces. Randomly some of the records are getting updated and some of the records are throwing this exception com.datas

How can I pass tags when starting a cucumber android run using Gradle?

I have a suite of cucumber android tests (they are instrumented tests) and I run them using gradlew connectedCheck. What I'm trying to do is run only certain ta

Elliptic Curve DSA on JavaCard - what else do I need to initialise?

I am trying to implement ECDSA on JavaCard. So far I have this code: Signature sig = Signature.getInstance(Signature.ALG_ECDSA_SHA_256, false); KeyPair key = ne

android:exported needs to be explicitly specified for <activity>. Apps targeting Android 12 and higher are required to specify

After upgrading to android 12, the application is not compiling. It shows "Manifest merger failed with multiple errors, see logs" Error showing in Merged mani

Error: Could not find or load main class - When running a JAR at the prompt

I'm looking all afternoon how I can run a JAR of a Spring Boot application I'm developing. Generated the JAR through the mvn clean package command. The JAR is g

Saving an AnimationDrawable object to a file

I am very new to android development and trying to make an application that will convert a video to GIf using MediaMetadataRetriever and AnimationDrawable. I am