Category "java"

Android Studio - blank white screen when running Ionic App on an emulator

I'm working on an Ionic App. It's running fine both in iOS emulator (via Xcode) and via ionic serve, but when trying to run it on an android emulator in Android

listview not getting data correctly

okay, so i got a listView in my android app to display messages, everything has been going good ever since i got help on time but now i got a bug where the last

Got a java.lang.IllegalArgumentException when sending a Java object by the dynamic TCP/IP integration flow?

Gary Russell helped me some time ago with the following 'DynamicTcpServer' flow (see Building a TCP/IP server with SI's dynamic flow registration) having now a

Throwing java.lang.IllegalAccessException module java.base does not open java.util.concurrent when running Corretto on Java

I have 2 microservices: serviceBFF, serviceCore. Stack Spring Boot 2.6.6 Amazon Corretto 17 (Docker) OpenJDK 17 (local) Docker (latest) serviceBFF calls a REST

Consider defining a bean of type 'Mapper' in your configuration [Spring-Boot]

mapstruct doesn't work on my Spring Boot project. I added dependencies, path, Mapper annotations (componentModel="spring") in the mapper interface and still get

Java Selenium - how to test browser network -> payload?

Java Selenium - how to test browser network -> payload ? I have following code that works: WebDriver driver; BrowserMobProxyServer proxy; Proxy

Service stope after few Hours in android

I am creating one foreground service and start this service using STICKY. It detect phone lock and on event. It working fine for few hours but after some time t

Reentrant lock not updating the shared resource properly

I have a shared variable count, which I am incrementing in increment() method and two threads are access this. I'm getting the wrong final count. Here is the s

Java doesn't support IRI?

Example code: java.net.URI.create("http://测试.com").getHost(); // return null new java.net.URL("http://测试.com").getHost(); // return

My code returns an error when trying to split a vector

I have a problem with a Java code and I can't solve it, I have a Vector with 3.529 .txt files and I wanted to split it into 6 other vectors. I'm using the code

Is there a way to resize a Libgdx window based on the monitor's maximum bound?

What I mean is there a way to set the window size to related to the result given by this method: GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWin

Impose Constraint on CpModel only when some relation between IntVars is true

tl;dr: I'm using Google OR-Tools in Java. I want to add a conditional constraint to a CpModel depending on whether clause involving IntVar variables are true. B

Getting project error when removing dependency

I have 3 different projects. Project A , Project B & Project C. Project B contain some model classes as well as other classes & Project C contain only d

How to let threads manipulate the same list Java

I have an class where I define a list with an add and deletion method like here: public class listClass{ private List<T> someList = new ArrayList<&

Android Studio - PocketModeLiteSensor Error

I have a problem that I've already described on StackOverflow but still can't solve - Suddenly LogCat stopped working for me - I have no idea why! As soon as I

Button in Action Menu in Title bar doesn't Work

When I click the button in the title bar it doesn't do any thing. I use item in menu and I linked it to main activity class but it doesn't work. @Override

How to Abort long running query in weblogic struct java application

I have a query some times I get timeout exception and query runs on the backend for ever not displaying any information and causes application to hang up how ca

Sorting and Filter Over PII Data

I have a large set of User PII data, currently, we are storing on Relational Data encrypted with AWS KMS. Now I have to paginate data based on UserName. The onl

Why do I have to clear buffer twice for getting correct output?

I just started learning Java yesterday, and today I was learning input-taking. I got to know why we need to clear the scanner buffer before taking input using .

How to store custom java objects with ArrayLists in Firebase realtime database

I am trying to store custom java objects in Firebase. These objects have ArrayLists and other object references inside them such as Location. When I try to writ