[opencms-dev] OpenCms 8.5.0 & Alkacon formgenerator 2.0.1 ISSUE or documentation omission?

Sandrine Prousteau s.prousteau at eurelis.com
Fri Oct 5 11:30:48 CEST 2012


Up, any idea ?

De : opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] De la part de Sandrine Prousteau
Envoyé : mercredi 3 octobre 2012 14:10
À : The OpenCms mailing list
Objet : [opencms-dev] OpenCms 8.5.0 & Alkacon formgenerator 2.0.1 ISSUE or documentation omission?

Hi
I'm trying to use Alkacon Formgenerator on OpenCms8.5.0.
I define the alkacon-v8-webform type in my site ".config" to use it with my custom containers, and elements can be added with drag&drop. Good.
Then I edit my new element, the edition popin works well, I fill a basic name field and mail configuration as usual. I return to my page. Ok.
And here my page displays the error messages :
"The online form can not be displayed
Most likely, the form has not yet been edited or form input fields are not defined."

Oh!
I read the logs...
And I have:
03 Oct 2012 13:52:51,832 ERROR [8.formgenerator.CmsFormHandler:1031] java.lang.NullPointerException
03 Oct 2012 13:52:56,374 ERROR [.CmsSelectWidgetXmlcontentType: 708] SelectWidget of type "class com.alkacon.opencms.v8.formgenerator.CmsSelectWidgetXmlcontentType" with configuration "folder=/system/modules/com.alkacon.opencms.v8.formgenerator/captcha/|resourcetypeName=xmlcontent|displayOptionMacro=${property.Title}|sortMacro=${property.collector.priority}|ignoreLocaleMatch=true" could not read the resources to offer.
java.lang.NullPointerException
                at com.alkacon.opencms.v8.formgenerator.CmsSelectWidgetXmlcontentType.parseConfigurationInternal(CmsSelectWidgetXmlcontentType.java:825)
                at com.alkacon.opencms.v8.formgenerator.CmsSelectWidgetXmlcontentType.parseSelectOptions(CmsSelectWidgetXmlcontentType.java:600)
                at org.opencms.widgets.A_CmsSelectWidget.getConfiguration(A_CmsSelectWidget.java:142)
                at org.opencms.ade.contenteditor.CmsContentService$TypeVisitor.readConfiguration(CmsContentService.java:305)
                at org.opencms.ade.contenteditor.CmsContentService$TypeVisitor.readTypes(CmsContentService.java:372)
                at org.opencms.ade.contenteditor.CmsContentService$TypeVisitor.readTypes(CmsContentService.java:384)
                at org.opencms.ade.contenteditor.CmsContentService$TypeVisitor.visitTypes(CmsContentService.java:210)
                at org.opencms.ade.contenteditor.CmsContentService.readContentDefinition(CmsContentService.java:969)
                at org.opencms.ade.contenteditor.CmsContentService.loadDefinition(CmsContentService.java:479)
                at org.opencms.ade.contenteditor.CmsContentService.loadDefinition(CmsContentService.java:507)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
                at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
                at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
                at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
                at org.opencms.gwt.CmsGwtService.service(CmsGwtService.java:191)
                at org.opencms.main.OpenCmsCore.invokeGwtService(OpenCmsCore.java:1579)
                at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:150)
                at org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:166)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:403)
                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:301)
                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:162)
                at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                at java.lang.Thread.run(Unknown Source)

03 Oct 2012 13:53:19,422 ERROR [8.formgenerator.CmsFormHandler:1031] java.lang.NullPointerException

I think it is related to the field "Edit input label" which displays the choices : <layout element="ConfirmationField" widget="com.alkacon.opencms.v8.formgenerator.CmsSelectFieldWidget" configuration="referencebylabel=true|convertfieldindex=true|fieldtype=email" />
The field displays on my edition popin :
referencebylabel=true
convertfieldindex=true
fieldtype=email

Before, this field displayed the list of already configurated email field...

In the documentation, it says :
"Email Input field: Select the label of the form input field (Form field [x]) that holds the email
address the confirmation email should be sent to. This input field has to be of type "Email
field"."

I found nothing concerning a server file configuration about com.alkacon.opencms.v8.formgenerator.CmsSelectFieldWidget.

Please help me to make this very useful module works fine on OpenCms8.5!

Sandrine.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20121005/6f5a02e3/attachment.htm>


More information about the opencms-dev mailing list