[infinispan-dev] Configuration XSD missing, Infinispan not parsing v.6 configuration files ?

Sanne Grinovero sanne at infinispan.org
Wed May 14 11:16:12 EDT 2014


On 14 May 2014 14:00, Pedro Ruivo <pedro at infinispan.org> wrote:
> Hi Sanne,
>
> I have added the 7.0 schemas to infinispan.org/schemas.

Thanks!

>
> About the 6.0 parsing, yes I think it was supposed to be not parsed :P I
> think I saw some warning about this change but I can't find it (so maybe
> I was dreaming). So, agree with you. we need an upgrade guide (however,
> the documentation already uses the new style)

Yes the docs are very nice. I guess my problem is just that it's an
unexpected issue; I somehow guess it from the stacktrace but I don't
think everyone will be as familiar with the kind of error message.
I'll open an issue to improve the error; if ever someone will
volunteer to also write a couple of lines on how to migrate, we could
link the page from the error message.

>
> Cheers,
> Pedro
>
> On 05/14/2014 01:32 PM, Sanne Grinovero wrote:
>> On 14 May 2014 09:58, Pedro Ruivo <pedro at infinispan.org> wrote:
>>> yes, the release process put the schema here:
>>> http://docs.jboss.org/infinispan/schemas/
>>
>> Thanks, I'll use that. But shouldn't we have it at the URL I posted too??
>>
>> And is it really expected that we don't parse old-style configuration files?
>> That's quite annoying for users. If it's the intended plan, I'm not
>> against it but we'd need some clear warning and also some guidance for
>> an upgrade.
>> (BTW great job on the documentation updates)
>>
>> Cheers,
>> Sanne
>>
>>>
>>> Pedro
>>>
>>> On 05/14/2014 07:50 AM, Tristan Tarrant wrote:
>>>> Isn't the deployment of XSDs part of the release process ?
>>>>
>>>> Tristan
>>>>
>>>> On 14/05/2014 01:36, Sanne Grinovero wrote:
>>>>> The testing configuration files seem to point to this URL:
>>>>> http://www.infinispan.org/schemas/infinispan-config-7.0.xsd
>>>>>
>>>>> But I'm getting a 404 when attempting to find it.
>>>>>
>>>>> It would be very helpfull to make this available, as it seems
>>>>> Infinispan 7.0.0.Alpha4 is unable to read the old configuration format
>>>>> :-(
>>>>>
>>>>> Is that expected?
>>>>>
>>>>> Message: Unexpected element '{urn:infinispan:config:6.0}infinispan'
>>>>> at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:100)
>>>>> at org.infinispan.test.fwk.TestCacheManagerFactory.fromStream(TestCacheManagerFactory.java:106)
>>>>> at org.infinispan.test.fwk.TestCacheManagerFactory.fromXml(TestCacheManagerFactory.java:97)
>>>>> at org.infinispan.test.fwk.TestCacheManagerFactory.fromXml(TestCacheManagerFactory.java:91)
>>>>> at org.infinispan.manager.CacheManagerXmlConfigurationTest.testBatchingIsEnabled(CacheManagerXmlConfigurationTest.java:126)
>>>>> 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:606)
>>>>> at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>>>>> at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
>>>>> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
>>>>> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
>>>>> at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
>>>>> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
>>>>> at org.testng.TestRunner.privateRun(TestRunner.java:767)
>>>>> at org.testng.TestRunner.run(TestRunner.java:617)
>>>>> at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
>>>>> at org.testng.SuiteRunner.access$000(SuiteRunner.java:37)
>>>>> at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:368)
>>>>> at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
>>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>> at java.lang.Thread.run(Thread.java:744)
>>>>> Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[5,41]
>>>>> Message: Unexpected element '{urn:infinispan:config:6.0}infinispan'
>>>>> at org.infinispan.configuration.parsing.ParserRegistry.parseElement(ParserRegistry.java:137)
>>>>> at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:121)
>>>>> at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:108)
>>>>> at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:95)
>>>>> ... 24 more
>>>>> _______________________________________________
>>>>> infinispan-dev mailing list
>>>>> infinispan-dev at lists.jboss.org
>>>>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>>>>>
>>>>
>>>> _______________________________________________
>>>> infinispan-dev mailing list
>>>> infinispan-dev at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>>>>
>>> _______________________________________________
>>> infinispan-dev mailing list
>>> infinispan-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev


More information about the infinispan-dev mailing list