ENOENT recieved on recv system call on a network socket - network-programming

In my C++ client i am using boost apis to perform send and receive of data to a server.
But once in a while when I am reading from the socket boost reports system error 2 which corresponds to "ENOENT" (No such file or directory).
Can any one tell in which condition can ENOENT be returned in recv/recvmsg system call ?

There was mis-interpretation of error code. system error code 2 in boost corresponds to EOF which occurs when sending entity has closed the socket while receiving entity is still performing read

Related

Windows ServerCore - HttpSendRequest ends in Operation aborted

I have a .NET(x64) console application (RPC-Endpoint) programmed with Delphi running in a windows/servercore docker container. That RCP-Endpoint calls a soap interface in the background to gather some further data.
When I run this RPC-Endpoint on the servercore and the application tries to call the soap-endpoint, it stops with the error Operation aborted at Soap.SOAPHTTPTrans.SOAPHTTPTrans.THTTPReqResp.Send.
Now my guess is that something is wrong with the WinINET library on the servercore, because the Delphi SOAP-Client uses the HttpSendRequest function from the WinApi.WinINET library to call a SOAP-Endpoint.
Now my question is, is there any package that needs be installed on the windows/servercore so that the application can call an soap-endpoint without getting the Operation aborted error?

IIS: FailedRequestTracing module failed to write buffered events to log file for the request that matched failure definition

In my web Site I have enabled Failed Request Tracing log feature and configured it to store log files into
the default folder %SystemDrive%\inetpub\logs\FailedReqLogFiles and I have set some failed request tracing rules.
I have granted write permissions to that folder for application pool identity and I have checked that IIS_IUSRS account has write permissions as well on that folder.
My web site is an ASP.NET MVC application that uses Web Garden configuration (application's pool is set to 4 worker processes).
Log files are correctly stored in the folder but I get continuous warning messages in the event log like below:
FailedRequestTracing module failed to write buffered events to log
file for the request that matched failure definition. No logs will be
generated until this condition is corrected. The problem happened at
least %1 times in the last %2 minutes. The data is the error.
It seems like the cause is that more than one worker process is trying to create a file log in the same folder so they are conflicting/collisioning when creating the next filename in sequence with a correlative number as explained here by anilr.
How can I solve this problem in order to avoid warning messages appear constantly in the event log?
Note: I am using IIS 8.5.9600.16384 under Windows Server 2012 R2 Standard.
This event is logged when FailedRequestTracing module failed to write buffered events to log file for the request that matched failure definition. you can try the following steps to solve the problem.
Enable tracing access to the log file directory.
Find the current Failed Request Tracing log file path setting.
Make sure the configured Failed Request Tracing log file directory exists.
Make sure the IIS_IUSRS group has permission to write to the log file directory.
More information about this error you can refer to this link: FailedRequestTracing module failed to write buffered events to log file for the request that matched failure definition.

Push doesn't work (Error: Could not get)

Trying to use Ratchet's push.js, but doesn't work.
What I have in console:
[Error] Error: Could not get: file:///var/mobile/Applications/337585D8-89E1-4810-AB37-0A6DD2DA3A34/Gustav.app/www/booking.html
failure (ratchet.js, line 446)
onreadystatechange (ratchet.js, line 371)
If you will tap link like ten times you start to receive this:
[Error] TypeError: 'undefined' is not an object (evaluating 'cacheMapping[PUSH.id].url')
cachePush (ratchet.js, line 202)
PUSH (ratchet.js, line 392)
touchend (ratchet.js, line 258)
All this console data from real device tests (iOS 7.1), wrapper is Cordova CLI 3.4.1-0.1.0.
File booking.html exist, native safari failure like this
[Error] Failed to load resource: The requested URL was not found on this server. (menu.html, line 0)
doesn't appear.
push.js does not support file:// protocol.
Ratchet uses XHR requests to fetch additional pages inside the
application. Due to security concerns, modern browsers prevent XHR
requests when opening files locally (aka using the file:// protocol);
consequently, Ratchet does not work when opened directly as a file. A
common solution to this is to simply serve the files from a local
server. One convenient way to achieve this is to run python -m
SimpleHTTPServer to serve up the files in the current directory
to http://localhost:<port>
Also see this issue and this issue submitted on Github
It seems like this is a common issue with using Cordova and Ratchet.

Connection error between IBM Message Broker (MB) and WSRR

I tried every possible way to connect WSRR from IBM Message Broker (MB). But I am getting this exception every time.
Code:
<?xml version="1.0" encoding="UTF-8"?><LookupResults><ServiceRegistry>Failure to retrieve Service from WSRR!</ServiceRegistry><Exception><RecoverableException><File>F:\build\S000_P\src\DataFlowEngine\ImbDataFlowNode.cpp</File><Line>1129</Line><Function>ImbDataFlowNode::createExceptionList</Function><Type>SRRetrieveITServiceNode</Type><Name>WSRR_Connectivity#FCMComposite_1_8</Name><Label>WSRR_Connectivity.Endpoint Lookup One</Label><Catalog>BIPmsgs</Catalog><Severity>3</Severity><Number>2230</Number><Text>Node throwing exception</Text><RecoverableException><File>F:\build\S000_P\src\DataFlowEngine\PluginInterface\com_ibm_broker_plugin_CMbService.cpp</File><Line>1860</Line><Function>ImbJavaExceptionUtils::throwableToNativeException</Function><Type></Type><Name></Name><Label></Label><Catalog>BIPmsgs</Catalog><Severity>3</Severity><Number>4367</Number><Text>Unhandled exception in plugin method.</Text><Insert><Type>5</Type><Text>evaluate</Text></Insert><Insert><Type>5</Type><Text>Endpoint Lo[/code]
The Java based SRRetrieveITServiceNode has thrown an exception and this has been wrapped in the parent BIP2230 exception when it was thrown across the JNI boundary between the SRRetrieveITServiceNode and the rest of the flow.
Unfortunately your pasted XML has truncated the rest of the exception stack but I would expect that the innermost exception in the stack will tell you the root cause of the problem.
IBM suggests the following solution:-
Resolving the problem
Ensure the certificate in broker truststore is of X.509 format and that broker is pointing to a .jks truststore

How to set connection affinity mask in SQL server 2005 when enabling VIA protocol

I have developed an SUP HWC application(for iOS) to fetch data from SQL server 2005 using stored procedure.In SUP workstation, I'm able to see the preview while creating MBO.I deployed my application in Sybase control center and able to view the application.Till now every thing works fine :)
When I'm fetching data from the iPhone simulator, got following error:
error code 503 com.microsoft.sqlserver.jdbc.sqlserverexception the tcp/ip connection to host failed
I'm trying clear error by fallowing this:
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/bd5bb6c2-a4d9-4071-b2e6-a6c83970b212/commicrosoftsqlserverjdbcsqlserverexception-the-tcpip-connection-to-the-host-has-failed
Where, its saying to enable VIA protocol.I enabled it and restarted the SQL server service...
And got following error:
The request failed or the service did not respond in a timely fashion. Consult the event log or other applicable error logs for details.
I'm trying to solve this by following link:
http://support.microsoft.com/kb/955768
where, in Method-2 point no-7 it says like this:
Right-click VIA, and then click Properties. In the Listen Info box, type a connection affinity mask that matches the configuration of the computer, and then click OK.
My problem is, How do i find connection affinity mask in configuration of a computer.
Here is MY system details:
1. i7 Processor(having 8 processors) with 64 bit win7 OS.
2. My iPhone emulator is running on virtual MAC(on point-1).
Please help.Thanks.
Well.The service is started for me by making connection affinity mask as [0xAA] in the setting. :)
But, still I'm not able to access my SQL server Database from iPhone HWC application(made by SUP tool) and getting same error:
"error code 503 com.microsoft.sqlserver.jdbc.sqlserverexception the tcp/ip connection to host failed" :(
Any clue??

Resources