[ODK Developers] EvaluationContext error in FormLoaderTask.java

ODK Collect is using a javarosa fork: https://bitbucket.org/m.sundt/javarosa

I'm not sure what the status of the javarosa-core tree is these days, as
DiMagi hasn't been doing official javarosa-core library releases, but has
been adding significant functionality.

The special fork incorporates some of those latest changes.

Mitch

··· On Wed, Jan 16, 2013 at 10:54 AM, Stephanie Ku wrote:

Hello Everyone,

I have replaced the javarosa library with the more recent version of
javarosa-core (as I was planning on making some edits to the source code),
however, I keep getting a simple constructor error from line 190 (in the
doInBackground method of FormLoaderTask.java) fd.setEvaluationContext(newEvaluationContext(
null));

The downloaded version of javarosa-core did not have a constructor of that
format (hence the error). Javarosa-core EvaluationContext class herehttps://bitbucket.org/javarosa/javarosa-pending/src/96a292dd2664cd9d74b5482c84cdd230e9c44602/core/src/org/javarosa/core/model/condition/EvaluationContext.java?at=default
.
But, when I changed it to new EvaluationContext(), and ran the ODK
application, I get a nullPointerException and am unable to fill out a blank
form. The logs say that the NullPointerException stems from the constructor.

Any ideas on what's going wrong/how to fix it?

Thank you!

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Stephanie,

Apologies for the confusion. Mitch is correct that JavaRosa has undergone
major structural changes, but the core committer's group hasn't come to a
stable point to start doing library releases again.

Is there specific functionality you are looking for in the new libraries
that isn't supported in Mitch's fork?

-Clayton

··· On Wed, Jan 16, 2013 at 2:54 PM, Mitch S wrote:

ODK Collect is using a javarosa fork:
https://bitbucket.org/m.sundt/javarosa

I'm not sure what the status of the javarosa-core tree is these days, as
DiMagi hasn't been doing official javarosa-core library releases, but has
been adding significant functionality.

The special fork incorporates some of those latest changes.

Mitch

On Wed, Jan 16, 2013 at 10:54 AM, Stephanie Ku stephanie.yt.ku@gmail.comwrote:

Hello Everyone,

I have replaced the javarosa library with the more recent version of
javarosa-core (as I was planning on making some edits to the source code),
however, I keep getting a simple constructor error from line 190 (in the
doInBackground method of FormLoaderTask.java) fd.setEvaluationContext(newEvaluationContext(
null));

The downloaded version of javarosa-core did not have a constructor of
that format (hence the error). Javarosa-core EvaluationContext class herehttps://bitbucket.org/javarosa/javarosa-pending/src/96a292dd2664cd9d74b5482c84cdd230e9c44602/core/src/org/javarosa/core/model/condition/EvaluationContext.java?at=default
.
But, when I changed it to new EvaluationContext(), and ran the ODK
application, I get a nullPointerException and am unable to fill out a blank
form. The logs say that the NullPointerException stems from the constructor.

Any ideas on what's going wrong/how to fix it?

Thank you!

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com