dd4t / dd4t.providers.sdlweb8.cil Goto Github PK
View Code? Open in Web Editor NEWDD4T Providers for SDL Web 8 Content Interaction Library aka CDaaS
DD4T Providers for SDL Web 8 Content Interaction Library aka CDaaS
The following code throws a NullPointerException typeof(SortParameter).GetField(QuerySortOrder.ToString())
possible fix:
paramSort = new CustomMetaKeyColumn(QuerySortField, SortType);
tempDate.ToString("yyyy-MM-dd HH:mm:ss.fff")
is not a valid datetime format. it should be tempDate.ToString("yyyy-MM-dd HH:mm:ss.SSS")
I think there is a bug in the latest stable release (2.2.0). The packages.config contains a reference to Sdl.Web.Delivery 8.3.0 but the Nuspec has a reference to 8.2.0. As a result, the DLL is built against a higher version than it actually gets at run time, and crashes with: Could not load file or assembly 'Tridion.ContentDelivery, Version=8.3.0.1003, Culture=neutral, PublicKeyToken=ddfc895746e5ee6b' or one of its dependencies.
It can be fixed by upgrading the Sdl.Web.Delivery package, but this should not be necessary.
Hi All,
We are facing intermittent issue of website down only on one presentation server. We have two presentation server but website is getting down only on one server with below errors in website log file. We are using SDL Web 8.1 with DD4T 2.1.
has anyone also got this error. Any help would be highly appreciated.
23:58:54.596|ERROR|Failed to execute query Sdl.Web.Delivery.Service.ServiceQueryException: Failed to execute query ---> System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.OData.Client.ClientEdmModel.<>c__DisplayClass19.b__d(IEdmSchemaElement et) at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func2 predicate) at Microsoft.OData.Client.ClientEdmModel.GetOrCreateEdmTypeInternal(IEdmStructuredType edmBaseType, Type type, PropertyInfo[] keyProperties, Boolean isEntity, Nullable1 hasProperties)
at Microsoft.OData.Client.ClientEdmModel.GetOrCreateEdmType(Type type)
at Microsoft.OData.Client.DataServiceContext.IsSingletonTypeTElement
at Microsoft.OData.Client.DataServiceContext.Execute[TElement](Uri requestUri, String httpMethod, OperationParameter[] operationParameters)
at Sdl.Web.Delivery.Service.ODataV4Service.<>c__DisplayClass15_11.b__1() at Sdl.Web.Delivery.Service.ODataV4Service.<>c__DisplayClass15_01.b__0()
--- End of inner exception stack trace ---
at Sdl.Web.Delivery.Service.AbstractODataService.HandleException(Exception e)
at Sdl.Web.Delivery.Service.ODataV4Service.<>c__DisplayClass15_01.b__0() at Sdl.Web.Delivery.Service.Utils.PerformRetry[T](Func1 block, Int32 retryCount)
at Sdl.Web.Delivery.Service.Utils.Retry[T](Func1 block, Int32 retryCount, Boolean locking) at Sdl.Web.Delivery.Dynamic.ComponentPresentationFactory.ExecuteComponentPresentationMetaDAOMethod(Int32 publicationId, String methodName, Object[] parameters) at Sdl.Web.Delivery.Dynamic.ComponentPresentationFactory.RetrieveComponentPresentation(Int32 paramPublicationId, String methodName, Object[] parameters) at Tridion.ContentDelivery.DynamicContent.ComponentPresentationFactory.GetComponentPresentationWithHighestPriority(Int32 componentId) at DD4T.Providers.SDLWeb8.CIL.TridionComponentPresentationProvider.GetContent(String uri, String templateUri) at DD4T.Factories.ComponentPresentationFactory.TryGetComponentPresentation(IComponentPresentation& cp, String componentUri, String templateUri) at DD4T.Factories.ComponentPresentationFactory.b__14_0(String c) at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at DD4T.Factories.ComponentPresentationFactory.FindComponentPresentations(IQuery queryParameters)
at DD4T.Factories.ComponentFactory.FindComponents(IQuery queryParameters)
at XXX.GetConfigurationComponent(ComponentType configurationComponentType, Int32 publicationId)
at XXX.GetConfigurationComponent(ComponentType componentType)
at XXX.PageContext.GetDynamicComponent(String name)
at XXX.PageContext.GetMetricsScripts(MetricsScriptsLocation location)
at ASP._XXX_cshtml.Execute() in e:\XXX\XXX\abc.cshtml:line 87
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
at System.Web.WebPages.StartPage.ExecutePageHierarchy()
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.b__1e(IAsyncResult asyncResult)
Thanks,
Neha
Class should contain the defaults that will be set by on of the DD4T.DI.*
Example:
var mappings = new Dictionary<Type, Type>();
mappings.Add(typeof(IMessageProvider), typeof(JMSMessageProvider));
return mappings;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.