This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Serialize object  RSS feed

 
Alexander Cowie
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys i am having some trouble reading a serialized object. I wrote some code to store login details, i had the serializing and reading of this information working but needed to change my approach. I have changed my code as to store the login info as an object, instead of storing each variable individually. My code for serializing seems to work fine but i will include that anyway.


Here is the code that is not working
I am getting this error msg im getting: java.lang.ClassCastException: SystemUser cannot be cast to [C



thanks in advance for any comments.

 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure that the code you posted is the code you're running because the error says that you're trying to cast something to a char[].
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!