Category "java"

remove and update items in listview at firebase database

May you help us with our school project. We are trying to delete and update items in listview and firebase database. The delete works but only delete the values

Share file .txt Android

I'm trying to share a .txt file to another app (gmail for example) but I have some problems. I decided to use the file provider. When I select gmail among the a

Could not find or load main class net.fabricmc.devlaunchinjector.Main fabricmc

I was programming a fabric minecraft mod in intellij and when I ran the code it said : Could not find or load main class net.fabricmc.devlaunchinjector.Main Wh

How to modify an existing PDF file contents in Java

I am using a Spring Boot application and I need to dynamically populate the blanks in an existing PDF using the values from the database. I have attached the im

SpringJPA convert DB2 Negative Numeric type in Positive number

I'm using Spring Boot with JPA and a Db2 database on an AS400 server. When I inspect the result of a SELECT statement using the debugger tool, the value stored

Java wrapper for Python library?

I am trying to call Robinhood API methods from Java. I have tinkered with Jython, and just writing the code in Python, but I would much rather write the code in

Android why are two identical Fragments created when navigating with NavController

I have an app that uses the single activity and multiple fragments approach and I use the NavController for navigating. Unfortunately, when navigating to a Frag

why a project that contain spring data dependency doesn't work on tomcat9?

I am trying to deploy a small springboot app on tomcat9 , the tomcat9 is on ubuntu 20 on my account in digital ocean . the problem when i am adding the spring d

Bumblebee Android studio Plugin [id: 'com.android.application', version: '7.1.0', apply: false] was not found in any of the following sources:

I updated my android studio from Android studio fox to Android studio Bumblebee 2021.1.1 but none of my projects can run in Android studio Bumblebee 2021.1.1. I

Jpa reader Spring Batch

I would like to know, if this way is recommended to implement the reader spring batch with jpa or is it better to look for another solution and if this way is n

How can I add node and Edge in a different way so that I can add a large file

public static void main(String[] args){ Node A = new Node("A"); Node B = new Node("B"); Node C = new Node("C");

Why onAdDismissedFullScreenContent is being called lately?

I have created a function to show interstitial ad before showing another activity. It's working but onAdDismissedFullScreenContent is being called 2-3 sec latel

No property named "Id" exists in source parameter(s). Did you mean "null"?

I'm kind of stuck in below error Post.class @Data @Getter @Setter @Entity @Table(name = "posts", uniqueConstraints = { @UniqueConstraint(columnNames = { "title"

Why is reactor context throwing "Context does not contain key" when .block() is called?

I have a WebFilter that injects a context public class MyWebFilter implements WebFilter { @Override public Mono<Void> filter(ServerWebExchange exchang

Type erasure Generics

An error occurs at new T[5] during compile-time saying => error: generic array creation and according to my understanding, the array is created during compil

How to Direct Message a specific person with a Discord Bot

I have tried to DM myself using the code: User me = new UserById(myId); me.openPrivateChannel().flatMap(channel -> channel.sendMessage("hello")).queue(); Th

Why Concurrent Collector in Java besides using ConcurrentMap does not use some Concurrent List Implementation?

Consider the signature of the concurrentGroupBy: static <T,K> Collector<T,?,ConcurrentMap<K,List<T>>> groupingByConcurrent(Function<

java.lang.RuntimeException: Settings logger used after project was loaded

i am using play framework 2.6 and sbt latest version I ran sbt -jvm-debug 9000 and received this following error. not sure how to solve this. (any suggestions i

Changing x-axis in grafana graph to custom time series sent as label of gauge

I am working on a project in java using spring boot that requires working on prometheus and grafana. To send data to prometheus end-point, I am using "gauge" ha

Spark-Java : How to add an array column in spark Dataframe

I am trying to add a new column to my Spark Dataframe. New column added will be of a size based on a variable (say salt) post which I will use that column to ex