python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
ClassCastException:cannot cast HTTPClient4TransportSender to TransportSender in Axis2
I have added axis2.xml in server and trying to load the configurationContext using java code.But during loading the configuration getting classCastException for class org.apache.axis2.transport.http....
Manish Shinde
Votes: 0
Answers: 0
ClassCastException when using wildcard in java
I got ClassCastException when running java code below:
public static void main(String[] args) {
String text = "{" +
"\"number\": 1" +
...
zhuangjingwen
Votes: 0
Answers: 0
How to avoid catching OutOfMemoryError in java and how to resolve class java.lang.OutOfMemoryError cannot be cast to class java.lang.Exception issue
for (int i = 0; i <listOfProcesses.size(); i++) {
try {
Future<Boolean> futureResult = executorCompletionService.take();
boolean status = futureResult.get();
} catch (...

Ann
Votes: 0
Answers: 3
java.lang.ClassCastException: myClass cannot be cast to class java.util.List
I have a class setup called MyClass that holds two lists:
public class MyClass {
List<String> list1;
List<Descriptor> list2;
public List<String> getList1() { return list...
YabbaDabbaDoo
Votes: 0
Answers: 1