Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-3855

Unit test named testCreateBlog from SeamSpace example fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • EAP_EWP 5.1.0_CR2
    • EAP 5.0.1.CR1, EAP 5.0.1.CR2, EWP 5.0.1
    • Seam
    • IBM Java: Java(TM) SE Runtime Environment (build pxi3260sr6-20090925_01(SR6))
      IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260sr6-20090923_42924 (JIT enabled, AOT enabled)

    • Release Notes

    Description

      Stacktrace: (can be also seen at related Hudson job http://hudson.qa.jboss.com/hudson/view/Seam%20Release/job/seam-eap5-unit-integration-testsuite/jdk=ibm16,label=RHEL5_x86_64/26/consoleFull )

      FAILED: testCreateBlog
      [testng] java.lang.AssertionError: javax.el.ELException: java.lang.NullPointerException
      [testng] at org.jboss.seam.mock.AbstractSeamTest$Request.onException(AbstractSeamTest.java:455)
      [testng] at org.jboss.seam.mock.AbstractSeamTest$Request$2.doFilter(AbstractSeamTest.java:504)
      [testng] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
      [testng] at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
      [testng] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      [testng] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
      [testng] at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
      [testng] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      [testng] at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
      [testng] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      [testng] at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
      [testng] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      [testng] at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      [testng] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      [testng] at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      [testng] at org.jboss.seam.mock.AbstractSeamTest$Request.run(AbstractSeamTest.java:491)
      [testng] at org.jboss.seam.mock.AbstractSeamTest$FacesRequest.run(AbstractSeamTest.java:862)
      [testng] at org.jboss.seam.example.seamspace.test.BlogTest.testCreateBlog(BlogTest.java:33)
      [testng] Caused by: javax.el.ELException: java.lang.NullPointerException
      [testng] at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:339)
      [testng] at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:348)
      [testng] at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
      [testng] at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
      [testng] at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
      [testng] at org.jboss.seam.mock.AbstractSeamTest$Request.invokeMethod(AbstractSeamTest.java:463)
      [testng] at org.jboss.seam.mock.AbstractSeamTest$Request.invokeAction(AbstractSeamTest.java:472)
      [testng] at org.jboss.seam.example.seamspace.test.BlogTest$3.invokeApplication(BlogTest.java:58)
      [testng] at org.jboss.seam.mock.AbstractSeamTest$Request.invokeApplicationPhase(AbstractSeamTest.java:646)
      [testng] at org.jboss.seam.mock.AbstractSeamTest$Request.emulateJsfLifecycle(AbstractSeamTest.java:595)
      [testng] at org.jboss.seam.mock.AbstractSeamTest$Request.access$100(AbstractSeamTest.java:177)
      [testng] at org.jboss.seam.mock.AbstractSeamTest$Request$2.doFilter(AbstractSeamTest.java:497)
      [testng] ... 38 more
      [testng] Caused by: java.lang.NullPointerException
      [testng] at org.jboss.seam.security.permission.EntityIdentifierStrategy.getIdentifier(EntityIdentifierStrategy.java:48)
      [testng] at org.jboss.seam.security.permission.IdentifierPolicy.getIdentifier(IdentifierPolicy.java:85)
      [testng] at org.jboss.seam.security.permission.JpaPermissionStore.createPermissionQuery(JpaPermissionStore.java:234)
      [testng] at org.jboss.seam.security.permission.JpaPermissionStore.listPermissions(JpaPermissionStore.java:622)
      [testng] at org.jboss.seam.security.permission.JpaPermissionStore.listPermissions(JpaPermissionStore.java:607)
      [testng] at org.jboss.seam.security.permission.PersistentPermissionResolver.hasPermission(PersistentPermissionResolver.java:80)
      [testng] at org.jboss.seam.security.permission.PermissionMapper.resolvePermission(PermissionMapper.java:80)
      [testng] at org.jboss.seam.security.Identity.hasPermission(Identity.java:632)
      [testng] at org.jboss.seam.security.Identity.checkPermission(Identity.java:580)
      [testng] at org.jboss.seam.security.EntityPermissionChecker.checkEntityPermission(EntityPermissionChecker.java:115)
      [testng] at org.jboss.seam.security.EntitySecurityListener.prePersist(EntitySecurityListener.java:30)
      [testng] at org.hibernate.ejb.event.ListenerCallback.invoke(ListenerCallback.java:31)
      [testng] at org.hibernate.ejb.event.EntityCallbackHandler.callback(EntityCallbackHandler.java:80)
      [testng] at org.hibernate.ejb.event.EntityCallbackHandler.preCreate(EntityCallbackHandler.java:49)
      [testng] at org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(EJB3PersistEventListener.java:48)
      [testng] at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:154)
      [testng] at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:110)
      [testng] at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:61)
      [testng] at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:646)
      [testng] at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:620)
      [testng] at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:624)
      [testng] at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:220)
      [testng] at org.jboss.seam.persistence.EntityManagerProxy.persist(EntityManagerProxy.java:137)
      [testng] at org.hibernate.search.jpa.impl.FullTextEntityManagerImpl.persist(FullTextEntityManagerImpl.java:93)
      [testng] at org.jboss.seam.persistence.EntityManagerProxy.persist(EntityManagerProxy.java:137)
      [testng] at org.jboss.seam.example.seamspace.BlogAction.saveEntry(BlogAction.java:66)
      [testng] at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
      [testng] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
      [testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
      [testng] at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
      [testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      [testng] at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
      [testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      [testng] at org.jboss.seam.core.ConversationInterceptor.aroundInvoke(ConversationInterceptor.java:56)
      [testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      [testng] at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
      [testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      [testng] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
      [testng] at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
      [testng] at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
      [testng] at org.jboss.seam.example.seamspace.BlogAction_$$javassist_seam_6.saveEntry(BlogAction$$_javassist_seam_6.java)
      [testng] at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335)
      [testng] ... 49 more
      [testng] ... Removed 34 stack frames
      [testng]
      [testng] ===============================================
      [testng] SeamSpace - Blog
      [testng] Tests run: 1, Failures: 1, Skips: 0
      [testng] ===============================================

      Attachments

        Activity

          People

            mnovotny@redhat.com Marek Novotny
            mgencur Martin Gencur
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: