[Mifos-developer] Configuration error

18 views
Skip to first unread message

Jeff Blue

unread,
Jul 16, 2008, 4:10:12 PM7/16/08
to Developer
I'm having trouble getting my war initilized in Tomcat and it looks like
it's failing due to my applicationConfiguration.custom.properties. In
particular it seems to error on setting the
ClientPendingApprovalStateEnabled to false. I'm using V1.1.x Rev.
#13431. I deleted the database before each build_db ... war cycle. I
tried not running the unit tests in case that caused a conflict. Here
are the pertinent lines from the logs and my properties file. Thanks for
any help that you can give me. - Jeff

In catalina.2008-07-16.log:

Jul 16, 2008 11:05:53 AM org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
Jul 16, 2008 11:05:53 AM org.apache.catalina.core.StandardContext start
GRAVE: Context [/mifos] startup failed due to previous errors

In localhost.2008-07-16.log

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.

In applicationConfiguration.custom.properties:

# 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


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Kimloan Ho

unread,
Jul 16, 2008, 7:20:26 PM7/16/08
to Developer
Hi Jeff,
In the default Mifos database the Client Pending status enable is already set to 1 (true) so when it reads the config file and that is set to false it failed because if it is true you can not change to false. So the trick is that you need to update the table Customer_state for the Client Pending status enable to become 1 before you start Mifos.

// status_id=2 is Client Pending status

update customer_state set currently_in_use =0 where status_id=2;

You may want to check with Adam Monsen about this because he is the expert on this. Thank you.

kim


--- On Wed, 7/16/08, Jeff Blue <jeff...@embarqmail.com> wrote:

Jeff Blue

unread,
Jul 16, 2008, 8:19:35 PM7/16/08
to kiml...@yahoo.com, Developer
Thanks Kim, I'll give that a try. I assume the same is true for the other pending status fields: group, loan and savings? - Jeff

Emily Tucker

unread,
Jul 17, 2008, 12:38:23 AM7/17/08
to Developer

Hi Jeff,

 

As Kim said, Adam is the expert—but yes, I believe this is true for the other pending status’.

 

You should know that we haven’t done very much testing with this configuration set to false since we didn’t think this was a very common use case—so you might run into bugs with this configuration setting.  Jeff B. can comment about the level of testing—but we certainly didn’t do a full pass through the application.  Our current deployments have this status enabled—so we also don’t have any validation from our current customers.  This is a long-winded way of saying that I’d be cautious about changing this setting.  J

 

If you turn off the pending status—do let us know if you come across any issues or bugs!

 

Hope this helps,

Emily.

Jeff Blue

unread,
Jul 17, 2008, 10:27:16 AM7/17/08
to Developer, Adam Monsen
Thanks, I'll check with SEM to make sure they want these changed. In case they do, what are the tables for groups, loans and savings? Those items don't seem to have *_state tables. Also are the pertinent records where status_id=2 and fields to change currently_in_use as in table customer_state?

Anything to add, Adam?

Thanks all,
Jeff Blue
looking at Mifos for SEM (www.sem-fund.org)

Emily Tucker wrote:

Adam Monsen

unread,
Jul 17, 2008, 3:44:06 PM7/17/08
to mifos-d...@lists.sourceforge.net
On Jul 17, 7:27 am, Jeff Blue wrote:
> Anything to add, Adam?

Sorry, no. My colleagues give me too much credit. :)

I don't know what effect directly modifying customer_state will have,
but
the one thing I think I recall about this setting is that you _cannot_
have
_any_ records in the database when you modify this setting, except
what is created from "ant build_db" or by following the v1.1 install
instructions.

--
Adam Monsen

Jeff Blue

unread,
Jul 18, 2008, 8:29:49 AM7/18/08
to Developer
SEM decided that in light of the lack of its use by other MFIs and perhaps less than thorough testing, that they'll opt not to turn approval checks off. My experience, however, demonstrates that the v1.1 Configuring Mifos instructions for these options do not work. The database fields needed to be modified directly rather than through the applicationConfiguration.custom.properties file. Kim, Emily and Adam thanks for all your help.
Congratulations on v1.1!


Jeff Blue
looking at Mifos for SEM (www.sem-fund.org)

Emily Tucker

unread,
Jul 23, 2008, 11:24:31 AM7/23/08
to Developer
> My experience, however, demonstrates that the v1.1 Configuring Mifos
>instructions for these options do not work. The database fields
>needed to be modified directly rather than through the
>applicationConfiguration.custom.properties file.

Jeff,

(Apologies if someone already sent a response to this)-- but would you
mind filing a bug about this issue in our issue tracker?

https://mifos.dev.java.net/issues/enter_bug.cgi

You may need to register on java.net if you haven't already. You can do
that here (select "observer" role to get the necessary permissions):
https://www.dev.java.net/servlets/Join

And then join Mifos here:
https://mifos.dev.java.net/

Thanks!
Emily.

Jeff Blue

unread,
Jul 23, 2008, 11:58:30 AM7/23/08
to Developer
Will do. - Jeff

Emily Tucker

unread,
Jul 23, 2008, 3:51:14 PM7/23/08
to Developer
> Jeff,
>
> (Apologies if someone already sent a response to this)-- but would
> you mind filing a bug about this issue in our issue tracker?

Whoops-- there is already an issue for bug. Thanks for entering!

Emily

Jeff Blue

unread,
Jul 23, 2008, 4:51:28 PM7/23/08
to Developer
I just entered one this afternoon. I searched for an existing one first and didn't find one. Are you referring to my new one or a previous one that I missed? If the latter, would you please email me the link or issue #. Thanks - Jeff

Emily Tucker

unread,
Jul 24, 2008, 5:53:33 PM7/24/08
to Developer

Sorry for the confusion.  I was referring to your new one (I didn’t realize it was entered so recently).

 

Again—thanks for entering the bug!

Emily.

 

From: mifos-devel...@lists.sourceforge.net [mailto:mifos-devel...@lists.sourceforge.net] On Behalf Of Jeff Blue
Sent: Wednesday, July 23, 2008 1:51 PM
To: Developer
Subject: Re: [Mifos-developer] Configuration error

 

I just entered one this afternoon. I searched for an existing one first and didn't find one. Are you referring to my new one or a previous one that I missed? If the latter, would you please email me the link or issue #. Thanks - Jeff

Emily Tucker wrote:

Reply all
Reply to author
Forward
0 new messages