Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Something failed during waiting for the calculation engine respons
muthuchamyt
#1 Posted : Friday, February 3, 2012 6:41:36 AM(UTC)
Groups: Member
Joined: 2/3/2012(UTC)
Posts: 2
Location: INDIA

Hi,

Our web application call for a 3rd party calculation engine. We get an exception shown below, when application calls the 3rd party. This exception is specific for a particular instance of for a single particular product. Could you please help us in this regard we use Cassini which runs as a 32 bit process. We don't get this issue in a Cassini which runs as both 32 and 64 bit process.

[XML](null)[/XML]
[2012-02-03 09:15:23,611] source='backend', mid='00000000-0000-0000-0000-000000000000', pid='00000000-0000-0000-0000-000000000000', level='ERROR', logger='ExceptionLogger', ncd='(null)', message='Exception'
[ERROR]System.Exception: Something failed during waiting for the calculation engine response
[/ERROR]



If we try again, we get a socket exception and the Cassini stops working.

An existing connection was forcibly closed by the remote host.

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: System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ERROR]System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Hbos.Efs.Quill.ServiceProxy.IllustrationService.CalculateSimple(IllustrationDTO& illustration)
at Hbos.Efs.Quill.ServiceProxy.IllustrationService.CalculateSimple_Customized(IllustrationDTO illustration)
at Hbos.Efs.Quill.Presentation.Presenters.NavigatorPresenter.Calculate()
at Hbos.Efs.Quill.Presentation.Presenters.NavigatorPresenter.NavigateTo(Page navigatePage)
at Hbos.Efs.Quill.Web.UI.UserControls.Navigator.EfsLinkButtonNext_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e)
at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.LinkButton.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(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.policydata_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
[/ERROR]


Regards,
Muthu
muthuchamyt attached the following image(s):
muthuchamyt attached the following image(s): Error.JPG
Ultidev Team
#2 Posted : Friday, February 3, 2012 9:47:52 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi!

Quote:
Could you please help us in this regard we use Cassini which runs as a 32 bit process. We don't get this issue in a Cassini which runs as both 32 and 64 bit process.


We are confused a bit, which UltiDev product do you run, is it UWS or UltiDev Cassini? Do you run our web server on both ends - the one produced the error page, and the one you are trying to reach over the web service?

Also, is this problem intermittent, does it occurs in 100% cases? Could please provide any other details, like have you tried it on different machines, for example?

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#3 Posted : Saturday, February 4, 2012 9:24:56 AM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Hi,
Thanks for your immediate response.
is it UWS or UltiDev Cassini ? it is UltiDev cassini.
Do you run our web server on both ends -yes on both the ends

There is a 3 rd party software called Product Express.Our application's input will be sent to Product Express and some calculations will be happened over there and finally we will get the output from Product Express.Earlier we were using a cassini server which will be compatible only for 32 bit machines.if we run our application in 64 bit machines we wont get the output from product express.
we contacted you regarding this issue 6 months ago and we got 2 cassini files for 64 bit machines.now it is working well for both 32/64 machines but for one scenario(for one product) we could not get the output from product express and we get the error "Something get failed during waiting for the (product express) calculation engine".we are getting this issue in both the 32/64 different machines.

we dont know why this issue occurs only for a particular scenario.
1.do you have any patch files attached to 64 cassini server?If so could you please send it to us?
2.have you released any new cassini which is compatible for both 32 and 64 bit machines?if so please provide.
3.could you please suggest how to resolve this issue.If you have any supportable files pls send it to us.we will try with it.

Thanks.
Ultidev Team
#4 Posted : Saturday, February 4, 2012 3:54:58 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi there!

It seems that Product Express fails, and takes down UltiDev Cassini process down with it - that's why your web service client finds its outbound connection dropped.

We strongly recommend switch to our much more sophisticated UltiDev Web Server Pro (UWS) - it's still small and free, but it supports 32-bit host processes and has much better stability and diagnostics. Once you replace UltiDev Cassini with UWS, you may want to try to host Product Express under UWS Interactive Host, which will display exception info if hosted web application crashes it, so you will know what is happening with Product Express.

Please note that Legacy UltiDev Cassini applications will be run by UWS as 64-bit on x64 systems. If you want to run an application as 32-bit, you will need to unregister it, re-register as native UWS application, which will let you choose bitness.

Please let us know if this information has helped.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#5 Posted : Sunday, February 5, 2012 11:53:57 PM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Hi,

We need to run our application in 64-bit machines.This is the requirement for our project.
Could you please suggest any other way to stop the error.Its very urgent.

Thanks in advance


muthuchamyt
#7 Posted : Monday, February 6, 2012 1:19:44 AM(UTC)
Groups: Member
Joined: 2/3/2012(UTC)
Posts: 2
Location: INDIA

Hi,

The history of the issue is as follows,

We were using Cassini web server which runs as 32 bit process in a 32 bit OS and runs as a 64 bit process in a 64 bit OS. Our third party applications like productxpress will run only as 32 bit process. Hence our application while running as 64 bit OS was unable to invoke a 32 bit productxpress. Then we came to know that we need to run the Cassini as a 32 bit process in a 64 bit OS, so that it would communicate with other 32 bit process like ProductXpress.

You provided us with two exe files
a) UltiDevCassinWebServer2.exe
b) UltiDevCassinWebServer2a.exe


Replacing these files enable us to run the run the Cassini as a 32 bit process in a 64 bit OS.


The issue is for a specific instance we get the above mentioned exceptions.

When we tried with the old exe which we had previously, we dint get the above mentioned issues.

a) UltiDevCassinWebServer2.exe
b) UltiDevCassinWebServer2a.exe

Please help us in this regard.
muthuchamyt attached the following image(s):
muthuchamyt attached the following image(s): Normal Cassini.JPG
muthuchamyt attached the following image(s): 32bit.JPG
Ultidev Team
#8 Posted : Monday, February 6, 2012 9:54:33 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi there.

UWS can run your application in either 32 or 64 bit host process on x64 system. You specify that when you register an application with UWS.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#9 Posted : Tuesday, February 7, 2012 3:57:23 AM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Hi,

Earlier you had given me UltiDevCassinWebServer2.exe and UltiDevCassinWebServer2a.exe files for both 32 and 64 bit machines.Do you mean the same files?If not ,could you please send me the UWS files so that have to add those files in my setup solution.

Thanks.

Guest
#10 Posted : Tuesday, February 7, 2012 9:05:14 AM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Hi,

The issue doesnt seems to be from the ProductXpress , when we invoke the productXpress through Casini we are getting the following exception :

[2012-02-07 13:39:28,058] source='backend', mid='00000000-0000-0000-0000-000000000000', pid='00000000-0000-0000-0000-000000000000', level='ERROR', logger='ExceptionLogger', ncd='(null)', message='Exception'
[ERROR]System.Runtime.InteropServices.COMException (0x80010105): The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
at CalculatorCOM.PxPushCalculatorClass.calculate(String input)
at Hbos.Efs.Quill.Px.CalculationRequestLibrary.PxEmbeddedCalculatorPushWrapper.Calculate(XmlDocument input)
[/ERROR]
[XML](null)[/XML]

The above exception clearly states that the error is thrown from server(Casini) end. And too we experience this only when we force the casini webserver to run for 64 bit environment.Please check this at your earliest and respond , since its very urgent for us to fix this issue.
Ultidev Team
#11 Posted : Tuesday, February 7, 2012 9:45:36 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi,

UWS is a new, improved web server product, and we have provided the link to it in our first response. You can download UWS here. Please install UWS on the same machine as UltiDev Cassini. UWS will replace Cassini and will host its applications. However, as we have pointed out in our previous response, if you host applications under 32-bit of Cassini on x65 systems, you will need to unregister and re-register the application with UWS, using UWS 32-bit host.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#12 Posted : Tuesday, February 7, 2012 1:10:46 PM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Hi ,

our applications is a setup solution.In this case I need to add the UWS in my setup cassini folder.Could you please tell what are all the UWS files that we need to add in the cassini folder.
Please provide any guideline like how we can add the UWS files to the .Net setup solution.

Many thanks.
Ultidev Team
#13 Posted : Tuesday, February 7, 2012 1:39:02 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi,

If this issue is affecting only one installation out of many, please guide your customer to download & install UWS and re-register the application. You can replace UltiDev Cassini with UWS very easily. Try it first on a test system to practice though.

If this issue affects all or majority of your customers, you will eventually need to change your installer to include UWS instead of Cassini, as described in great detail here.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#14 Posted : Tuesday, August 26, 2014 1:13:03 AM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Message was deleted by a Moderator.
Guest
#15 Posted : Tuesday, November 4, 2014 9:05:27 AM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Message was deleted by a Moderator.
Guest
#16 Posted : Tuesday, November 4, 2014 11:42:06 AM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Message was deleted by a Moderator.
Guest
#17 Posted : Monday, December 8, 2014 8:51:06 PM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Message was deleted by a Moderator.
Guest
#18 Posted : Sunday, April 15, 2018 5:22:21 PM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Message was deleted by a Moderator.
Guest
#19 Posted : Thursday, September 13, 2018 5:13:19 PM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Message was deleted by a Moderator.
Rss Feed  Atom Feed
Users browsing this topic
Guest (4)
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 can vote in polls in this forum.