Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

SerializationException: could not deserialize exception

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have serialization exception ,USERS pojo have not id ,it has composite primary key.Pojo like this;



And I wanted to select smth.from this table.Service and DAO classes are below:



This is implementation of interface;


And here dao interface:


Here implementation of dao class:


In view class I call this method like ;



Lastly, I had this exception:

com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException SEVERE: Error Rendering View[/userList.xhtml] com.sun.faces.mgbean.ManagedBeanCreationException: An error occurred performing resource injection on managed bean userView Caused by: org.hibernate.type.SerializationException: could not deserialize Caused by: java.io.StreamCorruptedException: invalid stream header: 3C3F786D

 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does UsersPk implement Serializable?
 
Deniz Kilic
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes
 
Marshal
Posts: 25818
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

invalid stream header: 3C3F786D



If you interpret 3C3F786D as if it were ASCII characters, you get this:

<?xm



That looks like the start of an XML document, not the start of a serialized Java object. I'm no Spring expert but maybe that tells you something?
 
    Bookmark Topic Watch Topic
  • New Topic