0 Replies Latest reply on May 8, 2002 12:16 PM by Dean Johnson

    StackOverflowError after a SQLException

    Dean Johnson Newbie

      Setup:
      JBoss-2.4.4 running on Linux
      IBM Java VM 1.3.0
      Inet Opta2000 4.1.1 JDBC driver
      SQLServer 2000

      Issue:
      Immediately after receiving a SQL exception I see a StackOverflowError in the logs from JBoss. Here is the original exception
      -------------------------------------------------
      java.rmi.RemoteException: java.sql.BatchUpdateException: [M2SQL01]Cannot insert duplicate key row in object 'PM_Product_Values' with unique index 'IX_PM_Product_Values_PALOE'
      .
      at PE.lib.BeanUtil.connectionLogic(BeanUtil.java:50)
      at PE.entities.EntitySpecifics.updateDB(EntitySpecifics.java:793)
      at PE.entities.EntityCache.writeComplete(EntityCache.java:146)
      at PE.values.ValuesCollectionBean.completeUpdate(ValuesCollectionBean.java:285)
      at PE.values.ValuesCollectionBean.completeUpdate(ValuesCollectionBean.java:166)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stateles
      sSessionContainer.java:542)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe
      ssionInstanceInterceptor.java:82)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:138)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
      java:347)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:100)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:12
      7)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:170)
      at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav
      a:286)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
      nvoker.java:410)
      at java.lang.reflect.Method.invoke(Native Method)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
      at sun.rmi.transport.Transport$1.run(Transport.java:152)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:148)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:7
      06)
      at java.lang.Thread.run(Thread.java:484)
      [12:50:02,077,ValuesCollectionBean] TRANSACTION ROLLBACK EXCEPTION:
      javax.transaction.TransactionRolledbackException: null; nested exception is:
      java.lang.StackOverflowError
      java.lang.StackOverflowError
      <<no stack trace available>>
      [12:50:02,115,ValuesCollectionBean] TRANSACTION ROLLBACK EXCEPTION:
      javax.transaction.TransactionRolledbackException: null; nested exception is:
      java.lang.StackOverflowError
      java.lang.StackOverflowError
      <<no stack trace available>>
      [12:50:02,340,ValuesCollectionBean] TRANSACTION ROLLBACK EXCEPTION:
      javax.transaction.TransactionRolledbackException: null; nested exception is:
      java.lang.StackOverflowError
      java.lang.StackOverflowError
      <<no stack trace available>>


      I have tried another JDBC driver to verify that it was not the driver (Merant driver (now Microsoft's)). I see the same error. Problem also persists on both sun's VM and IBM's.

      Up until recently we were running on Weblogic 6.1 using the Inet Opta2000 JDBC driver on Windows 2000. We have seen the same SQL exception on the DB constraint, but no StackOverflowError.

      Has anyone seen StackOverflowErrors on JBoss after exceptions? Any configuration/set up issue that might have an effect?

      Thanks in advance,

      dean johnson