Re: [jboss-user] [JBoss Cache] - Hibernate JbossCache integration
by Marilen Corciovei
Marilen Corciovei [http://community.jboss.org/people/marilenc] commented on the document
" Hibernate JbossCache integration"
To view all comments on this document, visit: http://community.jboss.org/docs/DOC-15863#comment-4238
--------------------------------------------------
Hi Galder, thanks for the DOC-14248 and DOC-14247 links. Actually the 3rd link I the article points to the same documentation and what I did is tried to summarize some of the information found there and in the jboss …
[View More]cache as I found it and applied by trial and error. Initialy I though it will result in a shorter document but finally I ended up with this. As for the len.ro article you are right, it's a copy since it's my site. I've copied here to be easier to find for people searching for info in the wiki.
--------------------------------------------------
[View Less]
14 years, 3 months
[JBoss Messaging] - Socket timed out on ResourceManager.commitLocal
by Jeremy Whiting
Jeremy Whiting [http://community.jboss.org/people/whitingjr] created the discussion
"Socket timed out on ResourceManager.commitLocal"
To view the discussion, visit: http://community.jboss.org/message/563352#563352
--------------------------------------------------------------
Hi,
I am running the SPECjms2007 benchmark against JBM with a MySQL database. There is one resource manager in the SUT and the database is configured using local transaction.
The benchmark pushes a variety of message …
[View More]type/size and load. The demand on the messaging server is at (low) BASE 35 for the horizontal topology.
The benchmark is not completing during warmup due to an socket timeout when processing a message that is sent transactionally.
I have not investigated yet but initial thoughts are there is a deadlock when the server is updating the database. Am I on the right track do you think ?
HQ_Interaction3DR_1_EHID_1: Uncaught exception.
org.jboss.jms.exception.MessagingTransactionRolledBackException
at org.jboss.jms.tx.ResourceManager.commitLocal(ResourceManager.java:225)
at org.jboss.jms.client.container.SessionAspect.handleCommit(SessionAspect.java:582)
at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect_z_handleCommit_2058061115.invoke(SessionAspect_z_handleCommit_2058061115.java)
at org.jboss.jms.client.delegate.ClientSessionDelegate$commit_8461082169793485964.invokeNext(ClientSessionDelegate$commit_8461082169793485964.java)
at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
at org.jboss.jms.client.delegate.ClientSessionDelegate$commit_8461082169793485964.invokeNext(ClientSessionDelegate$commit_8461082169793485964.java)
at org.jboss.jms.client.delegate.ClientSessionDelegate.commit(ClientSessionDelegate.java)
at org.jboss.jms.client.JBossSession.commit(JBossSession.java:164)
at org.spec.jms.eventhandler.hq.HQ_Interaction3DR.oneIteration(HQ_Interaction3DR.java:134)
at org.spec.perfharness.WorkerThread.pace(WorkerThread.java:339)
at org.spec.jms.agents.SPECWorkerThread.pace(SPECWorkerThread.java:979)
at org.spec.jms.agents.SPECWorkerThread.run(SPECWorkerThread.java:750)
at org.spec.jms.eventhandler.hq.HQ_Interaction3DR.run(HQ_Interaction3DR.java:98)
Caused by: org.jboss.jms.exception.MessagingNetworkFailureException
at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:245)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:205)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)
at org.jboss.jms.client.delegate.ClientConnectionDelegate.org$jboss$jms$client$delegate$ClientConnectionDelegate$sendTransaction$aop(ClientConnectionDelegate.java:225)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$sendTransaction_N3268650789275322226.invokeNext(Cli
entConnectionDelegate$sendTransaction_N3268650789275322226.java)
at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$sendTransaction_N3268650789275322226.invokeNext(ClientConnectionDelegate$sendTransaction_N3268650789275322226.java)
at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$sendTransaction_N3268650789275322226.invokeNext(ClientConnectionDelegate$sendTransaction_N3268650789275322226.java)
at org.jboss.jms.client.delegate.ClientConnectionDelegate.sendTransaction(ClientConnectionDelegate.java)
at org.jboss.jms.tx.ResourceManager.commitLocal(ResourceManager.java:206)
... 13 more
Caused by: org.jboss.remoting.InvocationFailureException: Socket timed out. Waited 300000 milliseconds for response while calling on InvokerLocator [bisocket://hornetq:4457/?JBM_clientMaxPoolSize=1000&clientLeasePeriod=10000&clientSocketClass=org.jboss.jms.client.remoting.ClientSocketWrapper&dataType=jms&failureDisconnectTimeout=0&marshaller=org.jboss.jms.wireformat.JMSWireFormat&socket.check_connection=false&stopLeaseOnFailure=true&timeout=300000&unmarshaller=org.jboss.jms.wireformat.JMSWireFormat&useClientConnectionIdentity=true&validatorPingPeriod=10000&validatorPingTimeout=5000]; nested exception is:
java.net.SocketTimeoutException: Read timed out
at org.jboss.remoting.transport.socket.SocketClientInvoker.handleException(SocketClientInvoker.java:137)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.handleOtherException(MicroSocketClientInvoker.java:1079)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:941)
at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(B
isocketClientInvoker.java:461)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:167)
at org.jboss.remoting.Client.invoke(Client.java:2034)
at org.jboss.remoting.Client.invoke(Client.java:877)
at org.jboss.remoting.Client.invoke(Client.java:865)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)
... 24 more
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:146)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
at java.io.FilterInputStream.read(FilterInputStream.java:83)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.readVersion(MicroSocketClientInvoker.java:1342)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:895)
... 30 more
os: RHEL 5.5 x86_64
database: MySQL 5.1.50 community
JBM: 1.4.7.GA
Regards,
Jeremy
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/563352#563352]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
[View Less]
14 years, 3 months
[JBoss Cache] - Valid jbosscache (cascabel) configuration with hibernate
by Marilen Corciovei
Marilen Corciovei [http://community.jboss.org/people/marilenc] created the discussion
"Valid jbosscache (cascabel) configuration with hibernate"
To view the discussion, visit: http://community.jboss.org/message/562216#562216
--------------------------------------------------------------
Hello everybody. I am trying to configure a JbossCache for use with hibernate: SharedJBossCacheRegionFactory. I have created a cache configuration file which looks very similar to the ones described in …
[View More]documentation. I only disabled the Loaders directive. When something is put in the cache I am getting the following error:
org.hibernate.cache.CacheException: org.hibernate.cache.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
at org.hibernate.cache.jbc2.timestamp.TimestampsRegionImpl.put(TimestampsRegionImpl.java:130)
at org.hibernate.cache.UpdateTimestampsCache.preinvalidate(UpdateTimestampsCache.java:70)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:275)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
...
I have tried to add a /TS region but this does not seems to be the problem. I am running everything in JBoss 5.1.0GA. I mention there is no wrong (not-serializable) object put in the cache since everything works with previous versions of cache as shipped in JBoss 4.2.2GA.
Is there any example of a working config with hibernate?
Best regards,
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/562216#562216]
Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
[View Less]
14 years, 3 months