[
https://issues.apache.org/jira/browse/WW-3992?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart updated WW-3992:
------------------------------
Fix Version/s: (was: 2.3.16)
2.3.17
> TypeConversion fails in Struts 2.3.8 in devMode due to configuration xml
> reload instead of annotation config
> ------------------------------------------------------------------------------------------------------------
>
> Key: WW-3992
> URL: https://issues.apache.org/jira/browse/WW-3992
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions, Other
> Affects Versions: 2.3.8
> Environment: java 1.6u24, tomcat 6.0.32
> Reporter: Hugo Robayo
> Priority: Minor
> Labels: TypeConversion
> Fix For: 2.3.17
>
>
> With struts.devMode is set to true, each request the BeanSelectionProvider
> class evaluates this code:
> if
> ("true".equalsIgnoreCase(props.getProperty(StrutsConstants.STRUTS_DEVMODE))) {
> ...
> props.setProperty(StrutsConstants.STRUTS_CONFIGURATION_XML_RELOAD, "true");
> ...
> It causes @TypeConversion will not recognize by XWorkConverter class in
> method conditionalReload() it tries to reload xml configuration instead of
> annotation configurations then this:
> ...
> URL fileUrl = ClassLoaderUtil.getResource(buildConverterFilename(clazz),
> clazz);
> ...
> returns null then it causes nullPointerException in the next line, so no
> conversion is applied.
> Trying to solve this, but with no success
> <constant name="reloadXmlConfiguration" value="false"/>
> <constant name="struts.configuration.xml.reload" value="false"/>
> then, temporary solution to no set to false struts.devMode until someone
> helps me, recompile BeanSelectionProvider with:
> ...
> props.setProperty(StrutsConstants.STRUTS_CONFIGURATION_XML_RELOAD, "false");
> ...
> when devMode is true.
--
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