[
https://jira.jboss.org/jira/browse/GTNPORTAL-273?page=com.atlassian.jira....
]
Trong Tran commented on GTNPORTAL-273:
--------------------------------------
there are a lot of case like this. So in the service, we should throw a dedicated
exception to indicate something like "the ressource does not exist" or "the
resource is missing". Then it could be handled at UI level to show a warning about
that.
Still edit navigation of portal which was deleted
-------------------------------------------------
Key: GTNPORTAL-273
URL:
https://jira.jboss.org/jira/browse/GTNPORTAL-273
Project: GateIn Portal
Issue Type: Bug
Affects Versions: 3.0.0-Beta02
Reporter: Hang Nguyen
Assignee: Truong Le
Fix For: 3.0.0-CR01
Original Estimate: 4 hours
Time Spent: 4 hours
Remaining Estimate: 2 days
Steps:
- Go to Portal navigation --> create new portal: aaa --> click delete this portal
--> continue click edit navigation --> portal has been deleted --> and show
Navigation Management form --> click save button --> unknown error.
Show exception:
java.lang.IllegalArgumentException: Cannot insert page navigation as the corresponding
portal aaa
ith type ObjectType[interface org.gatein.mop.api.workspace.Site] does not exist
at
org.exoplatform.portal.pom.config.tasks.PageNavigationTask$Save.run(PageNavigationTask.ja
va:171)
at org.exoplatform.portal.pom.config.POMSession.execute(POMSession.java:373)
at
org.exoplatform.portal.pom.config.ExecutorDispatcher.execute(ExecutorDispatcher.java:41)
at
org.exoplatform.portal.pom.config.TaskExecutionDecorator.execute(TaskExecutionDecorator.j
ava:36)
at org.exoplatform.portal.pom.config.cache.DataCache.write(DataCache.java:84)
at org.exoplatform.portal.pom.config.cache.DataCache.execute(DataCache.java:58)
at
org.exoplatform.portal.pom.config.POMDataStorage.execute(POMDataStorage.java:122)
at
org.exoplatform.portal.pom.config.POMDataStorage.save(POMDataStorage.java:181)
at org.exoplatform.portal.config.DataStorageImpl.save(DataStorageImpl.java:122)
at
org.exoplatform.portal.config.UserPortalConfigService.update(UserPortalConfigService.java
:411)
at
org.exoplatform.portal.webui.navigation.UINavigationManagement$SaveActionListener.execute
(UINavigationManagement.java:98)
at org.exoplatform.webui.event.Event.broadcast(Event.java:89)
at
org.exoplatform.webui.core.lifecycle.Lifecycle.processAction(Lifecycle.java:56)
at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:124)
at
org.exoplatform.webui.core.lifecycle.UIApplicationLifecycle.processAction(UIApplicationLi
fecycle.java:58)
at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:124)
at
org.exoplatform.webui.core.UIApplication.processAction(UIApplication.java:112)
at
org.exoplatform.webui.application.portlet.PortletApplication.processAction(PortletApplica
tion.java:167)
at
org.exoplatform.webui.application.portlet.PortletApplicationController.processAction(Port
letApplicationController.java:80)
at
org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerI
mpl.java:557)
at
org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:109)
at
org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:72)
at
org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java
:505)
at
org.gatein.pc.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatc
her.java:42)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at
org.gatein.pc.portlet.aspects.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java
:196)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at
org.gatein.pc.portlet.aspects.RequestAttributeConversationInterceptor.invoke(RequestAttri
buteConversationInterceptor.java:119)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at org.gatein.pc.portlet.aspects.CCPPInterceptor.invoke(CCPPInterceptor.java:65)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at
org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.access$001(ContextDispatcherIn
terceptor.java:49)
at
org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor$1.doCallback(ContextDispatcher
Interceptor.java:123)
at
org.gatein.wci.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:8
2)
at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.gatein.wci.command.CommandServlet.doGet(CommandServlet.java:135)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
ava:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
at org.gatein.wci.command.CommandServlet.include(CommandServlet.java:84)
at org.gatein.wci.command.CommandDispatcher.include(CommandDispatcher.java:58)
at
org.gatein.wci.tomcat.TC6ServletContainerContext.include(TC6ServletContainerContext.java:
86)
at
org.gatein.wci.impl.DefaultServletContainer.include(DefaultServletContainer.java:190)
at
org.gatein.pc.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:
69)
at
org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.invoke(ContextDispatcherInterc
eptor.java:77)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at
org.gatein.pc.portlet.aspects.SecureTransportInterceptor.invoke(SecureTransportIntercepto
r.java:69)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at
org.gatein.pc.portlet.aspects.ValveInterceptor.invoke(ValveInterceptor.java:75)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at
org.gatein.pc.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.ja
va:117)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at
org.gatein.pc.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker
.java:230)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at
org.gatein.pc.portlet.aspects.PortletCustomizationInterceptor.invoke(PortletCustomization
Interceptor.java:76)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at
org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.ja
va:229)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at
org.gatein.pc.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvok
erService.java:152)
at
org.gatein.pc.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInv
okerService.java:173)
at org.exoplatform.portal.webui.application.UIPortlet.invoke(UIPortlet.java:837)
at
org.exoplatform.portal.webui.application.UIPortletActionListener$ProcessActionActionListe
ner.execute(UIPortletActionListener.java:98)
at org.exoplatform.webui.event.Event.broadcast(Event.java:89)
at
org.exoplatform.portal.webui.application.UIPortletLifecycle.processAction(UIPortletLifecy
cle.java:118)
at
org.exoplatform.portal.webui.application.UIPortletLifecycle.processAction(UIPortletLifecy
cle.java:54)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira