You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Radhesh Radhakrishnan (JIRA)" <de...@myfaces.apache.org> on 2009/04/16 18:55:14 UTC

[jira] Created: (MYFACES-2203) Not able to set context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD'

Not able to set context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' 
----------------------------------------------------------------------------------

                 Key: MYFACES-2203
                 URL: https://issues.apache.org/jira/browse/MYFACES-2203
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 1.2.6
         Environment: Any
            Reporter: Radhesh Radhakrishnan


To reproduce the problem, try setting the following in web.xml

    <context-param>
        <param-name>org.apache.myfaces.CONFIG_REFRESH_PERIOD</param-name>
        <param-value>2</param-value>
    </context-param>

The code that reads the xml parameter seems to have an obvious typo error 

See org.apache.myfaces.shared_impl.config.MyfacesConfig.java -> line # 299
Offending line:
return Long.parseLong(paramName);

Param Name will always be a String :-)

Please change to the following to fix the problem
return Long.parseLong(strValue);

Thank you,
Radhesh

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


[jira] Commented: (MYFACES-2203) Not able to set context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD'

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702159#action_12702159 ] 

Leonardo Uribe commented on MYFACES-2203:
-----------------------------------------

The revision 658739 says that it was already fixed as a minor bug, so there is no jira issue related to this change. Version 1.2.5 and 1.2.6 has the fix, so this issue will be closed as invalid (it is true that the bug is present on earlier versions, but it was already solved)

Thanks a lot for the description.

> Not able to set context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' 
> ----------------------------------------------------------------------------------
>
>                 Key: MYFACES-2203
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2203
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 1.2.6
>         Environment: Any
>            Reporter: Radhesh Radhakrishnan
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> To reproduce the problem, try setting the following in web.xml
>     <context-param>
>         <param-name>org.apache.myfaces.CONFIG_REFRESH_PERIOD</param-name>
>         <param-value>2</param-value>
>     </context-param>
> The code that reads the xml parameter seems to have an obvious typo error 
> See org.apache.myfaces.shared_impl.config.MyfacesConfig.java -> line # 299
> Offending line:
> return Long.parseLong(paramName);
> Param Name will always be a String :-)
> Please change to the following to fix the problem
> return Long.parseLong(strValue);
> Thank you,
> Radhesh

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