Results 1 to 5 of 5

Thread: Field not found: 'DefaultXmlObjectDefinitionParser.log'

  1. #1
    Join Date
    Dec 2006
    Posts
    1

    Default Field not found: 'DefaultXmlObjectDefinitionParser.log'

    Hi,

    I am trying to use the Spring Hibernate module within a Web application.
    I am using the latest nightly build of the Spring.Data.NHibernate ( NHibernate-20061128-0224 ). There appeared to be no example web application in the build so I constructed one based on the SpringAir Spring.NET 1.1 Preview 3 and Spring.Northwind examples ( replacing Spring ADO types with the equivilent Spring NHibernate base classes etc )

    I am referencing the core assemblies ( Spring.Core, Spring.Web etc ) from NHibernate-20061128-0224 ( not Preview 3 ).

    I get the following exception.

    Field not found:'Spring.Objects.Factory.Xml.DefaultXmlObject DefinitionParser.log'

    the full stack trace is below

    -------------------------------------------------------------
    Code:
    [MissingFieldException: Field not found: 'Spring.Objects.Factory.Xml.DefaultXmlObjectDefinitionParser.log'.]
       Spring.Objects.Factory.Xml.WebObjectDefinitionParser.GetScope(String value) +0
       Spring.Objects.Factory.Xml.WebObjectDefinitionParser.ParseObjectDefinition(XmlElement element, String id, XmlResourceReader reader) +169
       Spring.Objects.Factory.Xml.DefaultXmlObjectDefinitionParser.ParseObjectDefinition(XmlElement element, XmlResourceReader parser) +284
       Spring.Objects.Factory.Xml.DefaultXmlObjectDefinitionParser.RegisterObjectDefinition(XmlElement element, XmlResourceReader parser) +64
       Spring.Objects.Factory.Xml.DefaultXmlObjectDefinitionParser.ParseElement(XmlElement element, XmlResourceReader parser) +171
       Spring.Objects.Factory.Xml.XmlResourceReader.RegisterObjectDefinitions(XmlElement root) +371
       Spring.Objects.Factory.Xml.XmlObjectDefinitionReader.RegisterObjectDefinitions(XmlElement objectsElement, IResource resource) +74
       Spring.Objects.Factory.Xml.XmlObjectDefinitionReader.LoadObjectDefinitions(IResource resource) +540
       Spring.Context.Support.AbstractXmlApplicationContext.LoadObjectDefinitions(XmlObjectDefinitionReader objectDefinitionReader) +156
       Spring.Context.Support.AbstractXmlApplicationContext.RefreshObjectFactory() +128
       Spring.Context.Support.AbstractApplicationContext.Refresh() +265
       Spring.Context.Support.WebApplicationContext..ctor(String name, Boolean caseSensitive, IApplicationContext parentContext, String[] configurationLocations) +96
       Spring.Context.Support.WebApplicationContext..ctor(String name, Boolean caseSensitive, String[] configurationLocations) +55

    I am not sure how to proceed, any guidance is greatly appreciated. If I need to provide more information please let me know.

    Thanks

    Rob Clayton

  2. #2
    Join Date
    Nov 2006
    Posts
    10

    Default For now the build of Nhibernate is broken

    Hello,

    I too use Spring+Nhibernate.
    And I jumped on the 1.1 preview 3.
    But as a matter of fact, I have to go back to the
    old set of assemblies for my Spring+Nhibernate stack.

    As far as I understand, the build of Nhibernate is broken since
    01-12-06 for the same reason as yours : pb with Common.Logging 2.1.0.0
    and Common.Logging 1.1.0.2

    For more info see the continuous integration site

    The truth is the latest version of Spring.Data.Nhibernate in CVS
    (20061128-0224 and onwards) can't work with the Spring.Data shipped with 1.1preview3 because of
    a new class Spring.Ado.Support.IAdoExceptionTranslator recently added
    in Spring.Data.

    Spring.Data has moved on, I guess.

    Or maybe I missed something ?

    Actually this doesn't fix your problem
    Just, my 2 cents.

    Bertrand.

  3. #3
    Mark Pollack is offline Spring.NET Co-Lead Spring TeamSpring User
    Join Date
    Sep 2004
    Location
    New York, NY
    Posts
    1,683

    Default

    Hi,
    I will put the preview 3 .dlls into the build for nhibernate and other integration projects and resolve the issues (probably minor) as a result of the update. Sorry for the confusion. I'll post back here when it is done.
    Mark

  4. #4
    Mark Pollack is offline Spring.NET Co-Lead Spring TeamSpring User
    Join Date
    Sep 2004
    Location
    New York, NY
    Posts
    1,683

    Default

    Hi,

    Ok...lets start from a clean slate....pick up the "1213-1510" dated .zip file from the download page and let me know if you still have any issues. The .dlls used are the PR3 with one additional change - In the PR3 release I did not properly move the 'ORM' related exceptions in Spring.Dao.Orm to Spring.Dao. This is now fixed.

    Thanks for your patience.

    Cheers,
    Mark
    Last edited by Mark Pollack; 12-13-2006 at 07:28 PM. Reason: forgot to mention what the new .dlls contain.

  5. #5
    Mark Pollack is offline Spring.NET Co-Lead Spring TeamSpring User
    Join Date
    Sep 2004
    Location
    New York, NY
    Posts
    1,683

    Default

    Hi Rob,

    If you manage to get SpringAir working with NHibernate can you contribute the code base, we can incorporate it into the example. That being said, SpringAir needs to have a bit more complex functionality to truely exercise a data layer. It is now simply performs 'gets' without a transactional context - as I'm sure you already know.

    Cheers,
    Mark

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •