Category "java"

Maven dependency : Failed to get sources. Instead, stub sources have been generated by the disassembler

when i'm navigating to a maven dependency class, i get a .class file with this comment on top and no doc is shown : // Failed to get sources. Instead, stub sour

How to call scheduler from Main Class

My application have two schedulers one runs every day at a particular time and another scheduler every day at and interval of 1 hour. I have added the cron exp

Use 'addRealmObjectField()' instead to add fields that link to other RealmObjects

I have a method that creates and update a realm table private static void createOrUpdateModel(RealmSchema schema, Class clazz) { Field field[] = clazz.getDe

Java SpringBoot OpenApi @ApiResponse shows wrong return object

I'm using OpenApi 3 in my SpringBoot project in order to generate a Swagger html page. The dependency in POM.xml : <dependency> <groupId&g

Java immediately instantiated class [duplicate]

Can someone please explain to me how this code works? Specifically, the new Comparator part? It looks like a class definition that's being imm

How to Brew install Ant with specific OpenJDK version?

I'm trying to install Ant such that it is built with OpenJDK@11 instead of the latest OpenJDK? brew install ant installs it with OpenJDK@18 currently. I'm using

Errors importing and running codename one maven project using eclipse, windows 10, jdk_8u321

Downloaded Codename one maven project for eclipse. When I import the project, at the end of the import I get this error: Could not calculate build plan: Plugin

Java time-based map/cache with expiring keys [closed]

Do any of you know of a Java Map or similar standard data store that automatically purges entries after a given timeout? This means aging, whe

Google Sheets Batch Update payload Limits

So I'm doing a batchUpdate for a lot of data. Personally, I'd love to upload all of it in one shot. However, I suspect there might be some limitations as to the

How do I resolve ClassNotFoundException?

I am trying to run a Java application, but getting this error: java.lang.ClassNotFoundException: After the colon comes the location of the class that is mis

JSF 2.2 (Mojarra) calls f:ajax twice in nested composite:component

i've got a pretty simple example: there is a nested composite component. on my index.xhtml is a component called "ht:wrapper" to which are registered some ajax

Android application works with debugger but not in release mode

I have been trying to implement a debouncer for my application, I am trying to reduce requests to the server using this debouncer, eventually, I managed to impl

How JSP get Data from SQL server using Tag

I am trying to get the resultList to my jsp using tag. public class DBUtil { public String getData()throws SQLException, ClassNotFoundException{

Flutter platform specific plugin - Reply already submitted

I am trying to call multiple methods from my platform specific plugin and I am having hard time with errors E/MethodChannel#fuzzy_plugin( 3277): Failed to handl

Selenium - Java - Chrome doesn't use provided user-data-dir when Headless

I am trying to run some tests with Selenium 4.1.3, Chrome 100 and Java 18. The test requires to use a specific Chrome profile. My code works perfectly when Chro

Trying to use a GridBagLayout to manage JPanels in Java

I am currently making my first steps with GUIs and am right now just trying to make a JFrame with two JPanel containers according to my work of art here: I cho

How to open file with custom extension on android 11 via action open document

How i can open file with my extension settings. Framework see this file,but i can't open it. when i set mime_type / all ok,but it allow to open all file types,b

how to calculate size of S3 bucket if size is more than GB using java

I am not able to calculate S3 bucket size if it is more than 300GB. I have used below code to calculate no of objects and bucket size. it is working for bucket

Trying to implement Facebook Login using Firebase on Android Studio. Screen is stuck loading facebook login page when i try to sign in

i'm a beginner who is learning how to use Android studio and this is my first time posting on Stack Overflow. I wish to implement Facebook login on my android a

How to set a gradient background to the form. Intellij

I am a beginner on the Intellij Idea GUI Form. And I don't know how to set a gradient background to the form. Can someone help me? Thanks. My layout This is my