Category "java"

Unable to Capture Fingerprint using morpho fingerprint scanner device in android application

Device detail: Morpho fingerprint scanner device Method Type : CAPTURE URL : http://127.0.0.1:11100/capture Headers content-type : text/xml Accept : text/xml B

Argument bean must not be null after upgrading my faces from 2.2.14 to 2.3.0

org.jboss.weld.exceptions.IllegalArgumentException: WELD-001456: Argument bean must not be null at org.jboss.weld.util.Preconditions.checkArgumentNotNull(Precon

CountDownLatch: object not locked by thread before wait()

I want to pause the main thread until the other thread finishes. I tried CountDownLatch and semaphore. but none of them worked. I got the same error for both.

Is it possible to display watch sensor data on phone without installing app on watch

Display watch sensor data on phone without installing an app on watch? How create an app that displays all the sensor data from watch?

How Hibernate process '?' [duplicate]

I'm new in Hibernate. I can't understand how Hibernate process ? in Restrictions.sqlRestriction() method. For example, there is a sample from

How to merge two sorted array?

Question is ==> You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the number of elemen

Should multithreading be used in microservices?

Should parallel programming be used in the development of microservices in case the microservices are scalable and, for instance, deployed as ECS on AWS? If ye

How to Customise example value of request body and execute it on swagger-ui with springdoc-open-api

I have created rest webservice using springboot and added springdoc-open-api for ducumentation of webservice, Now i have 2 question 1-how to add custom test val

> Could not find com.google.android.exoplayer:exoplayer-core:r2.4.2

I am facing this exoplayer not found error in video android studio application after I updated my project dependencies. I don't know how to update old Exoplayer

Minecraft Bukkit Plugin, runTask(Plugin plugin)

i try to make a minecraft plugin with bukkit and i will try to change the time every 500ms but when i start that in the main thread, the server crashes. So i tr

How to convert an XML structured-like object to a JSON string in Java?

So I have an XML structured object (Java) and need some help to convert it to a JSON string without using any library and in an iterative way. E.g <root>

Alternative to AsyncTask with HTTP POST request because it was deprecated

I made an android app 5 years ago that use AsyncTask to create an HTTP POST request to send a receive data from server, with two parameters. Any help would be a

How can I create immutable DTOs using Jackson but without annotions?

Jackson can deserialize JSON data into immutable objects. But by default the constructor or static factory method parameters have to be specified either using @

NoClassDefFoundError on org.springframework.jms.listener.DefaultMessageListenerContainer on start Application

I have big Gradle project. When i ruunng application gradlew - bootRun or run Debug on InteljIdea I got exceptions java.lang.NoClassDefFoundError: org/springfr

React Native - TypeError: n.createContext is not a function. (In 'n.createContext(o.default)', 'n.createContext' is undefined)

I'm trying to implement React Native into an existing Android application. I follow the steps in the official documentation and I have ended with the following

Edited: Retrofit and CompletableFuture, is there a way to not rely on the underlying connection pool?

Original question: OkHttp, is there a way to not rely on a connection pool? Hey OkHttp users and/or contributors! Is there a way to use an OkHttpClient withou

Store a variable in Android

Is there any way to have a boolean that goes true when successful login and false when not, and to be able to access it and change its value in the activities?

Adding all elements of an array except the element at index with O(n) complexity

This is what i came thru a problem in some coding test. problem statement was like that we have to add all the elements of an array except the element at the i

bus properties settings ignored

I had cxf.xml file: <beans .... <cxf:bus> <cxf:features> <cxf:logging/> </cxf:features> </cxf:bus> </beans&

why fingerprintsimilarty in my code does not work?

I'm creating an application to recognize the sound of two wave files, for doing this I have found that "Musicg" library is used for that purpose. so I just writ