Category "java"

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

How can I prevent Undesired data from being added into the Queue?

I'm wrote my code using combination of stack & queue data structures. My code is working, but I have a problem in the main() method. I'm using a loop to rea

how to insert multiple checkbox values into database?

So, I have a form in that i have two check boxes and both can be checked but when i check both the data is not going into database only the first value is inser

maven-enforcer-plugin False Positive RequireJavaVersion

I'm new to a project and the project is using the maven-enforcer-plugin. The plugin (version 3.0.0) is configured to require Java 11 <requireJavaVersion>

I want to intent to select the image from gallery and camera option in WebView app (both together as picture shown)

I want to like this as picture shown in WebView app Here is my code but I am not getting camera option only I am getting gallery in my app public class MainAct

How to change the version of a dependency during test execution to test binary compatibility with maven?

I'm currently working on a dbunit extension library. Thus this library depends on dbunit. I extracted the version as a maven property. <properties> &l

maven-enforcer-plugin False Positive RequireJavaVersion

I'm new to a project and the project is using the maven-enforcer-plugin. The plugin (version 3.0.0) is configured to require Java 11 <requireJavaVersion>

Firebase getting ID for specific node to delete/update

first time using Firebase and pretty new to android studio, i'm trying to make a schedule app where a user can create many schedules and it would be associated

How to map specific column in entity class

I have two tables Users and UserRoles. These are the entity class I have created, @Entity @Table(name="users") public Users { @Id @Column(name = "id") private

Calling JDBC from Node.js: java.lang.UnsupportedClassVersionError

Not quite a duplicate of this Q&A when I try to use a JDBC driver from Node.js. For reference, Node.js runs initialize.js which is the following script: var

I don't know why the columns swapped in JTable

This question may seem silly to you, but pls help me. My program works, but slighty incorrect. In the image1 you can see the location of the data in the databas

Unable to cast Playlist to FolderPlaylist using obstmusic Java applescript wrapper for MacOS Music app

Trying to use https://github.com/japlscript/obstmusic to talk to Apple Music app on macOS with Java, I used to write native AppleScript and then java applescrip

Passing ReactiveSecurityContext into GraphQL - How to enable Spring @PreAuthorize annotation for Reactive Resolvers

After I migrated to Reactive GraphQL, Spring ReactiveSecurityContext is not accessible in GraphQL. The question here is, how I can use Spring @PreAuthorize anno

Apache POI incorrectly printing cell that is auto formatted to time

I am trying to print out a cell from an encrypted Excel workbook. The cell contains a time and when i try to print cell.getNumericCellValue(), the result is a r

why does the ObjectOutputStream throw the invalid stream header 000000 error?

the method receives a stream of bytes and returns an object of type Data. Everything works fine without threads. But when using threads, the method causes the i

AWS Lambda java.lang.ClassNotFoundException: com.opencsv.exceptions.CsvException

I am getting the following error while running code on AWS lambda: START RequestId: cd42e5ab-fbc8-4f50-8c4f-e8257525bd78 Version: $LATEST Error loading meth

Failed to deduce bean type for org.springframework.boot.actuate.autoconfigure.metrics.JvmMetricsAutoConfiguration.jvmHeapPressureMetrics

I am trying to upgrade Spring-boot from 2.2.5.RELEASE to 2.6.6 and I am encountering few issues with spring-boot-starter-actuator dependency. This service runs