3 Replies Latest reply on Sep 19, 2006 12:02 PM by F B

    entity tutorial with @Id @GeneratedValue(strategy=Generation

    mat Newbie

      Starting with the ejb3 tutorial under docs. Deploys and runs successfully.
      Changing the datasource to MSSQL also works fine with tables and records created.

      However when I change the entities to use
      @Id @GeneratedValue(strategy=GenerationType.TABLE, generator=...
      I get sql server jdbc exceptions.
      Using the default db is fine;

      Many thanks in advance for your help as this is important at this stage of the new project.
      Apologies for long stack trace submitted.





      Details are as follows:

      jboss-4.0.4RC1 with EJB3 configration installer

      jboss-EJB-3.0_RC5-PFD



      Windows XP
      MSSQL 2000 with Microsoft jdbc:

      16:04:00,718 INFO [SettingsFactory] RDBMS: Microsoft SQL Server, version: Microsoft SQL Server 2000 - 8.00.194 (IntelX86)
      Aug 6 2000 00:57:48
      Copyright (c) 1988-2000 Microsoft Corporation
      Developer Edition on Windows NT 5.1 (Build 2600: Service Pack 2)

      16:04:00,718 INFO [SettingsFactory] JDBC driver: SQLServer, version: 2.2.0037
      16:04:00,718 INFO [Dialect] Using dialect: org.hibernate.dialect.SQLServerDialect
      16:04:00,718 INFO [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
      ...




      @Entity
      @Table(name = "PURCHASE_ORDER")
      public class Order implements java.io.Serializable
      {
       private int id;
       private double total;
       private Collection<LineItem> lineItems;
      
       //@Id @GeneratedValue(strategy=GenerationType.AUTO)
      
       @TableGenerator(
       name="orderGen",
       table="ID_GEN",
       pkColumnName="GEN_KEY",
       valueColumnName="GEN_VALUE",
       pkColumnValue="ORDER_ID",
       allocationSize=1
       )
       @Id @GeneratedValue(strategy=GenerationType.TABLE, generator = "orderGen")
       public int getId()
       {
       return id;
       }
      
       public void setId(int id)
       {
       this.id = id;
       }
      ...
      




      @Entity
      public class LineItem implements java.io.Serializable
      {
       private int id;
       private double subtotal;
       private int quantity;
       private String product;
       private Order order;
      
      
       //@Id @GeneratedValue(strategy=GenerationType.AUTO)
      
       @TableGenerator(
       name="lineItemGen",
       table="ID_GEN",
       pkColumnName="GEN_KEY",
       valueColumnName="GEN_VALUE",
       pkColumnValue="LINE_ID",
       allocationSize=1
       )
      
       @Id @GeneratedValue(strategy=GenerationType.TABLE, generator = "lineItemGen")
       public int getId()
       {
       return id;
       }
      
       public void setId(int id)
       {
       this.id = id;
       }
      ....
      
      
      




      persistent.xml
      =========
      
      <?xml version="1.0" encoding="UTF-8"?>
      
      <entity-manager>
       <persistence-unit name="tempdb">
       <provider>org.hibernate.ejb.HibernatePersistence</provider>
       <jta-data-source>java:/testDatasource</jta-data-source>
       <properties>
       <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect" />
       <property name="hibernate.hbm2ddl.auto" value="create-drop" />
       </properties>
       </persistence-unit>
      </entity-manager>
      




      test-mssql-ds.xml
      ===========
      <?xml version="1.0" encoding="UTF-8"?>
      <datasources>
       <local-tx-datasource>
       <jndi-name>testDatasource</jndi-name>
       <connection-url>jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=TEST_EJB3</connection-url>
       <driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-class>
       <user-name>app_server</user-name>
       <password>app_server</password>
       </local-tx-datasource>
      </datasources>
      


      created tables: ID_GEN, PURCHASE_ORDER, LineItem


      JBoss stack trace:
      ===========
      16:04:00,828 INFO [EJB3Deployer] Deployed: file:/C:/JBoss_area/jboss-4.0.4RC1-EJB3/server/default/deploy/tutorial.jar
      16:09:05,968 ERROR [MultipleHiLoPerTableGenerator] could not read or init a hi value
      java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Can't start a cloned connection while in manual transaction mode.
       at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
       at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
       at com.microsoft.jdbc.base.BaseConnection.getImplConnection(Unknown Source)
       at com.microsoft.jdbc.base.BaseStatement.setupImplConnection(Unknown Source)
       at com.microsoft.jdbc.base.BaseStatement.<init>(Unknown Source)
       at com.microsoft.jdbc.base.BasePreparedStatement.<init>(Unknown Source)
       at com.microsoft.jdbc.base.BaseConnection.prepareStatement(Unknown Source)
       at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.doPrepareStatement(BaseWrapperManagedConnection.java:346)
       at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.prepareStatement(BaseWrapperManagedConnection.java:341)
       at org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(WrappedConnection.java:187)
       at org.hibernate.id.MultipleHiLoPerTableGenerator.doWorkInCurrentTransaction(MultipleHiLoPerTableGenerator.java:139)
       at org.hibernate.engine.TransactionHelper$1Work.doWork(TransactionHelper.java:38)
       at org.hibernate.engine.transaction.Isolater$JtaDelegate.delegateWork(Isolater.java:79)
       at org.hibernate.engine.transaction.Isolater.doIsolatedWork(Isolater.java:35)
       at org.hibernate.engine.TransactionHelper.doWorkInNewTransaction(TransactionHelper.java:51)
       at org.hibernate.id.MultipleHiLoPerTableGenerator.generate(MultipleHiLoPerTableGenerator.java:183)
       at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:91)
       at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:131)
       at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:87)
       at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:38)
       at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:642)
       at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:616)
       at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:620)
       at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:127)
       at org.jboss.ejb3.entity.InjectedEntityManager.persist(InjectedEntityManager.java:141)
       at org.jboss.tutorial.entity.bean.ShoppingCartBean.checkout(ShoppingCartBean.java:54)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:109)
       at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
       at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:192)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       at org.jboss.ejb3.stateful.StatefulRemoveInterceptor.invoke(StatefulRemoveInterceptor.java:80)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       at org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:294)
       at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:107)
       at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:660)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:513)
       at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:290)
       at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:344)
       at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:202)
      16:09:06,062 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: 08007
      16:09:06,062 ERROR [JDBCExceptionReporter] [Microsoft][SQLServer 2000 Driver for JDBC]Can't start a cloned connection while in manual transaction mode.
      







      client stacktrace
      ==========
      run:
       [java] Buying 2 memory sticks
       [java] Buying a laptop
       [java] Print cart:
       [java] Total: $3000.0
       [java] 2 Memory stick 1000.0
       [java] 1 Laptop 2000.0
       [java] Checkout
       [java] Exception in thread "main" javax.ejb.EJBException: org.hibernate.exception.JDBCConnectionException: could not get or update next value
       [java] at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
       [java] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
       [java] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:192)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.ejb3.stateful.StatefulRemoveInterceptor.invoke(StatefulRemoveInterceptor.java:80)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:294)
       [java] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:107)
       [java] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
       [java] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:660)
       [java] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:513)
       [java] at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:290)
       [java] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:344)
       [java] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:202)
       [java] Caused by: org.hibernate.exception.JDBCConnectionException: could not get or update next value
       [java] at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:72)
       [java] at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
       [java] at org.hibernate.engine.TransactionHelper$1Work.doWork(TransactionHelper.java:41)
       [java] at org.hibernate.engine.transaction.Isolater$JtaDelegate.delegateWork(Isolater.java:79)
       [java] at org.hibernate.engine.transaction.Isolater.doIsolatedWork(Isolater.java:35)
       [java] at org.hibernate.engine.TransactionHelper.doWorkInNewTransaction(TransactionHelper.java:51)
       [java] at org.hibernate.id.MultipleHiLoPerTableGenerator.generate(MultipleHiLoPerTableGenerator.java:183)
       [java] at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:91)
       [java] at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:131)
       [java] at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:87)
       [java] at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:38)
       [java] at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:642)
       [java] at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:616)
       [java] at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:620)
       [java] at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:127)
       [java] at org.jboss.ejb3.entity.InjectedEntityManager.persist(InjectedEntityManager.java:141)
       [java] at org.jboss.tutorial.entity.bean.ShoppingCartBean.checkout(ShoppingCartBean.java:54)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       [java] at java.lang.reflect.Method.invoke(Method.java:585)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:109)
       [java] at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
      
       [java] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:192)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.ejb3.stateful.StatefulRemoveInterceptor.invoke(StatefulRemoveInterceptor.java:80)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:294)
       [java] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:107)
       [java] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
       [java] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:660)
       [java] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:513)
       [java] at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:290)
       [java] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:344)
       [java] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:202)
       [java] at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:183)
       [java] at org.jboss.remoting.Client.invoke(Client.java:444)
       [java] at org.jboss.remoting.Client.invoke(Client.java:407)
       [java] at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:55)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:65)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.ejb3.stateful.StatefulRemoteProxy.invoke(StatefulRemoteProxy.java:133)
       [java] at $Proxy1.checkout(Unknown Source)
       [java] at org.jboss.tutorial.entity.client.Client.main(Client.java:58)
       [java] Caused by: java.sql.SQLException: [Microsoft][SQLServer 2000 Driverfor JDBC]Can't start a cloned connection while in manual transaction mode.
       [java] at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
       [java] at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
       [java] at com.microsoft.jdbc.base.BaseConnection.getImplConnection(Unknown Source)
       [java] at com.microsoft.jdbc.base.BaseStatement.setupImplConnection(Unknown Source)
       [java] at com.microsoft.jdbc.base.BaseStatement.<init>(Unknown Source)
       [java] at com.microsoft.jdbc.base.BasePreparedStatement.<init>(UnknownSource)
       [java] at com.microsoft.jdbc.base.BaseConnection.prepareStatement(Unknown Source)
       [java] at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.doPrepareStatement(BaseWrapperManagedConnection.java:346)
       [java] at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.prepareStatement(BaseWrapperManagedConnection.java:341)
       [java] at org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(WrappedConnection.java:187)
       [java] at org.hibernate.id.MultipleHiLoPerTableGenerator.doWorkInCurrentTransaction(MultipleHiLoPerTableGenerator.java:139)
       [java] at org.hibernate.engine.TransactionHelper$1Work.doWork(TransactionHelper.java:38)
       [java] at org.hibernate.engine.transaction.Isolater$JtaDelegate.delegateWork(Isolater.java:79)
       [java] at org.hibernate.engine.transaction.Isolater.doIsolatedWork(Isolater.java:35)
       [java] at org.hibernate.engine.TransactionHelper.doWorkInNewTransaction(TransactionHelper.java:51)
       [java] at org.hibernate.id.MultipleHiLoPerTableGenerator.generate(MultipleHiLoPerTableGenerator.java:183)
       [java] at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:91)
       [java] at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:131)
       [java] at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:87)
       [java] at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:38)
       [java] at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:642)
       [java] at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:616)
       [java] at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:620)
       [java] at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:127)
       [java] at org.jboss.ejb3.entity.InjectedEntityManager.persist(InjectedEntityManager.java:141)
       [java] at org.jboss.tutorial.entity.bean.ShoppingCartBean.checkout(ShoppingCartBean.java:54)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       [java] at java.lang.reflect.Method.invoke(Method.java:585)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:109)
       [java] at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
      
       [java] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:192)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.ejb3.stateful.StatefulRemoveInterceptor.invoke(StatefulRemoveInterceptor.java:80)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       [java] at org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:294)
       [java] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:107)
       [java] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
       [java] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:660)
       [java] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:513)
       [java] at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:290)
       [java] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:344)
       [java] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:202)
       [java] Java Result: 1
      
      BUILD SUCCESSFUL
      Total time: 2 seconds