Browse all latest questions tagged Java
I have a client that needs to POST a large number of large json files to a server. I've been able to get it working by reading each of the files into memory and posting the entire file with RestTempla...
I have main method in my java program, I want to store values in global variable because i want to access that values from different methods of the class, however I am not convinced to use static glob...
In Java 8 three memory barrier instructions were added to Unsafe class (source): /** * Ensures lack of reordering of loads before the fence * with loads or stores after the fence. */ void loadFence...
I have an M3U8 file located here: https://vcloud.blueframetech.com/file/hls/13836.m3u8 This video contains timed metadata every single second. My goal is to read this metadata from ExoPlayer. I curre...
I am trying to print a list of barcodes, data for which which will be sent to the JasperReports jrxml in a List of Strings. I am successful in printing the barcodes using barbeque format, but now I h...
I have the same issue from this question: RabbitMQ Connection reset. My code is in kotlin and from https://www.rabbitmq.com/ssl.html#java-client-connecting. val connectionFactory = Connection...
I am completely new to Wildfly/JBoss so i am clueless what to do, i am sitting on this problem since yesterday noon. I am trying to use the mysql-connector-java-8.0.20.jar as the connector and my Wil...
I have a java code that takes data from MongoDB and later creates an excel(.xls) containing this data using Apache POI but in a formatted manner. My final requirement is to mail the last worksheet i...
Is it possible to parse a delimited file and find column datatypes? e.g Delimited file: Email,FirstName,DOB,Age,CreateDate [email protected],Test User1,20/01/2001,24,23/02/2015 14:06:45 [email protected],...
My requirement is like : I want to perform frequent operation on millions of objects in multi-threaded environment with concurrency and scalability keeping in mind, I need best data structure suitable...
I have a list of Employee public class Employee { private String name; private Integer age; private Double salary; private Department department; } List<Employee> employeeList = Arrays...
I am using: Hibernate 4.3.5 Spring JPA 1.6.0 Javax Persistence API 2.1 The "refcodemailing" column is defined as an array of int: int[] My entity object: @Entity @Table public class CalendarEven...
I am having a .crt file and I wanted to import to keystore and truststore using java(first create keystore and truststore then import). Below is the code that I am using: import org.glassfish.tyrus...
I am getting below error in intellij for a gradle project. I am importing existing gradle project and trying refresh it in gradle window. Error:No such property: GradleVersion for class: JetGradlePlu...
I have a LegacyAccountDto that I need to build a list of from two separate sources. One is a local JPA repository and the other is a web service call. The web service version has the accountStatus a...