[JBoss JIRA] Created: (JBESB-406) Race condition for threaded managed lifecycles
by Kevin Conner (JIRA)
Race condition for threaded managed lifecycles
----------------------------------------------
Key: JBESB-406
URL: http://jira.jboss.com/jira/browse/JBESB-406
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.0
Reporter: Kevin Conner
Assigned To: Kevin Conner
Fix For: 4.0 Maintenance Pack 1
There is race condition in the AbstractThreadedManagedLifecycle class between the original thread and the background thread.
The background thread must wait until the lifecycle state has transitioned out of the STARTING state before continuing. At present the background thread ignores this and attempts to transition into the RUNNING state as soon as it starts.
This transition could fail resulting in the background thread terminating.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 4 months
[JBoss JIRA] Deleted: (JBAS-3989) failing org.jboss.test.txiiop.test.IIOPUserTransactionStressTestCase
by Dimitris Andreadis (JIRA)
[ http://jira.jboss.com/jira/browse/JBAS-3989?page=all ]
Dimitris Andreadis deleted JBAS-3989:
-------------------------------------
> failing org.jboss.test.txiiop.test.IIOPUserTransactionStressTestCase
> --------------------------------------------------------------------
>
> Key: JBAS-3989
> URL: http://jira.jboss.com/jira/browse/JBAS-3989
> Project: JBoss Application Server
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Environment: Java Version 1.5.0_05
> Java Vendor Sun Microsystems Inc.
> Java VM Name Java HotSpot(TM) Server VM
> Java VM Version 1.5.0_05-b05
> Java VM Info mixed mode
> OS Name Linux
> OS Version 2.6.9-42.0.2.ELsmp
> OS Arch i386
> Reporter: Dimitris Andreadis
> Assigned To: Francisco Reverbel
>
> testUserTx Error N/A
> java.lang.IllegalStateException
> at org.jboss.tm.iiop.client.IIOPClientUserTransaction.commit(IIOPClientUserTransaction.java:315)
> at org.jboss.test.txiiop.test.IIOPUserTransactionStressTestCase.testUserTx(IIOPUserTransactionStressTestCase.java:72)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
> at junit.extensions.TestSetup.run(TestSetup.java:23)
> Caused by: org.omg.CosTransactions.NoTransaction: IDL:omg.org/CosTransactions/NoTransaction:1.0
> at org.jboss.tm.iiop.client.IIOPClientUserTransaction.getThreadLocalTerminator(IIOPClientUserTransaction.java:164)
> at org.jboss.tm.iiop.client.IIOPClientUserTransaction.commit(IIOPClientUserTransaction.java:310)
> ... 22 more
> testTxMandatory Error CORBA TRANSACTION_REQUIRED 0 No; nested exception is: org.omg.CORBA.TRANSACTION_REQUIRED: Server-side Exception: javax.transaction.TransactionRequiredException: Transaction Required vmcid: 0x0 minor code: 0 completed: No
> javax.transaction.TransactionRequiredException: CORBA TRANSACTION_REQUIRED 0 No; nested exception is:
> org.omg.CORBA.TRANSACTION_REQUIRED: Server-side Exception: javax.transaction.TransactionRequiredException: Transaction Required vmcid: 0x0 minor code: 0 completed: No
> at com.sun.corba.se.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:203)
> at javax.rmi.CORBA.Util.mapSystemException(Util.java:67)
> at org.jboss.proxy.ejb.DynamicIIOPStub.invoke(DynamicIIOPStub.java:150)
> at org.jboss.test.txiiop.interfaces._StatefulSession_Stub.txMandatoryMethod(Unknown Source)
> at org.jboss.test.txiiop.test.IIOPUserTransactionStressTestCase.testTxMandatory(IIOPUserTransactionStressTestCase.java:114)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
> at junit.extensions.TestSetup.run(TestSetup.java:23)
> Caused by: org.omg.CORBA.TRANSACTION_REQUIRED: Server-side Exception: javax.transaction.TransactionRequiredException: Transaction Required vmcid: 0x0 minor code: 0 completed: No
> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> at org.jacorb.orb.SystemExceptionHelper.read(SystemExceptionHelper.java:173)
> at org.jacorb.orb.ReplyReceiver.getReply(ReplyReceiver.java:325)
> at org.jacorb.orb.Delegate.invoke_internal(Delegate.java:967)
> at org.jacorb.orb.Delegate.invoke(Delegate.java:868)
> at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
> at org.jboss.proxy.ejb.DynamicIIOPStub.invoke(DynamicIIOPStub.java:125)
> ... 23 more
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 4 months
[JBoss JIRA] Created: (JBAS-4063) Remove EVENT_TRACE from cluster module
by Brian Stansberry (JIRA)
Remove EVENT_TRACE from cluster module
--------------------------------------
Key: JBAS-4063
URL: http://jira.jboss.com/jira/browse/JBAS-4063
Project: JBoss Application Server
Issue Type: Task
Security Level: Public (Everyone can see)
Components: Clustering
Reporter: Brian Stansberry
Assigned To: Brian Stansberry
Priority: Minor
Fix For: JBossAS-5.0.0.Beta2
Class org.javagroups.protocols.EventTrace is a utlility JGroups protocol in the AS cluster module source tree. It won't compile if JG 2.5 is used, and if the non-conforming bits are left it won't work properly with 2.4.x. I'm unaware of anyone using it, so I'm going to remove it.
If the functionality is still desired, the protocol should be added to the JGroups src tree.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 4 months
[JBoss JIRA] Created: (JBPORTAL-1232) Portlet instances could not be created
by Ryszard Kozmik (JIRA)
Portlet instances could not be created
--------------------------------------
Key: JBPORTAL-1232
URL: http://jira.jboss.com/jira/browse/JBPORTAL-1232
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Portal Core
Affects Versions: 2.6.Alpha1, 2.6.Alpha2
Environment: AS 4.0.5
JBoss Portal 2.6Alpha1 and Alpha2
Reporter: Ryszard Kozmik
Assigned To: Julien Viet
Fix For: 2.6.Beta1
Below is part of AS starting log while deploying JBoss Portal 2.6Alpha2.
01:05:48,173 WARN [InstanceMetaData] The instance PolicyConfiguratorPortletInstance will not be created because the component referenced is outside of the same web app portal.PolicyConfiguratorPortlet
01:05:48,173 WARN [InstanceMetaData] The instance DefaultCMSPortletInstance will not be created because the component referenced is outside of the same web app portal.CMSPortlet
01:05:48,173 WARN [InstanceMetaData] The instance CMSAdminPortletInstance will not be created because the component referenced is outside of the same web app portal.CMSAdminPortlet
01:05:48,173 WARN [InstanceMetaData] The instance ManagementPortletInstance will not be created because the component referenced is outside of the same web app portal.ManagementPortlet
01:05:48,173 WARN [InstanceMetaData] The instance NavigationPortletInstance will not be created because the component referenced is outside of the same web app portal.NavigationPortlet
01:05:48,173 WARN [InstanceMetaData] The instance UserPortletInstance will not be created because the component referenced is outside of the same web app portal.UserPortlet
01:05:48,173 WARN [InstanceMetaData] The instance RolePortletInstance will not be created because the component referenced is outside of the same web app portal.RolePortlet
01:05:48,173 WARN [InstanceMetaData] The instance CatalogPortletInstance will not be created because the component referenced is outside of the same web app portal.CatalogPortlet
01:05:48,173 WARN [InstanceMetaData] The instance ThemePortletInstance will not be created because the component referenced is outside of the same web app portal.ThemeManager
01:05:48,173 WARN [InstanceMetaData] The instance ThemeSelectorInstance will not be created because the component referenced is outside of the same web app portal.ThemeSelectorPortlet
01:05:48,184 ERROR [PortletAppDeployment] Error when creating instances
java.lang.ClassCastException: org.jboss.portal.core.deployment.jboss.PortletAppDeployment$InstanceMetaDataContext
at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.buildInstances(PortletAppDeployment.java:244)
at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:99)
at org.jboss.portal.server.deployment.jboss.DeploymentContext.start(DeploymentContext.java:99)
at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfoContext.start(PortalDeploymentInfoContext.java:210)
at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:217)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(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 $Proxy156.deploy(Lorg.jboss.deployment.DeploymentInfo;)V(Unknown Source)
at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(ServerDeployer.java:259)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(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)
All you have to do to achieve such an impressive failure of instances is place in your AS deployment directory an app with some old default-object.xml(in my case it was like that) in WEB-INF directory. I had default-object.xml there by mistake but still whatever I had in my ear I shouldn't be able to cause Portal's portlet instances to fail.
After looking into sources I noticed that in line 445 "extends InstanceMetaData" is missing. When I ran AS with this change code moved a bit further but still there are problems:
01:29:41,074 ERROR [PortletAppDeployment] Error when creating instances
java.lang.NullPointerException
at org.apache.xml.serializer.TreeWalker.dispatachChars(TreeWalker.java:244)
at org.apache.xml.serializer.TreeWalker.startNode(TreeWalker.java:414)
at org.apache.xml.serializer.TreeWalker.traverse(TreeWalker.java:143)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:389)
at org.jboss.portal.common.util.XML.toString(XML.java:173)
at org.jboss.portal.common.util.XML.toString(XML.java:137)
at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.buildInstances(PortletAppDeployment.java:252)
at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:99)
at org.jboss.portal.server.deployment.jboss.DeploymentContext.start(DeploymentContext.java:99)
at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfoContext.start(PortalDeploymentInfoContext.java:210)
at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:217)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(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 $Proxy156.deploy(Lorg.jboss.deployment.DeploymentInfo;)V(Unknown Source)
at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(ServerDeployer.java:259)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 4 months