[
http://mifosforge.jira.com/browse/MIFOS-2091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jbrewster updated MIFOS-2091:
-----------------------------
Status: Verified (was: Resolved)
> ClientPendingApprovalStateEnabled=false causes tomcat error
> -----------------------------------------------------------
>
> Key: MIFOS-2091
> URL: http://mifosforge.jira.com/browse/MIFOS-2091
> Project: mifos
> Issue Type: Bug
> Components: Custom Properties
> Affects Versions: Release 1.1
> Environment: Platform: All, OS: Windows XP
> Reporter: jeffblue
> Assignee: mifosqa
> Fix For: Shamim D
>
>
> In a new V1.1.x Rev. #13431 install, setting
> ClientPendingApprovalStateEnabled=false in the
> applicationConfiguration.custom.properties file causes tomcat to error.
> Pertinent developer listserv thread is:
> http://groups.google.com/group/mifosdeveloper/browse_thread/thread/2fe199b738fa89bb
> Setting the table value by direct query cleared tomcat error, but then tomcat
> hit similar error on GroupPendingApprovalStateEnabled=false. I suspect any
> pending approval settings (client, group, loan & savings) to false would yield
> errors.
> Per developer thread, MFI decided to abandon setting any pendingapprovals to
> false.
> applicationConfiguration.custom.properties file contents:
> ! ################################################################### !
> ! ###################### Custom Configuration ###################### !
> ! ################################################################### !
> # An initial properties based configuration file for default values.
> # To customize the values in this file a separate
> # file containing only those values to be changed should be put on
> # the class path. This file containing override values must be named
> # "applicationConfiguration.custom.properties" (as defined in the file
> # "configurationFactory.xml").
> # more information here:
> #
> http://mifos.org/developers/wiki/ConfiguringMifos#application-wide-install-time-settings
> # Mutability: always
> # Type: String
> # Default: GB
> Localization.CountryCode=FR
> # Mutability: always
> # Type: String
> # Default: EN
> Localization.LanguageCode=fr
> # Mutability: TRAPDOOR. May only be changed to "false" before first
> deployment.
> # After initial deployment, may only be changed to "true".
> # Type: boolean (true/false)
> # Default: true
> ClientRules.CenterHierarchyExists=false
> # Mutability: always
> # Type: String
> # Default: INR
> AccountingRules.CurrencyCode=XOF
> # Mutability: always
> # Type: short
> # Default: 1
> AccountingRules.DigitsAfterDecimal=0
> # -- process flow optional states --
> # Clients, groups, and accounts have some optional states, which can be hidden
> # and excluded from the state flows. If any of the following states are set to
> # "false", these optional states will not be visible in the UI. Once an
> # optional state is enabled and corresponding loans, savings accounts,
> clients,
> # etc. have been created, it should not be disabled as records could be in an
> # optional state and unmodifiable from the Mifos user interface.
> #
> # Overriding to "false" in the custom configuration file must be performed
> # before any loans, savings accounts, or clients (depending on the setting)
> # have been created.
> # Mutability: TRAPDOOR. May only be changed to "false" before first
> deployment.
> # After initial deployment, may only be changed to "true".
> # Type: boolean (true/false)
> # Default: true
> ProcessFlow.ClientPendingApprovalStateEnabled=false
> # Mutability: TRAPDOOR. May only be changed to "false" before first
> deployment.
> # After initial deployment, may only be changed to "true".
> # Type: boolean (true/false)
> # Default: true
> ProcessFlow.GroupPendingApprovalStateEnabled=false
> # Mutability: TRAPDOOR. May only be changed to "false" before first
> deployment.
> # After initial deployment, may only be changed to "true".
> # Type: boolean (true/false)
> # Default: true
> ProcessFlow.LoanPendingApprovalStateEnabled=false
> # Mutability: TRAPDOOR. May only be changed to "false" before first
> deployment.
> # After initial deployment, may only be changed to "true".
> # Type: boolean (true/false)
> # Default: true
> ProcessFlow.SavingsPendingApprovalStateEnabled=false
> localhost.2008-07-16.log file contents:
> 16 juil. 2008 11:05:52 org.apache.catalina.core.StandardContext listenerStart
> GRAVE: Exception sending context initialized event to listener instance of
> class
> org.mifos.framework.ApplicationInitializer
> java.lang.Error:
> org.mifos.application.configuration.exceptions.ConfigurationException: The
> value
> for key ProcessFlow.ClientPendingApprovalStateEnabled in the file
> applicationConfiguration.custom.properties must to be set to 1 because it was
> set to 1 in the database, hence can't be set to to 0 in the custom
> configuration
> file as this might invalidate existing data. Records for clients in the
> 'pending
> approval' state may already exist. Also,
> applicationConfiguration.default.properties must never be changed--make sure
> this file is untouched.
> at
> org.mifos.framework.ApplicationInitializer.init(ApplicationInitializer.java:105)
> at
> org.mifos.framework.ApplicationInitializer.contextInitialized(ApplicationInitializer.java:53)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
> at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
> at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
> at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Caused by:
> org.mifos.application.configuration.exceptions.ConfigurationException: The
> value
> for key ProcessFlow.ClientPendingApprovalStateEnabled in the file
> applicationConfiguration.custom.properties must to be set to 1 because it was
> set to 1 in the database, hence can't be set to to 0 in the custom
> configuration
> file as this might invalidate existing data. Records for clients in the
> 'pending
> approval' state may already exist. Also,
> applicationConfiguration.default.properties must never be changed--make sure
> this file is untouched.
> at
> org.mifos.config.ProcessFlowRules.initClientPendingApprovalState(ProcessFlowRules.java:147)
> at org.mifos.config.ProcessFlowRules.init(ProcessFlowRules.java:64)
> at
> org.mifos.framework.ApplicationInitializer.init(ApplicationInitializer.java:79)
> ... 25 more
> 16 juil. 2008 11:05:54 org.apache.catalina.core.ApplicationContext log
> INFO: ContextListener: contextInitialized()
> 16 juil. 2008 11:05:54 org.apache.catalina.core.ApplicationContext log
> INFO: SessionListener: contextInitialized()
> 16 juil. 2008 11:55:16 org.apache.catalina.core.ApplicationContext log
> INFO: SessionListener: contextDestroyed()
> 16 juil. 2008 11:55:16 org.apache.catalina.core.ApplicationContext log
> INFO: ContextListener: contextDestroyed()
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mifosforge.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues