[Mono-bugs] [Bug 81460][Nor] New - Spring.Core fails when creating application context.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Apr 26 07:51:51 EDT 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by skolima at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=81460
--- shadow/81460 2007-04-26 07:51:51.000000000 -0400
+++ shadow/81460.tmp.7717 2007-04-26 07:51:51.000000000 -0400
@@ -0,0 +1,118 @@
+Bug#: 81460
+Product: Mono: Class Libraries
+Version: 1.2
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com
+ReportedBy: skolima at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Summary: Spring.Core fails when creating application context.
+
+Description of Problem:
+
+Spring.Core (IOC container, base assembly of Spring framework) fails with a
+null pointer exception when trying to create Context object.
+
+Steps to reproduce the problem:
+1. Compile attached test program.
+2. Run with App.config
+
+Actual Results:
+
+Unhandled Exception: System.Configuration.ConfigurationErrorsException:
+Error instantiating context 'spring.root'. () ()
+ ---> 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.R
+eflection.TargetInvocationException: Exception has been thrown by the
+target of an invocation. ---> System.NullReference
+Exception: Object reference not set to an instance of an object
+ at Mono.Xml.Schema.XmlSchemaValidatingReader.get_Prefix () [0x00000]
+ at System.Xml.XmlDocument.ReadAttributeNode (System.Xml.XmlReader reader)
+[0x00000]
+ at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
+[0x00000]
+ at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x00000]
+ at System.Xml.XmlDocument.Load (System.Xml.XmlReader xmlReader) [0x00000]
+ at
+Spring.Objects.Factory.Xml.XmlObjectDefinitionReader.LoadObjectDefinitions
+(IResource resource) [0x00000]
+ at
+Spring.Context.Support.AbstractXmlApplicationContext.LoadObjectDefinitions
+(Spring.Objects.Factory.Xml.XmlObjectDef
+initionReader objectDefinitionReader) [0x00000]
+ at
+Spring.Context.Support.AbstractXmlApplicationContext.RefreshObjectFactory
+() [0x00000]
+ at Spring.Context.Support.AbstractApplicationContext.Refresh () [0x00000]
+ at Spring.Context.Support.XmlApplicationContext..ctor (System.String
+name, Boolean caseSensitive, IApplicationContext
+parentContext, System.String[] configurationLocations) [0x00000]
+ at Spring.Context.Support.XmlApplicationContext..ctor (System.String
+name, Boolean caseSensitive, System.String[] conf
+igurationLocations) [0x00000]
+ at <0x00000> <unknown method>
+ at (wrapper managed-to-native)
+System.Reflection.MonoCMethod:InternalInvoke (object,object[])
+ at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
+invokeAttr, System.Reflection.Binder binder,
+System.Object[] parameters, System.Globalization.CultureInfo culture)
+[0x00000] --- End of inner exception stack trace -
+--
+
+ at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
+invokeAttr, System.Reflection.Binder binder,
+System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
+ at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr,
+System.Reflection.Binder binder, System.Object[] par
+ameters, System.Globalization.CultureInfo culture) [0x00000]
+ at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters)
+[0x00000]
+ at Spring.Objects.ObjectUtils.InstantiateType
+(System.Reflection.ConstructorInfo constructor, System.Object[] argument
+s) [0x00000] --- End of inner exception stack trace ---
+
+ at Spring.Objects.ObjectUtils.InstantiateType
+(System.Reflection.ConstructorInfo constructor, System.Object[] argument
+s) [0x00000]
+ at
+Spring.Context.Support.ContextHandler+RootContextInstantiator.InvokeContextConstructor
+(System.Reflection.Construct
+orInfo ctor) [0x00000]
+ at
+Spring.Context.Support.ContextHandler+ContextInstantiator.InstantiateContext
+() [0x00000] --- End of inner exceptio
+n stack trace ---
+
+ at
+Spring.Context.Support.ContextHandler+ContextInstantiator.InstantiateContext
+() [0x00000]
+ at Spring.Context.Support.ContextHandler.InstantiateContext
+(IApplicationContext parentContext, System.Object configCo
+ntext, System.String contextName, System.Type contextType, Boolean
+caseSensitive, System.String[] resources) [0x00000]
+ at Spring.Context.Support.ContextHandler.Create (System.Object parent,
+System.Object configContext, System.Xml.XmlNode
+ section) [0x00000]
+
+Expected Results:
+
+console displays "HEllo"
+
+
+How often does this happen?
+
+Always
+
+Additional Information:
+
+happens on WinXP and Gentoo Linux. Fails on mono 1.1.13 (not tested on
+older) up to newest svn.
More information about the mono-bugs
mailing list