[JBossCache] - After shunned, transport and corr are null
by rnmixon
We are starting to see a problem where one cache member is shunned. It used to happen every six weeks or so, but is not happening at least once a week.
We are running Hibernate 2.8 and the jcache version that comes with it. The jboss-cache.jar manifest says its version is 1.1.1.
Our topology consists of two Tomcat servers running SuSE Linux Enterprise Server 9. Both servers have 4GB RAM and run dual Opterons in 64-bit mode, though one server is slightly faster than the other. The servers are directly connected to each other over a pair of dedicated ethernet ports. Connections to the web server from Tomcat take place over a separate ethernet port.
Once the error occurs, the Tomcat instance that shows the following errors in the logs goes to 100% CPU usage and must be restarted.
I have seen posts that recommended using the FD_SOCK protocol instead of FD in some cases, but am not sure if this applies to us. Also would upgrading the jboss-cache.jar, jboss-common.jar and jboss-system.jar to the ones from JBoss Cache 1.2.4SP2 be of use?
Thanks in advance, the relevant messages from my Tomcat log are below.
- Richard
Here are the relevant log messages:
| 2006-10-17 12:43:51,022 INFO [TP-Processor14] ActionFilter:653 - Handling request
|
| 2006-10-17 12:44:59,214 WARN [UpHandler (FD)] FD:220 - I was suspected, but will not remove myself from membership (waiting for EXIT message)
|
| 2006-10-17 12:44:59,249 WARN [UpHandler (GMS)] GMS:324 - checkSelfInclusion() failed, kingfishS11:5692 is not a member of view [gofishS11:15833|2] [gofishS11:15833]; discarding view
|
| 2006-10-17 12:44:59,250 WARN [UpHandler (GMS)] GMS:333 - I (kingfishS11:5692) am being shunned, will leave and rejoin group (prev_members are [gofishS11:15833 kingfishS11:5692 ])
|
| 2006-10-17 12:45:42,908 INFO [TP-Processor2] ActionFilter:653 - Handling request
|
| 2006-10-17 12:45:43,008 ERROR [TP-Processor2] GroupRequest:178 - both corr and transport are null, cannot send group request
|
| 2006-10-17 12:45:43,017 ERROR [TP-Processor2] ActionFilter:370 - Exception getting UserTransaction object to handle request net.sf.hibernate.cache.CacheException: org.jboss.util.NestedRuntimeException: rsp=sender=gofishS11:15833, retval=null, received=false, suspected=false; - nested throwable: (org.jboss.cache.lock.TimeoutException: rsp=sender=gofishS11:15833, retval=null, received=false, suspected=false)
| net.sf.hibernate.cache.CacheException: org.jboss.util.NestedRuntimeException: rsp=sender=gofishS11:15833, retval=null, received=false, suspected=false; - nested throwable: (org.jboss.cache.lock.TimeoutException: rsp=sender=gofishS11:15833, retval=null, received=false, suspected=false)
| at net.sf.hibernate.cache.TreeCache.remove(TreeCache.java:44)
| at net.sf.hibernate.cache.TransactionalCache.remove(TransactionalCache.java:79)
| at net.sf.hibernate.impl.SessionImpl.refresh(SessionImpl.java:2195)
| at net.sf.hibernate.impl.SessionImpl.refresh(SessionImpl.java:2160)
| at com.ltoj.persistence.ServiceLocator.createUserTransaction(ServiceLocator.java:222)
| at com.ltoj.webapp.filter.ActionFilter.doFilter(ActionFilter.java:356)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979137#3979137
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979137
19 years, 8 months
[EJB 3.0] - Trouble with @Embedded List<>
by adamcc
Hello again,
Please forgive the newbie post again - again I have scoured the forums and the documentation to no avail.
I am still trying to implement an application using the new EJB3 / Hibernate Annotations peristence mechanisms. To this end I have written a model and a set of templates using the MDSD tool 'openArchitectureWare', which generates my set of EJB3 entities, TOs and facades, complete with annotations and ready to deploy.
One of the use cases that I am testing involves a List of embedded objects in an entity. The embedded object itsself also contains an embedded List of strings. The code compiles fine but when I deploy I get a very strange error message:
java.lang.UnsupportedOperationException: one-to-one is not supported here
If I make either of the aggregations single cardinality then the entity seems to deploy normally!
- single embedded object in an entity, embedded object has a List of strings
- List of embedded objects in an entity, embedded object has no List.
It is only when both the embedded object is a List and itsself has a List of strings that I get the strange error.
There is no business functionality in the entity or the embedded object - they are both simple pojos.
Here's the code:
Entity:
| package ch.adamcc.planeres2.entity;
|
| import java.util.ArrayList;
| import java.util.List;
|
| import javax.persistence.Embedded;
| import javax.persistence.Entity;
| import javax.persistence.Id;
|
| import org.hibernate.annotations.CollectionOfElements;
| import org.hibernate.annotations.IndexColumn;
|
| @Entity
| public class SimpleEntity {
| private long _id;
| private String _stringField;
| private List<String> _stringList;
| private long[] _longArray;
|
| @Embedded
| private List<SimpleEmbedded> _simpleEmbeddedList;
|
| public SimpleEntity()
| {
| this._stringList = new ArrayList<String>();
| this._longArray = new long[2];
|
| this._simpleEmbeddedList = new ArrayList<SimpleEmbedded>();
| }
|
| @Id
| public long getId() {
| return this._id;
| }
|
| public void setId(long id) {
| this._id = id;
| }
|
| public String getStringField() {
| return this._stringField;
| }
|
| public void setStringField(String stringField) {
| this._stringField = stringField;
| }
|
| @CollectionOfElements
| public List<String> getStringList() {
| return this._stringList;
| }
|
| public void setStringList(List<String> stringList) {
| this._stringList = stringList;
| }
|
| @CollectionOfElements
| @IndexColumn(name="longArray_index")
| public long[] getLongArray() {
| return this._longArray;
| }
|
| public void setLongArray(long[] longArray) {
| this._longArray = longArray;
| }
|
| @CollectionOfElements
| public List<SimpleEmbedded> getSimpleEmbeddedList() {
| return _simpleEmbeddedList;
| }
|
| public void setSimpleEmbeddedList(List<SimpleEmbedded> simpleEmbeddedList) {
| this._simpleEmbeddedList = simpleEmbeddedList;
| }
| }
|
Embedded:
| package ch.adamcc.planeres2.entity;
|
| import org.hibernate.annotations.CollectionOfElements;
|
| import java.io.Serializable;
| import java.lang.String;
| import java.util.List;
| import javax.persistence.Embeddable;
| import javax.persistence.Embedded;
|
| @Embeddable
| public class SimpleEmbedded implements Serializable {
| private String _embeddedStringField;
| private boolean _embeddedBooleanField;
| @Embedded
| private List<String> _embeddedStringList;
|
| public SimpleEmbedded() {
| }
|
| public SimpleEmbedded(String embeddedStringField, boolean embeddedBooleanField, List<String> embeddedStringList) {
| this._embeddedStringField = embeddedStringField;
| this._embeddedBooleanField = embeddedBooleanField;
| this._embeddedStringList = embeddedStringList;
| }
|
| public String getEmbeddedStringField() {
| return this._embeddedStringField;
| }
|
| public void setEmbeddedStringField(String embeddedStringField) {
| this._embeddedStringField = embeddedStringField;
| }
|
| public boolean getEmbeddedBooleanField() {
| return this._embeddedBooleanField;
| }
|
| public void setEmbeddedBooleanField(boolean embeddedBooleanField) {
| this._embeddedBooleanField = embeddedBooleanField;
| }
|
| @CollectionOfElements
| public List<String> getEmbeddedStringList() {
| return this._embeddedStringList;
| }
|
| public void setEmbeddedStringList(List<String> embeddedStringList) {
| this._embeddedStringList = embeddedStringList;
| }
| }
|
Error output:
| 17:28:10,627 WARN [ServiceController] Problem starting service persistence.units:ear=planeres2.ear,jar=planeres2.jar,unitName=planeres2-persistence-unit
| javax.persistence.PersistenceException: org.hibernate.MappingException: bug in initComponentPropertyPaths
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:695)
| at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
| at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:102)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy69.start(Unknown Source)
| at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:96)
| at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:467)
| at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:317)
| at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy34.start(Unknown Source)
| at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:449)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy35.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
| at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy6.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
| Caused by: org.hibernate.MappingException: bug in initComponentPropertyPaths
| at org.hibernate.persister.entity.AbstractPropertyMapping.initComponentPropertyPaths(AbstractPropertyMapping.java:208)
| at org.hibernate.persister.collection.CompositeElementPropertyMapping.<init>(CompositeElementPropertyMapping.java:26)
| at org.hibernate.persister.collection.AbstractCollectionPersister.<init>(AbstractCollectionPersister.java:496)
| at org.hibernate.persister.collection.BasicCollectionPersister.<init>(BasicCollectionPersister.java:50)
| at org.hibernate.persister.PersisterFactory.createCollectionPersister(PersisterFactory.java:72)
| at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:250)
| at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1218)
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:688)
| ... 101 more
| Caused by: java.lang.UnsupportedOperationException: one-to-one is not supported here
| at org.hibernate.persister.entity.AbstractPropertyMapping.getIdentifierColumnNames(AbstractPropertyMapping.java:30)
| at org.hibernate.persister.entity.AbstractPropertyMapping.initPropertyPaths(AbstractPropertyMapping.java:131)
| at org.hibernate.persister.entity.AbstractPropertyMapping.initComponentPropertyPaths(AbstractPropertyMapping.java:204)
| ... 108 more
|
I apologise for the code spam.
I like the idea of using embedded objects because it reduces the granularity of the entity interface which is a Good Thing. What am I doing wrong? Should I just give up and use associations instead? (ie @OneToMany)
Again, thanks very much in advance for your answer.
Yours,
Adam Crowther
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979134#3979134
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979134
19 years, 8 months
[Messaging, JMS & JBossMQ] - SonicMQ and JBossMQ on one AppServer
by fhh
I have configured JBoss 4.0.4.GA to use SOnicMQ laong with the preinstalled JBossMQ. This works fine for sending beans to SonicMQ.
However, I get an AbstractMethodError when trying to have an MDB listen to a remote Sonic Queue. The configuration of the bean is:
| @MessageDriven(activationConfig =
| {
| @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
| @ActivationConfigProperty(propertyName="destination", propertyValue="queue/incoming"),
| @ActivationConfigProperty(propertyName="providerAdapterJNDI", propertyValue="java:/SonicMQJMSProvider")
| })
|
This throws an AbstractMethodException in JmsServerSession.setup(). Does anybody know what this means. Or in generally what an AbstractMethodException is?
Regards
fhh
anonymous wrote :
| 17:26:25,437 ERROR [JmsActivation] Unable to reconnect org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@149e5ef(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter(a)411379 destination=queue/incoming isTopic=false tx=true durable=false reconnect=10 provider=java:/SonicMQJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=0)
| java.lang.AbstractMethodError: progress.message.jimpl.QueueConnection.createSession(ZI)Ljavax/jms/Session;
| at org.jboss.resource.adapter.jms.inflow.JmsServerSession.setup(JmsServerSession.java:115)
| at org.jboss.resource.adapter.jms.inflow.JmsServerSessionPool.setupSessions(JmsServerSessionPool.java:206)
| at org.jboss.resource.adapter.jms.inflow.JmsServerSessionPool.start(JmsServerSessionPool.java:102)
| at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupSessionPool(JmsActivation.java:540)
| at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:313)
| at org.jboss.resource.adapter.jms.inflow.JmsActivation.handleFailure(JmsActivation.java:250)
| at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:593)
| at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
| at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
| at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
| at java.lang.Thread.run(Thread.java:595)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979129#3979129
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979129
19 years, 8 months
[JBoss jBPM] - docbook-support is missing
by clandestino_bgd
Hi all,
I am trying to build the source from CVS.
default target in build/build.xml reports the following error:
BUILD FAILED
D:\work\java\jbpm.3\build\build.xml:62: The following error occurred while executing this line:
D:\work\java\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build\build.xml:57: The following error occurred while executing this line:
D:\work\java\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build\build.xml:154: The following error occurred while executing this line:
D:\work\java\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.docs\gpd.userguide\build.xml:4: Cannot find C:\Documents and Settings\Agaton/jbpm/reposit
ory/docbook-support/support.xml imported from D:\work\java\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.docs\gpd.userguide\build.xml
It is obvious that docbook-support directory does not exist in my local repository. It is however expected since get.dependencies target does not create it.
I have noticed another target called get.docbook.support
but when I try to execute it I receive:
get.docbook.support:
[cvs] Caught exception: CreateProcess: cvs -d:pserver:anonymous:@anoncvs.forge.jboss.com:/cvsroot/jboss export -r HEAD docbook-support
error=2
Any hint?
Thank you & regards
Milan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979127#3979127
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979127
19 years, 8 months