Error while using EmbeddedServer in 8.5
rakeshsagar Oct 2, 2013 9:13 AMHi all,
We are migrating from Teiid8.1 to Teiid 8.5.
We have some test cases based on the Embedded Server which works fine in 8.1 but gives the followin error in Teiid 8.5 and the test case fails.
Domain already registered org.infinispan when trying to register: type=CacheManager,name="DefaultCacheManager"
[JmxUtil] - ISPN000034: There's already an cache manager instance registered under 'org.infinispan' JMX domain. If you want to allow multiple instances configured with same JMX domain enable 'allowDuplicateDomains' attribute in 'globalJmxStatistics' config element.
Can you please suggest on how to fix this problem.
Also, I have another test case which throws NullPointerException in Teiid code. Attached is the test case and following is the stacktrace.
Also the addDataType of MetadataFactory id depreciated. What is the equivalent method. I am suspecting the addDataType() is the causing the issue.
java.lang.NullPointerException
at java.lang.String$CaseInsensitiveComparator.compare(String.java:1227)
at java.lang.String$CaseInsensitiveComparator.compare(String.java:1221)
at java.util.TreeMap.compare(TreeMap.java:1188)
at java.util.TreeMap.put(TreeMap.java:531)
at org.teiid.metadata.MetadataStore.addDatatype(MetadataStore.java:96)
at org.teiid.metadata.MetadataStore.addDataTypes(MetadataStore.java:89)
at org.teiid.metadata.MetadataFactory.mergeInto(MetadataFactory.java:551)
at org.teiid.metadata.MetadataFactory.asMetadataStore(MetadataFactory.java:560)
at com.ca.chorus.data.com.translator.DatacomExecutionFactoryTests.getMetadata(DatacomExecutionFactoryTests.java:44)
at com.ca.chorus.data.com.translator.DatacomExecutionFactoryTests.eliminatesRTrimFunctionCall(DatacomExecutionFactoryTests.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)