6 Replies Latest reply on Jul 25, 2011 9:44 PM by Amine Abdou

    DEPLOYMENTS MISSING DEPENDENCIES

    Amine Abdou Newbie

      Hi :

      I work with Jboss 5.1, Eclipse and Postgres, when i deploy my application I recieve this problem; I need help :

      19:38:03,228 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@20484657{vfszip:/E:/Program%20Files/jboss-5.1.0.GA/server/default/deploy/Photos-ejb.jar/}
      19:38:03,228 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@20484657{vfszip:/E:/Program%20Files/jboss-5.1.0.GA/server/default/deploy/Photos-ejb.jar/}
      19:38:03,238 INFO  [JBossASKernel] Created KernelDeployment for: Photos-ejb.jar
      19:38:03,238 INFO  [JBossASKernel] installing bean: jboss.j2ee:jar=Photos-ejb.jar,name=FichiersPhotoBean,service=EJB3
      19:38:03,238 INFO  [JBossASKernel]   with dependencies:
      19:38:03,238 INFO  [JBossASKernel]   and demands:
      19:38:03,238 INFO  [JBossASKernel]           jboss.ejb:service=EJBTimerService
      19:38:03,238 INFO  [JBossASKernel]           persistence.unit:unitName=#Photosejb
      19:38:03,239 INFO  [JBossASKernel]   and supplies:
      19:38:03,239 INFO  [JBossASKernel]           Class:photos.FichiersPhotoRemote
      19:38:03,239 INFO  [JBossASKernel]           jndi:FichiersPhotoBean/remote-photos.FichiersPhotoRemote
      19:38:03,239 INFO  [JBossASKernel]           jndi:FichiersPhotoBean/remote
      19:38:03,239 INFO  [JBossASKernel] Added bean(jboss.j2ee:jar=Photos-ejb.jar,name=FichiersPhotoBean,service=EJB3) to KernelDeployment of: Photos-ejb.jar
      19:38:03,240 INFO  [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@15fb18d{name=jboss.j2ee:jar=Photos-ejb.jar,name=FichiersPhotoBean,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}
      19:38:03,291 WARN  [HDScanner] Failed to process changes
      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
      
      
      DEPLOYMENTS MISSING DEPENDENCIES:
        Deployment "jboss.j2ee:jar=Photos-ejb.jar,name=FichiersPhotoBean,service=EJB3" is missing the following dependencies:
          Dependency "<UNKNOWN jboss.j2ee:jar=Photos-ejb.jar,name=FichiersPhotoBean,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=#Photosejb' **")
        Deployment "jboss.j2ee:jar=Photos-ejb.jar,name=FichiersPhotoBean,service=EJB3_endpoint" is missing the following dependencies:
          Dependency "jboss.j2ee:jar=Photos-ejb.jar,name=FichiersPhotoBean,service=EJB3" (should be in state "Configured", but is actually in state "PreInstall")
        Deployment "persistence.unit:unitName=#Photosejb" is missing the following dependencies:
          Dependency "jboss.jca:name=photos,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=photos,service=DataSourceBinding' **")
      
      
      DEPLOYMENTS IN ERROR:
        Deployment "<UNKNOWN jboss.j2ee:jar=Photos-ejb.jar,name=FichiersPhotoBean,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=#Photosejb' **
        Deployment "jboss.jca:name=photos,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=photos,service=DataSourceBinding' **
      
      
                at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
                at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
                at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
                at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
                at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
                at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
                at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
                at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
                at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                at java.lang.Thread.run(Unknown Source)
      
      
        • 1. Re: DEPLOYMENTS MISSING DEPENDENCIES
          Ales Justin Master

          You're missing some java:/photos DS deployed in JNDI.

          • 2. Re: DEPLOYMENTS MISSING DEPENDENCIES
            Amine Abdou Newbie

            <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

            <datasources>

                <local-tx-datasource>

                    <jndi-name>Photosejb</jndi-name>

                    <rar-name>jboss-local-jdbc.rar</rar-name>

                    <use-java-context>true</use-java-context>

                    <connection-definition>javax.sql.DataSource</connection-definition>

                    <jmx-invoker-name>jboss:service=invoker,type=jrmp</jmx-invoker-name>

                    <min-pool-size>0</min-pool-size>

                    <max-pool-size>10</max-pool-size>

                    <blocking-timeout-millis>30000</blocking-timeout-millis>

                    <idle-timeout-minutes>30</idle-timeout-minutes>

                    <prefill>false</prefill>

                    <background-validation>false</background-validation>

                    <background-validation-millis>0</background-validation-millis>

                    <validate-on-match>true</validate-on-match>

                    <statistics-formatter>org.jboss.resource.statistic.pool.JBossDefaultSubPoolStatisticFormatter</statistics-formatter>

                    <isSameRM-override-value>false</isSameRM-override-value>

                    <allocation-retry>0</allocation-retry>

                    <allocation-retry-wait-millis>5000</allocation-retry-wait-millis>

                    <security-domain-and-application xsi:type="securityMetaData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

                    <metadata>

                        <type-mapping>PostgreSQL</type-mapping>

                    </metadata>

                    <type-mapping>PostgreSQL</type-mapping>

                    <local-transaction/>

                    <user-name>un</user-name>

                    <password>pw</password>

                    <prepared-statement-cache-size>0</prepared-statement-cache-size>

                    <share-prepared-statements>false</share-prepared-statements>

                    <set-tx-query-timeout>false</set-tx-query-timeout>

                    <query-timeout>0</query-timeout>

                    <use-try-lock>0</use-try-lock>

                    <driver-class>org.postgresql.Driver</driver-class>

                    <connection-url>jdbc:postgresql://localhost:5432/photos</connection-url>

                </local-tx-datasource>

            </datasources>

             

            and in my class

            package photos;

             

            import ....

             

            @Stateless

            public class FichiersPhotoBean implements FichiersPhotoRemote  { 

               @PersistenceContext(unitName = "Photosejb")

                EntityManager persistance;..................

            • 3. Re: DEPLOYMENTS MISSING DEPENDENCIES
              Amine Abdou Newbie

              I think my problem is in line in class @PersistenceContext(unitName = "Photosejb"),

              • 4. Re: DEPLOYMENTS MISSING DEPENDENCIES
                Ales Justin Master

                        <jndi-name>Photosejb</jndi-name>

                I would say you have a miss-match in persistence.xml and its jndi name.

                • 5. Re: DEPLOYMENTS MISSING DEPENDENCIES
                  Amine Abdou Newbie

                  I have résolved my problem :

                  I changed in my file "persistence.xml" like that :

                  Code :

                   

                  Sélectionner tout - Visualiser dans une fenêtre à part

                  1
                  2
                  3
                  4
                  5

                  <persistence-unit name="NOM" transaction-type="JTA">

                        

                          <provider>org.hibernate.ejb.HibernatePersistence</provider>

                         <jta-data-source>java:/JndiName</jta-data-source>


                  NOM is used in Bean class  :

                  Code :

                   

                  Sélectionner tout - Visualiser dans une fenêtre à part

                  1
                  2
                  3
                  4

                  @Stateless

                  public class FichiersPhotoBean implements FichiersPhotoRemote  {

                    @PersistenceContext(unitName = "NOM")

                    EntityManager persistance;

                  JndiName is name of "Jndi" in JBOSS (or name of fille JndiNom-ds.xml)

                  Good luck and thanks

                  • 6. Re: DEPLOYMENTS MISSING DEPENDENCIES
                    Amine Abdou Newbie

                    Hi ales, Ineed your help , when i lunch my interface client for stock informations in my database "postgresql 8.4" (I use Jboos 5.1) i have erreurs

                    my photosejb-ds.xml is :

                     

                    <?xml version="1.0" encoding="UTF-8"?>

                     

                    <datasources>

                      <local-tx-datasource>

                        <jndi-name>Photosejb</jndi-name>

                        <connection-url>jdbc:postgresql://localhost:5432/photos</connection-url>

                        <driver-class>org.postgresql.Driver</driver-class>

                        <user-name>user-name</user-name>

                        <password>password</password>

                        

                          <metadata>

                             <type-mapping>PostgreSQL 8.4</type-mapping>

                          </metadata>

                      </local-tx-datasource>

                     

                     

                    </datasources>

                     

                    the erreurs in JBOOS :

                     

                    02:40:04,128 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: 42P01

                    02:40:04,129 ERROR [JDBCExceptionReporter] L'élément du batch 0 insert into Photo (genre, hauteur, identification, instantStockage, largeur, poids, id) values ('Genre', '599', 'Identification', '2011-07-26 02:40:04.078000 +01:00:00', '601', '422163', '1311644404078') a été annulé. Appeler getNextException pour en connaître la cause.

                    02:40:04,129 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: 42P01

                    02:40:04,129 ERROR [JDBCExceptionReporter] ERREUR: la relation « photo » n'existe pas

                      Position : 13

                    02:40:04,129 ERROR [AbstractFlushingEventListener] Could not synchronize database state with session

                    org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update

                      at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:90)

                      at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)

                      at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)

                      at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)

                      at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)

                      at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)

                      at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)

                      at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)

                      at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:365)

                      at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:504)

                      at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:101)

                      at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:269)

                      at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:89)

                      at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)

                      at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1423)

                      at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:137)

                      at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)

                      at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:170)

                      at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)

                      at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)

                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                      at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)

                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                      at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)

                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                      at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)

                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                      at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)

                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                      at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)

                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                      at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)

                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                      at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:421)

                      at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)

                      at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)

                      at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)

                      at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)

                      at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:744)

                      at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:697)

                      at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:524)

                      at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)

                    Caused by: java.sql.BatchUpdateException: L'élément du batch 0 insert into Photo (genre, hauteur, identification, instantStockage, largeur, poids, id) values ('Genre', '599', 'Identification', '2011-07-26 02:40:04.078000 +01:00:00', '601', '422163', '1311644404078') a été annulé. Appeler getNextException pour en connaître la cause.

                      at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError(AbstractJdbc2Statement.java:2586)

                      at org.postgresql.core.v3.QueryExecutorImpl$1.handleError(QueryExecutorImpl.java:459)

                      at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1811)

                      at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:407)

                      at org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:2725)

                      at org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:774)

                      at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)

                      at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)

                      ... 39 more

                    02:40:04,130 WARN  [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator_2] TwoPhaseCoordinator.beforeCompletion - failed for com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple@6a8609

                    javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update

                      at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)

                      at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:513)

                      at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:101)

                      at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:269)

                      at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:89)

                      at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)

                      at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1423)

                      at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:137)

                      at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)

                      at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:170)

                      at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)

                      at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)

                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                      at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)

                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                      at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)

                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                      at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)

                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                      at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)

                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                      at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)

                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                      at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)

                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                      at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:421)

                      at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)

                      at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)

                      at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)

                      at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)

                      at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:744)

                      at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:697)

                      at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:524)

                      at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)

                    Caused by: org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update

                      at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:90)

                      at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)

                      at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)

                      at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)

                      at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)

                      at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)

                      at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)

                      at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)

                      at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:365)

                      at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:504)

                      ... 32 more

                    Caused by: java.sql.BatchUpdateException: L'élément du batch 0 insert into Photo (genre, hauteur, identification, instantStockage, largeur, poids, id) values ('Genre', '599', 'Identification', '2011-07-26 02:40:04.078000 +01:00:00', '601', '422163', '1311644404078') a été annulé. Appeler getNextException pour en connaître la cause.

                      at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError(AbstractJdbc2Statement.java:2586)

                      at org.postgresql.core.v3.QueryExecutorImpl$1.handleError(QueryExecutorImpl.java:459)

                      at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1811)

                      at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:407)

                      at org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:2725)

                      at org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:774)

                      at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)

                      at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)

                      ... 39 more

                     

                     

                    and errors of eclipse

                    Exception in thread "AWT-EventQueue-0" javax.ejb.EJBTransactionRolledbackException: Transaction rolled back

                              at org.jboss.ejb3.tx.Ejb3TxPolicy.handleEndTransactionException(Ejb3TxPolicy.java:54)

                              at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:175)

                              at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)

                              at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:421)

                              at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)

                              at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)

                              at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)

                              at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)

                              at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:744)

                              at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:697)

                              at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:524)

                              at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)

                    Caused by: javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Could not commit transaction.

                              at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1435)

                              at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:137)

                              at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)

                              at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:170)

                              at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)

                              at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:421)

                              at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)

                              at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)

                              at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)

                              at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)

                              at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:744)

                              at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:697)

                              at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:524)

                              at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)

                              at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:211)

                              at org.jboss.remoting.Client.invoke(Client.java:1724)

                              at org.jboss.remoting.Client.invoke(Client.java:629)

                              at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)

                              at $Proxy3.invoke(Unknown Source)

                              at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)

                              at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)

                              at $Proxy2.setPhoto(Unknown Source)

                              at photos.Stockage.actionPerformed(Stockage.java:80)

                              at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

                              at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

                              at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

                              at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

                              at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

                              at java.awt.Component.processMouseEvent(Unknown Source)

                              at javax.swing.JComponent.processMouseEvent(Unknown Source)

                              at java.awt.Component.processEvent(Unknown Source)

                              at java.awt.Container.processEvent(Unknown Source)

                              at java.awt.Component.dispatchEventImpl(Unknown Source)

                              at java.awt.Container.dispatchEventImpl(Unknown Source)

                              at java.awt.Component.dispatchEvent(Unknown Source)

                              at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

                              at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

                              at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

                              at java.awt.Container.dispatchEventImpl(Unknown Source)

                              at java.awt.Window.dispatchEventImpl(Unknown Source)

                              at java.awt.Component.dispatchEvent(Unknown Source)

                              at java.awt.EventQueue.dispatchEvent(Unknown Source)

                              at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

                              at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

                              at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

                              at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

                              at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

                              at java.awt.EventDispatchThread.run(Unknown Source)

                              at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)

                              at $Proxy3.invoke(Unknown Source)

                              at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)

                              at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)

                              at $Proxy2.setPhoto(Unknown Source)

                              at photos.Stockage.actionPerformed(Stockage.java:80)

                              at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

                              at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

                              at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

                              at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

                              at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

                              at java.awt.Component.processMouseEvent(Unknown Source)

                              at javax.swing.JComponent.processMouseEvent(Unknown Source)

                              at java.awt.Component.processEvent(Unknown Source)

                              at java.awt.Container.processEvent(Unknown Source)

                              at java.awt.Component.dispatchEventImpl(Unknown Source)

                              at java.awt.Container.dispatchEventImpl(Unknown Source)

                              at java.awt.Component.dispatchEvent(Unknown Source)

                              at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

                              at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

                              at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

                              at java.awt.Container.dispatchEventImpl(Unknown Source)

                              at java.awt.Window.dispatchEventImpl(Unknown Source)

                              at java.awt.Component.dispatchEvent(Unknown Source)

                              at java.awt.EventQueue.dispatchEvent(Unknown Source)

                              at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

                              at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

                              at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

                              at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

                              at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

                              at java.awt.EventDispatchThread.run(Unknown Source)

                    Caused by: java.lang.Throwable: setRollbackOnly called from:

                              at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.setRollbackOnly(TransactionImple.java:392)

                              at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.setRollbackOnly(BaseTransaction.java:195)

                              at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.setRollbackOnly(BaseTransactionManagerDelegate.java:123)

                              at org.hibernate.ejb.AbstractEntityManagerImpl.markAsRollback(AbstractEntityManagerImpl.java:421)

                              at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:576)

                              at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)

                              at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:513)

                              at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:101)

                              at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:269)

                              at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:89)

                              at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)

                              at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1423)

                              at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:137)

                              at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)

                              at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:170)

                              at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)

                              at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)

                              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

                              at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:421)

                              at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)

                              at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)

                              at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)

                              at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)

                              at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:744)

                              at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:697)

                              at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:524)

                              at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)