javax.portlet.ReadOnlyException: instance_id

Oracle Community | parul_luthra | 1 decade ago
  1. 0

    When the following portlet preferences are set, the user interface still presents the timezone drop-box when you are editing preferences, and then throws an exception when you attempt to save your preferences. This config: <portletPreference> <name>timezone</name> <read-only>true</read-only> <values> <value>America/New_York</value> </values> </portletPreference> This exception: org.jasig.portal.channels.portlet.PortletDispatchException: Exception executing portlet RenderRequest: [channelPublishId=1, channelSubscribeId=n20, portletApplicationId=/CalendarPortlet, portletName=calendar, user=tongb] at org.jasig.portal.channels.portlet.SpringPortletChannelImpl.render(SpringPortletChannelImpl.java:384) at org.jasig.portal.channels.portlet.CSpringPortletAdaptor.renderCharacters(CSpringPortletAdaptor.java:217) at org.jasig.portal.ChannelRenderer$Worker.execute(ChannelRenderer.java:631) at org.jasig.portal.utils.threading.BaseTask.run(BaseTask.java:41) at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.orm.jpa.JpaInterceptor.invoke(JpaInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at org.jasig.portal.$Proxy145.run(Unknown Source) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: org.jasig.portal.channels.portlet.PortletDispatchException: The portlet window 'PortletWindowImpl[portletWindowId=18.n20,contextPath=/CalendarPortlet,portletName=calendar,windowState=maximized,portletMode=edit,expirationCache=<null>,requestParameters={actionException=[javax.portlet.ReadOnlyException: Preference timezone may not be modified. It is marked as read only.]},delegationParent=<null>]' threw an exception while executing render. at org.jasig.portal.portlet.rendering.PortletRendererImpl.doRender(PortletRendererImpl.java:236) at org.jasig.portal.channels.portlet.SpringPortletChannelImpl.render(SpringPortletChannelImpl.java:380) ... 19 more Caused by: javax.portlet.ReadOnlyException: Preference timezone may not be modified. It is marked as read only. at org.apache.pluto.internal.impl.PortletPreferencesImpl.setValue(PortletPreferencesImpl.java:188) at org.jasig.portlet.calendar.mvc.controller.EditCalendarSubscriptionsController.updatePreferences(EditCalendarSubscriptionsController.java:186) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.doInvokeMethod(HandlerMethodInvoker.java:421) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:136) at org.springframework.web.portlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:271) at org.springframework.web.portlet.mvc.annotation.AnnotationMethodHandlerAdapter.doHandle(AnnotationMethodHandlerAdapter.java:259) at org.springframework.web.portlet.mvc.annotation.AnnotationMethodHandlerAdapter.handleAction(AnnotationMethodHandlerAdapter.java:210) at org.springframework.web.portlet.DispatcherPortlet.doActionService(DispatcherPortlet.java:694) at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:480) at org.springframework.web.portlet.FrameworkPortlet.processAction(FrameworkPortlet.java:462) at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:218) at org.apache.pluto.core.PortletServlet.doPost(PortletServlet.java:145)

    Apereo Issues | 6 years ago | Bruce Tong
    org.jasig.portal.channels.portlet.PortletDispatchException: Exception executing portlet RenderRequest: [channelPublishId=1, channelSubscribeId=n20, portletApplicationId=/CalendarPortlet, portletName=calendar, user=tongb]
  2. 0

    When the following portlet preferences are set, the user interface still presents the timezone drop-box when you are editing preferences, and then throws an exception when you attempt to save your preferences. This config: <portletPreference> <name>timezone</name> <read-only>true</read-only> <values> <value>America/New_York</value> </values> </portletPreference> This exception: org.jasig.portal.channels.portlet.PortletDispatchException: Exception executing portlet RenderRequest: [channelPublishId=1, channelSubscribeId=n20, portletApplicationId=/CalendarPortlet, portletName=calendar, user=tongb] at org.jasig.portal.channels.portlet.SpringPortletChannelImpl.render(SpringPortletChannelImpl.java:384) at org.jasig.portal.channels.portlet.CSpringPortletAdaptor.renderCharacters(CSpringPortletAdaptor.java:217) at org.jasig.portal.ChannelRenderer$Worker.execute(ChannelRenderer.java:631) at org.jasig.portal.utils.threading.BaseTask.run(BaseTask.java:41) at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.orm.jpa.JpaInterceptor.invoke(JpaInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at org.jasig.portal.$Proxy145.run(Unknown Source) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: org.jasig.portal.channels.portlet.PortletDispatchException: The portlet window 'PortletWindowImpl[portletWindowId=18.n20,contextPath=/CalendarPortlet,portletName=calendar,windowState=maximized,portletMode=edit,expirationCache=<null>,requestParameters={actionException=[javax.portlet.ReadOnlyException: Preference timezone may not be modified. It is marked as read only.]},delegationParent=<null>]' threw an exception while executing render. at org.jasig.portal.portlet.rendering.PortletRendererImpl.doRender(PortletRendererImpl.java:236) at org.jasig.portal.channels.portlet.SpringPortletChannelImpl.render(SpringPortletChannelImpl.java:380) ... 19 more Caused by: javax.portlet.ReadOnlyException: Preference timezone may not be modified. It is marked as read only. at org.apache.pluto.internal.impl.PortletPreferencesImpl.setValue(PortletPreferencesImpl.java:188) at org.jasig.portlet.calendar.mvc.controller.EditCalendarSubscriptionsController.updatePreferences(EditCalendarSubscriptionsController.java:186) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.doInvokeMethod(HandlerMethodInvoker.java:421) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:136) at org.springframework.web.portlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:271) at org.springframework.web.portlet.mvc.annotation.AnnotationMethodHandlerAdapter.doHandle(AnnotationMethodHandlerAdapter.java:259) at org.springframework.web.portlet.mvc.annotation.AnnotationMethodHandlerAdapter.handleAction(AnnotationMethodHandlerAdapter.java:210) at org.springframework.web.portlet.DispatcherPortlet.doActionService(DispatcherPortlet.java:694) at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:480) at org.springframework.web.portlet.FrameworkPortlet.processAction(FrameworkPortlet.java:462) at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:218) at org.apache.pluto.core.PortletServlet.doPost(PortletServlet.java:145)

    Apereo Issues | 6 years ago | Bruce Tong
    org.jasig.portal.channels.portlet.PortletDispatchException: Exception executing portlet RenderRequest: [channelPublishId=1, channelSubscribeId=n20, portletApplicationId=/CalendarPortlet, portletName=calendar, user=tongb]
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.portlet.ReadOnlyException

      instance_id

      at oracle.webdb.wsrp.server.PortletPreferencesImpl.setValues()
    2. oracle.webdb.wsrp
      PortletPreferencesImpl.setValue
      1. oracle.webdb.wsrp.server.PortletPreferencesImpl.setValues(Unknown Source)
      2. oracle.webdb.wsrp.server.PortletPreferencesImpl.setValue(Unknown Source)
      2 frames
    3. oracle.discoverer.applications
      JSRDiscovererPortletDefinition.processAction
      1. oracle.discoverer.applications.portletprovider.framework.JSRDiscovererPortletDefinition.getPortletInstanceName(JSRDiscovererPortletDefinition.java:193)
      2. oracle.discoverer.applications.portletprovider.framework.JSRDiscovererPortletDefinition.processAction(JSRDiscovererPortletDefinition.java:116)
      2 frames
    4. oracle.webdb.wsrp
      WSRP_v1_Markup_PortType_Tie.processingHook
      1. oracle.webdb.wsrp.server.Server.performBlockingInteraction(Unknown Source)
      2. oracle.webdb.wsrp.WSRP_v1_Markup_PortType_Tie.invoke_performBlockingInteraction(WSRP_v1_Markup_PortType_Tie.java:275)
      3. oracle.webdb.wsrp.WSRP_v1_Markup_PortType_Tie.processingHook(WSRP_v1_Markup_PortType_Tie.java:503)
      3 frames
    5. Metro Web Services Runtime OSGi Bundle
      StreamingHandler.handle
      1. com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:230)
      1 frame