[JBoss JIRA] Created: (JBAS-3597) Test error org.jboss.test.jbossmq.test.JBossMQUnitTest::testTopicSelectorChange
by Dimitris Andreadis (JIRA)
Test error org.jboss.test.jbossmq.test.JBossMQUnitTest::testTopicSelectorChange
-------------------------------------------------------------------------------
Key: JBAS-3597
URL: http://jira.jboss.com/jira/browse/JBAS-3597
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public (Everyone can see)
Components: JMS service
Environment: Java Version 1.4.2_09
Java Vendor Sun Microsystems Inc.
Java VM Name Java HotSpot(TM) Client VM
Java VM Version 1.4.2_09-b05
Java VM Info mixed mode
OS Name Linux
OS Version 2.6.9-34.0.2.ELsmp
OS Arch i386
Reporter: Dimitris Andreadis
Fix For: JBossAS-4.0.5.GA
Test org.jboss.test.jbossmq.test.JBossMQUnitTest::testTopicSelectorChange fails with
Error The durable subscription is already in use. DurableSubscription[clientId=DurableSubscriberExample name=test selector=Value = 'A']
javax.jms.IllegalStateException: The durable subscription is already in use. DurableSubscription[clientId=DurableSubscriberExample name=test selector=Value = 'A']
at org.jboss.mq.server.JMSTopic.addSubscriber(JMSTopic.java:92)
at org.jboss.mq.server.ClientConsumer.addSubscription(ClientConsumer.java:142)
at org.jboss.mq.server.JMSDestinationManager.subscribe(JMSDestinationManager.java:541)
at org.jboss.mq.server.JMSServerInterceptorSupport.subscribe(JMSServerInterceptorSupport.java:312)
at org.jboss.mq.security.ServerSecurityInterceptor.subscribe(ServerSecurityInterceptor.java:157)
at org.jboss.mq.server.TracingInterceptor.subscribe(TracingInterceptor.java:784)
at org.jboss.mq.server.JMSServerInvoker.subscribe(JMSServerInvoker.java:312)
at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:182)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:396)
at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:392)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
at java.lang.Thread.run(Thread.java:534)
For
MatrixTestContainer(jms_4_0_4_GA)
MatrixTestContainer(jms_4_0_x)
--
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
19 years, 3 months
[JBoss JIRA] Created: (JBAS-3612) failing org.jboss.test.compatibility.test.SerialVersionUIDUnitTestCase
by Dimitris Andreadis (JIRA)
failing org.jboss.test.compatibility.test.SerialVersionUIDUnitTestCase
----------------------------------------------------------------------
Key: JBAS-3612
URL: http://jira.jboss.com/jira/browse/JBAS-3612
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public (Everyone can see)
Components: Test Suite
Reporter: Dimitris Andreadis
Fix For: JBossAS-4.0.5.GA
test402Compatibility Failure
Failures on SerialVersionComparisson:org.jboss.aspects.versioned.StateManager, org.jboss.console.manager.PluginManager$1, org.jboss.console.manager.interfaces.impl.GraphMBeanAttributeAction$MBeanXYDataset, org.jboss.console.plugins.helpers.BasePluginWrapper, org.jboss.console.plugins.helpers.servlet.TabTag, org.jboss.console.remote.InvokerServlet, org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor, org.jboss.invocation.iiop.IIOPInvoker$PersistentServantLocator, org.jboss.invocation.iiop.IIOPInvoker$TransientServantLocator, org.jboss.invocation.jrmp.server.JRMPInvoker, org.jboss.proxy.ClientContainerEx, org.jboss.proxy.ejb.DynamicIIOPStub, org.jboss.proxy.ejb.HomeHandleImplIIOP, org.jboss.tm.iiop._CoordinatorExtStub, org.jboss.tm.iiop._TransactionFactoryExtStub, org.jboss.tm.iiop._TransactionServiceStub
junit.framework.AssertionFailedError: Failures on SerialVersionComparisson:org.jboss.aspects.versioned.StateManager,
org.jboss.console.manager.PluginManager$1,
org.jboss.console.manager.interfaces.impl.GraphMBeanAttributeAction$MBeanXYDataset,
org.jboss.console.plugins.helpers.BasePluginWrapper,
org.jboss.console.plugins.helpers.servlet.TabTag,
org.jboss.console.remote.InvokerServlet,
org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor,
org.jboss.invocation.iiop.IIOPInvoker$PersistentServantLocator,
org.jboss.invocation.iiop.IIOPInvoker$TransientServantLocator,
org.jboss.invocation.jrmp.server.JRMPInvoker,
org.jboss.proxy.ClientContainerEx,
org.jboss.proxy.ejb.DynamicIIOPStub,
org.jboss.proxy.ejb.HomeHandleImplIIOP,
org.jboss.tm.iiop._CoordinatorExtStub,
org.jboss.tm.iiop._TransactionFactoryExtStub,
org.jboss.tm.iiop._TransactionServiceStub
at org.jboss.test.compatibility.test.SerialVersionUIDUnitTestCase.test402Compatibility(SerialVersionUIDUnitTestCase.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
test401Compatibility Failure Failures on SerialVersionComparisson:javax.management.loading.MLet, org.jboss.aspects.versioned.StateManager, org.jboss.console.manager.PluginManager$1, org.jboss.console.manager.interfaces.impl.GraphMBeanAttributeAction$MBeanXYDataset, org.jboss.console.plugins.helpers.BasePluginWrapper, org.jboss.console.plugins.helpers.servlet.TabTag, org.jboss.console.remote.InvokerServlet, org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor, org.jboss.invocation.iiop.IIOPInvoker$PersistentServantLocator, org.jboss.invocation.iiop.IIOPInvoker$TransientServantLocator, org.jboss.invocation.jrmp.server.JRMPInvoker, org.jboss.monitor.alarm.AlarmNotification, org.jboss.monitor.alarm.AlarmTableNotification, org.jboss.proxy.ejb.DynamicIIOPStub, org.jboss.proxy.ejb.HomeHandleImplIIOP, org.jboss.tm.iiop._CoordinatorExtStub, org.jboss.tm.iiop._TransactionFactoryExtStub, org.jboss.tm.iiop._TransactionServiceStub
junit.framework.AssertionFailedError: Failures on SerialVersionComparisson:javax.management.loading.MLet,
org.jboss.aspects.versioned.StateManager,
org.jboss.console.manager.PluginManager$1,
org.jboss.console.manager.interfaces.impl.GraphMBeanAttributeAction$MBeanXYDataset,
org.jboss.console.plugins.helpers.BasePluginWrapper,
org.jboss.console.plugins.helpers.servlet.TabTag,
org.jboss.console.remote.InvokerServlet,
org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor,
org.jboss.invocation.iiop.IIOPInvoker$PersistentServantLocator,
org.jboss.invocation.iiop.IIOPInvoker$TransientServantLocator,
org.jboss.invocation.jrmp.server.JRMPInvoker,
org.jboss.monitor.alarm.AlarmNotification,
org.jboss.monitor.alarm.AlarmTableNotification,
org.jboss.proxy.ejb.DynamicIIOPStub,
org.jboss.proxy.ejb.HomeHandleImplIIOP,
org.jboss.tm.iiop._CoordinatorExtStub,
org.jboss.tm.iiop._TransactionFactoryExtStub,
org.jboss.tm.iiop._TransactionServiceStub
--
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
19 years, 3 months
[JBoss JIRA] Created: (JBCACHE-938) OptimisticNodeInterceptor may NPE if node cannot be created
by Elias Ross (JIRA)
OptimisticNodeInterceptor may NPE if node cannot be created
-----------------------------------------------------------
Key: JBCACHE-938
URL: http://jira.jboss.com/jira/browse/JBCACHE-938
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Elias Ross
Assigned To: Manik Surtani
...
else
{
// "fail-more-silently" patch thanks to Owen Taylor - JBCACHE-767
if ((ctx.getOptionOverrides() == null || !ctx.getOptionOverrides().isFailSilently()) && MethodDeclarations.isPutMethod(m.getMethodId()))
{
throw new CacheException("Unable to set node version for " + getFqn(args) + ", node is null.");
}
/* [1] */
}
switch (m.getMethodId())
{
case MethodDeclarations.putDataMethodLocal_id:
Boolean erase = (Boolean) args[3];
cache.getNotifier().notifyNodeModified(fqn, true, CacheListener.ModificationType.PUT_MAP, workspaceNode == null ? null : workspaceNode.getData() , false);
putDataMap((Map<Object, Object>) args[2], erase, workspace, workspaceNode);
cache.getNotifier().notifyNodeModified(fqn, false, CacheListener.ModificationType.PUT_MAP, workspaceNode.getData(), false);
// ^^^ NPE on workspaceNode.getData()
break;
...
If the node fails to be created or located, the "workspaceNode" variable may be null.
The first "? :" check checks for a null condition.
The second does not.
I don't believe notification should take place if there is no workspaceNode to modify.
The solution might be to have notifyNodeModified() take a Node and not a Map. Then, this method code check for the null case.
Though, I think in general, it's bad to have the code try and handle this edge case, as most maintainers might not expect workspaceNode to be null during the manipulation steps. Perhaps an ELSE statement could be put in [1] to abort this method gracefully?
--
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
19 years, 3 months