Category "java"

Java Selenium register and handle unexpected notification element

In an effort to make my test project more robust, I'm trying to deal with an issue where an unexpected notification element on the page messes with my interacti

How to wait for the page to load in HtmlUnit not HtmlUnitDriver

I have a selenium code below which wait for the page to load before the action(click button) is performed. How do I do the same thing with HtmlUnit not HtmlUnit

In ASM 9.2 as argument of Inner class constructor, how to differentiate outer class argument (added by compiler) vs written in code?

To access the outer class, if the inner class contains constructors without the outer class reference as an argument, the compiler can add the outer class refer

Convert android.view.Menu to JMenu

I have been using a react-native library react-native-selectable-text that I forked and made small changes to it. Now I want to be able to add some icons to the

UTF-8 encoding java replacement with 3 hex character

My application is receiving data from an endpoint. I do some processing with the received data and insert it into the database. At some point I had a problem wi

Vaadin Grid - specific rows always on top

I have two classes, one named "Folder" and the second one "Item". I'm using an interface to show folders and items together in one Vaadin Grid. I wrote a custom

Construction Heuristic Phase slower since migration from 7.28 to 8.14

After migrating Optaplanner from version 7.28.0.FINAL to version 8.14.1.FINAL, the construction heuristic phase defined in the configuration as following : &l

How can i implement a Web Server in Android Studio (Java) and react to requests?

Is it possible to create a local web server in Java (Android Studio IDE) and send broadcasts containing e.g the parameter f (http://localhost:8888/?f=SOMEDATA)

Getting org.hibernate.HibernateException - Unable to get the default Bean Validation factory

I have a maven project throwing Bean Validation factory error, added below dependencies still issue has not got resolved. Using java 11. <dependency>

How to send Frame from openCV client to server

I am trying to send input from a capture card on a client to a server. I can get the capture card to display on the client, but I am having some trouble sending

Spring QuerydslPredicate - exception handling for bad types

I didn't find any proper solution for this so maybe you can assist. Basically issue is ultra simple I want to do some kind of "better looking" error handling wh

Java 7 Zip-JBinding Truncated zip file extracted from ISO

I am using below code (link to full code) to extract zip file which is inside iso file using 7-zip-JBinding. for (ISimpleInArchiveItem item : simpleInArchiv

How to convert nested objects into nested DTOs using ModelMapper?

I am facing issue when I am trying to use ModelMapper to convert nested java objects into nested DTO's. Getting null for child dto's in parent dto object. Follo

How to display the float value of a calculation in a text box?

I'm trying to display the 'Day time left' and 'Night time left' after doing a small calculation I want to be able to select any of the 3 packages from the combo

Log4j2 vulnerability and Lombok annotation @log4j2

We are using spring boot 2.1.5 and starter parent as pom dependency. Spring boot is using default logback for logging and we haven't explicitly switched to Log4

How to catch exceptions thrown from reactor?

I want to catch exceptions thrown from a flux, my code is like this: try { Flux.just("key1", "key2", "key3") .doOnNext(S

Unable to find /oauth/device/code Auth0 Java API

Is there an API to fetch the device code via Auth0 Java API, we use the following snippet in Go, the question is if there is a standard API or should we make a

Maven Eclipse - Child module not recognized as maven project

I'm working on a new maven multi module project on eclipse. The problem is, the child project is shown as a regular folder and not a maven folder. What's the pr

Activity Intent sometimes has null extra

I'm seeing a problem where an Activity crashes grabbing an Intent extra due to it being null despite not being able to identify anywhere we don't pass that extr

Compare two Lists and get the difference [duplicate]

I have two Lists which I get - one from xlsx file, the second one - by select from database @Component public class ReadExcelDemo implements C