1,394 questions
0 votes
0 answers
49 views
Apache Commons fileupload not showing files
I have to maintain a legacy application that runs on Java 1.6. This includes having to add services. Client has not allowed a rewrite as the code is quite large. It does not use struts or any ...
0 votes
0 answers
36 views
Recompiling Java code results in AspectJ binding error
I have acquired a Spring Boot application from my predecessor last September. A few months ago, one colleague found out that the last code checked in by my predecessor is not representing the last ...
0 votes
0 answers
51 views
Connect with RabbitMq queue with ssl from java 6
I have a problem connecting with connecting to a Rabbit queue... Unfortunately this is a very old project and it has to be run on Java 1.6. this is my class: import com.rabbitmq.client.Channel; import ...
3 votes
1 answer
816 views
JAVA 1.6 in Eclipse IDE
I am unable to change the compiler to Java SE 1.6 in Eclipse as the option is not shown in the change compiler menu. When I try to look for it in the compiler options, it cannot be found: When I ...
0 votes
0 answers
133 views
IntelliJ IDEA cannot autowire class fields
I have acquired a project in a new company where I am first time using Spring Boot and IntelliJ IDEA. Because of some out-of-date code, there are restrictions here, so, I can use the version 2022.2.5. ...
1 vote
1 answer
82 views
How to extract some data from a text file in Java SE 1.6?
Before anything, don't pay attention to the names of my methods and macros, I'm french and I'm mixing French and English in my code because it's easier like that for me I'm working on graphs that are ...
0 votes
0 answers
68 views
Could not transfer artifact from central : Received fatal alert: protocol_version
I'am working on a legacy java 6 project and i'm facing issues related to resolving dependencies. I found out based on similar issues that it is related to TLS protocol since central only supports ...
0 votes
0 answers
63 views
Selenium WebDriver EDGE inside SWT Shell
I have a Java SWT application (version 1.6) where I'm using swt.Browser to display an embedded browser. However, swt.Browser is based on IE, and I can't update SWT to use Browser with EDGE. To work ...
0 votes
0 answers
35 views
Minimum String memory usage in java 6
I read the article string_memory_usage, then I have a question. What is 45 made of? I list what I know: for round up to the next multiple of 8 => 7 bytes 3 int field => 3 * 4 = 12bytes char ...
0 votes
0 answers
129 views
Does the KeyPairGenerator class behave differently in Java 1.6 and Java 1.8?
I am trying to update an old Java class that generates a signature. It uses the DSA ecnryption algorithm of KeyPairGenerator and a custom seed from SecureRandom class. KeyPairGenerator generator; ...
0 votes
0 answers
117 views
Able to call API with Java 8 but not with 6?
import com.sun.jersey.api.client.Client; import com.sun.jersey.api.client.ClientResponse; import com.sun.jersey.api.client.WebResource; import org.apache.commons.logging.Log; import org.apache.commons....
0 votes
0 answers
75 views
Java unsupported version error starting old Tomcat from new Eclipse via Tomcat Plugin
I'm working on some very old projects. JDK 1.6.0_07 and Tomcat 6.0.14. Unfortunately i lost my Eclipse and needed to install the latest version (2022-12 (4.26.0)) Then installed Tomcat Plugin via ...
2 votes
0 answers
75 views
Implements, Extends or import a Constants Interface [closed]
I am currently working on a legacy code in Java 1.6 and i found that they have a Constants Interface in the Utils package (Is a quite old Webapps) Well, some of the classes import the interface and ...
0 votes
1 answer
253 views
how to implement load balancer for Jboss
We have a legacy java application which is developed in 2010 deployed in Jobss 5. we cant migrate to latest one because of some business and other constrain. we have deployed our applicationin AWS, ...
1 vote
2 answers
352 views
JDK 1.6 Tomcat 6.0.53 cannot start inside Eclipse EE 2022-12
I am using JDK 1.6, Error FATAL ERROR in native method: processing of -javaagent failed java.lang.UnsupportedClassVersionError: org/eclipse/jdt/launching/internal/javaagent/Premain : Unsupported major....