Category "java"

character encoding of the plain text document was not declared

I am getting "The character encoding of the plain text document was not declared. The document will render with garbled text in some browser configurations if t

Change Sheet in Excelfile using SmartXls

I´m using SmartXLS for Java(5.7.1) to do some calculations in Excel. Does anyone have experience with SmartXLS? There are 5 worksheets in my file and I wa

12 digit unique distributed random number generator

I ported sonyflake to Java and it worked fine. However, instead of generating 8 digit numbers, I am looking to generate 12 digit unique numbers. The original po

File not found error when running Maxent in biomod2

When I run Maxent into biomod2 I got this error: Error in file(file, "rt") : cannot open the connection In addition: Warning messages: 1: running command 'j

android studio with Java compiler error: string too large to encode using UTF-8 written instead as 'STRING_TOO_LARGE'

When I clean the android project in android studio, the error happen, I have backed to previous commit or different branch, which works find couple days ago, bu

setOnUtteranceProgressListener not at all working for Text To Speech for API > 21

I want setOnUtteranceProgressListener should notify a Toast after the speech is completed.It seems not working. I have used setOnUtteranceProgressListener and o

Use of spnego and kerberos with gss in graal

I'm attempting to reuse some existing code which enables spnego authentication in a new Quarkus app. The Quarkus app when compiled as a standard JAR and run wit

Resultset To List null [duplicate]

public List<Order> getAllOrdersByCustomerId(int customerId) throws SQLException { List<Order> AllOrdersByCustomerId = new Arra

JavaFX circular progressindicator not working as expected

So I'd like to make a circular progress indicator that runs smoothly from start to end, although I haven't found exactly what I'm looking for, I found a workaro

Odd number Sequence Replaced by Count

I am working on java Program here is program Question: Consider Java Program. It reads integers from the standard input (until it gets a negative number) and

Obtain an OracleDataSource in SpringBoot 2

Is it possible to retrieve a OracleDataSource from the default SpringBoot 2 Hikari connection pool using a NamedParameterJdbcTemplate object? Using Java 8, Orac

Java JsonPath: modify multiple JSON attributes at once

I am struggling to modify several JSON objects, while using the JsonPath library. I have a selector, that gets declared at runtime and a JSON file of unknown si

How to encode maiden name

I'm trying to encode maiden name and I'm not sure I'm doing it right. Surprisingly Mother's Maiden Name seems to be a standard field but Maiden Name isn't. My t

java parse date with picosecond

I have a string date with picoseconds (between 9 to 12 digits after the period), and when I try to parse the date with the DateTimeFormatter : DateTimeFormatt

Spring Boot Multitenant - Access data from multiple schema at the same time or per http request using spring boot

We are working on the multitenant application in spring boot. We have created different schema for different customer and we also have public scheme for super a

Which openssl keypair gen command produces a password-less private key that I can read in Java 17?

Burned better part of a day on this. Google says use PKCS#8 format for the private key, so I issued command (alpine openssl 1.1.1o) $ openssl genpkey -out my.p

Converting a mono object into two different mono object and the root mono is executing two times

Suppose I have create a Student entity and storing it into database using reactive. Student student{ id; name; institutionId; courseId; } I

Build complex PDF in kotlin [closed]

I want to create "complex" (footer, header, cells and pictures) pdf for my android application (kotlin). I've seen some people already asked f

How to pass hbase-site.xml to Google Cloud Dataflow template

We have a setup where we have a Hbase cluster running on Google cloud and using Dataflow I want to write into Hbase tables. For this, I want to pass my hbase-si

How to add a Lottie animation in Java programatically

I tried to add Lottie Animation to Java (Android) programmatically, but I keep failing. I will show my code below I need to change from drawable to Lottie. This