留言板

Webcenter producer and Liferay consumer

Adi Bart,修改在12 年前。

Webcenter producer and Liferay consumer

New Member 帖子: 20 加入日期: 11-9-19 最近的帖子
I'm trying to create a consumer in Liferay which consumes from a Webcenter producer.

I can create a consumer using the Webcenter WSDL. But the Actions button has no Manage Portlets action. It gives me an option for editing registration. When I try to edit the registration, I get the following Null Pointer exception in my Tomcat log.


at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.jasper.JasperException: An exception occurred processing JSP page /a
dmin/edit_consumer_registration.jsp at line 120

117:
118: List resultRows = searchContainer.getResultRows();
119:
120: for (int i = 0; i < propertyDescriptions.length; i++) {
121: PropertyDescription propertyDescription = propertyDescriptions;
122:
123: String fullyQualifiedName = propertyDescription.getName().toString();


Stacktrace:
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrappe
r.java:510)


Would anyone be able to shed some light on this?
thumbnail
Sandeep Nair,修改在12 年前。

RE: Webcenter producer and Liferay consumer

Liferay Legend 帖子: 1744 加入日期: 08-11-6 最近的帖子
Why are you assigning propertyDescriptions to propertyDescription. I am not sure what propertyDescriptions is but the logic should be something like

PropertyDescription propertyDescription = propertyDescriptions[ i ]
if propertyDescriptions is an array of propertyDescription

or

PropertyDescription propertyDescription = propertyDescriptions.get(i)
if propertyDescriptions is an arrayList

Also check if propertyDescription is not null

Regards,
Sandeep
Adi Bart,修改在12 年前。

RE: Webcenter producer and Liferay consumer

New Member 帖子: 20 加入日期: 11-9-19 最近的帖子
Sandeep Nair:
Why are you assigning propertyDescriptions to propertyDescription. I am not sure what propertyDescriptions is but the logic should be something like

PropertyDescription propertyDescription = propertyDescriptions[ i ]
if propertyDescriptions is an array of propertyDescription

or

PropertyDescription propertyDescription = propertyDescriptions.get(i)
if propertyDescriptions is an arrayList

Also check if propertyDescription is not null

Regards,
Sandeep



Sorry about the confusion but I'm not assigning any value. The excerpt is actually from the Tomcat error log. This is part of the Liferay code which I haven't touched.