error
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
error

 
Post new topic   Reply to topic    Windows Server Forum Index -> Commerce Server
Author Message
nirsivak



Joined: 06 Sep 2005
Posts: 12

Posted: Wed Sep 07, 2005 4:57 pm    Post subject: error Reply with quote

I am getting this error in my production box any input is appreciated

An error occured while processing the request. Request Url: https://www.jwod.com/payment.aspx?MSCSAuth=584C39EC14974C113536C602F8F7C5B7FBB98FACD455BE4C3162368E1864ECC2ADD1C413B5CF65584FE219A91B4DEDD0D97C11873F1D38F271CC6CB6DFDD7D5974A097D88E0B16AE020D211FA4383D1C89733B2B1896F355CF357024246049C817582D123F282012BBE00C93DF3F583BE99057661ADBB9CF38D96BCE2832B829A1076488187930361B81EAFFE00E7701C3F98749B2E69B9F3AED4D381B2975448DB1005C44F528B8 Stack Trace: System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> Microsoft.CommerceServer.Runtime.Orders.CommerceOrderSystemException: Failed to retrieve item #0 from the line item collection. ---> Microsoft.CommerceServer.Runtime.CommerceException: GetItemInfo Failed. ---> System.Runtime.InteropServices.COMException (0x8002000B): Invalid index.
at Microsoft.CommerceServer.Runtime.ISimpleList.get_Item(Int32 Index)
at Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.GetItemInfo(Int32 nItemIndex, Object strOrderFormName)
--- End of inner exception stack trace ---
at Microsoft.CommerceServer.Internal.Common.Util.ThrowCommerceException(String message, Exception inner, String source)
at Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.GetItemInfo(Int32 nItemIndex, Object strOrderFormName)
at Microsoft.CommerceServer.Runtime.Orders.LineItemCollection.get_Item(Int32 itemIndex)
--- End of inner exception stack trace ---
at Microsoft.CommerceServer.Site.Payment.btnPurchase_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain()
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain()
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.CallHandlerExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Back to top
View user's profile Send private message
Ravi Shankar
Guest





Posted: Thu Sep 08, 2005 12:51 pm    Post subject: RE: error Reply with quote

You're using a "0" as an index into the LineItems collection... either use a
for each lineitem in orderform.lineitems or start from 1.
--
Ravi Shankar


"nirsivak" wrote:

Quote:
I am getting this error in my production box any input is appreciated

An error occured while processing the request. Request Url:
https://www.jwod.com/payment.aspx?MSCSAuth=584C39EC14974C113536C602F8F7C5B7FBB98FACD455BE4C3162368E1864ECC2ADD1C413B5CF65584FE219A91B4DEDD0D97C11873F1D38F271CC6CB6DFDD7D5974A097D88E0B16AE020D211FA4383D1C89733B2B1896F355CF357024246049C817582D123F282012BBE00C93DF3F583BE99057661ADBB9CF38D96BCE2832B829A1076488187930361B81EAFFE00E7701C3F98749B2E69B9F3AED4D381B2975448DB1005C44F528B8
Stack Trace: System.Web.HttpUnhandledException: Exception of type
System.Web.HttpUnhandledException was thrown. ---
Microsoft.CommerceServer.Runtime.Orders.CommerceOrderSystemException:
Failed to retrieve item #0 from the line item collection. ---
Microsoft.CommerceServer.Runtime.CommerceException: GetItemInfo
Failed. ---> System.Runtime.InteropServices.COMException
(0x8002000B): Invalid index.
at Microsoft.CommerceServer.Runtime.ISimpleList.get_Item(Int32
Index)
at
Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.GetItemInfo(Int32
nItemIndex, Object strOrderFormName)
--- End of inner exception stack trace ---
at
Microsoft.CommerceServer.Internal.Common.Util.ThrowCommerceException(String
message, Exception inner, String source)
at
Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.GetItemInfo(Int32
nItemIndex, Object strOrderFormName)
at
Microsoft.CommerceServer.Runtime.Orders.LineItemCollection.get_Item(Int32
itemIndex)
--- End of inner exception stack trace ---
at Microsoft.CommerceServer.Site.Payment.btnPurchase_Click(Object
sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection
postData)
at System.Web.UI.Page.ProcessRequestMain()
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain()
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.CallHandlerExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously)

Back to top
Zoe Hart [MVP]
Guest





Posted: Thu Sep 08, 2005 4:53 pm    Post subject: Re: error Reply with quote

0 should be a valid index for the LineItems collection. I have plenty of
code that loops from 0 to LineItems.Count-1 to index through the LineItems
collection. I wonder if it's possible that for some reason your LineItems
collection is empty - maybe because the basket pipeline removed some items?

--
Zoe Hart
Commerce Server MVP

"Ravi Shankar" <shankycheil@newsgroup.nospam> wrote in message
news:270C46AA-3939-41B2-B4FF-801FFF6DB2A7@microsoft.com...
Quote:
You're using a "0" as an index into the LineItems collection... either use
a
for each lineitem in orderform.lineitems or start from 1.
--
Ravi Shankar


"nirsivak" wrote:

I am getting this error in my production box any input is appreciated

An error occured while processing the request. Request Url:
https://www.jwod.com/payment.aspx?MSCSAuth=584C39EC14974C113536C602F8F7C5B7FBB98FACD455BE4C3162368E1864ECC2ADD1C413B5CF65584FE219A91B4DEDD0D97C11873F1D38F271CC6CB6DFDD7D5974A097D88E0B16AE020D211FA4383D1C89733B2B1896F355CF357024246049C817582D123F282012BBE00C93DF3F583BE99057661ADBB9CF38D96BCE2832B829A1076488187930361B81EAFFE00E7701C3F98749B2E69B9F3AED4D381B2975448DB1005C44F528B8
Stack Trace: System.Web.HttpUnhandledException: Exception of type
System.Web.HttpUnhandledException was thrown. ---
Microsoft.CommerceServer.Runtime.Orders.CommerceOrderSystemException:
Failed to retrieve item #0 from the line item collection. ---
Microsoft.CommerceServer.Runtime.CommerceException: GetItemInfo
Failed. ---> System.Runtime.InteropServices.COMException
(0x8002000B): Invalid index.
at Microsoft.CommerceServer.Runtime.ISimpleList.get_Item(Int32
Index)
at
Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.GetItemInfo(Int32
nItemIndex, Object strOrderFormName)
--- End of inner exception stack trace ---
at
Microsoft.CommerceServer.Internal.Common.Util.ThrowCommerceException(String
message, Exception inner, String source)
at
Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.GetItemInfo(Int32
nItemIndex, Object strOrderFormName)
at
Microsoft.CommerceServer.Runtime.Orders.LineItemCollection.get_Item(Int32
itemIndex)
--- End of inner exception stack trace ---
at Microsoft.CommerceServer.Site.Payment.btnPurchase_Click(Object
sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection
postData)
at System.Web.UI.Page.ProcessRequestMain()
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain()
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.CallHandlerExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously)

Back to top
Ravi Shankar
Guest





Posted: Thu Sep 08, 2005 4:53 pm    Post subject: Re: error Reply with quote

Thanks for correcting that Zoe. I did not put it properly. The error is
emnating from the "GetItemInfo" call on the Interop Library for OrderGroup
"Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.GetItemInfo(Int32
nItemIndex, Object strOrderFormName)" which warrents a Line Number and I
thought that in this context "0" does not make sense.

Nirsivak, if you're running this call in a loop then you should probably run
it like for x = 0 to order.orderforms("default").lineitems.count - 1
or something close ... which will prevent this call if the lineitem count is
0 ..
--
Ravi Shankar


"Zoe Hart [MVP]" wrote:

Quote:
0 should be a valid index for the LineItems collection. I have plenty of
code that loops from 0 to LineItems.Count-1 to index through the LineItems
collection. I wonder if it's possible that for some reason your LineItems
collection is empty - maybe because the basket pipeline removed some items?

--
Zoe Hart
Commerce Server MVP

"Ravi Shankar" <shankycheil@newsgroup.nospam> wrote in message
news:270C46AA-3939-41B2-B4FF-801FFF6DB2A7@microsoft.com...
You're using a "0" as an index into the LineItems collection... either use
a
for each lineitem in orderform.lineitems or start from 1.
--
Ravi Shankar


"nirsivak" wrote:

I am getting this error in my production box any input is appreciated

An error occured while processing the request. Request Url:
https://www.jwod.com/payment.aspx?MSCSAuth=584C39EC14974C113536C602F8F7C5B7FBB98FACD455BE4C3162368E1864ECC2ADD1C413B5CF65584FE219A91B4DEDD0D97C11873F1D38F271CC6CB6DFDD7D5974A097D88E0B16AE020D211FA4383D1C89733B2B1896F355CF357024246049C817582D123F282012BBE00C93DF3F583BE99057661ADBB9CF38D96BCE2832B829A1076488187930361B81EAFFE00E7701C3F98749B2E69B9F3AED4D381B2975448DB1005C44F528B8
Stack Trace: System.Web.HttpUnhandledException: Exception of type
System.Web.HttpUnhandledException was thrown. ---
Microsoft.CommerceServer.Runtime.Orders.CommerceOrderSystemException:
Failed to retrieve item #0 from the line item collection. ---
Microsoft.CommerceServer.Runtime.CommerceException: GetItemInfo
Failed. ---> System.Runtime.InteropServices.COMException
(0x8002000B): Invalid index.
at Microsoft.CommerceServer.Runtime.ISimpleList.get_Item(Int32
Index)
at
Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.GetItemInfo(Int32
nItemIndex, Object strOrderFormName)
--- End of inner exception stack trace ---
at
Microsoft.CommerceServer.Internal.Common.Util.ThrowCommerceException(String
message, Exception inner, String source)
at
Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.GetItemInfo(Int32
nItemIndex, Object strOrderFormName)
at
Microsoft.CommerceServer.Runtime.Orders.LineItemCollection.get_Item(Int32
itemIndex)
--- End of inner exception stack trace ---
at Microsoft.CommerceServer.Site.Payment.btnPurchase_Click(Object
sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection
postData)
at System.Web.UI.Page.ProcessRequestMain()
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain()
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.CallHandlerExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously)




Back to top
vensi
Guest





Posted: Thu Sep 08, 2005 4:53 pm    Post subject: RE: error Reply with quote

Thx Ravishankar for your input.. It does not happen all the time.. it happens
2 to 3 times daily.. in the production server...
any input on this

"Ravi Shankar" wrote:

Quote:
You're using a "0" as an index into the LineItems collection... either use a
for each lineitem in orderform.lineitems or start from 1.
--
Ravi Shankar


"nirsivak" wrote:

I am getting this error in my production box any input is appreciated

An error occured while processing the request. Request Url:
https://www.jwod.com/payment.aspx?MSCSAuth=584C39EC14974C113536C602F8F7C5B7FBB98FACD455BE4C3162368E1864ECC2ADD1C413B5CF65584FE219A91B4DEDD0D97C11873F1D38F271CC6CB6DFDD7D5974A097D88E0B16AE020D211FA4383D1C89733B2B1896F355CF357024246049C817582D123F282012BBE00C93DF3F583BE99057661ADBB9CF38D96BCE2832B829A1076488187930361B81EAFFE00E7701C3F98749B2E69B9F3AED4D381B2975448DB1005C44F528B8
Stack Trace: System.Web.HttpUnhandledException: Exception of type
System.Web.HttpUnhandledException was thrown. ---
Microsoft.CommerceServer.Runtime.Orders.CommerceOrderSystemException:
Failed to retrieve item #0 from the line item collection. ---
Microsoft.CommerceServer.Runtime.CommerceException: GetItemInfo
Failed. ---> System.Runtime.InteropServices.COMException
(0x8002000B): Invalid index.
at Microsoft.CommerceServer.Runtime.ISimpleList.get_Item(Int32
Index)
at
Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.GetItemInfo(Int32
nItemIndex, Object strOrderFormName)
--- End of inner exception stack trace ---
at
Microsoft.CommerceServer.Internal.Common.Util.ThrowCommerceException(String
message, Exception inner, String source)
at
Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.GetItemInfo(Int32
nItemIndex, Object strOrderFormName)
at
Microsoft.CommerceServer.Runtime.Orders.LineItemCollection.get_Item(Int32
itemIndex)
--- End of inner exception stack trace ---
at Microsoft.CommerceServer.Site.Payment.btnPurchase_Click(Object
sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection
postData)
at System.Web.UI.Page.ProcessRequestMain()
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain()
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.CallHandlerExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously)

Back to top
Ravi Shankar
Guest





Posted: Thu Sep 08, 2005 4:53 pm    Post subject: RE: error Reply with quote

Hi Vensi,

You should examine the call being made and ensure that you're checking for a
valid number of line items before trying to retreive one. It is possible that
somewhere in the pipeline a lineitems gets removed. If this is happening only
twice or thrice a day then you should still check this out, it is probably
2-3 blank orders you're logging per day :)

--
Ravi Shankar


"vensi" wrote:

Quote:
Thx Ravishankar for your input.. It does not happen all the time.. it happens
2 to 3 times daily.. in the production server...
any input on this

"Ravi Shankar" wrote:

You're using a "0" as an index into the LineItems collection... either use a
for each lineitem in orderform.lineitems or start from 1.
--
Ravi Shankar


"nirsivak" wrote:

I am getting this error in my production box any input is appreciated

An error occured while processing the request. Request Url:
https://www.jwod.com/payment.aspx?MSCSAuth=584C39EC14974C113536C602F8F7C5B7FBB98FACD455BE4C3162368E1864ECC2ADD1C413B5CF65584FE219A91B4DEDD0D97C11873F1D38F271CC6CB6DFDD7D5974A097D88E0B16AE020D211FA4383D1C89733B2B1896F355CF357024246049C817582D123F282012BBE00C93DF3F583BE99057661ADBB9CF38D96BCE2832B829A1076488187930361B81EAFFE00E7701C3F98749B2E69B9F3AED4D381B2975448DB1005C44F528B8
Stack Trace: System.Web.HttpUnhandledException: Exception of type
System.Web.HttpUnhandledException was thrown. ---
Microsoft.CommerceServer.Runtime.Orders.CommerceOrderSystemException:
Failed to retrieve item #0 from the line item collection. ---
Microsoft.CommerceServer.Runtime.CommerceException: GetItemInfo
Failed. ---> System.Runtime.InteropServices.COMException
(0x8002000B): Invalid index.
at Microsoft.CommerceServer.Runtime.ISimpleList.get_Item(Int32
Index)
at
Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.GetItemInfo(Int32
nItemIndex, Object strOrderFormName)
--- End of inner exception stack trace ---
at
Microsoft.CommerceServer.Internal.Common.Util.ThrowCommerceException(String
message, Exception inner, String source)
at
Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.GetItemInfo(Int32
nItemIndex, Object strOrderFormName)
at
Microsoft.CommerceServer.Runtime.Orders.LineItemCollection.get_Item(Int32
itemIndex)
--- End of inner exception stack trace ---
at Microsoft.CommerceServer.Site.Payment.btnPurchase_Click(Object
sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection
postData)
at System.Web.UI.Page.ProcessRequestMain()
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain()
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.CallHandlerExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously)

Back to top
nirsivak



Joined: 06 Sep 2005
Posts: 12

Posted: Mon Sep 19, 2005 2:11 pm    Post subject: re:error Reply with quote

Zoe Hart,Ravi Shankar

I am using

for i = 0 to ( oLineItems.Count - 1 )

oLineItemProperties = directCast( oLineItems(i), Microsoft.CommerceServer.Runtime.Dictionary )

sQty = oLineItemProperties("Quantity").ToString()
sCommCode = TranslateNSN( oLineItemProperties("_product_NSN").ToString() )
sDesc = oLineItemProperties("_product_Description").ToString()
sUOM = FDMSUOM( oLineItemProperties("_product_Unit of measure").ToString() )
sCost = oLineItemProperties("cy_unit_price").ToString()
sProdCode = sCommCode
sDiscount = "0"
sAmt = oLineItemProperties("cy_lineitem_total").ToString()
sTax = "0"
sUPC = sCommCode

AddToParmList( orderForm, "L_QTY", i, sQty )
AddToParmList( orderForm, "L_COMMCODE", i, sCommCode )
AddToParmList( orderForm, "L_DESC", i, sDesc )
AddToParmList( orderForm, "L_UOM", i, sUOM )
AddToParmList( orderForm, "L_COST", i, sCost )
AddToParmList( orderForm, "L_PRODCODE", i, sProdCode )
AddToParmList( orderForm, "L_DISCOUNT", i, sDiscount )
AddToParmList( orderForm, "L_AMT", i, sAmt )
AddToParmList( orderForm, "L_TAXAMT", i, sTax )
AddToParmList( orderForm, "L_UPC", i, sProdCode )
AddToParmList( orderForm, "L_CATEGORY", i, "S" )
AddToParmList( orderForm, "L_MANPARTNO", i, "" )
AddToParmList( orderForm, "L_MANUFACTURER", i, "" )
AddToParmList( orderForm, "L_SKU", i, sProdCode )
AddToParmList( orderForm, "L_TYPE", i, "P" )

next

end sub

still i am getting the error..

inputs appreciated..

vensi
Back to top
View user's profile Send private message
 
Post new topic   Reply to topic    Windows Server Forum Index -> Commerce Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB