Uploaded image for project: 'Spring.NET'
  1. Spring.NET
  2. SPRNET-1528

Expressions Do Not Resolve As Expected

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.3.0, 1.3.1, 1.3.2, 2.0 M1
    • Fix Version/s: FUTURES
    • Component/s: Spring-NET-CORE
    • Labels:
      None

      Description

      Given a config:
      <rabbit:template id="withCallbacks" connection-factory="connectionFactory"
      mandatory="true" immediate="true" return-callback="#

      {rcb.Object}" confirm-callback="#{ccb.Object}" />

      <object id="rcb" type="Moq.Mock<Spring.Messaging.Amqp.Rabbit.Core.IReturnCallback>, Moq" />

      <object id="ccb" type="Moq.Mock<Spring.Messaging.Amqp.Rabbit.Core.IConfirmCallback>, Moq" />

      the following error occurs:

      Spring.Objects.Factory.ObjectCreationException : Error creating object with name 'withCallbacks' : Can't resolve reference to object '#{rcb.Object}

      ' while setting 'returnCallback'.
      ----> Spring.Objects.Factory.NoSuchObjectDefinitionException : No object named '#

      {rcb.Object}' is defined : Cannot find definition for object [#{rcb.Object}

      ]
      at Spring.Objects.Factory.Support.ObjectDefinitionValueResolver.ResolveReference(IObjectDefinition definition, String name, String argumentName, RuntimeObjectReference reference)
      at Spring.Objects.Factory.Support.ObjectDefinitionValueResolver.ResolvePropertyValue(String name, IObjectDefinition definition, String argumentName, Object argumentValue)
      at Spring.Objects.Factory.Support.ObjectDefinitionValueResolver.ResolveValueIfNecessary(String name, IObjectDefinition definition, String argumentName, Object argumentValue)
      at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.ApplyPropertyValues(String name, RootObjectDefinition definition, IObjectWrapper wrapper, IPropertyValues properties)
      at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.PopulateObject(String name, RootObjectDefinition definition, IObjectWrapper wrapper)
      at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.ConfigureObject(String name, RootObjectDefinition definition, IObjectWrapper wrapper)
      at Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InstantiateObject(String name, RootObjectDefinition definition, Object[] arguments, Boolean allowEagerCaching, Boolean suppressConfigure)
      at Spring.Objects.Factory.Support.AbstractObjectFactory.CreateAndCacheSingletonInstance(String objectName, RootObjectDefinition objectDefinition, Object[] arguments)
      at Spring.Objects.Factory.Support.AbstractObjectFactory.GetObjectInternal(String name, Type requiredType, Object[] arguments, Boolean suppressConfigure)
      at Spring.Objects.Factory.Support.AbstractObjectFactory.GetObject(String name, Type requiredType)
      at Spring.Messaging.Amqp.Rabbit.Tests.Test.XmlObjectFactoryExtensions.GetObject(IObjectFactory factory, String name) in XmlObjectFactoryExtensions.cs: line 51

        Attachments

          Activity

            People

            • Assignee:
              sbohlen Steve Bohlen
              Reporter:
              joefitzgerald Joe Fitzgerald
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: