2 Replies Latest reply on Aug 21, 2008 10:31 AM by vrockai

    jboss-portal-2.6.5.SP1 Creating already existing role bug?

    vrockai

      When i try to create already existing role on jboss portal (jboss-portal-2.6.5.SP1-bundled.zip), i get an exception.

      http://localhost:8080/portal
      login as admin
      admin -> members -> role managment
      Create new role
      Role: User | Display name: everything
      submit

      then i can see the exception page. first lines from the exception page:

      type Exception report
      
      message
      
      description The server encountered an internal error () that prevented it from fulfilling this request.
      
      exception
      
      javax.servlet.ServletException: org.hibernate.AssertionFailure: null id in org.jboss.portal.identity.db.HibernateRoleImpl entry (don't flush the Session after an exception occurs)
       org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:276)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      
      root cause
      
      org.hibernate.AssertionFailure: null id in org.jboss.portal.identity.db.HibernateRoleImpl entry (don't flush the Session after an exception occurs)
       org.hibernate.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:55)
       org.hibernate.event.def.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:164)
      


        • 1. Re: jboss-portal-2.6.5.SP1 Creating already existing role bu
          prabhat.jha

          Can you see if this is the case with 2.6.6 as well? I think this may be fixed over there.

          • 2. Re: jboss-portal-2.6.5.SP1 Creating already existing role bu
            vrockai

            same issue on jboss-portal-2.6.6.GA

            what may be interesting are few lines form run.sh output

            16:29:08,742 ERROR [AssertionFailure] an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
            org.hibernate.AssertionFailure: null id in org.jboss.portal.identity.db.HibernateRoleImpl entry (don't flush the Session after an exception occurs)
            


            and few lines form the web page after submit button...

            HTTP Status 500 -
            
            type Exception report
            
            message
            
            description The server encountered an internal error () that prevented it from fulfilling this request.
            
            exception
            
            javax.servlet.ServletException: org.hibernate.AssertionFailure: null id in org.jboss.portal.identity.db.HibernateRoleImpl entry (don't flush the Session after an exception occurs)
             org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:276)
             javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
             org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            
            root cause
            
            org.hibernate.AssertionFailure: null id in org.jboss.portal.identity.db.HibernateRoleImpl entry (don't flush the Session after an exception occurs)
             org.hibernate.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:55)
             org.hibernate.event.def.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:164)
             org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:120)
             org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:196)
             org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)