You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Julian Wood (JIRA)" <ta...@jakarta.apache.org> on 2007/02/06 02:43:05 UTC

[jira] Created: (TAPESTRY-1256) IllegalStateException if you try to access an ASO with OGNL, before accessing it in code

IllegalStateException if you try to access an ASO with OGNL, before accessing it in code
----------------------------------------------------------------------------------------

                 Key: TAPESTRY-1256
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1256
             Project: Tapestry
          Issue Type: Bug
    Affects Versions: 4.1.2
         Environment: java 1.5_06, tomcat 5.5
            Reporter: Julian Wood
            Priority: Minor


This appears to be a regression, as it didn't happen with 4.1.1 or 4.1. With 4.1.2-SNAPSHOT, if you make an ASO and try to use it in an html template with OGNL, you will get an IllegalAccessException, unless you first access it in code, within a pageBeginRender method, for instance.

There's a demo app here:

http://jwoodchip.blogspot.com/2007/02/application-state-objects-in-tapestry.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (TAPESTRY-1256) IllegalStateException if you try to access an ASO with OGNL, before accessing it in code

Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-1256:
------------------------------------

    Fix Version/s: 4.1.2

> IllegalStateException if you try to access an ASO with OGNL, before accessing it in code
> ----------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1256
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1256
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.2
>         Environment: java 1.5_06, tomcat 5.5
>            Reporter: Julian Wood
>            Priority: Minor
>             Fix For: 4.1.2
>
>
> This appears to be a regression, as it didn't happen with 4.1.1 or 4.1. With 4.1.2-SNAPSHOT, if you make an ASO and try to use it in an html template with OGNL, you will get an IllegalAccessException, unless you first access it in code, within a pageBeginRender method, for instance.
> There's a demo app here:
> http://jwoodchip.blogspot.com/2007/02/application-state-objects-in-tapestry.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (TAPESTRY-1256) IllegalStateException if you try to access an ASO with OGNL, before accessing it in code

Posted by "Julian Wood (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12488807 ] 

Julian Wood commented on TAPESTRY-1256:
---------------------------------------

Sorry, that dependency wasn't required at all. I've removed it and it should build with maven now (as I've just come across the same issue again while working on a new project, and wanted to see what had become of it).

There's not really a lot to it - it's one of those things which is easy to work around, but it bugs you because it is not clean (as it was previously). All you need to do is make an ASO, say a session object, and then access it from ognl. You'll get an illegal state exception unless you go and access it in, say a PageBeginRender method.

The code provided will throw the exception when you hit the home page. If you uncomment the pagebeginrender, it will be fine.

> IllegalStateException if you try to access an ASO with OGNL, before accessing it in code
> ----------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1256
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1256
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.2
>         Environment: java 1.5_06, tomcat 5.5
>            Reporter: Julian Wood
>            Priority: Minor
>             Fix For: 4.1.2
>
>
> This appears to be a regression, as it didn't happen with 4.1.1 or 4.1. With 4.1.2-SNAPSHOT, if you make an ASO and try to use it in an html template with OGNL, you will get an IllegalAccessException, unless you first access it in code, within a pageBeginRender method, for instance.
> There's a demo app here:
> http://jwoodchip.blogspot.com/2007/02/application-state-objects-in-tapestry.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Resolved: (TAPESTRY-1256) IllegalStateException if you try to access an ASO with OGNL, before accessing it in code

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert resolved TAPESTRY-1256.
-------------------------------------

    Resolution: Fixed
      Assignee: Jesse Kuhnert

Things should be happier in tomcat specifically now. 

> IllegalStateException if you try to access an ASO with OGNL, before accessing it in code
> ----------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1256
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1256
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.2
>         Environment: java 1.5_06, tomcat 5.5
>            Reporter: Julian Wood
>            Assignee: Jesse Kuhnert
>            Priority: Minor
>             Fix For: 4.1.2
>
>
> This appears to be a regression, as it didn't happen with 4.1.1 or 4.1. With 4.1.2-SNAPSHOT, if you make an ASO and try to use it in an html template with OGNL, you will get an IllegalAccessException, unless you first access it in code, within a pageBeginRender method, for instance.
> There's a demo app here:
> http://jwoodchip.blogspot.com/2007/02/application-state-objects-in-tapestry.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (TAPESTRY-1256) IllegalStateException if you try to access an ASO with OGNL, before accessing it in code

Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473300 ] 

Jesse Kuhnert commented on TAPESTRY-1256:
-----------------------------------------

I tried to download your sample but it won't resolve in maven2. If you can get that part working I can try looking again but otherwise can't help as you've not outlined anything specific. 

> IllegalStateException if you try to access an ASO with OGNL, before accessing it in code
> ----------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1256
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1256
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.2
>         Environment: java 1.5_06, tomcat 5.5
>            Reporter: Julian Wood
>            Priority: Minor
>             Fix For: 4.1.2
>
>
> This appears to be a regression, as it didn't happen with 4.1.1 or 4.1. With 4.1.2-SNAPSHOT, if you make an ASO and try to use it in an html template with OGNL, you will get an IllegalAccessException, unless you first access it in code, within a pageBeginRender method, for instance.
> There's a demo app here:
> http://jwoodchip.blogspot.com/2007/02/application-state-objects-in-tapestry.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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