• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error in Lieray

 
syruss kumar
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have developed an application using liferay .Every thing is working fine but when i open the console i found that there is a Error in Console . I tried to resolve that by searching in net but i couldnt find any article .Its giving error in Liferay's SerializableSessionAttributeListener class




Please suggest me to resolve this .


Thanks in advance

 
Jari Timonen
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're using StringWriter in class that is saved as session attribute. Since StringWriter is not serializable, hence error.
In general rule, stuff in session should be only "information containers that capsulate" (Value/Transfer/.. Objects).

Move all business logic to business layer and use UI layer only for presentation.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic