Hi,
I'd like to know whether the latest CVS version is supposed to work.
Since I was getting some weird XmlSchemaExceptions, I wanted to test the bin/1.1 version from the latest snapshot. I tried the MovieLister example and get : (using Mono)
samokk@samlaptop:/tmp/Spring.Examples.MovieFinder/bin/Debug $ ./MovieFinder.exe 2006-02-23 01:10:23,180 [935102784] ERROR Spring.Examples.MovieFinder.MovieApp - Movie Finder is broken.
System.Configuration.ConfigurationException: Error instantiating context. () ---> Spring.Objects.FatalObjectException: Cannot instantiate Type [Spring.Context.Support.XmlApplicationContext] using ctor [Void .ctor(String, Boolean, String[])] : 'Exception has been thrown by the target of an invocation.' ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: An exception was thrown by the type initializer for Spring.Objects.Factory.Xml.XmlParserRegistry ---> System.Xml.Schema.XmlSchemaException: XmlSchema error: Referenced schema type http://www.springframework.net:nonNullString was not found in the corresponding schema. Related schema item SourceUri: , Line 40, Position 10.
in <0x00097> System.Xml.Schema.ValidationHandler:RaiseValidatio nEvent (System.Xml.Schema.ValidationEventHandler handle, System.Exception innerException, System.String message, System.Xml.Schema.XmlSchemaObject xsobj, System.Object sender, System.String sourceUri, XmlSeverityType severity)
in <0x0001a> System.Xml.Schema.XmlSchemaObject:error (System.Xml.Schema.ValidationEventHandler handle, System.String message, System.Exception innerException, System.Xml.Schema.XmlSchemaObject xsobj, System.Object sender)
in <0x00022> System.Xml.Schema.XmlSchemaObject:error (System.Xml.Schema.ValidationEventHandler handle, System.String message)
in <0x002c6> System.Xml.Schema.XmlSchemaAttribute:Validate (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema)
in <0x005ba> System.Xml.Schema.XmlSchemaUtil:ValidateAttributes Resolved (System.Xml.Schema.XmlSchemaObjectTable attributesResolved, System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema, System.Xml.Schema.XmlSchemaObjectCollection attributes, System.Xml.Schema.XmlSchemaAnyAttribute anyAttribute, System.Xml.Schema.XmlSchemaAnyAttribute anyAttributeUse, System.Xml.Schema.XmlSchemaAttributeGroup redefined, Boolean skipEquivalent)
in <0x00053> System.Xml.Schema.XmlSchemaComplexType:ValidateImm ediateAttributes (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema)in <0x000eb> System.Xml.Schema.XmlSchemaComplexType:Validate (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema)
in <0x001ae> System.Xml.Schema.XmlSchemaElement:Validate (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema)
in <0x000c9> System.Xml.Schema.XmlSchemaSequence:Validate (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema)
in <0x00027> System.Xml.Schema.XmlSchemaComplexType:ValidateImm ediateParticle (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema)
in <0x000de> System.Xml.Schema.XmlSchemaComplexType:Validate (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema)
in <0x0059c> System.Xml.Schema.XmlSchema:Validate (System.Xml.Schema.ValidationEventHandler handler)
in <0x01fe0> System.Xml.Schema.XmlSchema:Compile (System.Xml.Schema.ValidationEventHandler handler, System.Collections.Stack schemaLocationStack, System.Xml.Schema.XmlSchema rootSchema, System.Xml.Schema.XmlSchemaSet col, System.Xml.XmlResolver resolver)
in <0x0003b> System.Xml.Schema.XmlSchema:Compile (System.Xml.Schema.ValidationEventHandler handler, System.Xml.Schema.XmlSchemaSet col, System.Xml.XmlResolver resolver)
in <0x00043> System.Xml.Schema.XmlSchemaCollection:Add (System.String ns, System.Xml.XmlReader reader, System.Xml.XmlResolver resolver)
in <0x00033> System.Xml.Schema.XmlSchemaCollection:Add (System.String ns, System.Xml.XmlReader reader)
in <0x0012a> Spring.Objects.Factory.Xml.XmlParserRegistry:Regis terParser (System.String namespaceUri, IXmlObjectDefinitionParser parser, System.String schemaLocation)
in <0x00089> Spring.Objects.Factory.Xml.XmlParserRegistry:.ctor ()
in <0x00016> Spring.Objects.Factory.Xml.XmlParserRegistry:.ccto r ()--- End of inner exception stack trace ---
in <0x00000> <unknown method>
in <0x0010d> Spring.Objects.Factory.Xml.XmlObjectDefinitionRead er:LoadObjectDefinitions (IResource resource)
in <0x00065> Spring.Context.Support.AbstractXmlApplicationConte xt:LoadObjectDefinitions (Spring.Objects.Factory.Xml.XmlObjectDefinitionRea der objectDefinitionReader)
in <0x0005f> Spring.Context.Support.AbstractXmlApplicationConte xt:RefreshObjectFactory ()
in <0x000e6> Spring.Context.Support.AbstractApplicationContext: Refresh ()
in <0x0002a> Spring.Context.Support.XmlApplicationContext:.ctor (System.String name, Boolean caseSensitive, IApplicationContext parentContext, System.String[] configurationLocations)
in <0x00017> Spring.Context.Support.XmlApplicationContext:.ctor (System.String name, Boolean caseSensitive, System.String[] configurationLocations)
in <0x00000> <unknown method>
in (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[])
in <0x0008d> System.Reflection.MonoCMethod:Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)--- End of inner exception stack trace ---
in <0x0010e> System.Reflection.MonoCMethod:Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
in <0x0001c> System.Reflection.MonoCMethod:Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
in <0x00035> System.Reflection.ConstructorInfo:Invoke (System.Object[] parameters)
in <0x00037> Spring.Objects.ObjectUtils:InstantiateType (System.Reflection.ConstructorInfo constructor, System.Object[] arguments)--- End of inner exception stack trace ---
in <0x00106> Spring.Objects.ObjectUtils:InstantiateType (System.Reflection.ConstructorInfo constructor, System.Object[] arguments)
in <0x0009e> Spring.Context.Support.ContextHandler+RootContextI nstantiator:InvokeContextConstructor (System.Reflection.ConstructorInfo ctor)
in <0x0003c> Spring.Context.Support.ContextHandler+ContextInsta ntiator:InstantiateContext ()--- End of inner exception stack trace ---
in <0x0007f> Spring.Context.Support.ContextHandler+ContextInsta ntiator:InstantiateContext ()
in <0x002a8> Spring.Context.Support.ContextHandler:Create (System.Object parent, System.Object configContext, System.Xml.XmlNode section)
Has anyone any idea ?
Regards,
Sami Dalouche