RQ logging

59 views
Skip to first unread message

ozanyurt

unread,
Sep 7, 2012, 3:23:03 AM9/7/12
to rhino-t...@googlegroups.com
I want to use logging feature with RQ. I saw the tests and try it. But when I try to set my host config with logging feature structure map give me an error. My config is 

 host.BusConfiguration(c => c.Bus("rhino.queues://localhost:55555/VisualTesterQueue", "VisualTester")
                                               .Receive("DomainModel.Entities.SomeEntity", backend).Retries(1).Logging("rhino.queues://localhost:2022/log_endpoint")
                    );


StructureMap.StructureMapException: StructureMap Exception Code:  207
Internal exception while creating Instance '9590adce-9dad-4183-8ee7-20a21a8b46ac' of PluginType Rhino.ServiceBus.Internal.IStartable, Rhino.ServiceBus, Version=2.3.4.0, Culture=neutral, PublicKeyToken=0b3305902db7183f.  Check the inner exception for more details. ---> StructureMap.StructureMapException: StructureMap Exception Code:  202
No Default Instance defined for PluginFamily System.Uri, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
   at StructureMap.BuildSession.<.ctor>b__0(Type t)
   at StructureMap.Util.Cache`2.get_Item(KEY key)
   at StructureMap.BuildSession.CreateInstance(Type pluginType)
   at StructureMap.Pipeline.DefaultInstance.build(Type pluginType, BuildSession session)
   at StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session)
   at StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session)
   at StructureMap.Pipeline.ConstructorInstance.Get(String propertyName, Type pluginType, BuildSession session)
   at StructureMap.Pipeline.ConstructorInstance.Get[T](String propertyName, BuildSession session)
   at StructureMap.Pipeline.Arguments.Get[T](String propertyName)
   at lambda_method(ExecutionScope , IArguments )
   at StructureMap.Construction.BuilderCompiler.FuncCompiler`1.<>c__DisplayClass2.<CreateBuilder>b__0(IArguments args)
   at StructureMap.Construction.InstanceBuilder.BuildInstance(IArguments args)
   at StructureMap.Pipeline.ConstructorInstance.Build(Type pluginType, BuildSession session, IInstanceBuilder builder)
   at StructureMap.Pipeline.ConstructorInstance.build(Type pluginType, BuildSession session)
   at StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session)
   at StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session)
   at StructureMap.Pipeline.ObjectBuilder.ConstructNew(Type pluginType, Instance instance, BuildSession session)
   at StructureMap.Pipeline.ObjectBuilder.Resolve(Type pluginType, Instance instance, BuildSession session)
   at StructureMap.BuildSession.CreateInstance(Type pluginType, Instance instance)
   at StructureMap.BuildSession.<>c__DisplayClassa.<GetAllInstances>b__9(Instance x)
   at System.Linq.Enumerable.<>c__DisplayClass12`3.<CombineSelectors>b__11(TSource x)
   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at StructureMap.Pipeline.ArrayCoercion`1.Convert(IEnumerable`1 enumerable)
   at StructureMap.Pipeline.EnumerableInstance.build(Type pluginType, BuildSession session)
   at StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session)
   at StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session)
   at StructureMap.Pipeline.DefaultInstance.build(Type pluginType, BuildSession session)
   at StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session)
   at StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session)
   at StructureMap.Pipeline.ConstructorInstance.Get(String propertyName, Type pluginType, BuildSession session)
   at StructureMap.Pipeline.ConstructorInstance.Get[T](String propertyName, BuildSession session)
   at StructureMap.Pipeline.Arguments.Get[T](String propertyName)
   at lambda_method(ExecutionScope , IArguments )
   at StructureMap.Construction.BuilderCompiler.FuncCompiler`1.<>c__DisplayClass2.<CreateBuilder>b__0(IArguments args)
   at StructureMap.Construction.InstanceBuilder.BuildInstance(IArguments args)
   at StructureMap.Pipeline.ConstructorInstance.Build(Type pluginType, BuildSession session, IInstanceBuilder builder)
   at StructureMap.Pipeline.ConstructorInstance.build(Type pluginType, BuildSession session)
   at StructureMap.Pipeline.SmartInstance`1.build(Type pluginType, BuildSession session)
   at StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session)
   at StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session)
   at StructureMap.Pipeline.ObjectBuilder.ConstructNew(Type pluginType, Instance instance, BuildSession session)
   at StructureMap.Pipeline.ObjectBuilder.Resolve(Type pluginType, Instance instance, BuildSession session)
   at StructureMap.BuildSession.CreateInstance(Type pluginType, Instance instance)
   at StructureMap.BuildSession.<>c__DisplayClass3.<.ctor>b__1()
   at StructureMap.BuildSession.CreateInstance(Type pluginType)
   at StructureMap.BuildSession.GetInstance[T]()
   at StructureMap.Configuration.DSL.Registry.<Forward>b__1e[FROM,TO](IContext c)
   at StructureMap.Pipeline.LambdaInstance`1.build(Type pluginType, BuildSession session)
   --- End of inner exception stack trace ---
   at StructureMap.Pipeline.LambdaInstance`1.build(Type pluginType, BuildSession session)
   at StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session)
   at StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session)
   at StructureMap.Pipeline.ObjectBuilder.ConstructNew(Type pluginType, Instance instance, BuildSession session)
   at StructureMap.Pipeline.ObjectBuilder.Resolve(Type pluginType, Instance instance, BuildSession session)
   at StructureMap.BuildSession.CreateInstance(Type pluginType, Instance instance)
   at StructureMap.BuildSession.<>c__DisplayClass3.<.ctor>b__1()
   at StructureMap.BuildSession.CreateInstance(Type pluginType)
   at StructureMap.Container.GetInstance(Type pluginType)
   at StructureMap.Container.GetInstance[T]()
   at Rhino.ServiceBus.StructureMap.StructureMapBootStrapper.GetInstance[T]() in d:\works\ayende\rhino-esb-latest\rhino-esb\Rhino.ServiceBus.StructureMap\StructureMapBootStrapper.cs:line 78
   at Rhino.ServiceBus.Hosting.DefaultHost.InitailizeBus(String asmName) in d:\works\ayende\rhino-esb-latest\rhino-esb\Rhino.ServiceBus\Hosting\DefaultHost.cs:line 57
   at Rhino.ServiceBus.Hosting.DefaultHost.Start(String asmName) in d:\works\ayende\rhino-esb-latest\rhino-esb\Rhino.ServiceBus\Hosting\DefaultHost.cs:line 41
   at Rhino.ServiceBus.Hosting.DefaultHost.Start[TBootStrapper]() in d:\works\ayende\rhino-esb-latest\rhino-esb\Rhino.ServiceBus\Hosting\DefaultHost.cs:line 35
   at VisualTester.MainWindow..ctor() in d:\works\..\src\VisualTester\MainWindow.xaml.cs:line 75

ozanyurt

unread,
Sep 7, 2012, 5:29:42 PM9/7/12
to rhino-t...@googlegroups.com
By the way when I change to my bootstrapper structuremap to castle windsor it's running. I think structuremap configuration problem exist. 

Anybody use logging machanism. How can I implement for rq log message(like consumer?)

Thanks 

Corey Kaylor

unread,
Sep 14, 2012, 6:43:12 PM9/14/12
to rhino-t...@googlegroups.com
I am able to reproduce this locally, but ran out of time today. I'll keep digging in next week.

--
You received this message because you are subscribed to the Google Groups "Rhino Tools Dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rhino-tools-dev/-/g6v-0N5InKkJ.

To post to this group, send email to rhino-t...@googlegroups.com.
To unsubscribe from this group, send email to rhino-tools-d...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rhino-tools-dev?hl=en.

Ozan Yurtseven

unread,
Sep 14, 2012, 6:54:17 PM9/14/12
to rhino-t...@googlegroups.com
Thank you very much if anything you need let me know

Ozan

2012/9/15 Corey Kaylor <co...@kaylors.net>:

Corey

unread,
Oct 12, 2012, 4:41:28 PM10/12/12
to rhino-t...@googlegroups.com, oz...@insuredplay.com
I was able to track this down and pushed a fix this afternoon. I plan to start publishing 3.0 now, hopefully will before the end of day.

Ozan Yurtseven

unread,
Oct 12, 2012, 5:14:07 PM10/12/12
to rhino-t...@googlegroups.com
That's great thanks Corey. How can I track 2.4 to 3.0 changes?

Ozan

2012/10/12 Corey <co...@kaylors.net>:
> https://groups.google.com/d/msg/rhino-tools-dev/-/VDjYjdHyHXgJ.
Reply all
Reply to author
Forward
0 new messages