Error uploading form

Dear Sirs et Madames,
I had a form which uploaded fine initially. After adding to the form,
it now uploads but with error:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

java.lang.IllegalStateException: Form id elem+uuid:ba4c9161-aa91-47e0-
b17a-f33179b85d84(00000001) Child already defined for ordinal 1

org.opendatakit.aggregate.datamodel.FormDataModel.setChild(FormDataModel.java:
414)

org.opendatakit.aggregate.form.FormDefinition.(FormDefinition.java:
509)

org.opendatakit.aggregate.parser.FormParserForJavaRosa.initHelper(FormParserForJavaRosa.java:
629)

org.opendatakit.aggregate.parser.FormParserForJavaRosa.(FormParserForJavaRosa.java:
414)

org.opendatakit.aggregate.servlet.FormUploadServlet.doPost(FormUploadServlet.java:
244)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.springframework.security.web.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:368)

org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:
109)

org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:
83)
org.springframework.security.web.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:380)

org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:
97)
org.springframework.security.web.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:380)

org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:
100)
org.springframework.security.web.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:380)

org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:
54)
org.springframework.security.web.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:380)

org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:
35)
org.springframework.security.web.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:380)

org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:
187)
org.springframework.security.web.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:380)

org.springframework.security.web.authentication.www.DigestAuthenticationFilter.doFilter(DigestAuthenticationFilter.java:
319)
org.springframework.security.web.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:380)

org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:
78)
org.springframework.security.web.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:380)

org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:
105)
org.springframework.security.web.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:380)

org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:
79)
org.springframework.security.web.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:380)

org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:
109)
org.springframework.security.web.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:380)

org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:
169)

org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:
237)

org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:
167)
note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.33 logs.

Does anyone know what could have happened here?

Thanks in advance,
Tumaini

are you trying to upload a form with the same form id as an existing form?

··· On Thu, Nov 24, 2011 at 08:36, Tumaini Kilimba wrote: > Dear Sirs et Madames, > I had a form which uploaded fine initially. After adding to the form, > it now uploads but with error: > > HTTP Status 500 - > > type Exception report > > message > > description The server encountered an internal error () that prevented > it from fulfilling this request. > > exception > > java.lang.IllegalStateException: Form id elem+uuid:ba4c9161-aa91-47e0- > b17a-f33179b85d84(00000001) Child already defined for ordinal 1 > > org.opendatakit.aggregate.datamodel.FormDataModel.setChild(FormDataModel.java: > 414) > > org.opendatakit.aggregate.form.FormDefinition.(FormDefinition.java: > 509) > > org.opendatakit.aggregate.parser.FormParserForJavaRosa.initHelper(FormParserForJavaRosa.java: > 629) > > org.opendatakit.aggregate.parser.FormParserForJavaRosa.(FormParserForJavaRosa.java: > 414) > > org.opendatakit.aggregate.servlet.FormUploadServlet.doPost(FormUploadServlet.java: > 244) > javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > org.springframework.security.web.FilterChainProxy > $VirtualFilterChain.doFilter(FilterChainProxy.java:368) > > org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java: > 109) > > org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java: > 83) > org.springframework.security.web.FilterChainProxy > $VirtualFilterChain.doFilter(FilterChainProxy.java:380) > > org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java: > 97) > org.springframework.security.web.FilterChainProxy > $VirtualFilterChain.doFilter(FilterChainProxy.java:380) > > org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java: > 100) > org.springframework.security.web.FilterChainProxy > $VirtualFilterChain.doFilter(FilterChainProxy.java:380) > > org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java: > 54) > org.springframework.security.web.FilterChainProxy > $VirtualFilterChain.doFilter(FilterChainProxy.java:380) > > org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java: > 35) > org.springframework.security.web.FilterChainProxy > $VirtualFilterChain.doFilter(FilterChainProxy.java:380) > > org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java: > 187) > org.springframework.security.web.FilterChainProxy > $VirtualFilterChain.doFilter(FilterChainProxy.java:380) > > org.springframework.security.web.authentication.www.DigestAuthenticationFilter.doFilter(DigestAuthenticationFilter.java: > 319) > org.springframework.security.web.FilterChainProxy > $VirtualFilterChain.doFilter(FilterChainProxy.java:380) > > org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java: > 78) > org.springframework.security.web.FilterChainProxy > $VirtualFilterChain.doFilter(FilterChainProxy.java:380) > > org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java: > 105) > org.springframework.security.web.FilterChainProxy > $VirtualFilterChain.doFilter(FilterChainProxy.java:380) > > org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java: > 79) > org.springframework.security.web.FilterChainProxy > $VirtualFilterChain.doFilter(FilterChainProxy.java:380) > > org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java: > 109) > org.springframework.security.web.FilterChainProxy > $VirtualFilterChain.doFilter(FilterChainProxy.java:380) > > org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java: > 169) > > org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java: > 237) > > org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java: > 167) > note The full stack trace of the root cause is available in the Apache > Tomcat/6.0.33 logs. > > > Does anyone know what could have happened here? > > Thanks in advance, > Tumaini > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >

I discovered the error. I had a set of tags as such:

If I deleted this bit from my form, it uploads fine. With this bit back in,
it causes the error. Through trial and error, I discovered that when I
renamed to (got rid of the
repetitious "group" word), all was well with the world again. Could someone
enlighten me as to why that could be?

Thanks,
Tumaini

··· On Thu, Nov 24, 2011 at 10:23 PM, Yaw Anokwa wrote:

are you trying to upload a form with the same form id as an existing form?

On Thu, Nov 24, 2011 at 08:36, Tumaini Kilimba tkilimba@ihi.or.tz wrote:

Dear Sirs et Madames,
I had a form which uploaded fine initially. After adding to the form,
it now uploads but with error:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

java.lang.IllegalStateException: Form id elem+uuid:ba4c9161-aa91-47e0-
b17a-f33179b85d84(00000001) Child already defined for ordinal 1

org.opendatakit.aggregate.datamodel.FormDataModel.setChild(FormDataModel.java:

org.opendatakit.aggregate.form.FormDefinition.(FormDefinition.java:
509)

org.opendatakit.aggregate.parser.FormParserForJavaRosa.initHelper(FormParserForJavaRosa.java:

org.opendatakit.aggregate.parser.FormParserForJavaRosa.(FormParserForJavaRosa.java:

org.opendatakit.aggregate.servlet.FormUploadServlet.doPost(FormUploadServlet.java:

  1. javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.springframework.security.web.FilterChainProxy
    $VirtualFilterChain.doFilter(FilterChainProxy.java:368)

org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:

org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:

  1. org.springframework.security.web.FilterChainProxy
    $VirtualFilterChain.doFilter(FilterChainProxy.java:380)

org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:

  1. org.springframework.security.web.FilterChainProxy
    $VirtualFilterChain.doFilter(FilterChainProxy.java:380)

org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:

  1. org.springframework.security.web.FilterChainProxy
    $VirtualFilterChain.doFilter(FilterChainProxy.java:380)

org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:

  1. org.springframework.security.web.FilterChainProxy
    $VirtualFilterChain.doFilter(FilterChainProxy.java:380)

org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:

  1. org.springframework.security.web.FilterChainProxy
    $VirtualFilterChain.doFilter(FilterChainProxy.java:380)

org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:

  1. org.springframework.security.web.FilterChainProxy
    $VirtualFilterChain.doFilter(FilterChainProxy.java:380)

org.springframework.security.web.authentication.www.DigestAuthenticationFilter.doFilter(DigestAuthenticationFilter.java:

  1. org.springframework.security.web.FilterChainProxy
    $VirtualFilterChain.doFilter(FilterChainProxy.java:380)

org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:

  1. org.springframework.security.web.FilterChainProxy
    $VirtualFilterChain.doFilter(FilterChainProxy.java:380)

org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:

  1. org.springframework.security.web.FilterChainProxy
    $VirtualFilterChain.doFilter(FilterChainProxy.java:380)

org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:

  1. org.springframework.security.web.FilterChainProxy
    $VirtualFilterChain.doFilter(FilterChainProxy.java:380)

org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:

  1. org.springframework.security.web.FilterChainProxy
    $VirtualFilterChain.doFilter(FilterChainProxy.java:380)

org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:

org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:

org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:

note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.33 logs.

Does anyone know what could have happened here?

Thanks in advance,
Tumaini

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

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

Hi Tumaini,

··· On Fri, 25 Nov 2011, Tumaini Kilimba wrote:

I discovered the error. I had a set of tags as such:




If I deleted this bit from my form, it uploads fine. With this bit back in, it causes the error. Through trial and error, I discovered
that when I renamed to (got rid of the repetitious "group" word), all was well with the world
again. Could someone enlighten me as to why that could be?

We are not mind-readers. Unless you put the form somewhere that we can see
it, we can only guess.

My guess would be that you have another group called groupGroupAssistance
in the same form.

Cheers, Chris.

Aptivate | http://www.aptivate.org | Phone: +44 1223 760887
The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES

Aptivate is a not-for-profit company registered in England and Wales
with company number 04980791.

I have attached the file in question. I had also checked that I DID NOT
have another group called . To try re-create
substitute

<**groupAssistOrMeetWithOthersOfS**ameType/> <**groupAssistOrMeetWithOthersOfD**ifferentType/> <**groupAssistOrMeetWithOtherMemb**ersOfCommunity/>

With:

<**groupAssistOrMeetWithOthersOfS**ameType/> <**groupAssistOrMeetWithOthersOfD**ifferentType/> <**groupAssistOrMeetWithOtherMemb**ersOfCommunity/>

Thanks again.

serosurvey2.xml (84.7 KB)

··· On Fri, Nov 25, 2011 at 2:18 PM, Chris Wilson wrote:

Hi Tumaini,

On Fri, 25 Nov 2011, Tumaini Kilimba wrote:

I discovered the error. I had a set of tags as such:

<**groupAssistOrMeetWithOthersOfS**ameType/> <**groupAssistOrMeetWithOthersOfD**ifferentType/> <**groupAssistOrMeetWithOtherMemb**ersOfCommunity/>

If I deleted this bit from my form, it uploads fine. With this bit back
in, it causes the error. Through trial and error, I discovered
that when I renamed to (got rid
of the repetitious "group" word), all was well with the world
again. Could someone enlighten me as to why that could be?

We are not mind-readers. Unless you put the form somewhere that we can see
it, we can only guess.

My guess would be that you have another group called groupGroupAssistance
in the same form.

Cheers, Chris.

Aptivate | http://www.aptivate.org | Phone: +44 1223 760887
The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES

Aptivate is a not-for-profit company registered in England and Wales
with company number 04980791.

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

Do you have the original form definition file (the one producing the
error?).

I could not rename the elements and get this form to produce the errors
you're reporting. Attached is my attempt at renaming (and it uploads
without any errors).

Mitch

serosurvey2.xml (84.7 KB)

··· On Fri, Nov 25, 2011 at 3:40 AM, Tumaini Kilimba wrote:

I have attached the file in question. I had also checked that I DID NOT
have another group called . To try re-create
substitute

<**groupAssistOrMeetWithOthersOfS**ameType/> <**groupAssistOrMeetWithOthersOfD**ifferentType/> <**groupAssistOrMeetWithOtherMemb**ersOfCommunity/>

With:

<**groupAssistOrMeetWithOthersOfS**ameType/> <**groupAssistOrMeetWithOthersOfD**ifferentType/> <**groupAssistOrMeetWithOtherMemb**ersOfCommunity/>

Thanks again.

On Fri, Nov 25, 2011 at 2:18 PM, Chris Wilson chris@aptivate.org wrote:

Hi Tumaini,

On Fri, 25 Nov 2011, Tumaini Kilimba wrote:

I discovered the error. I had a set of tags as such:

<**groupAssistOrMeetWithOthersOfS**ameType/> <**groupAssistOrMeetWithOthersOfD**ifferentType/> <**groupAssistOrMeetWithOtherMemb**ersOfCommunity/>

If I deleted this bit from my form, it uploads fine. With this bit back
in, it causes the error. Through trial and error, I discovered
that when I renamed to (got rid
of the repetitious "group" word), all was well with the world
again. Could someone enlighten me as to why that could be?

We are not mind-readers. Unless you put the form somewhere that we can
see it, we can only guess.

My guess would be that you have another group called groupGroupAssistance
in the same form.

Cheers, Chris.

Aptivate | http://www.aptivate.org | Phone: +44 1223 760887
The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES

Aptivate is a not-for-profit company registered in England and Wales
with company number 04980791.

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

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@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

A post was split to a new topic: 500 Error with Kobo Server