9 Replies Latest reply: Aug 2, 2012 5:22 PM by Geraldo Pereira de Souza RSS

EntityHome subclass getter call using getInstance() fails with TransactionRequiredException: No active JTA transaction on joinTransaction call (JBoss AS 7 + Hibernate 4)

Karsten Wutzke Expert

I've recently expanded a webapp, but I didn't really extend the functionality. All pages but one work. That one page is supposed to show exactly this:

 

http://www.bbstats.net/team-home.seam?roster=10

 

Neither the JSF code nor the DAO/RosterHome classes changed, IIRC only the entity classes were updated to support LAZY loading. However, I keep getting the following stack trace:

 

javax.faces.FacesException: javax.el.ELException: /team-home.xhtml @45,49 value="#{rosterHome.label}": javax.persistence.TransactionRequiredException: No active JTA transaction on joinTransaction call
    at javax.faces.component.UIOutput.getValue(UIOutput.java:187)
    at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:201)
    at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:285)
    at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:154)
    at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:861)
    at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:242)
    at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:106)
    at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
    at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:234)
    at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:180)
    at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:127)
    at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
    at org.richfaces.renderkit.html.LayoutRenderer.renderLayout(LayoutRenderer.java:57)
    at org.richfaces.renderkit.html.LayoutRenderer.doEncodeChildren(LayoutRenderer.java:45)
    at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
    at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
    at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
    at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
    at org.richfaces.renderkit.html.PageRenderer.doEncodeChildren(PageRenderer.java:265)
    at org.richfaces.renderkit.html.PageRenderer.doEncodeChildren(PageRenderer.java:254)
    at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
    at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
    at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
    at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
    at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
    at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
    at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
    at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
    at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
    at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
    at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
    at java.lang.Thread.run(Unknown Source)
Caused by: javax.el.ELException: /team-home.xhtml @45,49 value="#{rosterHome.label}": javax.persistence.TransactionRequiredException: No active JTA transaction on joinTransaction call
    at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
    at javax.faces.component.UIOutput.getValue(UIOutput.java:184)
    ... 52 more
Caused by: javax.persistence.TransactionRequiredException: No active JTA transaction on joinTransaction call
    at org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:1200)
    at org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:1150)
    at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.jboss.seam.persistence.EntityManagerInvocationHandler.invoke(EntityManagerInvocationHandler.java:46)
    at $Proxy192.joinTransaction(Unknown Source)
    at org.jboss.seam.transaction.AbstractUserTransaction.enlist(AbstractUserTransaction.java:73)
    at org.jboss.seam.framework.EntityHome.joinTransaction(EntityHome.java:163)
    at org.jboss.seam.framework.Home.getInstance(Home.java:134)
*   at com.kawoolutions.bbstats.da.RosterHome.getLabel(RosterHome.java:22)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
    at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
    at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
    at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:97)
    at org.jboss.seam.util.Work.workInTransaction(Work.java:61)
    at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:91)
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
    at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
    at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
    at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
    at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
*   at com.kawoolutions.bbstats.da.RosterHome_$$_javassist_seam_11.getLabel(RosterHome_$$_javassist_seam_11.java)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at javax.el.BeanELResolver.getValue(BeanELResolver.java:302)
    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)
    at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
    at org.jboss.el.parser.AstPropertySuffix.getValue(AstPropertySuffix.java:53)
    at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)
    at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
    at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
    ... 53 more

 

In the above you can see the RosterHome.getLabel() calls involved (*). Here's the RosterHome code:

 

@Name("rosterHome")
public class RosterHome extends PersistenceContextEntityHome<Roster>
{
    @Override
    public String getLabel()
    {
        Roster ro = getInstance(); // line 22 is this one!!
        Team te = ro.getTeam();
        TeamType tt = te.getTeamType();
        Club cl = te.getClub();

        String teamName = cl.getName() + " " + te.getOrdinalNbr();
        String fullTeamName = teamName + " (" + cl.getShorthand() + te.getOrdinalNbr() + ")";

        String teamTypeCode = tt.getCode().toUpperCase();
        String teamTypeLabel = tt.getLabel();
        String teamType = teamTypeLabel != null ? teamTypeLabel : teamTypeCode.toUpperCase();

        return fullTeamName + ", " + teamType;
    }

    ...
}

 

The super class PersistenceContextEntityHome looks like this:

public abstract class PersistenceContextEntityHome<E> extends EntityHome<E>
{    
    @Override
    protected String getPersistenceContextName()
    {
        return "em";
    }
}

 

Pretty basic stuff there, just a persistence context name.

 

In the Eclipse console I also get these warnings:

 

18:05:27,693 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-6) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class

 

 

I then checked the persistence.xml:

 

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
             version="2.0">
  <persistence-unit name="BBStatsPU" transaction-type="JTA">

    <provider>org.hibernate.ejb.HibernatePersistence</provider>    
    <jta-data-source>java:jboss/datasources/BBStatsDS</jta-data-source>

    <!-- Lots of entity and ID classes .......... -->
    <class>com.kawoolutions.bbstats.model.Arena</class>
    ...

    <exclude-unlisted-classes>false</exclude-unlisted-classes>

    <properties>
      <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect"/>
      <property name="hibernate.transaction.jta.platform" value="com.kawoolutions.bbstats.util.CustomJBossAS7JtaPlatform" />
    </properties>
  </persistence-unit>
</persistence>

 

There used to be a bug in Hibernate 4 Betas (https://community.jboss.org/message/619482 or rather https://hibernate.onjira.com/browse/HHH-6543), so I had to use a custom TM com.kawoolutions.bbstats.util.CustomJBossAS7JtaPlatform.java:

public class CustomJBossAS7JtaPlatform extends JBossAppServerJtaPlatform
{
    @Override
    protected TransactionManager locateTransactionManager()
    {
        return (TransactionManager)jndiService().locate("java:jboss/TransactionManager");
    }
}

 

This is no longer a bug for newer JBoss AS 7 versions (I just tested it). Using

 

<property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" />

 

 

makes no difference. The same exception occurrs. I'm not overriding hibernate.transaction.factory_class in my webapp - at least not that I know of.

 

Why do I get this stack trace and the warning above? It's basically just a JSF page where I keep calling #{rosterHome.label} to construct a custom HTML label for page display.

 

I'm using JBoss AS 7 (tried 7.0.0.Final up to 7.1.0.CR1 without noticing any differences), Seam 2.2.2, JSF 1.2 (+ Facelets), RichFaces 3.3.3, Hibernate 4, and MySQL 5.5.

 

Help is highly appreciated.

 

Thanks

Karsten

 

 

  • 1. Re: EntityHome subclass getter call using getInstance() fails with TransactionRequiredException: No active JTA transaction on joinTransaction call (JBoss AS 7 + Hibernate 4)
    Scott Marlow Master

    I think that the "hibernate.transaction.jta.platform" property could be set to (instead of using an app class) "org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform", but I think you need to get this property passed into the javax.persistence.Persistence.createEntityManagerFactory() call. 

     

    Does Seam let you specify properties to be passed into the above call?  That would be the way to go instead of setting them in the persistence.xml (I think).

     

    Scott

  • 2. Re: EntityHome subclass getter call using getInstance() fails with TransactionRequiredException: No active JTA transaction on joinTransaction call (JBoss AS 7 + Hibernate 4)
    Scott Marlow Master

    Try the following  in your components.xml (the properties should be passed to javax.persistence.Persistence.createEntityManagerFactory()):

    <persistence:entity-manager-factory name="emf"  persistence-unit-name="PU" auto-create="true" >

     

      <persistence:persistence-unit-properties>

        <key>hibernate.transaction.jta.platform</key>

        <value>org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform</value>

      </persistence:persistence-unit-properties>

     

    </persistence:entity-manager-factory>

     

    Scott

  • 3. Re: EntityHome subclass getter call using getInstance() fails with TransactionRequiredException: No active JTA transaction on joinTransaction call (JBoss AS 7 + Hibernate 4)
    Karsten Wutzke Expert

    Hello Scott,

     

    setting it in Seam components.xml doesn't seem to make a difference. Here's the output from the server.log for the page http://localhost:8080/bbstats/team-home.seam?roster=32:

     

    06:17:17,176 INFO  [org.hibernate.validator.Version] (http--127.0.0.1-8080-5) Hibernate Validator 3.1.0.GA
    06:17:17,255 INFO  [com.kawoolutions.bbstats.skin.SkinBean] (http--127.0.0.1-8080-5) Created skin bean!
    06:17:17,467 INFO  [facelets.compiler] (http--127.0.0.1-8080-5) Added Library from: vfs:/C:/dev/jboss7/standalone/deployments/bbstats.war/WEB-INF/lib/jboss-seam-ui-2.2.2.Final.jar/META-INF/s.taglib.xml
    06:17:17,470 INFO  [facelets.compiler] (http--127.0.0.1-8080-5) Added Library from: vfs:/C:/dev/jboss7/standalone/deployments/bbstats.war/WEB-INF/lib/jsf-facelets-1.1.15.B1.jar/META-INF/jstl-fn.taglib.xml
    06:17:17,476 INFO  [facelets.compiler] (http--127.0.0.1-8080-5) Added Library from: vfs:/C:/dev/jboss7/standalone/deployments/bbstats.war/WEB-INF/lib/jsf-facelets-1.1.15.B1.jar/META-INF/jstl-core.taglib.xml
    06:17:17,485 INFO  [facelets.compiler] (http--127.0.0.1-8080-5) Added Library from: vfs:/C:/dev/jboss7/standalone/deployments/bbstats.war/WEB-INF/lib/jsf-facelets-1.1.15.B1.jar/META-INF/jsf-ui.taglib.xml
    06:17:17,494 INFO  [facelets.compiler] (http--127.0.0.1-8080-5) Added Library from: vfs:/C:/dev/jboss7/standalone/deployments/bbstats.war/WEB-INF/lib/jsf-facelets-1.1.15.B1.jar/META-INF/jsf-core.taglib.xml
    06:17:17,496 INFO  [facelets.compiler] (http--127.0.0.1-8080-5) Added Library from: vfs:/C:/dev/jboss7/standalone/deployments/bbstats.war/WEB-INF/lib/jsf-facelets-1.1.15.B1.jar/META-INF/jsf-html.taglib.xml
    06:17:17,498 INFO  [facelets.compiler] (http--127.0.0.1-8080-5) Added Library from: vfs:/C:/dev/jboss7/standalone/deployments/bbstats.war/WEB-INF/lib/richfaces-ui-3.3.3.Final.jar/META-INF/jsp.taglib.xml
    06:17:17,504 INFO  [facelets.compiler] (http--127.0.0.1-8080-5) Added Library from: vfs:/C:/dev/jboss7/standalone/deployments/bbstats.war/WEB-INF/lib/richfaces-ui-3.3.3.Final.jar/META-INF/ajax4jsf.taglib.xml
    06:17:17,523 INFO  [facelets.compiler] (http--127.0.0.1-8080-5) Added Library from: vfs:/C:/dev/jboss7/standalone/deployments/bbstats.war/WEB-INF/lib/richfaces-ui-3.3.3.Final.jar/META-INF/richfaces.taglib.xml
    06:17:17,526 INFO  [facelets.compiler] (http--127.0.0.1-8080-5) Added Library from: vfs:/C:/dev/jboss7/standalone/deployments/bbstats.war/WEB-INF/lib/richfaces-ui-3.3.3.Final.jar/META-INF/a4j.taglib.xml
    06:17:17,543 INFO  [facelets.compiler] (http--127.0.0.1-8080-5) Added Library from: vfs:/C:/dev/jboss7/standalone/deployments/bbstats.war/WEB-INF/lib/richfaces-ui-3.3.3.Final.jar/META-INF/rich.taglib.xml
    06:17:18,013 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,014 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,015 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,030 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,031 SEVERE [facelets.viewhandler] (http--127.0.0.1-8080-5) Error Rendering View[/team-home.xhtml]: javax.faces.FacesException: javax.el.ELException: /team-home.xhtml @45,49 value="#{rosterHome.label}": javax.persistence.TransactionRequiredException: No active JTA transaction on joinTransaction call
        at javax.faces.component.UIOutput.getValue(UIOutput.java:187) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:201) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:287) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:154) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:864) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:244) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:106) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:840) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:236) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:180) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:127) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:840) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at org.richfaces.renderkit.html.LayoutRenderer.renderLayout(LayoutRenderer.java:57) [richfaces-ui-3.3.3.Final.jar:]
        at org.richfaces.renderkit.html.LayoutRenderer.doEncodeChildren(LayoutRenderer.java:45) [richfaces-ui-3.3.3.Final.jar:]
        at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120) [richfaces-impl-3.3.3.Final.jar:]
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:840) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277) [richfaces-impl-3.3.3.Final.jar:]
        at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258) [richfaces-impl-3.3.3.Final.jar:]
        at org.richfaces.renderkit.html.PageRenderer.doEncodeChildren(PageRenderer.java:265) [richfaces-ui-3.3.3.Final.jar:]
        at org.richfaces.renderkit.html.PageRenderer.doEncodeChildren(PageRenderer.java:254) [richfaces-ui-3.3.3.Final.jar:]
        at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120) [richfaces-impl-3.3.3.Final.jar:]
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:840) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592) [jsf-facelets-1.1.15.B1.jar:]
        at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100) [richfaces-api-3.3.3.Final.jar:]
        at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176) [richfaces-impl-3.3.3.Final.jar:]
        at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.7.Final.jar:]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.7.Final.jar:]
        at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) [richfaces-impl-3.3.3.Final.jar:]
        at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) [richfaces-impl-3.3.3.Final.jar:]
        at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) [richfaces-impl-3.3.3.Final.jar:]
        at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) [richfaces-impl-3.3.3.Final.jar:]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.7.Final.jar:]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.7.Final.jar:]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.7.Final.jar:]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.7.Final.jar:]
        at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.0.CR1.jar:7.1.0.CR1]
        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:151) [jboss-as-web-7.1.0.CR1.jar:7.1.0.CR1]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.7.Final.jar:]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.7.Final.jar:]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.7.Final.jar:]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.7.Final.jar:]
        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897) [jbossweb-7.0.7.Final.jar:]
        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626) [jbossweb-7.0.7.Final.jar:]
        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033) [jbossweb-7.0.7.Final.jar:]
        at java.lang.Thread.run(Unknown Source) [:1.7.0_02]
    Caused by: javax.el.ELException: /team-home.xhtml @45,49 value="#{rosterHome.label}": javax.persistence.TransactionRequiredException: No active JTA transaction on joinTransaction call
        at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76) [jsf-facelets-1.1.15.B1.jar:]
        at javax.faces.component.UIOutput.getValue(UIOutput.java:184) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        ... 52 more
    Caused by: javax.persistence.TransactionRequiredException: No active JTA transaction on joinTransaction call
        at org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:1207) [hibernate-entitymanager-4.0.0.Final.jar:4.0.0.Final]
        at org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:1157) [hibernate-entitymanager-4.0.0.Final.jar:4.0.0.Final]
        at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source) [:1.7.0_02]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.7.0_02]
        at java.lang.reflect.Method.invoke(Unknown Source) [:1.7.0_02]
        at org.jboss.seam.persistence.EntityManagerInvocationHandler.invoke(EntityManagerInvocationHandler.java:46) [jboss-seam-2.2.2.Final.jar:]
        at $Proxy175.joinTransaction(Unknown Source)    at org.jboss.seam.transaction.AbstractUserTransaction.enlist(AbstractUserTransaction.java:73) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.framework.EntityHome.joinTransaction(EntityHome.java:163) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.framework.Home.getInstance(Home.java:134) [jboss-seam-2.2.2.Final.jar:]
        at com.kawoolutions.bbstats.da.RosterHome.getLabel(RosterHome.java:21) [classes:]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.7.0_02]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [:1.7.0_02]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.7.0_02]
        at java.lang.reflect.Method.invoke(Unknown Source) [:1.7.0_02]
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:97) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.util.Work.workInTransaction(Work.java:61) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:91) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) [jboss-seam-2.2.2.Final.jar:]
        at com.kawoolutions.bbstats.da.RosterHome_$$_javassist_seam_2.getLabel(RosterHome_$$_javassist_seam_2.java) [classes:]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.7.0_02]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [:1.7.0_02]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.7.0_02]
        at java.lang.reflect.Method.invoke(Unknown Source) [:1.7.0_02]
        at javax.el.BeanELResolver.getValue(BeanELResolver.java:302) [jboss-el-api_2.2_spec-1.0.0.Final.jar:1.0.0.Final]
        at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at org.jboss.el.parser.AstPropertySuffix.getValue(AstPropertySuffix.java:53) [jboss-el-1.0_02.CR5.jar:]
        at org.jboss.el.parser.AstValue.getValue(AstValue.java:67) [jboss-el-1.0_02.CR5.jar:]
        at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186) [jboss-el-1.0_02.CR5.jar:]
        at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71) [jsf-facelets-1.1.15.B1.jar:]
        ... 53 more
    
    06:17:18,045 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,045 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,059 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,061 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,062 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,073 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,073 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,074 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,074 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,075 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,075 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,076 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,077 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,077 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,078 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,080 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,081 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,083 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,084 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,084 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,110 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,111 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,114 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,138 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,139 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,140 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,141 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,168 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,169 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,171 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,263 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,264 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,265 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,266 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,291 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,293 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,317 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,320 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,321 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,323 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,325 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,327 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,328 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,329 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,332 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,334 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,343 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,345 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,347 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,349 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,410 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,412 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,413 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,415 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,417 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,418 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
    06:17:18,420 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class

     

     

    Karsten

  • 4. Re: EntityHome subclass getter call using getInstance() fails with TransactionRequiredException: No active JTA transaction on joinTransaction call (JBoss AS 7 + Hibernate 4)
    Karsten Wutzke Expert

    I've configured the app not to use transactions via the persistence.xml:

     

      <persistence-unit name="BBStatsPU" transaction-type="RESOURCE_LOCAL">
        ...    
        <non-jta-data-source>java:jboss/datasources/BBStatsDS</non-jta-data-source>
        ...
    

     

    Now the exception is an NPE on a call to Seam 2 EntityHome getInstance():

    08:24:54,420 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,425 INFO  [com.kawoolutions.bbstats.skin.SkinBean] (http--127.0.0.1-8080-5) Created skin bean!
    08:24:54,450 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,451 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,458 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,464 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,470 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,477 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,477 SEVERE [facelets.viewhandler] (http--127.0.0.1-8080-5) Error Rendering View[/team-home.xhtml]: javax.faces.FacesException: javax.el.ELException: /team-home.xhtml @45,49 value="#{rosterHome.label}": java.lang.NullPointerException
        at javax.faces.component.UIOutput.getValue(UIOutput.java:187) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:201) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:287) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:154) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:864) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:244) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:106) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:840) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:236) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:180) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:127) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:840) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at org.richfaces.renderkit.html.LayoutRenderer.renderLayout(LayoutRenderer.java:57) [richfaces-ui-3.3.3.Final.jar:]
        at org.richfaces.renderkit.html.LayoutRenderer.doEncodeChildren(LayoutRenderer.java:45) [richfaces-ui-3.3.3.Final.jar:]
        at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120) [richfaces-impl-3.3.3.Final.jar:]
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:840) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277) [richfaces-impl-3.3.3.Final.jar:]
        at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258) [richfaces-impl-3.3.3.Final.jar:]
        at org.richfaces.renderkit.html.PageRenderer.doEncodeChildren(PageRenderer.java:265) [richfaces-ui-3.3.3.Final.jar:]
        at org.richfaces.renderkit.html.PageRenderer.doEncodeChildren(PageRenderer.java:254) [richfaces-ui-3.3.3.Final.jar:]
        at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120) [richfaces-impl-3.3.3.Final.jar:]
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:840) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592) [jsf-facelets-1.1.15.B1.jar:]
        at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100) [richfaces-api-3.3.3.Final.jar:]
        at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176) [richfaces-impl-3.3.3.Final.jar:]
        at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.7.Final.jar:]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.7.Final.jar:]
        at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) [richfaces-impl-3.3.3.Final.jar:]
        at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) [richfaces-impl-3.3.3.Final.jar:]
        at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) [richfaces-impl-3.3.3.Final.jar:]
        at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) [richfaces-impl-3.3.3.Final.jar:]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.7.Final.jar:]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.7.Final.jar:]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.7.Final.jar:]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.7.Final.jar:]
        at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.0.CR1.jar:7.1.0.CR1]
        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:151) [jboss-as-web-7.1.0.CR1.jar:7.1.0.CR1]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.7.Final.jar:]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.7.Final.jar:]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.7.Final.jar:]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.7.Final.jar:]
        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897) [jbossweb-7.0.7.Final.jar:]
        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626) [jbossweb-7.0.7.Final.jar:]
        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033) [jbossweb-7.0.7.Final.jar:]
        at java.lang.Thread.run(Unknown Source) [:1.7.0_02]
    Caused by: javax.el.ELException: /team-home.xhtml @45,49 value="#{rosterHome.label}": java.lang.NullPointerException
        at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76) [jsf-facelets-1.1.15.B1.jar:]
        at javax.faces.component.UIOutput.getValue(UIOutput.java:184) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        ... 52 more
    Caused by: java.lang.NullPointerException
        at com.kawoolutions.bbstats.da.RosterHome.getLabel(RosterHome.java:23) [classes:]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.7.0_02]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [:1.7.0_02]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.7.0_02]
        at java.lang.reflect.Method.invoke(Unknown Source) [:1.7.0_02]
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:97) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.util.Work.workInTransaction(Work.java:61) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:91) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) [jboss-seam-2.2.2.Final.jar:]
        at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) [jboss-seam-2.2.2.Final.jar:]
        at com.kawoolutions.bbstats.da.RosterHome_$$_javassist_seam_2.getLabel(RosterHome_$$_javassist_seam_2.java) [classes:]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.7.0_02]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [:1.7.0_02]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.7.0_02]
        at java.lang.reflect.Method.invoke(Unknown Source) [:1.7.0_02]
        at javax.el.BeanELResolver.getValue(BeanELResolver.java:302) [jboss-el-api_2.2_spec-1.0.0.Final.jar:1.0.0.Final]
        at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]
        at org.jboss.el.parser.AstPropertySuffix.getValue(AstPropertySuffix.java:53) [jboss-el-1.0_02.CR5.jar:]
        at org.jboss.el.parser.AstValue.getValue(AstValue.java:67) [jboss-el-1.0_02.CR5.jar:]
        at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186) [jboss-el-1.0_02.CR5.jar:]
        at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71) [jsf-facelets-1.1.15.B1.jar:]
        ... 53 more
    
    08:24:54,483 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,483 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,492 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,493 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,494 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,497 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,498 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,498 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,498 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,498 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,499 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,499 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,499 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,500 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,500 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,501 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,501 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,501 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,502 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,514 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,520 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,526 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,531 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,550 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,558 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,558 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,558 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,559 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,559 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,559 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,560 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,560 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,560 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,561 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,561 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,562 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,562 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,562 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,563 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,563 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,563 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,574 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,580 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,586 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,593 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,612 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,612 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,613 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,613 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,614 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,614 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,614 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,614 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,615 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,615 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,615 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,616 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,616 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,624 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,630 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,635 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,640 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,646 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,646 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,646 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,647 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,648 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,648 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,651 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,651 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,651 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,653 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,653 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,653 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,654 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,655 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,655 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,656 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,656 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,656 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,657 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,658 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,658 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,659 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,660 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,660 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,661 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,661 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,661 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,662 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,662 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,663 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,664 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,665 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,665 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,666 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,667 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,667 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,669 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,669 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,669 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,670 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,671 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,671 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,672 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,673 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,673 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,674 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,675 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,675 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,676 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,676 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,676 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,677 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,678 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,678 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,679 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,679 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,680 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,681 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,681 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,682 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,683 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,683 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,683 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,684 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,685 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,685 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,686 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-5) HHH000027: Calling joinTransaction() on a non JTA EntityManager
    08:24:54,686 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) SQL Error: 0, SQLState: null
    08:24:54,686 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-5) javax.resource.ResourceException: IJ000460: Error checking for a transaction
    08:24:54,785 INFO  [com.kawoolutions.bbstats.skin.SkinBean] (http--127.0.0.1-8080-3) Created skin bean!
    08:24:54,840 INFO  [com.kawoolutions.bbstats.skin.SkinBean] (http--127.0.0.1-8080-1) Created skin bean!
    08:24:55,305 INFO  [com.kawoolutions.bbstats.skin.SkinBean] (http--127.0.0.1-8080-5) Created skin bean!
    

     

    But I don't understand this. None of the EntityHome subclasses changed since the last release and I didn't override getInstance(). Also, my pages.xml only includes this about team-home.xhtml:

      <page view-id="/team-home.xhtml">
        <param converterId="javax.faces.Integer" name="roster" value="#{rosterHome.id}"/>
      </page>
    

     

    I checked the DB, the entity should be there. It's really really strange.

     

    Heelp!

    Karsten

  • 5. Re: EntityHome subclass getter call using getInstance() fails with TransactionRequiredException: No active JTA transaction on joinTransaction call (JBoss AS 7 + Hibernate 4)
    Karsten Wutzke Expert

    Guys, I have just found the strangest bug of all time. Let me elaborate, as the error doesn't make sense to me at all.

     

    I have an EntityQuery:

    @Name("participationListQuery")
    public class ParticipationListQuery extends PersistenceContextEntityQuery<Participation>
    {
        private final String sEjbql =
            "SELECT pa " +
            "FROM Roster ro " +
            "  JOIN ro.season se " +
            "  JOIN ro.participations pa " +
            "  JOIN pa.group gr " +
            "  JOIN gr.round rd " +
            "  JOIN rd.subCompetition sn " +
            "  JOIN sn.competition cn" +
            "  JOIN cn.geoContext ge ";
    
        public ParticipationListQuery()
        {
           ...
        }
    
        ...
    }

     

    Note the JOIN cn.geoContext ge line. In a refactoring I renamed the entity class GeoContext to GeaArea, so now in the new version of my app the reference above didn't exist anymore.

     

    This is what caused the JPA transaction exception in the OP of this thread. Using JOIN cn.geoArea ge made the madness go away.

     

    Am I mistaken or is this a really really strange error?? I wonder why Seam or whatever is outputting such a misleading error message, given that it should have read "geoContext not found" but instead giving "no active transaction found".

     

    Could anybody probably explain this to me? I'm absolutely baffled. (I can post the JSF page, but it's just pretty standard stuff. Please revisit the online version to get an idea of how the page looks like: http://http://www.bbstats.net/team-home.seam?roster=1)

     

    Karsten

  • 6. Re: EntityHome subclass getter call using getInstance() fails with TransactionRequiredException: No active JTA transaction on joinTransaction call (JBoss AS 7 + Hibernate 4)
    Scott Marlow Master

    I would say that its time to try enabling TRACE logging for org.hibernate.* and see if that gives any hints as to why the property didn't help.  Could it be that there is actually no active JTA transaction? 

  • 7. Re: EntityHome subclass getter call using getInstance() fails with TransactionRequiredException: No active JTA transaction on joinTransaction call (JBoss AS 7 + Hibernate 4)
    Sergio Angelo Newbie

    I really really really don't recommend overriding the default EntityManger's name into 'em' !

     

    This will give you a lot of problems and headaches, probably also the one you're having now.

     

    Note that if you use 'em', you should also refer to this EntityManager everywhere in your components.xml like in:

    • <persistence:managed-persistence-context name="em" ... >
    • in all your entityqueries, entityhomes and all other components that refer to the entitymanager.

     

    Default: all Seam components use 'entityManager', they should know from now on that its name has changed into 'em'.

    And if they don't know this, you'll get weird exceptions. And it will become even more problematic, if the name of the EntityManager

    is hardcoded somewhere in the source code, which you can't change easily !

     

    All in all, I recommend you to change the name back into 'entityManager' and check if the problem still exists.

  • 8. Re: EntityHome subclass getter call using getInstance() fails with TransactionRequiredException: No active JTA transaction on joinTransaction call (JBoss AS 7 + Hibernate 4)
    Karsten Wutzke Expert

    Note all my EntityHome's extend PersistenceContextEntityHome, which you can see in my OP, so it's not a real problem IMO.

     

    Karsten

  • 9. Re: EntityHome subclass getter call using getInstance() fails with TransactionRequiredException: No active JTA transaction on joinTransaction call (JBoss AS 7 + Hibernate 4)
    Geraldo Pereira de Souza Newbie

    Hello Karsten,

     

    How did you solve this problem? Are you using seam 2.2.2, jboss 7 with hibernate 4? Are there a workaround?

     

    I´m with the same problem.

    Thanks,

     

    Geraldo.