Solved

update produce error :java.io.NotSerializableException?

Posted on 2004-04-29
6
300 Views
Last Modified: 2010-04-01
dear experts,

my web application running on Tomcat and Oracle has encountered some problems that when user constantly update, they will get lock out and I have re-start the web server to let them start the application again. But, this constantly happened. so, I check the log from Tomcat and see this error, I wonder if anyone could offer advice about how to fix this problem? Is this related to Oracle? thanks.
0
Comment
Question by:dodowoman
  • 2
6 Comments
 

Author Comment

by:dodowoman
ID: 10950454
the more complete error message includes this line, too:

StandardManager[/tomcat] Cannot serialize session attribute screenBean for session 47F2176F8AE8B2D2051667C9C3F5F50
0
 
LVL 7

Accepted Solution

by:
searlas earned 30 total points
ID: 10950561
What are you storing under the attribute screenBean?  Whatever it is, it's not Serializable (an issue when the server is overloaded and needs to temporarily passivate a session - i.e. serialize to disk)
0
 
LVL 13

Expert Comment

by:copyPasteGhost
ID: 10951726
try using a CachedRowSetImpl instead of a ResultSet

you will need to download the rowset.jar file downloaded from

http://sourceforge.net/project/showfiles.php?group_id=27749

you will need to include this file under
web-inf/lib/rowset.jar

also you will need to include this line

<%@ page import="com.sun.rowset.*" %>

to the top of your jsp
Hope that helps,
Ghost
0
 
LVL 13

Expert Comment

by:copyPasteGhost
ID: 10971999
http://java.sun.com/developer/earlyAccess/jdbc/jdbc-rowset.html

is a better place to download the jar file,
Cheers,
Ghost
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
servlet init param and contect param 3 66
best tutorial on log4j and logging for servlets/jsp codes 1 65
iterator example remove 8 75
throw exception 21 57
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

766 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question