This content has been marked as final.
Show 2 replies
-
1. Re: Instance Level Portlet Preferences in Mysql
pavel.myshkin May 12, 2008 10:27 AM (in response to jdestef)Can help you with that error,
but from my experience with "portlet preferences on instance level" (PPIL) this is very uncomfortable because PPIL are not being persisted correctly and also not being cleared properly when removed which will cause a mess. -
2. Re: Instance Level Portlet Preferences in Mysql
jdestef May 14, 2008 12:00 PM (in response to jdestef)Ok, here is the problem.
org.jboss.portal.portlet.InvalidPortletIdException: Cannot configure producer offered portlets
org.jboss.portal.portlet.state.producer.ProducerPortletInvoker.setProperties(ProducerPortletInvoker.java:538)
I looked at the ProducerPortletInvoker code and found this:// if (context.isStateful() == false) { throw new InvalidPortletIdException("Cannot configure producer offered portlets", portletId); }
So I started looking in the database and found JBP_INSTANCE and JBP_PORTLET_STATE. All the new instances that came with the portal worked fine, All the ones I created threw the above exception. The difference was the PORTLET_REF column in the JBP_INSTANCE table.
Mine had "local.news.RSSNewsPortlet" as the PORTLET_REF, and the default instances had local._7.
The "7" represents the primary key of the JBP_PORTLET_STATE table.
So I changed my PORTLET_REF to local._7 and it worked.
Is this is a bug?
thanks,