Category "java"

OSX + Java + OpenSSL + org.apache.commons:commons-crypto = SegFault in OpenSslNative:initIDs

I had a simple Java class using Apache:commons-crypto to do encryption/decryption that was SegFaulting on me. On OSX, I used Homebrew to install the latest Open

JavaFX label.getText() returns nothing in another class

I need that label values (num, cost) to be displayed in Bank.java from Work-window.java num = random int value cost = int value Code Work-window.java package s.

How get a data from cborMap?

I decode byte array with cbor and I want get a data but if I use cborMap.get("String"), not found a value. byte[] bytecompressed = Base45.getDecoder().decod

Analysis the hashmap keys as 3 keys in each one lane

I'm trying to analyze a hashmap keys, so I want to make every 3 keys from the hashmap send as one line, and then after sending 3 keys it will put a "\n" so it w

Explanation of ClassCastException in Java

I read some articles written on "ClassCastException", but I couldn't get a good idea on what it means. What is a ClassCastException?

MariaDB Connector gives datetime with precision 3 instead of 6 after update to version 3.0.3

I have a spring boot application with mariaDB, after updating the connector ("org.mariadb.jdbc:mariadb-java-client") from version 2.7.5 to 3.0.3 the datetimes (

Android studio custom icon state_focused not working

custom_email_icon.xml <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item andr

Why do new lines keep appearing every time I append using "[,\n]" delimiter?

I'm new to java programming, and I currently build a program that updates an information from a user through file handling. For instance, I have this initially

Bypass gRPC interceptor for specific endpoint

Lately I have been struggling with one problem : I can't ignore io.grpc.ServerInterceptor for some endpoints, in my case the health-check one, provided under th

Feed formats other than pbf to Osmosis

I've written code in Java using the Osmosis framework and specifically OsmosisReader for Java, for OSM processing. As far as I understand, OsmosisReader can onl

Volatile reference to mutable object - will updates to the object's fields be visible to all threads

... without additional synchronization ? The Tree class below is meant to be accessed by multiple threads (it is a singleton but not implemented via an enum) c

Search data for JTable using PLSQL stored procedure

I have a JFrame in which I have populated some data by stored procedure. Now I want to search the data through a JTextField. I used a RowSorter filter method b

Trying to upgrade ESAPI from 2.2.0.0 to 2.3.0.0

After upgrading esapi from 2.2.0.0 to 2.3.0.0 I'm experiencing an error from this line: esapi.encoder().encodeForSql(new JavaCodec(),"tableName"). Error: java.

Java VTDGen VTDGenHuge, get details after positionning with XPath

I have the following xml file : <?xml version="1.0" encoding="UTF-8"?> <ns:t xmlns:ns="http://www.myaddress.com"> <ns:cs> <ns:c

Moving Agent A to Nearest Agent B and from their to another nearest Agent B on GIS

So I have an agent vehicle and another agent shop of about 10 on GIS. I have another agent warehouse. So I have placed the vehicle at the warehouse and want it

Sort List<Object> by month name in Java

I am having following data in ArrayList in Java. I am trying to sort it by month in a year. It should sort by December, November, and so on. I have tried differ

What is a NullPointerException, and how do I fix it?

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause

Java Error: illegal start of expression

I'm basically refining, completing and trying to compile a test code from a reference book for java beginners. The objective is to create a guessing game wherei

Cmd is not showing Java Version

I am running for Java -version & javac -version in my cmd, but it isn't showing any output. It just goes to the next line, and doesn't show anything. Can an

org.testcontainers.dockerclient.DockerMachineClientProviderStrategy - docker-machine executable was not found

When I try to run test containers I get the following error. The docker machine not found in /root/.sdkman/candidates/gradle/current/bin, /usr/local/sbin, /usr