You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "ant elder (JIRA)" <tu...@ws.apache.org> on 2007/01/16 10:40:27 UTC

[jira] Closed: (TUSCANY-936) HttpSessionScopeContainer requires a session to exist

     [ https://issues.apache.org/jira/browse/TUSCANY-936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ant elder closed TUSCANY-936.
-----------------------------

    Resolution: Fixed

Fixed

> HttpSessionScopeContainer requires a session to exist
> -----------------------------------------------------
>
>                 Key: TUSCANY-936
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-936
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core
>    Affects Versions: Java-M2
>            Reporter: Greg Dritschler
>         Assigned To: ant elder
>            Priority: Minor
>             Fix For: Java-M3
>
>
> In M1, the HttpSessionScopeContainer was able to lazy-initialize an HTTP session.  (Look at the class LazyHTTPSessionId to see how it worked.)  Now the HttpSessionScopeContainer requires a preexisting session.  If a session does not exist, a NullPointerException occurs when it tries to look up the instance using a null key.
> InstanceWrapper ctx = wrappers.get(key);
> The problem can be circumvented by creating a session in the web app client.  JSPs have sessions by default.  Servlets can call getSession(true) to ensure a session exists before invoking an SCA component that requires session scope.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org