cancel
Showing results for 
Search instead for 
Did you mean: 

Problem entering content

mcmagi
Champ in-the-making
Champ in-the-making
After following the tutorial, I am now attempting to create a web form and input content for my own project.  I created an XSD file to represent the data, associated it with the web project, set the output paths, and configured the workflow.  When I inputted the data it created the output XML without any problems.

However, I went back and added a new field to the XSD, created an XSL to transform the XML into a JSP, deleted and recreated the web form (associating the new XSD and XSL with the form), then reassociated the web form with the web project.  Now, after I populate all the fields on the form, it gives me the following error:

Please provide values for all required fields.

As I said, all fields are populated so I'm not sure what it's looking for.  Do I need to recreate both the web form and web project to get the new form to work?  Or is something else going on?

Thanks,
- Michael C. Maggio
10 REPLIES 10

arielb
Champ in-the-making
Champ in-the-making
are you attempting to modify preexisting xml files (from the old xsd) or creating new web content using the xsd?  do you get the same results in either case?  when you modify the schema and add required fields and then modify preexisting form instance data that can cause problems since the preexisting xml is expected to be valid against the schema.

mcmagi
Champ in-the-making
Champ in-the-making
No.  That original XML data I referred to never left my Modified Items box and I reverted it all before changing the XSD thinking that it could cause conflicts with the new required fields.  The web application is now empty and this is new content that I am attempting to add.

arielb
Champ in-the-making
Champ in-the-making
can you attach the schema for the form?

mcmagi
Champ in-the-making
Champ in-the-making
I sent the schema to you in a PM since it contains some confidential info.

mcmagi
Champ in-the-making
Champ in-the-making
The issue was resolved via PM's with Ariel.  First, it was requested that I turn on the Chiba debug log by editing the file:

alfresco/tomcat/webapps/alfresco/WEB-INF/classes/log4j.properties

and uncommenting the line that reads:

log4j.logger.org.chiba.xml.xforms=debug

This adds Chiba log information associated with the XForms to the alfresco.log file.  Upon review, Ariel determined that it was a problem with incorrect cookies being posted.  Restarting my browser seems to have done the trick.  I am using Firefox 2.0.0.1 on Redhat Linux.

kvc
Champ in-the-making
Champ in-the-making
Please note:  If you need to update a Web Form, you can do that without deleting and re-creating the Web Form.  If you go into the Web Form space, you can use the Update action to upload your new, modified version of the XSD from your desktop.  Then, you can use Edit action on the Web Form space itself to re-run the Create Web Form Wizard and modify any properties you need to modify (for example, remove a template association and add another template association).

Cheers.

Kevin

naveenkumar
Champ in-the-making
Champ in-the-making
Hi kavin,
      I got "Provide all required values" error while creating the content, so i enabled the log4j to debug.

I am getting below error:

13:14:45,099 DEBUG [org.alfresco.web.forms.XMLUtil] writing out a document for events to org.apache.myfaces.renderkit.html.HtmlResponseWriterImpl@512f9c

13:14:46,849 DEBUG [org.chiba.xml.xforms.Container] handle event exception: org.chiba.xml.xforms.exception.XFormsSubmitError kept for rethrowal after dispatch() has finished

13:14:46,849 DEBUG [org.alfresco.web.forms.xforms.XFormsBean] received event xforms-submit-error: org.chiba.xml.events.impl.XercesXMLEvent@cc285

13:14:46,849 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:375)

            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.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)

            at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)

            at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)

            at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)

            at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)

            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.ConnectException: Connection refused: connect

            at org.chiba.xml.xforms.connector.http.HTTPSubmissionHandler.submit(HTTPSubmissionHandler.java:212)

            at org.chiba.xml.xforms.core.Submission.submit(Submission.java:548)

            … 37 more

Caused by: org.chiba.xml.xforms.exception.XFormsException: java.net.ConnectException: Connection refused: connect

            at org.chiba.xml.xforms.connector.http.AbstractHTTPConnector.post(AbstractHTTPConnector.java:237)

            at org.chiba.xml.xforms.connector.http.HTTPSubmissionHandler.submit(HTTPSubmissionHandler.java:156)

            … 38 more

Caused by: java.net.ConnectException: Connection refused: connect

            at java.net.PlainSocketImpl.socketConnect(Native Method)

            at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)

            at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)

            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)

            at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

            at java.net.Socket.connect(Socket.java:519)

            at java.net.Socket.connect(Socket.java:469)

            at java.net.Socket.<init>(Socket.java:366)

            at java.net.Socket.<init>(Socket.java:239)

            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)

            … 39 more

13:14:46,849 DEBUG [org.alfresco.web.forms.xforms.XFormsBean] adding event xforms-submit to the event log

13:14:46,849 DEBUG [org.alfresco.web.forms.xforms.XFormsBean] adding event xforms-submit-error to the event log

13:14:46,849 DEBUG [org.alfresco.web.forms.xforms.XFormsBean] adding property {:http://dml1.company.com:80/alfresco/ajax/invoke/XFormsBean.handleAction} to event xforms-submit-error

13:14:46,849 DEBUG [org.alfresco.web.forms.xforms.XFormsBean] performing full revalidate

13:14:46,849 DEBUG [org.chiba.xml.xforms.core.Validator] validate: processing [xf:instance:instance_0] path '/' in default mode

13:14:46,849 DEBUG [org.chiba.xml.xforms.core.Validator] validate: item [#document: null] computed valid

13:14:46,864 DEBUG [org.alfresco.web.forms.xforms.XFormsBean] generated event log:

<?xml version="1.0" encoding="UTF-8"?>

<events>

<xforms-submit targetId="submission-validate" targetName="submission"/>

<xforms-submit-error targetId="submission-validate" targetName="submission">

<property name="" value="http://dml1.company.com:80/alfresco/ajax/invoke/XFormsBean.handleAction'/>

</xforms-submit-error>

</events>


I use my domain name as dml1.company.com and without giving any port.
Below the url is different:

13:14:46,849 DEBUG [org.alfresco.web.forms.xforms.XFormsBean] adding property {:http://dml1.company.com:80/alfresco/ajax/invoke/XFormsBean.handleAction} to event xforms-submit-error

I think not able to resolve domain name to IP.It appends “:80â€

freedev
Champ in-the-making
Champ in-the-making
Hi Naveen,

can you reach the dml1.company.com host from the machine where alfresco is installed? You can try entering this in the cmd prompt:


telnet dml1.company.com 80

Bye,
Vincenzo

naveenkumar
Champ in-the-making
Champ in-the-making
Hi vincen,
       No.. not able reach the site in that server….

Here is my cmd output:
  
C:\Documents and Settings\139872>telnet dml1.company.com 80
Connecting To dml1.company.com…Could not open connection to the host, on port
80: Connect failed

Thanks
Naveen