Foren

Webcenter producer and Liferay consumer

Adi Bart, geändert vor 12 Jahren.

Webcenter producer and Liferay consumer

New Member Beiträge: 20 Beitrittsdatum: 19.09.11 Neueste Beiträge
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, geändert vor 12 Jahren.

RE: Webcenter producer and Liferay consumer

Liferay Legend Beiträge: 1744 Beitrittsdatum: 06.11.08 Neueste Beiträge
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, geändert vor 12 Jahren.

RE: Webcenter producer and Liferay consumer

New Member Beiträge: 20 Beitrittsdatum: 19.09.11 Neueste Beiträge
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.