Commerce Server General - Trouble Extending the orders system

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > November 2006 > Trouble Extending the orders system





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Trouble Extending the orders system
DanielG

2006-10-24, 7:18 am

I am developing a commerce site based off of the the starter site. I have
extended the orders system to include a custom LineItem class that has a
collection of tax objects. I have compiled the assembly, modified the
web.config, OrderObjectMappings.xml, and OrderPipelineMappings.xml. I ran
the OrderMapping.exe file to verify and generate the sql tables which I added
to the transaction database. However when I run the pipeline now, when there
are items in it, I am getting an error "Failed to marshall data into the
commerce dictionary. " What is the most likely cause of this? I would like
to post my config files but that would take too much room. Are there
additional steps that I need to take to make sure that the BasketHelper is
taking my new classes into consideration?

Thanks, Daniel
Colin Bowern

2006-10-25, 1:24 am

Hey Daniel,

Can you provide the whole exception including stack trace? It will help us
figure out which component is having the problem and then allow us to center
in on the dependencies of the component.

Cheers,
Colin

"DanielG" <DanielG@discussions.microsoft.com> wrote in message
news:0B8518BB-78B1-4FEB-8A83-F076823B185E@microsoft.com...
>I am developing a commerce site based off of the the starter site. I have
> extended the orders system to include a custom LineItem class that has a
> collection of tax objects. I have compiled the assembly, modified the
> web.config, OrderObjectMappings.xml, and OrderPipelineMappings.xml. I
> ran
> the OrderMapping.exe file to verify and generate the sql tables which I
> added
> to the transaction database. However when I run the pipeline now, when
> there
> are items in it, I am getting an error "Failed to marshall data into the
> commerce dictionary. " What is the most likely cause of this? I would
> like
> to post my config files but that would take too much room. Are there
> additional steps that I need to take to make sure that the BasketHelper is
> taking my new classes into consideration?
>
> Thanks, Daniel



DanielG

2006-10-25, 1:24 am

Here are the full exception details. Some things I have tried already are.
I ran the SQL profiler on the database to see if it was erroring there.
There were no SQL calls made between when I called the pipeline and when the
exception occured. I turned pipeline logging on, and again there was no log
information written between the time I called the pipeline and the exception.
I also turned on page tracing in the web config file and there was no page
trace information for that particular page request.

Thanks for your help.
---------------------

Server Error in '/' Application.
Failed to marshall data into the commerce dictionary. For more information
refer to trace logs.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details:
Microsoft.CommerceServer.Runtime.Orders.OrderFormMarshallingException: Failed
to marshall data into the commerce dictionary. For more information refer to
trace logs.

Source Error:

Line 87: {
Line 88: // Run the pipeline to update and save the contents of the
cart.
Line 89: basketHelper.RunBasketPipeline();
Line 90:
Line 91: //get order form


Source File: c:\Memx\Web\Controls\ShoppingCart\ctl_Sh
oppingCart_TPL.ascx.cs
Line: 89

Stack Trace:

[OrderFormMarshallingException: Failed to marshall data into the commerce
dictionary. For more information refer to trace logs.]

Microsoft.CommerceServer.Runtime.Orders.PipelineAdapter.WriteDictionary(OrderForm orderForm, IDictionary dict) +235

Microsoft.CommerceServer.Runtime.Orders.PipelineAdapter.WriteDictionary(OrderForm orderForm) +170

Microsoft.CommerceServer.Runtime.Orders.OrderGroup.RunPipeline(PipelineInfo
pipelineInfo, PipelineBase pipeline, ITransaction trans) +858

Microsoft.CommerceServer.Runtime.Orders.OrderGroup.RunPipeline(PipelineInfo
pipelineInfo, ITransaction trans) +144

Microsoft.CommerceServer.Runtime.Orders.OrderGroup.RunPipeline(PipelineInfo
pipelineInfo) +6
CommerceComponents.Helpers.BasketHelper.RunPipeline(String pipelineName,
OrderPipelineType type) +363
CommerceComponents.Helpers.BasketHelper.RunBasketPipeline(String
pipelineName) +38
CommerceComponents.Helpers.BasketHelper.RunBasketPipeline() +7
Controls_ctl_ShoppingCart_TPL.UpdateCartSummary() in
c:\Memx\Web\Controls\ShoppingCart\ctl_Sh
oppingCart_TPL.ascx.cs:89
Controls_ctl_ShoppingCart_TPL.Page_Load(Object sender, EventArgs e) in
c:\Memx\Web\Controls\ShoppingCart\ctl_Sh
oppingCart_TPL.ascx.cs:37
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o,
Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender,
EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061



"Colin Bowern" wrote:

> Hey Daniel,
>
> Can you provide the whole exception including stack trace? It will help us
> figure out which component is having the problem and then allow us to center
> in on the dependencies of the component.
>
> Cheers,
> Colin


antoine.seiter@gmail.com

2006-11-27, 7:19 pm

Hello Daniel,

I had the same problem when I put my commerce server site on my
production server.
You should check your OrderObjectMappings.xml and
OrderPipelineMappings.xml, I bet your changes aren't in them.
Good luck,

Antoine Seiter.



DanielG a =E9crit :

> Here are the full exception details. Some things I have tried already ar=

e=2E
> I ran the SQL profiler on the database to see if it was erroring there.
> There were no SQL calls made between when I called the pipeline and when =

the
> exception occured. I turned pipeline logging on, and again there was no =

log
> information written between the time I called the pipeline and the except=

ion.
> I also turned on page tracing in the web config file and there was no pa=

ge
> trace information for that particular page request.
>
> Thanks for your help.
> ---------------------
>
> Server Error in '/' Application.
> Failed to marshall data into the commerce dictionary. For more information
> refer to trace logs.
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information a=

bout
> the error and where it originated in the code.
>
> Exception Details:
> Microsoft.CommerceServer.Runtime.Orders.OrderFormMarshallingException: Fa=

iled
> to marshall data into the commerce dictionary. For more information refer=

to
> trace logs.
>
> Source Error:
>
> Line 87: {
> Line 88: // Run the pipeline to update and save the contents of t=

he
> cart.
> Line 89: basketHelper.RunBasketPipeline();
> Line 90:
> Line 91: //get order form
>
>
> Source File: c:\Memx\Web\Controls\ShoppingCart\ctl_Sh
oppingCart_TPL.ascx.=

cs
> Line: 89
>
> Stack Trace:
>
> [OrderFormMarshallingException: Failed to marshall data into the commerce
> dictionary. For more information refer to trace logs.]
>
> Microsoft.CommerceServer.Runtime.Orders.PipelineAdapter.WriteDictionary(O=

rderForm orderForm, IDictionary dict) +235
>
> Microsoft.CommerceServer.Runtime.Orders.PipelineAdapter.WriteDictionary(O=

rderForm orderForm) +170
>
> Microsoft.CommerceServer.Runtime.Orders.OrderGroup.RunPipeline(PipelineIn=

fo
> pipelineInfo, PipelineBase pipeline, ITransaction trans) +858
>
> Microsoft.CommerceServer.Runtime.Orders.OrderGroup.RunPipeline(PipelineIn=

fo
> pipelineInfo, ITransaction trans) +144
>
> Microsoft.CommerceServer.Runtime.Orders.OrderGroup.RunPipeline(PipelineIn=

fo
> pipelineInfo) +6
> CommerceComponents.Helpers.BasketHelper.RunPipeline(String pipelineNam=

e,[vbcol=seagreen]
> OrderPipelineType type) +363
> CommerceComponents.Helpers.BasketHelper.RunBasketPipeline(String
> pipelineName) +38
> CommerceComponents.Helpers.BasketHelper.RunBasketPipeline() +7
> Controls_ctl_ShoppingCart_TPL.UpdateCartSummary() in
> c:\Memx\Web\Controls\ShoppingCart\ctl_Sh
oppingCart_TPL.ascx.cs:89
> Controls_ctl_ShoppingCart_TPL.Page_Load(Object sender, EventArgs e) in
> c:\Memx\Web\Controls\ShoppingCart\ctl_Sh
oppingCart_TPL.ascx.cs:37
> System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o,
> Object t, EventArgs e) +15
> System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender,
> EventArgs e) +34
> System.Web.UI.Control.OnLoad(EventArgs e) +99
> System.Web.UI.Control.LoadRecursive() +47
> System.Web.UI.Control.LoadRecursive() +131
> System.Web.UI.Control.LoadRecursive() +131
> System.Web.UI.Control.LoadRecursive() +131
> System.Web.UI.Control.LoadRecursive() +131
> System.Web.UI.Control.LoadRecursive() +131
> System.Web.UI.Control.LoadRecursive() +131
> System.Web.UI.Page.ProcessRequestMain(Boolean
> includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
>
>
>
> "Colin Bowern" wrote:
>
p us[vbcol=seagreen]
enter[vbcol=seagreen]

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com