留言板

Issue with Dynamic data list

Ramchand Gururajan,修改在7 年前。

Issue with Dynamic data list

Junior Member 帖子: 33 加入日期: 16-4-5 最近的帖子
Hi,
We deployed the Dynamic data list form from Liferay market place.
We have configured Data List , added the same to Data list form as well.
When trying to POST the data for the form , it is displaying "Portlet is temporarily unavailable."
In logs below is logged
=======================================================================
_Caused by: java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.String
at com.liferay.portlet.dynamicdatamapping.util.DDMImpl.getFieldNames(DDMImpl.java:452)
at com.liferay.portlet.dynamicdatamapping.util.DDMImpl.getFieldValues(DDMImpl.java:487)
at com.liferay.portlet.dynamicdatamapping.util.DDMImpl.getFields(DDMImpl.java:238)
at com.liferay.portlet.dynamicdatamapping.util.DDMImpl.getFields(DDMImpl.java:200)
at com.liferay.portlet.dynamicdatamapping.util.DDMImpl.getFields(DDMImpl.java:258)
at com.liferay.portlet.dynamicdatamapping.util.DDMUtil.getFields(DDMUtil.java:73)
at com.liferay.portlet.dynamicdatalists.util.DDLImpl.updateRecord(DDLImpl.java:389)
at com.liferay.portlet.dynamicdatalists.util.DDLImpl.updateRecord(DDLImpl.java:431)
at com.liferay.portlet.dynamicdatalists.util.DDLUtil.updateRecord(DDLUtil.java:133)
at com.liferay.ddlform.portlet.DDLFormPortlet.saveData(DDLFormPortlet.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)_
=======================================================================
Similar when we try from control panel we get "Dynamic Data Lists is temporarily unavailable." .
In logs get the below error message
========================================================================
com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException: No DDLRecordSet exists with the primary key 0
at com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordSetPersistenceImpl.findByPrimaryKey(DDLRecordSetPersistenceImpl.java:3021)
at com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordSetPersistenceImpl.findByPrimaryKey(DDLRecordSetPersistenceImpl.java:3039)
at com.liferay.portlet.dynamicdatalists.service.base.DDLRecordSetLocalServiceBaseImpl.getDDLRecordSet(DDLRecordSetLocalServiceBaseImpl.java:268)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
at com.liferay.portlet.dynamicdatalists.service.DDLRecordSetLocalServiceUtil.getDDLRecordSet(DDLRecordSetLocalServiceUtil.java:232)
at com.liferay.portlet.dynamicdatalists.util.DDLImpl.updateRecord(DDLImpl.java:384)
at com.liferay.portlet.dynamicdatalists.util.DDLImpl.updateRecord(DDLImpl.java:431)
at com.liferay.portlet.dynamicdatalists.util.DDLUtil.updateRecord(DDLUtil.java:133)
at com.liferay.portlet.dynamicdatalists.action.EditRecordAction.updateRecord(EditRecordAction.java:162)
at com.liferay.portlet.dynamicdatalists.action.EditRecordAction.processAction(EditRecordAction.java:61)
at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:166)
at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:218)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:71)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:597)
at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:628)
========================================================================
using tomcat 7.6.2 + Liferay CE GA 6 + Postgre 9.2

Any pointers t resolve the issue would be greatful.

Note : I tried to file a bug filing in liferay JIRA but was redirected to here.
https://issues.liferay.com/browse/LPS-66994


regards,
Ramchand
thumbnail
Jan Beran,修改在7 年前。

RE: Issue with Dynamic data list

Junior Member 帖子: 44 加入日期: 15-6-30 最近的帖子
How do you POST the data? I suppose its through the web service. Could you show he URL that you call for POSTing the data?
Ramchand Gururajan,修改在7 年前。

RE: Issue with Dynamic data list

Junior Member 帖子: 33 加入日期: 16-4-5 最近的帖子
Jan Beran:
How do you POST the data? I suppose its through the web service. Could you show he URL that you call for POSTing the data?



Hi,
I use the DDL Form to post the data. This is liferay market place plugin.

here is the web stack trace:

Request URL:http://10.66.56.98:8080/web/sub-sub-site/page-in-sub-site?p_p_id=1_WAR_ddlformportlet_INSTANCE_tMox3GzX79yy&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_1_WAR_ddlformportlet_INSTANCE_tMox3GzX79yy_javax.portlet.action=saveData
Request MethodemoticonOST
Status Code:200 OK
Remote Address:10.66.56.98:8080
Response Headers
view source
Content-Encoding:gzip
Content-Type:text/html;charset=UTF-8
Date:Thu, 14 Jul 2016 11:10:53 GMT
Liferay-Portal:Liferay Portal Community Edition 6.2 CE GA6 (Newton / Build 6205 / January 6, 2016)
Server:Apache-Coyote/1.1
Transfer-Encoding:chunked
X-Content-Type-Options:nosniff
X-Frame-Options:SAMEORIGIN
X-XSS-Protection:1
Request Headers
view source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding:gzip, deflate
Accept-Language:en-US,en;q=0.8
Cache-Control:max-age=0
Connection:keep-alive
Content-Length:1675
Content-Type:multipart/form-data; boundary=----WebKitFormBoundary5y94jgLoQRfwNLmG
Cookie:COOKIE_SUPPORT=true; JSESSIONID=68FA97F838EEAAB66186D3D9BAEC09C6; USER_UUID=6b58497042546461654a463170536f386c683533644b306f33436b795275525157323051396a73552b38493d; GUEST_LANGUAGE_ID=en_US; LFR_SESSION_STATE_20198=1468494624157
Host:10.66.56.98:8080
Origin:http://10.66.56.98:8080
Referer:http://10.66.56.98:8080/web/sub-sub-site/page-in-sub-site?p_p_id=169_INSTANCE_F8n4GS5Q2xZJ&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-3
Upgrade-Insecure-Requests:1
User-Agent:Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
Query String Parameters
view source
view URL encoded
p_p_id:1_WAR_ddlformportlet_INSTANCE_tMox3GzX79yy
p_p_lifecycle:1
p_p_state:normal
p_p_mode:view
p_p_col_id:column-1
p_p_col_count:1
_1_WAR_ddlformportlet_INSTANCE_tMox3GzX79yy_javax.portlet.action:saveData
Request Payload
------WebKitFormBoundary5y94jgLoQRfwNLmG
Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_tMox3GzX79yy_formDate"

1468494620003
------WebKitFormBoundary5y94jgLoQRfwNLmG
Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_tMox3GzX79yy_redirect"

/web/sub-sub-site/page-in-sub-site?p_p_id=169_INSTANCE_F8n4GS5Q2xZJ&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-3
------WebKitFormBoundary5y94jgLoQRfwNLmG
Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_tMox3GzX79yy_recordSetId"

38510
------WebKitFormBoundary5y94jgLoQRfwNLmG
Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_tMox3GzX79yy_multipleSubmissions"

false
------WebKitFormBoundary5y94jgLoQRfwNLmG
Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_tMox3GzX79yy_workflowAction"

1
------WebKitFormBoundary5y94jgLoQRfwNLmG
Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_tMox3GzX79yy_Name_INSTANCE_dpii"

Test
------WebKitFormBoundary5y94jgLoQRfwNLmG
Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_tMox3GzX79yy_Age_INSTANCE_magq"

12
------WebKitFormBoundary5y94jgLoQRfwNLmG
Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_tMox3GzX79yy_Gender_INSTANCE_myxp"

M
------WebKitFormBoundary5y94jgLoQRfwNLmG
Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_tMox3GzX79yy__fieldsDisplay"

Name_INSTANCE_dpii,Age_INSTANCE_magq,Gender_INSTANCE_myxp
------WebKitFormBoundary5y94jgLoQRfwNLmG
Content-Disposition: form-data; name="p_auth"

n4HX7Ark
------WebKitFormBoundary5y94jgLoQRfwNLmG--
Name
page-in-sub-site?p_p_id=1_WAR_ddlformportlet_INSTANCE_tMox3GzX79yy&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_1_WAR_ddlformportlet_INSTANCE_tMox3GzX79yy_javax.portlet.action=saveData
jquery-1.10.js
jquery-ui.css
jquery-ui.min.js
enscroll-0.6.2.min.js
aui.css?browserId=other&themeId=HitachiWhitetheme_WAR_HitachiWhitethemetheme&minifierType=css&languageId=en_US&b=6205&t=1467653686000
main.css?browserId=other&themeId=HitachiWhitetheme_WAR_HitachiWhitethemetheme&minifierType=css&languageId=en_US&b=6205&t=1452589584000
Ramchand Gururajan,修改在7 年前。

RE: Issue with Dynamic data list

Junior Member 帖子: 33 加入日期: 16-4-5 最近的帖子
Hi,
I use the DDL Form to post the data. This is liferay market place plugin.
Request URL:http://10.66.56.98:8080/web/sub-sub-site/page-in-sub-site?p_p_id=1_WAR_ddlformportlet_INSTANCE_tMox3GzX79yy&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_1_WAR_ddlformportlet_INSTANCE_tMox3GzX79yy_javax.portlet.action=saveData
Request Method: POST
Status Code:200 OK

but in front i am getting Dynamic Data list form not available after i click on the post button

regards,
Ramchand
thumbnail
Jan Beran,修改在7 年前。

RE: Issue with Dynamic data list

Junior Member 帖子: 44 加入日期: 15-6-30 最近的帖子
I think the "No DDLRecordSet exists with the primary key 0" means you are missing a parameter somewhere.
Do you use a custom form for POSTing data? Have you tried the standard from in the control panel?
Ramchand Gururajan,修改在7 年前。

RE: Issue with Dynamic data list

Junior Member 帖子: 33 加入日期: 16-4-5 最近的帖子
Hi Jan,
when i use control panel , i get the below error.

========================================================================
com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException: No DDLRecordSet exists with the primary key 0
at

when i use dynamic data list form in site , i get the classcastexception.


regards,
Ramchand
thumbnail
Jan Beran,修改在7 年前。

RE: Issue with Dynamic data list

Junior Member 帖子: 44 加入日期: 15-6-30 最近的帖子
OK, I am lost then. Maybe, since you get a classCastException, make sure that all the fields in the form have the right format (i.e. that you are not submitting a string to a field that requires integer).
Ramchand Gururajan,修改在7 年前。

RE: Issue with Dynamic data list

Junior Member 帖子: 33 加入日期: 16-4-5 最近的帖子
Jan Beran:
OK, I am lost then. Maybe, since you get a classCastException, make sure that all the fields in the form have the right format (i.e. that you are not submitting a string to a field that requires integer).


HI,
I have verified it once again , using the fields have the right format only.

regards,
Ramchand