You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Daniel Baldes (JIRA)" <ji...@apache.org> on 2013/01/08 11:04:13 UTC

[jira] [Commented] (WW-2898) Object Factory not injected before buildBean call for type converters

    [ https://issues.apache.org/jira/browse/WW-2898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13546745#comment-13546745 ] 

Daniel Baldes commented on WW-2898:
-----------------------------------

Does this issue still apply to Struts2 with Guice 3.0? I'm getting an NPE in the Struts2Factory there but I'm not entirely sure if it is this issue. The description states that this applies to ObjectFactory implementations that need to be injected from struts properties, however this is not the case with the Guice 3.0 Struts2 extension any more; it is installed as a filter in web.xml. It would be nice to have a definite answer here, as most people who encounter this problem will find this issue.
                
> Object Factory not injected before buildBean call for type converters
> ---------------------------------------------------------------------
>
>                 Key: WW-2898
>                 URL: https://issues.apache.org/jira/browse/WW-2898
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Dispatch Filter
>    Affects Versions: 2.1.2
>         Environment: NA
>            Reporter: Adam Ruggles
>             Fix For: 2.1.8
>
>
> This specifically affects the Guice Plugin, but it will affect any ObjectFactory implementation that needs to be injected from the struts properties.
> When a Object Factory is created the buildBean will be called before any of the @Injector methods for type converters (xwork-conversion.properties).  After the type converters have been built the properties are correctly injected and then the buildBeans are called on the remaining struts configuration beans.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira