Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Bug #173 (closed)

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

Stateful session beans are throwing exceptions on passivation.

Reported by: jamoore Owned by: jamoore
Priority: minor Cc: ejb3
Sprint: n.a.
Total Remaining Time: n.a.

Description

The presence of non-transient / non-null fields in the RenderingBean causes passivation errors.

Change History (3)

comment:1 Changed 18 years ago by jmoore

  • Status changed from new to assigned

4.2.1 of the ejbcore spec details what values are allowed for a non-transient field on passiviation. A simplified list includes:

  • null
  • a serializable instance
  • ejbs and container resources (usually injected)

Care must be taken in the @PrePassivate method to guarantee one of these values.

comment:2 Changed 18 years ago by jmoore

  • Resolution set to fixed
  • Status changed from assigned to closed

r731 cleans up all bean fields. No passivation errors should occur.

comment:3 Changed 18 years ago by jmoore

Looks like the same chapter of the spec also suggests not relying on transient. In @PrePassivate? we should set to null.

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.63949 sec.)

We're Hiring!