jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MARTINEZ Antonio" <Antonio.Marti...@alcatel-lucent.com>
Subject PacketTooBigException in DatabaseJournal.append
Date Wed, 03 Sep 2008 00:04:39 GMT
Hello,
I'm getting the following exception when adding a big node to my
repository when using Journal.
I can increase variable "max_allowed_packet" of mysql but I would like
to understand why (without cluster feature I have no issue)

Thank-you,
Antonio


2008-09-02 14:01:53,360 ERROR
[org.apache.jackrabbit.core.cluster.ClusterNode] Unable to commit log
entry.
org.apache.jackrabbit.core.journal.JournalException: Unable to append
revision 4.
        at
org.apache.jackrabbit.core.journal.DatabaseJournal.append(DatabaseJourna
l.java:408)
        at
org.apache.jackrabbit.core.journal.AppendRecord.update(AppendRecord.java
:251)
        at
org.apache.jackrabbit.core.cluster.ClusterNode$WorkspaceUpdateChannel.up
dateCommitted(ClusterNode.java:625)
        at
org.apache.jackrabbit.core.state.SharedItemStateManager$Update.end(Share
dItemStateManager.java:741)
        at
org.apache.jackrabbit.core.state.XAItemStateManager.commit(XAItemStateMa
nager.java:164)
        at
org.apache.jackrabbit.core.TransactionContext.commit(TransactionContext.
java:189)
        at
org.apache.jackrabbit.core.XASessionImpl.commit(XASessionImpl.java:339)
        at
org.apache.jackrabbit.jca.TransactionBoundXAResource.commit(TransactionB
oundXAResource.java:39)
        at
org.jboss.resource.connectionmanager.xa.JcaXAResourceWrapper.commit(JcaX
AResourceWrapper.java:53)
        at
com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord.topLev
elCommit(XAResourceRecord.java:487)
        at
com.arjuna.ats.arjuna.coordinator.BasicAction.doCommit(BasicAction.java:
3107)
        at
com.arjuna.ats.arjuna.coordinator.BasicAction.doCommit(BasicAction.java:
3022)
        at
com.arjuna.ats.arjuna.coordinator.BasicAction.phase2Commit(BasicAction.j
ava:2126)
        at
com.arjuna.ats.arjuna.coordinator.BasicAction.End(BasicAction.java:1819)
        at
com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordi
nator.java:88)
        at
com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
        at
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.comm
itAndDisassociate(TransactionImple.java:1389)
        at
com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commi
t(BaseTransaction.java:135)
        at
com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransa
ctionManagerDelegate.java:87)
        at
org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVM
ClientUserTransaction.java:140)
        at
org.springframework.transaction.jta.JtaTransactionManager.doCommit(JtaTr
ansactionManager.java:1028)
        at
org.springframework.transaction.support.AbstractPlatformTransactionManag
er.processCommit(AbstractPlatformTransactionManager.java:709)
        at
org.springframework.transaction.support.AbstractPlatformTransactionManag
er.commit(AbstractPlatformTransactionManager.java:678)
        at
org.springframework.transaction.support.TransactionTemplate.execute(Tran
sactionTemplate.java:140)
        at
com.alcatel.axs.app.idm.InventoryDiscoveryServiceImpl.doDiscoveryNow(Inv
entoryDiscoveryServiceImpl.java:401)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36)
        at sun.reflect.GeneratedMethodAccessor105.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243)
        at
javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredMode
lMBean.java:1074)
        at
javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean
.java:955)
        at
org.springframework.jmx.export.SpringModelMBean.invoke(SpringModelMBean.
java:88)
        at
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
        at
org.jboss.mx.modelmbean.RequiredModelMBeanInvoker.invoke(RequiredModelMB
eanInvoker.java:127)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at
org.jboss.system.server.jmx.LazyMBeanServer.invoke(LazyMBeanServer.java:
291)
        at
javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocati
onHandler.java:288)
        at $Proxy725.doDiscoveryNow(Unknown Source)
        at
com.alcatel.axs.app.idm.InventoryJob.execute(InventoryJob.java:40)
        at
com.alcatel.axs.container.jobmanager.ManagedJob.run(ManagedJob.java:48)
        at
com.alcatel.axs.container.jobmanager.JMSJobExecutor.onMessage(JMSJobExec
utor.java:50)
        at
org.springframework.jms.listener.AbstractMessageListenerContainer.doInvo
keListener(AbstractMessageListenerContainer.java:531)
        at
org.springframework.jms.listener.AbstractMessageListenerContainer.invoke
Listener(AbstractMessageListenerContainer.java:466)
        at
org.springframework.jms.listener.AbstractMessageListenerContainer.doExec
uteListener(AbstractMessageListenerContainer.java:435)
        at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer
.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:322)
        at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer
.receiveAndExecute(AbstractPollingMessageListenerContainer.java:260)
        at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMe
ssageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java
:944)
        at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMe
ssageListenerInvoker.run(DefaultMessageListenerContainer.java:868)
        at java.lang.Thread.run(Thread.java:619)
Caused by: com.mysql.jdbc.PacketTooBigException: Packet for query is too
large (11353735 > 1048576). You can change this value on the server by
setting the max_allowed_packet' variable.
        at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2691)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1612)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)
        at com.mysql.jdbc.Connection.execSQL(Connection.java:3256)
        at
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:
1313)
        at
com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:874)
        at
com.alu.cnm.infrastructure.hadbconnectorimpl.LBPreparedStatement.execute
(LBPreparedStatement.java:189)
        at
org.apache.jackrabbit.core.journal.DatabaseJournal.append(DatabaseJourna
l.java:402)

Mime
View raw message