can't retrieve portlets from contentregistry
--------------------------------------------
Key: GTNPORTAL-1992
URL:
https://issues.jboss.org/browse/GTNPORTAL-1992
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Java API
Reporter: Matt Wringe
Assignee: Chris Laprun
can't retrieve portlets from the content registry.
When performing iterator.next() with an iterator from portal.getContentRegistry().getAll()
it will fail with a class cast exception:
16:24:15,930 ERROR [STDERR] Caused by: java.lang.ClassCastException:
org.exoplatform.application.registry.Application cannot be cast to
org.gatein.pc.api.Portlet
16:24:15,930 ERROR [STDERR] at
org.gatein.portal.api.impl.content.ContentRegistryImpl.newContentFrom(ContentRegistryImpl.java:247)
16:24:15,930 ERROR [STDERR] at
org.gatein.portal.api.impl.content.ContentRegistryImpl.access$200(ContentRegistryImpl.java:48)
16:24:15,930 ERROR [STDERR] at
org.gatein.portal.api.impl.content.ContentRegistryImpl$3.adapt(ContentRegistryImpl.java:295)
16:24:15,930 ERROR [STDERR] at
org.gatein.portal.api.impl.content.ContentRegistryImpl$3.adapt(ContentRegistryImpl.java:283)
16:24:15,930 ERROR [STDERR] at
org.gatein.portal.api.impl.util.AdaptedIterableCollection$1.adapt(AdaptedIterableCollection.java:52)
16:24:15,930 ERROR [STDERR] at
org.gatein.portal.api.impl.util.AdaptedIterator.next(AdaptedIterator.java:44)
16:24:15,930 ERROR [STDERR] at
org.gatein.api.rest.resource.handler.GadgetRepositoryHandler.getGadgets(GadgetRepositoryHandler.java:61)
16:24:15,930 ERROR [STDERR] at
org.gatein.api.rest.service.GadgetRepositoryService.getGadgetRepositoryResource(GadgetRepositoryService.java:50)
16:24:15,930 ERROR [STDERR] ... 47 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira