Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
17 replies
164 views

The Java 8 WebView is too old for nowadays' websites. I've done some research, but nothing works. JCEF is for Swing. I tried everything to embed it in JavaFX, but nothing works (threading issues, DLL ...
abdo abdo's user avatar
3 votes
1 answer
98 views

I'm using the Java printing API [1] to print to a printer using CUPS. We are using Java 8 for Java client and CUPS 2.2.6. The Java process is on the same server as the CUPS daemon where all printers ...
OscarRP's user avatar
  • 135
3 votes
1 answer
202 views

I have an application written to be used in Java 8 with JavaFX. I tried building it on a new machine today and was surprised to find that JavaFX is no longer bundled with Oracle JDK 8, as of Oracle ...
Galactic Ketchup's user avatar
1 vote
0 answers
57 views

I need to migrate a project from Java 1.8 to Java 17 and I have troubles with a token generator. Actually the generation is this (Java 1.8): public String generateId(String id) { return ...
Darkschnaider37's user avatar
1 vote
0 answers
43 views

I am generating an Excel file entirely through code using Apache POI (XSSF). The file is never manually opened or edited; it is generated and then directly used (for example, converted to PDF). Some ...
VPG99's user avatar
  • 11
7 votes
1 answer
312 views

I had written a method to update a HashMap, provided an int id value (ex: client id) as key, the method would check if the key is available in the map, if not it would create an entry and associate a ...
Gautham M's user avatar
  • 5,202
0 votes
0 answers
42 views

We have been using wildfly 20 with the old jtds driver for jdbc connection pooling. Any many of our customers have been as well.We just upgraded from jdk 8-265 to jdk 8-462. After the upgrade, nothing ...
user26533539's user avatar
0 votes
0 answers
73 views

As the title states, my Netbeans refuses to open; it has the opening loading prompt but it closes as soon as the text says "Done loading modules". I currently have the newest versions of ...
juan miguel quilantang's user avatar
1 vote
1 answer
159 views

I am experiencing build failure when trying to compile and execute Java programs using JDK 8 (1.8.0_432). I keep getting the following error from IntelliJ idea: java: invalid flag: --add-modules Not ...
JOE 's user avatar
  • 11
0 votes
0 answers
60 views

My application runs on Java 8 and Springboot 2.2.5.RELEASE and I am using below dependencies to expose a GraphQL service. <dependency> <groupId>com.graphql-java-kickstart</...
Saravananand Krishnamani's user avatar
0 votes
1 answer
82 views

I'm trying to run a .jnlp file on my Mac, but I keep getting the error: DYLD_LIBRARY_PATH is null java.lang.UnsatisfiedLinkError: Can't load /Users/setupuser/Library/Application Support/Oracle/Java/...
karthik oggu's user avatar
0 votes
1 answer
79 views

I am trying to add a simple text paragraph with text ""Hello from Java test!" in an existing simple docx file (contains only one dummy line of text already) using docx4j. But when I am ...
ipapag's user avatar
  • 95
2 votes
0 answers
118 views

Hello I've been facing a weird problem the past few days. I send out a demo of my app to a few people. however for around 75% of the people the demo didn't work, while for the other 25% it works great....
Christian2B's user avatar
0 votes
1 answer
66 views

I am using SpringBoot 3.5, PostgreSQL and Hibernate/JPA as ORM. While using JSONB column from DB I am having this error. org.springframework.dao.InvalidDataAccessResourceUsageException: could not ...
Atul's user avatar
  • 3,487
2 votes
1 answer
178 views

Issue can be found in version Java8 onwards. A CharsetDecoder is explicitly configured with CodingErrorAction.REPLACE ; I would expect the replacement character \uFFFD to be applied when decoding ...
George's user avatar
  • 521
1 vote
1 answer
122 views

I am trying to mock a constructor method. But failed with messages said unnecessary stubbings. What modify should I make to succesfully run this unit test? Plus, Better not to modify the version of ...
Django47's user avatar
-2 votes
1 answer
611 views

I wanted to upgrade my spring version from 5.3.39 to the 6 series. But when I tried to do that, it didn't compile and threw an error. This is the error that I'm getting: Failed to execute goal org....
Nishanth SR's user avatar
-4 votes
1 answer
129 views

I'm trying to understand Java generics better. Suppose I have a generic base class like this: class Base<T> { T data; } Now, if I create a subclass, do I need to mention the parameter type ...
Gokul Krishnan J's user avatar
0 votes
0 answers
60 views

Facing issue with RMI Registry. Inititally my code was developed using java 6 or lower version but recently we have upgrade our java to java 8 and came to understand that it has some tighter Security ...
XERVIS's user avatar
  • 1
0 votes
0 answers
77 views

Running Oracle 19c with Java 1.8.0_451 and JavaMail 1.6.7. I'm attempting to send emails via SendGrid from a stored procedure on the database referring the the following Java class: CREATE OR REPLACE ...
Nathan Russell's user avatar
0 votes
0 answers
53 views

we use OpenEJB 7.0.9 for Unit-Testing with Java 8. Now we switch our Application to Java 11 and tried to Upgrade OpenEJB to 8.0.16. But since Version 7.1.4 and 8.0.0 (org.apache.tomee -> openejb-...
Martin Schlesier's user avatar
1 vote
0 answers
6k views

I'm facing an issue with a JavaFX application written for JDK 8. My company recently updated to JRE 8u451, and the application no longer runs because JavaFX has been removed from this release. I have ...
Edward Northwind's user avatar
2 votes
1 answer
134 views

EDIT: As one of the people commenting mentioned, this question only concerns this specific implementation: https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/util/HashMap.java#...
Sebastian's user avatar
0 votes
0 answers
163 views

I have a java application running heavily groovy scripts. After running for weeks, the system encountered Full GC in every day, every time it cost about one second which is not acceptable. How can I ...
atealxt's user avatar
  • 346
0 votes
1 answer
88 views

I developed a RESTfull API with Jersey (2.25.1) and my goal is to always return the same JSON even in case of errors. I then configured a series of exception mappers including one for handling the com....
Charles's user avatar
  • 65
0 votes
0 answers
131 views

Do Swing modal dialogs gain focus on opening? They should. However, no log message is ever printed if you execute the demo below. Why? import javax.swing.JButton; import javax.swing.JDialog; import ...
Sergey Zolotarev's user avatar
1 vote
2 answers
100 views

I have a json for students with marks . I need to get the total marks for maths and english per standard . I could do it for each subject like below , but here the list is iterated twice. Is there a ...
astar's user avatar
  • 347
1 vote
0 answers
1k views

As announced, Oracle removed JavaFX from the latest JRE (8u451 released on 4/15). As a result our customers are not able to start it. Is there any possible workaround for this problem? We have ...
tucoramirez37's user avatar
0 votes
1 answer
50 views

I had made a list of Parent Class (as Employee) having a parameter of child class (as Department) class Employee { Integer empId; String empName; Long salary; String email; ...
Ankit's user avatar
  • 2,276
4 votes
1 answer
121 views

I am using Java 8 and facing some weird error. The compiler gives the following error: error: reference to [method] is ambiguous Here's my code StringBuilder sb = new StringBuilder(); Stack<...
bloop's user avatar
  • 43
0 votes
0 answers
60 views

I have a jsonString which is a list of key value pairs. [ {"id": "123", "url": "ghi"} : 2, {"id": "456", "url": "def"} ...
Tanya Bhandari's user avatar
0 votes
2 answers
183 views

I have a Java application doing SOAP requests to a WebService (which I have no control of). It is currently running on Java8 and I need to make it compatible for both, Java8 and Java21 (not only ...
Jokkeri's user avatar
  • 1,065
-1 votes
1 answer
89 views

I tried running few flutter projects but it gives me this same error - ashvinstech@Ashvins-MacBook-Air untitled1 % flutter run Launching lib/main.dart on Redmi Note 7 in debug mode... FAILURE: Build ...
Ashvin Bhagat's user avatar
1 vote
0 answers
63 views

I am developing a Java 8 servlet to download a zipped resource. The file size can vary significantly, sometimes reaching up to 700MB. For testing, I am using a 350MB ZIP file. The expected behavior is ...
Salvatore Montagna's user avatar
0 votes
1 answer
75 views

List<String> l1 = Arrays.asList("ab", "cd", "ef"); long count = l1.stream().count(); System.out.println(count); I want to use lambda expression instead ...
Mayur Kandalkar's user avatar
0 votes
1 answer
155 views

I am trying to mock a method and want to execute the internal logic as is when called. The method returns void so When I am using when(MockedObject.methodReturingVoid(any())).callRealMethod(); It ...
Jef's user avatar
  • 154
-7 votes
1 answer
75 views

We are getting list of AssetValue from database, After getting the list I need to group by id and sort by year and month. Based on the grouping I need to print on reports. Public Class AssestValue{ ...
Michael Prabhu's user avatar
0 votes
1 answer
87 views

I'm trying to create an API where I'm updating a set of data into database. While updating, there is data that comes the same as what's already present in the DB. I want to check this and avoid ...
User1512's user avatar
0 votes
0 answers
92 views

i have downloaded jdk8 and the environment variables is set correctly java -version java version "1.8.0_431" Java(TM) SE Runtime Environment (build 1.8.0_431-b10) Java HotSpot(TM) 64-Bit ...
Mohamed Khaled's user avatar
0 votes
1 answer
111 views

I am trying to convert the below null check of legacy java 7 code to modern java using Streams and Optional. if (person != null) { System.out.println(person.getName()); System.out.println(person....
purbarunc's user avatar
1 vote
1 answer
223 views

I'm working on several projects with java and Intellij Idea 2024.3.1.1, because of the academic licence. I regularly work on a computer with a 10th generation i3 processor with 18 GB of RAM, and ...
Daniel Alejandro's user avatar
2 votes
1 answer
115 views

I'm in the scenario where I am stuck on Java 8. I have a program that creates and resolves URIs using java.net.URI. These are generally always going to be http scheme, but we will potentially get ...
mkobit's user avatar
  • 47.9k
0 votes
0 answers
72 views

I have same java 1.8_171 application with same server type redhat 7 running in 2 servers in one server when it hits the external api it works fine but from another server when hitting the same api it ...
Subha's user avatar
  • 59
0 votes
2 answers
107 views

In an application I developed with Java 8, I am trying to convert a .wav audio file received in Base64 format to PCM_SIGNED format. The code works fine in the local environment, but I get the ...
Mustafa's user avatar
  • 43
1 vote
0 answers
163 views

I am trying to setup PIRANHA BY UBER on my local for a demo java (Java 8) application. I am not able to perform a remove the stale code by building it. Demo Application: @Controller public class ...
Ankit Kumar's user avatar
5 votes
1 answer
137 views

In Java 8, the following script prints true import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { public static void main(String[] args) { String regex = &...
powerful_clouds's user avatar
0 votes
1 answer
58 views

How can we establish the secondary database connection after API call.currently database is establishing connection at runtime. Below are the code samples. Controller code: @GetMapping("/...
sana arya's user avatar
5 votes
2 answers
135 views

I have a string like this: blabla and (ee.xybfkr_eer in (:something) or 'Y'=:see) I would like to capture only the string ee.xybfkr_eer in (:something) in the group. but sometimes the string is ...
Rómeó Nagy's user avatar
0 votes
1 answer
70 views

I am trying to save java Instant type in a MySQL column of Timestamp type. But I am getting MysqlDataTruncation exception as shown below, even though the column allows Null, when I try to pass Null ...
MAREESKANNNAN RAJENDRAN's user avatar
0 votes
1 answer
47 views

I have an array of elements as below: int arr[]={1,2,3,4} now I need the result array as below: {24,12,8,6} So basically it will multiply each element expect the ith element. For index 0: it will ...
tripti's user avatar
  • 49

1
2 3 4 5
464