0 Replies Latest reply on Nov 15, 2001 7:56 AM by Frank Stolte

    java.rmi.ServerException

    Frank Stolte Newbie

      Hi,

      I'm using Jboss 2.4 with Jetty on Windows 2000 with JDK 1.3.1 and MySQL.

      I have a CMP Bean which is a large complex Java object. It seems to exceed some server configuration setting for max dat or packet size.

      I get the following error message.

      [Scanning] Activated bean Scanning with id = scanning
      [Scanning] java.rmi.ServerException: Store failed; nested exception is:
      [Scanning] java.lang.IllegalArgumentException: Packet is larger than max_allowed_packet from server configuration of 1048576 bytes
      [Scanning] java.lang.IllegalArgumentException: Packet is larger than max_allowed_packet from server configuration of 1048576 bytes
      [Scanning] at org.gjt.mm.mysql.Buffer.ensureCapacity(Buffer.java:398)
      [Scanning] at org.gjt.mm.mysql.Buffer.writeBytesNoNull(Buffer.java:386)
      [Scanning] at org.gjt.mm.mysql.PreparedStatement.executeUpdate(PreparedStatement.java:352)
      [Scanning] at org.jboss.pool.jdbc.PreparedStatementInPool.executeUpdate(PreparedStatementInPool.java:82)
      [Scanning] at org.jboss.ejb.plugins.jaws.jdbc.JDBCUpdateCommand.executeStatementAndHandleResult(JDBCUpdateCommand.java:49)
      [Scanning] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:160)
      [Scanning] at org.jboss.ejb.plugins.jaws.jdbc.JDBCStoreEntityCommand.execute(JDBCStoreEntityCommand.java:97)
      [Scanning] at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.storeEntity(JAWSPersistenceManager.java:168)
      [Scanning] at org.jboss.ejb.plugins.CMPPersistenceManager.storeEntity(CMPPersistenceManager.java:400)
      [Scanning] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor$InstanceSynchronization.beforeCompletion(EntitySynchronizationInterceptor.java:404)
      [Scanning] at org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.java:1210)
      [Scanning] at org.jboss.tm.TxCapsule.commit(TxCapsule.java:304)
      [Scanning] at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:76)
      [Scanning] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:355)
      [Scanning] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
      [Scanning] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
      [Scanning] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
      [Scanning] at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:349)
      [Scanning] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:480)
      [Scanning] at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:335)
      [Scanning] at org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.java:133)
      [Scanning] at $Proxy23.getScanningValueObj(Unknown Source)
      [Scanning] at net.frankdesign.scanning.odds.ScanAndSaveOdds.scanForOdds(ScanAndSaveOdds.java:48)
      [Scanning] at net.frankdesign.scanning.ScanningService$3.run(ScanningService.java:122)
      [Scanning] at java.util.TimerThread.mainLoop(Unknown Source)
      [Scanning] at java.util.TimerThread.run(Unknown Source)
      [Default] java.lang.reflect.UndeclaredThrowableException:
      [Default] javax.transaction.RollbackException: Unable to commit, tx=XidImpl [FormatId=257, GlobalId=pc-frank1//14, BranchQual=] status=STATUS_ROLLEDBACK
      [Default] at org.jboss.tm.TxCapsule.commit(TxCapsule.java:350)
      [Default]
      [Default] at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:76)
      [Default]
      [Default] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:355)
      [Default]
      [Default] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
      [Default]
      [Default] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
      [Default]
      [Default] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
      [Default]
      [Default] at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:349)
      [Default]
      [Default] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:480)
      [Default]
      [Default] at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:335)
      [Default]
      [Default] at org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.java:133)
      [Default]
      [Default] at $Proxy23.getScanningValueObj(Unknown Source)
      [Default]
      [Default] at net.frankdesign.scanning.odds.ScanAndSaveOdds.scanForOdds(ScanAndSaveOdds.java:48)
      [Default]
      [Default] at net.frankdesign.scanning.ScanningService$3.run(ScanningService.java:122)
      [Default]
      [Default] at java.util.TimerThread.mainLoop(Unknown Source)
      [Default]
      [Default] at java.util.TimerThread.run(Unknown Source)

      I'm not sure where to find the right setting that has to be changed and how to change it.

      Thanks for your help,

      Frank