• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

JTR0013
#1 Posted : Tuesday, April 26, 2011 7:31:29 AM(UTC)
JTR0013

Rank: Member

Joined: 7/13/2010(UTC)
Posts: 22

Today when attempting to view an order thru BVAdmin I'm getting the message below. I've just begun digging into this, but does anyone have any thoughts.

Code:
[ArgumentNullException: Value cannot be null.
Parameter name: input]
System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) +881894
System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(String input) +66
BVSoftware.Cryptography.JsonHelper.ObjectFromJson(String json) in c:\workspaces\cupertino\bvcommerce\Main\App\source\BVSoftware.Cryptography\JsonHelper.cs:21
BVSoftware.Cryptography.KeyManager.ParseKeysFromJson() in c:\workspaces\cupertino\bvcommerce\Main\App\source\BVSoftware.Cryptography\KeyManager.cs:45
BVSoftware.Bvc5.Core.Utilities.Cryptography.PciEncryption.Decode(String encrypted, Int64 keyId, String salt) in c:\workspaces\cupertino\bvcommerce\Main\App\source\BVSoftware.Bvc5.Core\Utilities\Cryptography\PciEncryption.vb:25
BVSoftware.Bvc5.Core.Orders.Mapper.ConvertDataRow(DataRow& dr) in c:\workspaces\cupertino\bvcommerce\Main\App\source\BVSoftware.Bvc5.Core\Orders\OrderPayment.vb:346
BVSoftware.Bvc5.Core.Orders.Mapper.FindByBvin(String bvin) in c:\workspaces\cupertino\bvcommerce\Main\App\source\BVSoftware.Bvc5.Core\Orders\Order.vb:2143
BVSoftware.Bvc5.Core.Orders.Order.FindByBvin(String bvin) in c:\workspaces\cupertino\bvcommerce\Main\App\source\BVSoftware.Bvc5.Core\Orders\Order.vb:2027
BVAdmin_Orders_ViewOrder.LoadOrder() +44
BVAdmin_Orders_ViewOrder.Page_Load1(Object sender, EventArgs e) +184
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +132
System.Web.UI.Control.LoadRecursive() +66
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428
Marcus
#2 Posted : Tuesday, April 26, 2011 8:08:00 AM(UTC)
Marcus

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 1,786

Which version number of BV are you running?
JTR0013
#3 Posted : Tuesday, April 26, 2011 8:12:27 AM(UTC)
JTR0013

Rank: Member

Joined: 7/13/2010(UTC)
Posts: 22

5.7.3

Another interesting thing is that we no longer have any Payment options showing up under Options > Payment.
JTR0013
#4 Posted : Tuesday, April 26, 2011 10:14:18 AM(UTC)
JTR0013

Rank: Member

Joined: 7/13/2010(UTC)
Posts: 22

Marcus,
I believe we've resolved the problem but wanted to get your input as to what may have caused this.

This morning our theme was reset to the default theme of BVC5. I changed that to our theme and then noticed that I couldn't view orders through the Admin - this was throwing the error below. I then noticed that going to Options > Payment wouldn't display any payment methods. We tracked down where these were pulling from in App_Code\TaskLoader.vb and uncommented all of the methods expect for 'Telephone'. We refreshed the Payments screen in the Admin which then displayed the Payment Method for Telephone. We began uncommenting the other methods which all displayed. Now that the payment methods were displaying, we were able to view orders again.

Any thoughts on how this would have happened - the payment methods 'disappearing' and the theme switching?

There were server updates installed last night which also required a reboot, but I'm not sure how these updates would have caused these types of issues. Is it some type of permissions issue, etc?

Any help in helping me understand this issue is greatly appreciated.

Thanks
Matt@9BallDesign
#5 Posted : Tuesday, April 26, 2011 10:15:56 AM(UTC)
Matt@9BallDesign

Rank: Member

Joined: 12/23/2003(UTC)
Posts: 909

Download your web.config file


(being sure that you've downloaded and backed it up)



make a quick edit to the file



upload the web.config file



give the site a few seconds, load up the store and the admin.



This should get your payment options back up.
Matt Martell


http://www.9balldesign.com - Web, Print, Graphic


http://www.martellhardware.com/ - Decorative & Builder's Hardware

------------------------------------------------
Marcus
#6 Posted : Tuesday, April 26, 2011 12:00:37 PM(UTC)
Marcus

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 1,786

Code:
in App_Code\TaskLoader.vb and uncommented all of the methods expect for 'Telephone'.


Why were the payment methods commented out in the TaskLoader.vb file? Who changed that file and when?
JTR0013
#7 Posted : Tuesday, April 26, 2011 2:27:42 PM(UTC)
JTR0013

Rank: Member

Joined: 7/13/2010(UTC)
Posts: 22

@Matt@9BallDesign - thanks. Hopefully we don't experience this in the future, but if so then I'll definitely keep that in mind. Is this assuming that the web.config file wasn't loaded properly sometime after the reboot?

@Marcus - That explanation was a typo on my part. The methods were not originally commented out. We commented out everything except 'Telephone' just to see if there was something with the other methods that was causing the problem. Once 'Telephone' showed up in the Admin, then we went through the remainder of the methods and uncommented them one by one and they all showed up.

So after we commented/uncommented everything, the file was essentially back to the way it was before we commented out any code - that's why I'm confused as to how this would then allow it to display the methods since no code was changed.
Aaron
#8 Posted : Tuesday, April 26, 2011 3:32:37 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
We've seen similar things in the past. I'm not sure if there's an internal error or memory leak that causes this this, but restarting the website fixes it every time. You can restart a website in many ways (IIS reset, uploading a new Web.config file, uploading a new file to the /bin folder, etc). It's possible that the issue arises when IIS recycles the app pool.
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
Marcus
#9 Posted : Tuesday, April 26, 2011 7:17:48 PM(UTC)
Marcus

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 1,786

If you're seeing this issue often (a few shared sites do see this with limited memory) you can schedule nightly recycles of the application pool in IIS which tends to take care of the issue.
Matt@9BallDesign
#10 Posted : Wednesday, April 27, 2011 6:32:19 AM(UTC)
Matt@9BallDesign

Rank: Member

Joined: 12/23/2003(UTC)
Posts: 909

Originally Posted by: "JTR0013" Go to Quoted Post

Is this assuming that the web.config file wasn't loaded properly sometime after the reboot?

Along what Aaron said. I've found myself tickling the web.config around the same time that msoft releases sql/windows updates.
Matt Martell


http://www.9balldesign.com - Web, Print, Graphic


http://www.martellhardware.com/ - Decorative & Builder's Hardware

------------------------------------------------
Aaron
#11 Posted : Wednesday, April 27, 2011 12:53:26 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Just got off the phone with a client that this happened to. It doesn't look like the app pool recycled and I don't see any errors in the Windows Event Log or BV audit log.
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
econnolly
#12 Posted : Wednesday, April 27, 2011 12:59:18 PM(UTC)
econnolly

Rank: Member

Joined: 4/27/2011(UTC)
Posts: 2

We're getting an error when trying to view orders as well. We're using BV 6.0.28.95 hosted ....any advice? Thanks.
samstraub
#13 Posted : Saturday, March 3, 2012 3:32:56 PM(UTC)
samstraub

Rank: Member

Joined: 1/3/2007(UTC)
Posts: 23

I am running into this same error, but only during checkout. Using one page checkout, as soon as you try to complete the order.



Bvc 5.7.3



Exception information:
Exception type: ArgumentNullException
Exception message: Value cannot be null.
Parameter name: input


Stack trace: at System.Web.script.Serialization.javascriptSerializer.Deserialize(javascriptSerializer serializer, String input, Type type, Int32 depthLimit)
at System.Web.script.Serialization.javascriptSerializer.Deserialize[T](String input)
at BVSoftware.Cryptography.KeyManager.ParseKeysFromJson() in c:\workspaces\cupertino\bvcommerce\Main\App\source\BVSoftware.Cryptography\KeyManager.cs:line 44
at BVSoftware.Cryptography.KeyManager..ctor(String keylocation, String masterKeylocation, String loadedKeys) in c:\workspaces\cupertino\bvcommerce\Main\App\source\BVSoftware.Cryptography\KeyManager.cs:line 26
at BVSoftware.Bvc5.Core.Utilities.Cryptography.PciEncryption.Encode(String plainText, String salt)
at BVSoftware.Bvc5.Core.Orders.OrderPayment.Mapper.AddParametersToRequest(OrderPayment n, DataRequest request)
at BVSoftware.Bvc5.Core.Orders.OrderPayment.Mapper.Insert(OrderPayment n)
at BVSoftware.Bvc5.Core.Orders.OrderPayment.Insert(OrderPayment n)
at BVSoftware.Bvc5.Core.Orders.Order.AddPayment(OrderPayment op)


The orders and payment pages in bvadmin are loading fine.


I have tried a bunch of stuff, nothing is working. Anyone have ideas?
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012