I think I have managed to get to the bottom of this. I believe there is a weakness in the explodeExpression method, which causes this NPE when there are invalid expressions present in the system. Version 2.10 seemed to be rather tolerant of this but wit the change to UIDs in expressions, some of the "invalid" expressions were not being upgraded, which I noticed in the logs. After the ugprade to 2.12 (from 2.10), there were a large number of expressions which were invalid.
1) Blank expressions. These very likely were from our original import from 1.4, and have been there all along, but never really been detected. 2) Invalid expressions which were unable to be upgraded.These were all the ones which did not have UIDs in them . I was not exactly sure (am still not am) what the implications of removing these were. In some cases, I got a key violation with expressiondataelement and I removed these as well. After all of that witchcraft, I started up the system again, and it worked. I think the explodeExpression method is expecting valid expressions, but these were not being picked up in the integrity checks for some reason and ends up throwing this exception which prevents the download of metadata during data entry. Regards, Jason On Fri, Oct 11, 2013 at 11:01 AM, Jason Pickering < [email protected]> wrote: > Hi Lars/Devs, > > I am experiencing exactly the same issue after upgrading a 2.10 database > to 2.12. Ran integrity checks, and there were no invalid indicators. > > This only seems to happen when the data entry page is loaded. Strangely, > if I have a cached set of forms on my system, I do not get this error. > > Really need to figure out what may be causing this. :-/ > > Regards, > Jason > > > > On Fri, Aug 23, 2013 at 12:52 PM, Lars Helge Øverland <[email protected] > > wrote: > >> Hi, >> >> can you please tell us which dhis version / build? >> >> This is likely to be caused by invalid indicator expressions. Can you >> please run the integrity checks (in data administration -> integrity >> checks) and look for invalid numerators and denominators? >> >> regards, >> >> Lars >> >> >> _______________________________________________ >> Mailing list: https://launchpad.net/~dhis2-devs >> Post to : [email protected] >> Unsubscribe : https://launchpad.net/~dhis2-devs >> More help : https://help.launchpad.net/ListHelp >> >> >
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : [email protected] Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp

