[JBoss JIRA] Created: (JBMICROCONT-289) aopBeanFactoryType in schema needs to duplicate the elements from abstractBeanfactoryType rather than using xsd:extension
by Kabir Khan (JIRA)
aopBeanFactoryType in schema needs to duplicate the elements from abstractBeanfactoryType rather than using xsd:extension
-------------------------------------------------------------------------------------------------------------------------
Key: JBMICROCONT-289
URL: http://jira.jboss.com/jira/browse/JBMICROCONT-289
Project: JBoss MicroContainer
Issue Type: Bug
Components: AOP
Affects Versions: JBossMC.2.0.0.Beta13
Reporter: Kabir Khan
Fix For: JBossMC.2.0.0.CR1
aspectOrInterceptorType extends
org.jboss.xb.binding.JBossXBRuntimeException: -1:-1 384:53 cos-ct-extends.1.4.3.2.2.1.b: The content type of a derived type and that of its base must both be mixed or both be element-only. Type 'aspectOrInterceptorType' is mixed, but its base type is not.
at org.jboss.xb.binding.sunday.unmarshalling.XsdBinderTerminatingErrorHandler.handleError(XsdBinderTerminatingErrorHandler.java:40)
at org.apache.xerces.impl.xs.XMLSchemaLoader.reportDOMFatalError(Unknown Source)
at org.apache.xerces.impl.xs.XSLoaderImpl.load(Unknown Source)
at org.jboss.xb.binding.Util.loadSchema(Util.java:395)
at org.jboss.test.microcontainer.validateschema.test.ValidateAOPSchemaTestCase.testSchemaIsValid(ValidateAOPSchemaTestCase.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
--
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
18 years, 2 months
[JBoss JIRA] Created: (JGRP-704) Configurator.startProtocolStack() throws NPE if cluster_name is null
by Brian Stansberry (JIRA)
Configurator.startProtocolStack() throws NPE if cluster_name is null
--------------------------------------------------------------------
Key: JGRP-704
URL: http://jira.jboss.com/jira/browse/JGRP-704
Project: JGroups
Issue Type: Bug
Affects Versions: 2.6.2
Reporter: Brian Stansberry
Assigned To: Bela Ban
Priority: Minor
Tries to pass the null to ConcurrentMap.keySet().contains(), which throws NPE:
2008-02-28 17:43:06,098 ERROR [org.jboss.messaging.util.ExceptionUtil] org.jboss.messaging.core.jmx.MessagingPostOfficeService@1a0d916 startService
org.jgroups.ChannelException: failed to start protocol stack
at org.jgroups.JChannel.startStack(JChannel.java:1440)
at org.jgroups.JChannel.connect(JChannel.java:362)
at org.jboss.messaging.core.impl.postoffice.GroupMember.start(GroupMember.java:142)
....
Caused by: java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:157)
at java.util.concurrent.ConcurrentHashMap.containsKey(ConcurrentHashMap.java:745)
at java.util.concurrent.ConcurrentHashMap$KeySet.contains(ConcurrentHashMap.java:1215)
at org.jgroups.stack.Configurator.startProtocolStack(Configurator.java:85)
at org.jgroups.stack.ProtocolStack.startStack(ProtocolStack.java:341)
at org.jgroups.JChannel.startStack(JChannel.java:1437)
... 59 more
In JChannel.startStack(String cluster_name) there's this which implies a null cluster_name is meant to work:
if(cluster_name == null) {
if(log.isDebugEnabled()) log.debug("cluster_name is null, assuming unicast channel");
}
If it isn't meant to work any longer, then an IllegalArgumentException is better than NPE.
--
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
18 years, 2 months