• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Session Persistence (Database)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Session Persistence (Database)


  • Subject: Session Persistence (Database)
  • From: Kevin Hinkson <email@hidden>
  • Date: Sun, 05 Jun 2011 11:16:12 -0400

Hi all,
I'm attempting to implement database session persistence and I am running into some problems.

Questions:
1. My Session cannot be serialized. I'm using the old WXCodecUtilities.archivedDataFromObject which seems to work fine. A stack trace shows ERXEC as the culprit? ERXEC is said to implement Serializable and I have no idea what to do next, even to find out which editing context in which class is the culprit.

java.io.NotSerializableException: er.extensions.eof.ERXEC$2
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
at java.io.ObjectOutputStream.access$300(ObjectOutputStream.java:143)
at java.io.ObjectOutputStream$PutFieldImpl.writeFields(ObjectOutputStream.java:1677)


My intuition tells me this may have something to do with writing to the database and serializing the session state at the same time. Does anyone have any pointers or should I look for a different approach to handle scaling up app servers and implementing sign in "Remember Me" for long periods of time?

---
Kevin Hinkson


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Session Persistence (Database)
      • From: Mike Schrag <email@hidden>
    • Re: Session Persistence (Database)
      • From: Mike Schrag <email@hidden>
  • Prev by Date: Keeping The ERXEnterpriseObjectCache
  • Next by Date: hash or short keys?
  • Previous by thread: Re: Keeping The ERXEnterpriseObjectCache
  • Next by thread: Re: Session Persistence (Database)
  • Index(es):
    • Date
    • Thread