Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-466

"Activation failed" messages for @ConversationScoped @Stateful bean

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.5.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows 7 x64, jdk1.7.0_07 32 bit
      apache-tomee-1.5.1-20121015.041312-39-webprofile.zip

      Description

      Using SNAPSHOT: apache-tomee-1.5.1-20121015.041312-39-webprofile.zip
      1. Create EJB bean:

      @Named
      @Stateful
      @ConversationScoped
      public class ConversationBean {

      @PostConstruct
      private void init()

      { System.out.println(this + " INIT"); }

      @PreDestroy
      private void die()

      { System.out.println(this + " DIE"); }

      public String getDate()

      { return "" + new Date(); }

      }

      2. Create JSF page:

      <h:body>
      Current date: #

      {conversationBean.getDate()}

      </h:body>

      3. Run the application - browser correctly displays current date
      4. Refresh the browser page several times and observe Tomee log:

      INFO: Activation failed: file not found E:\Java\apache-tomee-webprofile-1.5.1-SNAPSHOT\temp\9949eaf8234cf0f7=2646a3b1=13a63cda2b0=-7ffb
      beans.ConversationBean@183817e INIT
      beans.ConversationBean@183817e DIE
      Spa 15, 2012 12:49:27 PM org.apache.openejb.core.stateful.SimplePassivater activate
      INFO: Activation failed: file not found E:\Java\apache-tomee-webprofile-1.5.1-SNAPSHOT\temp\9949eaf8234cf0f7=2646a3b1=13a63cda2b0=-7ffa
      beans.ConversationBean@1a94702 INIT
      beans.ConversationBean@1a94702 DIE
      beans.ConversationBean@1d418a9 INIT
      beans.ConversationBean@1d418a9 DIE
      Spa 15, 2012 12:49:34 PM org.apache.openejb.core.stateful.SimplePassivater activate
      INFO: Activation failed: file not found E:\Java\apache-tomee-webprofile-1.5.1-SNAPSHOT\temp\9949eaf8234cf0f7=2646a3b1=13a63cda2b0=-7ff9

      @ConversationScoped bean is being activated though it should not (conversation.begin() was never called, it should act as @RequestScoped and thus die forever).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              donatasc Donatas Ciuksys
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: