Getting a "missing attachment declaration" error from the listForm page only from Collect

Hi,

I have ODK Aggregate setup on a linux server. Everything seems to work fine
when contacting ODK Aggregate from a browser. However I can not get ODK
Collect to connect to Aggregate's list Forms page. I get a missing
attachment declaration error (listed below). Any known reason I might be
getting this? I can contact the listForm page just fine through the browser
as well.

Best
Dan

java.lang.IllegalStateException: missing attachment declaration
at
org.opendatakit.common.datamodel.BinaryContentManipulator.getContentHash(BinaryContentManipulator.java:304)
at org.opendatakit.aggregate.form.Form.getXFormFileHash(Form.java:250)
at
org.opendatakit.aggregate.format.form.XFormsXmlTable.generateFormXmlEntry(XFormsXmlTable.java:123)
at
org.opendatakit.aggregate.format.form.XFormsXmlTable.generateXmlListOfForms(XFormsXmlTable.java:81)
at
org.opendatakit.aggregate.servlet.FormListServlet.doGet(FormListServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
...

One of your forms, or one of its media files, was not successfully uploaded
to ODK Aggregate.

To confirm it is a form issue, try to open the form list in a browser by
going to:

http://..../xformsList

Where "/xformsList" replaces the "/Aggregate.html" of the normal webpage
(note that the name /xformsList is different from the /formList used by ODK
Collect).

If this XML document renders, then your form definitions were saved, and
there is an error in one of the media attachments. In that case, try all
the manifest URLs in the document -- one of those will fail; that failure
will indicate which set of media files were not fully uploaded. You should
be able to re-upload the offending set of media files without altering the
corresponding form definition.

If the xformsList XML document does not render, then it is an error in one
of your form definitions. If you do not have any uploaded data, then delete
the form and re-add it. I recommend first using ODK Validate to verify
that the form is good before uploading it. There might have been a problem
with the form definition that caused the upload to fail.
If you have saved data for the given form, you may need to modify the form
definition to update the version number before uploading it in order for
the system to process the file.

Mitch

ยทยทยท On Mon, Jun 16, 2014 at 12:02 PM, Dan Lasaga wrote:

Hi,

I have ODK Aggregate setup on a linux server. Everything seems to work
fine when contacting ODK Aggregate from a browser. However I can not get
ODK Collect to connect to Aggregate's list Forms page. I get a missing
attachment declaration error (listed below). Any known reason I might be
getting this? I can contact the listForm page just fine through the browser
as well.

Best
Dan

java.lang.IllegalStateException: missing attachment declaration
at
org.opendatakit.common.datamodel.BinaryContentManipulator.getContentHash(BinaryContentManipulator.java:304)
at org.opendatakit.aggregate.form.Form.getXFormFileHash(Form.java:250)
at
org.opendatakit.aggregate.format.form.XFormsXmlTable.generateFormXmlEntry(XFormsXmlTable.java:123)
at
org.opendatakit.aggregate.format.form.XFormsXmlTable.generateXmlListOfForms(XFormsXmlTable.java:81)
at
org.opendatakit.aggregate.servlet.FormListServlet.doGet(FormListServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
...

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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