Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-1588

Seam Component name "session" reserved keyword

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 2.0.0.BETA1
    • Fix Version/s: 2.0.0.CR1
    • Component/s: None
    • Labels:
      None

      Description

      after migrating from 1.2 to 2.0 Seam throws the following error:

      java.lang.IllegalArgumentException: value of context variable is not an instance of the component bound to the context variable: session

      the error occurs when I try to inject a class:

      @Name("session")
      @Scope(ScopeType.SESSION)
      public class Session implements java.io.Serializable {
      ..

      in:

      @Stateless
      @Name("remoting_desktop")
      public class Desktop implements DesktopInterface {

      @In(create=true,required=false) Session session;
      ..

      worked with 1.2 as "session" is reserved

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  norman.richards Norman Richards
                  Reporter:
                  livenow Christoph Aigner
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 1 hour
                    1h
                    Remaining:
                    Remaining Estimate - 1 hour
                    1h
                    Logged:
                    Time Spent - Not Specified
                    Not Specified