0 Replies Latest reply on Sep 15, 2009 12:31 AM by anil kumar

    IllegalStateException and NullPointerException

    anil kumar Newbie

      Hi,

      Please help me

      I am getting IllegalStateException and NullPointerException after adding JTS in JBoss AS, I am accessing SLSB using application EJB client but I am getting proper response and transactions also working, getting these exception in console.


      When putting "@Transactional(TransactionPropagationType.REQUIRED)"/ "@Transactiona"l on methoed getting below exception
      java.lang.IllegalStateException: No event context active
      at org.jboss.seam.ScopeType.getContext(ScopeType.java:114)
      at org.jboss.seam.Component.getInstance(Component.java:1854)
      at org.jboss.seam.Component.getInstance(Component.java:1832)
      at org.jboss.seam.Component.getInstance(Component.java:1827)
      at org.jboss.seam.transaction.Transaction.instance(Transaction.java:36)
      at org.jboss.seam.persistence.ManagedPersistenceContext.close(ManagedPersistenceContext.java:207)
      at org.jboss.seam.persistence.ManagedPersistenceContext.afterCompletion(ManagedPersistenceContext.java:196)
      at org.jboss.seam.transaction.SynchronizationRegistry.afterTransactionCompletion(SynchronizationRegistry.java:42)
      at org.jboss.seam.transaction.EjbSynchronizations.afterCompletion(EjbSynchronizations.java:80)
      at org.jboss.ejb3.stateful.SessionSynchronizationInterceptor$SFSBSessionSynchronization.afterCompletion(SessionSynchronizationInterceptor.java:87)
      at com.arjuna.ats.internal.jta.resources.jts.orbspecific.SynchronizationImple.after_completion(SynchronizationImple.java:153)
      at org.omg.CosTransactions.SynchronizationPOA._invoke(SynchronizationPOA.java:49)
      at org.jacorb.poa.RequestProcessor.invokeOperation(RequestProcessor.java:299)
      at org.jacorb.poa.RequestProcessor.process(RequestProcessor.java:593)
      at org.jacorb.poa.RequestProcessor.run(RequestProcessor.java:735)

      With out any "@Transactional" on methoed getting below exception
      java.lang.NullPointerException
      17:02:00,312 ERROR [STDERR] at org.jboss.ejb3.stateful.SessionSynchronizationInterceptor$SFSBSessionSynchronization.afterCompletion(SessionSynchronizationInterceptor.java:87)
      17:02:00,312 ERROR [STDERR] at com.arjuna.ats.internal.jta.resources.jts.orbspecific.SynchronizationImple.after_completion(SynchronizationImple.java:153)
      17:02:00,312 ERROR [STDERR] at org.omg.CosTransactions.SynchronizationPOA._invoke(SynchronizationPOA.java:49)
      17:02:00,312 ERROR [STDERR] at org.jacorb.poa.RequestProcessor.invokeOperation(RequestProcessor.java:299)
      17:02:00,312 ERROR [STDERR] at org.jacorb.poa.RequestProcessor.process(RequestProcessor.java:593)
      17:02:00,312 ERROR [STDERR] at org.jacorb.poa.RequestProcessor.run(RequestProcessor.java:735)


      Thanks in advance for you help/suggestion.