1,703 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
121
views
ClassCastException when comparing elements in custom ArrayOrderedList using Comparator
I am implementing an ordered list that automatically inserts elements in the correct sorted position using a Comparator. The list is built from scratch (not using java.util.ArrayList) and uses an ...
0
votes
0
answers
39
views
ClassCastException when traversing childNodes in GWT Elemental2 during text highlighting implementation
Problem Description:
I'm implementing text highlighting functionality using GWT and Elemental2. When traversing through childNodes to process text nodes for highlighting, I'm encountering a ...
0
votes
0
answers
47
views
Kotlin/Compose Multiplatform: ClassCastException while running web app
I am developing an application using Kotlin and Compose Multiplatform. The Android and iOS versions work correctly, but the web application displays a blank screen.
Here is the content of Main.kt ...
0
votes
0
answers
40
views
ClassCastException is not coming in JDK21 in Eclipse
ClassCastException is not coming in JDK21 in Eclipse
I check whether I get a ClassCastException in the console by using the TreeSet<StringBuffer>. However, the values are sorted and the output ...
1
vote
1
answer
116
views
How to fix this ClassCastException in UnitTest
I'm currently facing some problems while adding UnitTests to my JetPack Compose Project.
I want to test the following (a bit shortened) function in my viewmodel:
fun onPressSignUp() {
...
0
votes
1
answer
2k
views
ClassCastException in Hibernate with BasicTypeImpl and BasicPluralType
I'm encountering a ClassCastException while working with Hibernate in my Java project. The error occurs when Hibernate attempts to cast an instance of BasicTypeImpl to BasicPluralType. Here is the ...
0
votes
0
answers
221
views
CompletedAccountDTO is in unnamed module of loader org.springframework.boot.devtools.restart.classloader.RestartClassLoader @2db52090)
I dont understand this error, the log is giving me a ClassCastException of same class
Caused by: java.lang.ClassCastException: class com.exceltic.commons.api.model.datacollector.accounts....
1
vote
1
answer
3k
views
An internal error occurred during: "Refreshing workspace". Eclipse 2024-03 fresh install
at importing project time I already got this error
An internal error occurred during: "Refreshing workspace".
class org.eclipse.jdt.internal.core.JavaNature cannot be cast to class org....
7
votes
0
answers
91
views
Why the <T extend Map> could be assigned to a List
I have missed a problem with the Java Generic type
public class MyTest {
@Test
public void test1() throws Exception {
List<Integer> list = getMapInstance();
}
public ...
0
votes
1
answer
139
views
How to fix this problem: androidx.appcompat.widget.AppCompatEditText cannot be cast to android.content.Context
The following error occurs when I try to execute the code and app also terminates. (Caused by:java.lang.ClassCastException: androidx.appcompat.widget.AppCompatEditText cannot be cast to android....
0
votes
1
answer
62
views
Java - Why can't i take an array of a superclass, and get the subclass functions?
I'm trying to write a Chess Program from scratch. I have a superclass called "Piece", and subclasses for all the individual chess pieces (Pawn, Bishop, Knight, ect). I also have another ...
1
vote
1
answer
141
views
java.lang.ClassCastException: LinkedTreeMap cannot be cast to ProductDetails$OneTimePurchaseOfferDetails
I am using in-app billing (com.android.billingclient:[email protected]:2) lib for payment in Android.
Billing Library: Provides product detail information as ProductDetails in response of QueryInventory.
...
0
votes
1
answer
88
views
ClassCastException when using JUnit5 @ExtendWith and a customer ParameterResolver
I am currently learning JUnit, and the nice new features it has. Specifically, I am working with a simple ParameterResolver, reproduced below
package com.junit.test.me.junit_testing;
import org.junit....
0
votes
1
answer
92
views
Is it bad to use an instance of an operator to access child class variables from a parent reference?
I have a class, e.g., Person, having some parameters, e.g., name and age.
Now I want to add some other parameters, e.g., employment. These new parameters are only useful to one mode of the ...
2
votes
0
answers
272
views
Kafka stream with protobuf messages
I have stream of protobuf messages with one type AccountHolder.proto with {name,balance,time} as fields and doing some aggregations on the data content and writing the result as protobuf message of ...