Skip to content

{"Error creating context 'spring.root': At least one object must implement IComparable."} #124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ratheeshpkr opened this issue Oct 31, 2015 · 6 comments

Comments

@ratheeshpkr
Copy link

I am getting below error if i include two spring configuration xml file with PropertyPlaceholderConfigurer. This is happening after migrating from spring 1.3.2 to 2.0.1

<object type="Spring.Objects.Factory.Config.PropertyPlaceholderConfigurer, Spring.Core"> <property name="ConfigSections" value="databaseSettings"/> </object>

{"Error creating context 'spring.root': At least one object must implement IComparable."}
InnerException : {"Errored while postprocessing an object factory."}
InnerException : {"Failed to compare two elements in the array."}
Stack trace : at Spring.Objects.Factory.Config.PropertyResourceConfigurer.PostProcessObjectFactory(IConfigurableListableObjectFactory factory)
at Spring.Context.Support.AbstractApplicationContext.InvokeObjectFactoryPostProcessors(IList objectFactoryPostProcessors, IConfigurableListableObjectFactory objectFactory)
at Spring.Context.Support.AbstractApplicationContext.InvokeObjectFactoryPostProcessors(IConfigurableListableObjectFactory objectFactory)
at Spring.Context.Support.AbstractApplicationContext.Refresh()
at Spring.Context.Support.XmlApplicationContext..ctor(XmlApplicationContextArgs args)
at Spring.Context.Support.XmlApplicationContext..ctor(String name, Boolean caseSensitive, String[] configurationLocations)
at _dynamic_Spring.Context.Support.XmlApplicationContext..ctor(Object[] )
at Spring.Reflection.Dynamic.SafeConstructor.Invoke(Object[] arguments)
at Spring.Context.Support.ContextHandler.RootContextInstantiator.InvokeContextConstructor(ConstructorInfo ctor)
at Spring.Context.Support.ContextHandler.ContextInstantiator.InstantiateContext()
at Spring.Context.Support.ContextHandler.InstantiateContext(IApplicationContext parentContext, Object configContext, String contextName, Type contextType, Boolean caseSensitive, IList`1 resources)
at Spring.Context.Support.ContextHandler.Create(Object parent, Object configContext, XmlNode section)

@thorstenbaek
Copy link
Contributor

We have the same issue.
See our pull request: Multiple PropertyPlaceholderConfigurers fail in AbstractObjectFactory #120

@sbohlen
Copy link
Contributor

sbohlen commented Nov 2, 2015

I'll take a look @ the PR later this week.

-Steve B.

-----Original Message-----
From: "Thor Stenbæk" notifications@github.com
Sent: ‎11/‎2/‎2015 7:49 AM
To: "spring-projects/spring-net" spring-net@noreply.github.com
Subject: Re: [spring-net] {"Error creating context 'spring.root': At least oneobject must implement IComparable."} (#124)

We have the same issue.
See our pull request: Multiple PropertyPlaceholderConfigurers fail in AbstractObjectFactory #120

Reply to this email directly or view it on GitHub.

@ratheeshpkr
Copy link
Author

thanks @thorstenbaek. That solved the problem, but hope there will be an official release with this fix.

@thorstenbaek
Copy link
Contributor

@sbohlen, did you look into this PR? When can we expect an official release with this fix?

@sbohlen
Copy link
Contributor

sbohlen commented Nov 13, 2015

Hopefully this weekend. The system on which I'd had the build/test env for this project set up experienced a HD failure and so I've got to rebuild it (along w all the requisite Visual Studio, etc. installs) to return to a fully working state first.

-Steve B.

-----Original Message-----
From: "Thor Stenbæk" notifications@github.com
Sent: ‎11/‎13/‎2015 6:05 AM
To: "spring-projects/spring-net" spring-net@noreply.github.com
Cc: "Steve Bohlen" sbohlen@gmail.com
Subject: Re: [spring-net] {"Error creating context 'spring.root': At least oneobject must implement IComparable."} (#124)

@sbohlen, did you look into this PR? When can we expect an official release with this fix?

Reply to this email directly or view it on GitHub.

@sbohlen
Copy link
Contributor

sbohlen commented Nov 22, 2015

Fixed in #120

@sbohlen sbohlen closed this as completed Nov 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants