rave-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Fischer <c.fisc...@cs-hertwig.de>
Subject DuplicateItemException after login
Date Wed, 11 Jul 2012 15:28:53 GMT
Hi all,

i tried to log into RAVE, but i get the "Rave has suffered a brief 
meltdown" Error because of a DuplicateItem exception:

Request processing failed; nested exception is org.apache.rave.exception.DuplicateItemException:
DUPLICATE_ITEM; nested exception is org.h2.jdbc.JdbcSQLException: Eindeutiger Index oder Primarschl├╝ssel
verletzt: "U_PAGE_OWNER_ID_INDEX_2 ON PUBLIC.PAGE(OWNER_ID, NAME, PAGE_TYPE)"
Unique index or primary key violation: "U_PAGE_OWNER_ID_INDEX_2 ON PUBLIC.PAGE(OWNER_ID, NAME,
PAGE_TYPE)"; SQL statement:
INSERT INTO page (entity_id, name, page_type, owner_id, page_layout_id, parent_page_id) VALUES
(?, ?, ?, ?, ?, ?) [23505-154]org.apache.rave.persistence.jpa.impl.H2OpenJpaDialect.translateExceptionIfPossible(H2OpenJpaDialect.java:55)

                     org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:516)

                     org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:754)

                     org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723)

                     org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:393)

                     org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:120)

                     org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

                     org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

                     $Proxy60.addNewDefaultUserPage(Unknown Source)

                     org.apache.rave.portal.web.controller.PageController.getAllPagesForAuthenticatedUser(PageController.java:131)

                     org.apache.rave.portal.web.controller.PageController.viewDefault(PageController.java:75)

                     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                     java.lang.reflect.Method.invoke(Method.java:597)

                     org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:212)

                     org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)

                     org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)

                     org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)

                     org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)

                     org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)

                     org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:900)

                     org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:827)

                     org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)

                     org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)

                     javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

                     javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

                     org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                     org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                     org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)

                     org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)

                     org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)

                     org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)

                     org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)

                     org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)

                     org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101)

                     org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)

                     org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)

                     org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)

                     org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:146)

                     org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)

                     org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)

                     org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)

                     org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)

                     org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)

                     org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)

                     org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)

                     org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182)

                     org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)

                     org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182)

                     org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)

                     org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)

                     org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)

                     org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)

                     org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)

                     org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)

                     org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)

                     org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)

                     org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                     org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                     org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

                     org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                     org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                     org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                     org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:615)

                     org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                     org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

                     org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

                     org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)

                     org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

                     java.lang.Thread.run(Thread.java:619)

What is wrong?

Same Problem by 0.12 Release AND 0.14-SNAPSHOT

I Think der SQl Statement by

VALUES (?, ?, ?, ?, ?, ?)

is wrong?

http://localhost:8080/portal/app/admin/ works perfectly - 
http://localhost:8080/portal    NOT.

Thanks,
Christian

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message