java.lang.ClassCastException: java.lang.String

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by 807592, 1 year ago
java.lang.String
java.lang.ClassCastException: java.lang.String
at undefined.DNDList.setAnswers(DNDList.java:257)
at undefined.DNDList.dragDropEnd(DNDList.java:218)
at java.awt.dnd.DragSourceContext.dragDropEnd(DragSourceContext.java:351)
at sun.awt.windows.WDragSourceContextPeerDispatcher.run(WDragSourceContextPeer.java:593)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:317)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.