cancel
Showing results for 
Search instead for 
Did you mean: 

Webforms prompting for required fields though all filled out

bjornl
Champ in-the-making
Champ in-the-making
Has anyone else experienced the message "Please provide values for all required fields" on the generated web forms, even though all fields have clearly been filled out?

I have this problem on multiple forms of mine, but only on one of my systems. When I set up another alfresco I no longer have this problem. So from what I can see there is either some state that gets stored in some way, or some difference between the two platforms I run the two setups on.

One is Ubuntu, on which it works fine. The other one is a Fedora system.

There is nothing about this in the error log. I attach the xsd definition for one form that has displayed this behaviour below.



  <xs:complexType name="description">
    <xs:sequence>
      <xs:element name="newsTitle" type="xs:normalizedString">
        <xs:annotation><xs:appinfo><alf:label>News title</alf:label></xs:appinfo></xs:annotation>
      </xs:element>
      <xs:element name="newsContent" type="xs:string">
        <xs:annotation><xs:appinfo><alf:label>News content</alf:label></xs:appinfo></xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

  <xs:element name="news">

    <xs:complexType>

      <xs:sequence>
       
        <xs:element type="xs:date" name="createdDate">
          <xs:annotation><xs:appinfo><alf:label>Created Date</alf:label></xs:appinfo></xs:annotation>
        </xs:element>

        <xs:element name="descriptionList">
          <xs:annotation><xs:appinfo><alf:label>News Description</alf:label></xs:appinfo></xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="description_en" type="myNS:description">
                <xs:annotation><xs:appinfo><alf:label>English</alf:label></xs:appinfo></xs:annotation>
              </xs:element>
              <xs:element name="description_de" type="myNS:description">
                <xs:annotation><xs:appinfo><alf:label>German</alf:label></xs:appinfo></xs:annotation>
              </xs:element>
              <xs:element name="description_fr" type="myNS:description">
                <xs:annotation><xs:appinfo><alf:label>French</alf:label></xs:appinfo></xs:annotation>
              </xs:element>
              <xs:element name="description_it" type="myNS:description">
                <xs:annotation><xs:appinfo><alf:label>Italian</alf:label></xs:appinfo></xs:annotation>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>

      </xs:sequence>

    </xs:complexType>

  </xs:element>
3 REPLIES 3

bjornl
Champ in-the-making
Champ in-the-making
Ok I found another entry for this, so if anyone has the same problem and doesn't know what to do about it, read this post, especially the bottom reply.

http://forums.alfresco.com/viewtopic.php?t=5857&highlight=provide+values+required+fields

Chrs,
Björn

marcus
Champ in-the-making
Champ in-the-making
I was getting the same error, and after checking the logs…


19:17:48,770 WARN  [org.chiba.xml.xforms.Container] dispatch: non-fatal xforms error
org.chiba.xml.xforms.exception.XFormsSubmitError: instance submission failed
        at org.chiba.xml.xforms.core.Submission.submit(Submission.java:553)
        at org.chiba.xml.xforms.core.Submission.performDefault(Submission.java:506)
        at org.chiba.xml.events.impl.DefaultXMLEventService.dispatch(DefaultXMLEventService.java:286)
        at org.chiba.xml.xforms.Container.dispatch(Container.java:481)
        at org.chiba.xml.xforms.Container.dispatch(Container.java:442)
        at org.chiba.xml.xforms.Container.dispatch(Container.java:422)
        at org.chiba.xml.xforms.ui.Submit.handleEvent(Submit.java:217)
        at org.apache.xerces.dom.DocumentImpl.dispatchEvent(Unknown Source)
        at org.apache.xerces.dom.NodeImpl.dispatchEvent(Unknown Source)
        at org.chiba.xml.events.impl.DefaultXMLEventService.dispatch(DefaultXMLEventService.java:269)
        at org.chiba.xml.xforms.Container.dispatch(Container.java:481)
        at org.chiba.xml.xforms.Container.dispatch(Container.java:442)
        at org.chiba.xml.xforms.Container.dispatch(Container.java:422)
        at org.chiba.xml.xforms.Container.dispatch(Container.java:408)
        at org.chiba.xml.xforms.ChibaBean.dispatch(ChibaBean.java:429)
        at org.alfresco.web.forms.xforms.XFormsBean.fireAction(XFormsBean.java:385)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.alfresco.web.app.servlet.ajax.InvokeCommand.execute(InvokeCommand.java:160)
        at org.alfresco.web.app.servlet.ajax.AjaxServlet.service(AjaxServlet.java:142)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.chiba.xml.xforms.exception.XFormsException: org.chiba.xml.xforms.exception.XFormsException: java.net.UnknownHostException: mydomain.com.au
        at org.chiba.xml.xforms.connector.http.HTTPSubmissionHandler.submit(HTTPSubmissionHandler.java:212)
        at org.chiba.xml.xforms.core.Submission.submit(Submission.java:548)
        … 36 more
Caused by: org.chiba.xml.xforms.exception.XFormsException: java.net.UnknownHostException: mydomain.com.au
        at org.chiba.xml.xforms.connector.http.AbstractHTTPConnector.post(AbstractHTTPConnector.java:237)
        at org.chiba.xml.xforms.connector.http.HTTPSubmissionHandler.submit(HTTPSubmissionHandler.java:156)
        … 37 more
Caused by: java.net.UnknownHostException: mydomain.com.au
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:507)
        at java.net.Socket.connect(Socket.java:457)
        at java.net.Socket.<init>(Socket.java:365)
        at java.net.Socket.<init>(Socket.java:238)
        at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79)
        at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121)
        at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
        at org.chiba.xml.xforms.connector.http.AbstractHTTPConnector.execute(AbstractHTTPConnector.java:320)
        at org.chiba.xml.xforms.connector.http.AbstractHTTPConnector.post(AbstractHTTPConnector.java:235)
        … 38 more
19:17:48,784 DEBUG [org.alfresco.web.forms.xforms.XFormsBean] adding event xforms-submit to the event log


I've been accessing the site through a url defined in my hosts file, it turns out that if it's not a valid host chiba throws an error. Not good.

kvc
Champ in-the-making
Champ in-the-making
Marcus:


Please file a bug at http://issues.alfresco.com and we will look into.


Kevin
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.