ODK Market

tom,

remove all the form defs in /sdcard/odk/.cache and try again. instead
of using an old instance from 1.1.4, try creating a new instance and
see if that works.

yaw

··· On Thu, Nov 25, 2010 at 06:56, Thomas Routen wrote: > Hi Yaw > what we're trying to do (for the NIH eIMCI study) is to "Save as Incomplete" > and then "Review". > Under 1.4 it was crashing and so I've just upgraded to 1.5 and am getting a > crash on Review (ClassCastException Integer at > SelectOneWidget.buildView:89). > Do you know offhand if anyone is using ODK like this? Do you have any > recommendations as to what we might do? > Thanks > Tom > > On 25 November 2010 17:45, Thomas Routen wrote: >> >> Once I'd deleted an older version, the install was successful. >> >> On 25 November 2010 17:43, Thomas Routen wrote: >>> >>> Hi Yaw, just tried to download ODK from the Market and got the attached. >>> Tom > >

Hi Yaw

clearing the cache doesn't help. With both 1.4 and 1.5. When trying to
review a form, at a specific point we get:

11-28 15:20:29.910: ERROR/AndroidRuntime(3450):
java.lang.ClassCastException: java.lang.Integer

*11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.widgets.SelectOneWidget.updateViewAfterAnswer(SelectOneWidget.java:155
*)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.widgets.AbstractQuestionWidget.buildViewEnd(AbstractQuestionWidget.java:333)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.widgets.AbstractQuestionWidget.buildView(AbstractQuestionWidget.java:312)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.views.QuestionView.buildView(QuestionView.java:61)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.activities.FormEntryActivity.createView(FormEntryActivity.java:597)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.activities.FormEntryActivity.createView(FormEntryActivity.java:502)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.activities.FormEntryActivity.showNextView(FormEntryActivity.java:669)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.activities.FormEntryActivity.onTouchEvent(FormEntryActivity.java:640)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.activities.FormEntryActivity.dispatchTouchEvent(FormEntryActivity.java:612)

Tom

··· On 26 November 2010 05:52, Yaw Anokwa wrote:

tom,

remove all the form defs in /sdcard/odk/.cache and try again. instead
of using an old instance from 1.1.4, try creating a new instance and
see if that works.

yaw

On Thu, Nov 25, 2010 at 06:56, Thomas Routen routen@thingsprime.com wrote:

Hi Yaw
what we're trying to do (for the NIH eIMCI study) is to "Save as
Incomplete"
and then "Review".
Under 1.4 it was crashing and so I've just upgraded to 1.5 and am getting
a
crash on Review (ClassCastException Integer at
SelectOneWidget.buildView:89).
Do you know offhand if anyone is using ODK like this? Do you have any
recommendations as to what we might do?
Thanks
Tom

On 25 November 2010 17:45, Thomas Routen routen@thingsprime.com wrote:

Once I'd deleted an older version, the install was successful.

On 25 November 2010 17:43, Thomas Routen routen@thingsprime.com wrote:

Hi Yaw, just tried to download ODK from the Market and got the
attached.
Tom

I'm temporarily incorporating the conditional shown below into the method in
question (updateViewAfterAnswer), but I'd be grateful for any advice on what
how you think the method should be:

Object o = prompt.getAnswerValue().getValue();
if (o instanceof Integer) {
s = ((Integer) o).toString();
}
if (o instanceof Selection){
s = ((Selection)o).getValue();
}
if(s==null)
throw new RuntimeException("Unrecognised type in SelectOne answer:
"+o.getClass().getName());

··· On 28 November 2010 15:22, Thomas Routen wrote:

Hi Yaw

clearing the cache doesn't help. With both 1.4 and 1.5. When trying to
review a form, at a specific point we get:

11-28 15:20:29.910: ERROR/AndroidRuntime(3450):
java.lang.ClassCastException: java.lang.Integer

*11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.widgets.SelectOneWidget.updateViewAfterAnswer(SelectOneWidget.java:155
*)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.widgets.AbstractQuestionWidget.buildViewEnd(AbstractQuestionWidget.java:333)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.widgets.AbstractQuestionWidget.buildView(AbstractQuestionWidget.java:312)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.views.QuestionView.buildView(QuestionView.java:61)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.activities.FormEntryActivity.createView(FormEntryActivity.java:597)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.activities.FormEntryActivity.createView(FormEntryActivity.java:502)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.activities.FormEntryActivity.showNextView(FormEntryActivity.java:669)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.activities.FormEntryActivity.onTouchEvent(FormEntryActivity.java:640)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.activities.FormEntryActivity.dispatchTouchEvent(FormEntryActivity.java:612)

Tom

On 26 November 2010 05:52, Yaw Anokwa yanokwa@gmail.com wrote:

tom,

remove all the form defs in /sdcard/odk/.cache and try again. instead
of using an old instance from 1.1.4, try creating a new instance and
see if that works.

yaw

On Thu, Nov 25, 2010 at 06:56, Thomas Routen routen@thingsprime.com wrote:

Hi Yaw
what we're trying to do (for the NIH eIMCI study) is to "Save as
Incomplete"
and then "Review".
Under 1.4 it was crashing and so I've just upgraded to 1.5 and am
getting a
crash on Review (ClassCastException Integer at
SelectOneWidget.buildView:89).
Do you know offhand if anyone is using ODK like this? Do you have any
recommendations as to what we might do?
Thanks
Tom

On 25 November 2010 17:45, Thomas Routen routen@thingsprime.com wrote:

Once I'd deleted an older version, the install was successful.

On 25 November 2010 17:43, Thomas Routen routen@thingsprime.com wrote:

Hi Yaw, just tried to download ODK from the Market and got the
attached.
Tom

Tom,
updateViewAfterAnswer() and the class AbstractQuestionWidget don't exist in
Collect 1.1.4 or 1.1.5. Those have been incorporated in the default branch
for the 1.1.6 release. Until release, the default branch is considered
unstable.

If you haven't made any changes to the code, I'd recommend getting the
released 1.1.5 version and trying that.
-Carl

··· On Sun, Nov 28, 2010 at 12:34 PM, Thomas Routen wrote:

I'm temporarily incorporating the conditional shown below into the method
in question (updateViewAfterAnswer), but I'd be grateful for any advice on
what how you think the method should be:

Object o = prompt.getAnswerValue().getValue();
if (o instanceof Integer) {
s = ((Integer) o).toString();
}
if (o instanceof Selection){
s = ((Selection)o).getValue();
}
if(s==null)
throw new RuntimeException("Unrecognised type in SelectOne answer:
"+o.getClass().getName());

On 28 November 2010 15:22, Thomas Routen routen@thingsprime.com wrote:

Hi Yaw

clearing the cache doesn't help. With both 1.4 and 1.5. When trying to
review a form, at a specific point we get:

11-28 15:20:29.910: ERROR/AndroidRuntime(3450):
java.lang.ClassCastException: java.lang.Integer

*11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.widgets.SelectOneWidget.updateViewAfterAnswer(SelectOneWidget.java:155
*)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.widgets.AbstractQuestionWidget.buildViewEnd(AbstractQuestionWidget.java:333)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.widgets.AbstractQuestionWidget.buildView(AbstractQuestionWidget.java:312)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.views.QuestionView.buildView(QuestionView.java:61)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.activities.FormEntryActivity.createView(FormEntryActivity.java:597)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.activities.FormEntryActivity.createView(FormEntryActivity.java:502)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.activities.FormEntryActivity.showNextView(FormEntryActivity.java:669)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.activities.FormEntryActivity.onTouchEvent(FormEntryActivity.java:640)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.activities.FormEntryActivity.dispatchTouchEvent(FormEntryActivity.java:612)

Tom

On 26 November 2010 05:52, Yaw Anokwa yanokwa@gmail.com wrote:

tom,

remove all the form defs in /sdcard/odk/.cache and try again. instead
of using an old instance from 1.1.4, try creating a new instance and
see if that works.

yaw

On Thu, Nov 25, 2010 at 06:56, Thomas Routen routen@thingsprime.com wrote:

Hi Yaw
what we're trying to do (for the NIH eIMCI study) is to "Save as
Incomplete"
and then "Review".
Under 1.4 it was crashing and so I've just upgraded to 1.5 and am
getting a
crash on Review (ClassCastException Integer at
SelectOneWidget.buildView:89).
Do you know offhand if anyone is using ODK like this? Do you have any
recommendations as to what we might do?
Thanks
Tom

On 25 November 2010 17:45, Thomas Routen routen@thingsprime.com wrote:

Once I'd deleted an older version, the install was successful.

On 25 November 2010 17:43, Thomas Routen routen@thingsprime.com wrote:

Hi Yaw, just tried to download ODK from the Market and got the
attached.
Tom

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

And if you want to continue to use the 1.1.6 tree, please sync again with
the tip. The line numbers in the error don't match up with the current
tip. On November 10th, we fixed a bug that was causing Hierarchy views to
crash, which might be the issue you are seeing.

Mitch

··· On Sun, Nov 28, 2010 at 10:08 AM, Carl Hartung wrote:

Tom,
updateViewAfterAnswer() and the class AbstractQuestionWidget don't exist in
Collect 1.1.4 or 1.1.5. Those have been incorporated in the default branch
for the 1.1.6 release. Until release, the default branch is considered
unstable.

If you haven't made any changes to the code, I'd recommend getting the
released 1.1.5 version and trying that.
-Carl

On Sun, Nov 28, 2010 at 12:34 PM, Thomas Routen routen@thingsprime.comwrote:

I'm temporarily incorporating the conditional shown below into the method
in question (updateViewAfterAnswer), but I'd be grateful for any advice on
what how you think the method should be:

Object o = prompt.getAnswerValue().getValue();
if (o instanceof Integer) {
s = ((Integer) o).toString();
}
if (o instanceof Selection){
s = ((Selection)o).getValue();
}
if(s==null)
throw new RuntimeException("Unrecognised type in SelectOne answer:
"+o.getClass().getName());

On 28 November 2010 15:22, Thomas Routen routen@thingsprime.com wrote:

Hi Yaw

clearing the cache doesn't help. With both 1.4 and 1.5. When trying to
review a form, at a specific point we get:

11-28 15:20:29.910: ERROR/AndroidRuntime(3450):
java.lang.ClassCastException: java.lang.Integer

*11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.widgets.SelectOneWidget.updateViewAfterAnswer(SelectOneWidget.java:155
*)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.widgets.AbstractQuestionWidget.buildViewEnd(AbstractQuestionWidget.java:333)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.widgets.AbstractQuestionWidget.buildView(AbstractQuestionWidget.java:312)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.views.QuestionView.buildView(QuestionView.java:61)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.activities.FormEntryActivity.createView(FormEntryActivity.java:597)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.activities.FormEntryActivity.createView(FormEntryActivity.java:502)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.activities.FormEntryActivity.showNextView(FormEntryActivity.java:669)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.activities.FormEntryActivity.onTouchEvent(FormEntryActivity.java:640)
11-28 15:20:29.910: ERROR/AndroidRuntime(3450): at
org.odk.collect.android.activities.FormEntryActivity.dispatchTouchEvent(FormEntryActivity.java:612)

Tom

On 26 November 2010 05:52, Yaw Anokwa yanokwa@gmail.com wrote:

tom,

remove all the form defs in /sdcard/odk/.cache and try again. instead
of using an old instance from 1.1.4, try creating a new instance and
see if that works.

yaw

On Thu, Nov 25, 2010 at 06:56, Thomas Routen routen@thingsprime.com wrote:

Hi Yaw
what we're trying to do (for the NIH eIMCI study) is to "Save as
Incomplete"
and then "Review".
Under 1.4 it was crashing and so I've just upgraded to 1.5 and am
getting a
crash on Review (ClassCastException Integer at
SelectOneWidget.buildView:89).
Do you know offhand if anyone is using ODK like this? Do you have any
recommendations as to what we might do?
Thanks
Tom

On 25 November 2010 17:45, Thomas Routen routen@thingsprime.com wrote:

Once I'd deleted an older version, the install was successful.

On 25 November 2010 17:43, Thomas Routen routen@thingsprime.com wrote:

Hi Yaw, just tried to download ODK from the Market and got the
attached.
Tom

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Mitch Sundt
Software Engineer
http://www.OpenDataKit.org
University of Washington
mitchellsundt@gmail.com