Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Morten 3 posts 64 karma points
    Jun 26, 2014 @ 15:31
    Morten
    0

    uCommerce TransactionLibrary Castle.Windsor error

    I get the following error when trying to use:

    var basket = TransactionLibrary.GetBasket(true);

    Error:


    ComponentActivator: could not proxy UCommerce.Transactions.TransactionLibraryInternal","stackTrace":"[Basket: 26-06-2014 13:11:47]:\n[REQUEST: {}]\nCastle.MicroKernel.ComponentActivator.ComponentActivatorException: ComponentActivator: could not proxy UCommerce.Transactions.TransactionLibraryInternal ---> System.ArgumentException: System.Decimal is not a supported constant type.\r\n at System.Reflection.Emit.TypeBuilder.SetConstantValue(ModuleBuilder module, Int32 tk, Type destType, Object value)\r\n at Castle.DynamicProxy.Generators.Emitters.MethodEmitter.DefineParameters(ParameterInfo[] parameters)\r\n at Castle.DynamicProxy.Contributors.ClassProxyTargetContributor.CreateCallbackMethod(ClassEmitter emitter, MethodInfo methodInfo, MethodInfo methodOnTarget)\r\n at Castle.DynamicProxy.Contributors.ClassProxyTargetContributor.BuildInvocationType(MetaMethod method, ClassEmitter class, ProxyGenerationOptions options)\r\n at Castle.DynamicProxy.Contributors.ClassProxyTargetContributor.GetMethodGenerator(MetaMethod method, ClassEmitter class, ProxyGenerationOptions options, OverrideMethodDelegate overrideMethod)\r\n at Castle.DynamicProxy.Contributors.CompositeTypeContributor.ImplementMethod(MetaMethod method, ClassEmitter class, ProxyGenerationOptions options, OverrideMethodDelegate overrideMethod)\r\n at Castle.DynamicProxy.Contributors.CompositeTypeContributor.Generate(ClassEmitter class, ProxyGenerationOptions options)\r\n at Castle.DynamicProxy.Generators.ClassProxyGenerator.GenerateType(String name, Type[] interfaces, INamingScope namingScope)\r\n at Castle.DynamicProxy.Generators.BaseProxyGenerator.ObtainProxyType(CacheKey cacheKey, Func`3 factory)\r\n at Castle.DynamicProxy.ProxyGenerator.CreateClassProxy(Type classToProxy, Type[] additionalInterfacesToProxy, ProxyGenerationOptions options, Object[] constructorArguments, IInterceptor[] interceptors)\r\n at Castle.Windsor.Proxy.DefaultProxyFactory.Create(IKernel kernel, Object target, ComponentModel model, CreationContext context, Object[] constructorArguments)\r\n at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance(CreationContext context, ConstructorCandidate constructor, Object[] arguments)\r\n --- End of inner exception stack trace ---\r\n at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance(CreationContext context, ConstructorCandidate constructor, Object[] arguments)\r\n at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context)\r\n at Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context, Burden burden)\r\n at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.CreateInstance(CreationContext context, Boolean trackedExternally)\r\n at Castle.MicroKernel.Lifestyle.ScopedLifestyleManager.<>c__DisplayClass1.b__0(Action`1 afterCreated)\r\n at Castle.MicroKernel.Lifestyle.Scoped.DefaultLifetimeScope.GetCachedInstance(ComponentModel model, ScopedInstanceActivationCallback createInstance)\r\n at Castle.MicroKernel.Lifestyle.ScopedLifestyleManager.Resolve(CreationContext context, IReleasePolicy releasePolicy)\r\n at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden)\r\n at Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired)\r\n at Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler handler, Type service, IDictionary additionalArguments, IReleasePolicy policy)\r\n at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy)\r\n at Castle.Windsor.WindsorContainer.Resolve[T]()\r\n at UCommerce.Api.TransactionLibrary.GetBasket(Boolean create)\r\n at Vertica.PeterJustesen.Portal.WebApplication.Orders.Services.CheckoutService.Get(Basket request) in c:\\Code\\pj.dk\\trunk\\src\\Portal.WebApplication\\Orders\\Services\\CheckoutService.cs:line 46\r\n at ServiceStack.ServiceHost.ServiceRunner`1.Execute(IRequestContext requestContext, Object instance, TRequest request)

     

    I am trying to call it from a ServiceStack service, but it is working fine when calling it from:

    var basket = SiteContext.Current.OrderContext.GetBasket(true);

    I am using Sitecore with uCommerce v. 6.0.3.14171

     

  • Morten 3 posts 64 karma points
    Jun 27, 2014 @ 08:38
    Morten
    101

    We solved it by removing the ExceptionLoggingInterceptor in the TransactionLibraryInternal component defined in Core.config:

                <interceptors>
                    <interceptor>${ExceptionLoggingInterceptor}</interceptor>
                </interceptors>

    But it seems to be an error.

Please Sign in or register to post replies

Write your reply to:

Draft