Menu
  • HOME
  • TAGS

Bash - error code in if statement not working

linux,bash,if-statement,error-code

Are you sure that the function backup_failed is behaving as expected? Also note that backup_failed will be triggered twice when RETURNCODE is not 0 and backup_failed doesn't terminate the script: if [ $RETURNCODE -eq 20 ] ; then backup_failed ... ... if [ $RETURNCODE -ne 0 ] ; then backup_failed...

Apache/PHP returns HTTP Status Code 200 on error pages

php,apache,error-code

According to a PHP bug report, the behavior described here is due to how display_errors is set. [2010-02-03 19:03 UTC] [email protected] The reason why display errors needs to be turned of, is because displayed errors generate output, and output causes the headers to be send out. I'm afraid we can't...

RegOpenKeyEx - what does error code 7 mean?

c,winapi,error-code

The MSDN entry for RegOpenKeyEx also indicates that: If the function fails, the return value is a nonzero error code defined in Winerror.h. Those error codes are documented in MSDN - System Error Codes page. If you really are getting 7, then this error would correspond to: ERROR_ARENA_TRASHED 7 (0x7)...

What are the capitalized text identifiers for Win32 error codes called, and how can they be determined programmatically, given an error code?

c#,winapi,error-code,win32exception

For example, in the following error: ERROR_TOO_MANY_OPEN_FILES 4 (0x4) The system cannot open the file. •4 is the error code. •The system cannot open the file. is the message identifier. •ERROR_TOO_MANY_OPEN_FILES is the __________? You are wrong on the last two points. 4 is both the error code and...

What does error code LZO_E_LOOKBEHIND_OVERRUN mean?

c++,error-code,lzo

From http://lists.infradead.org/pipermail/linux-mtd/2011-May/035747.html Can't say much more about this than lzo-2.05/doc/LZOAPI.TXT [1] does: LZO_E_LOOKBEHIND_OVERRUN Your data is corrupted. ...

Catching error code in Java from SQLPlus

java,sqlplus,error-code

So ultimately I found a hack to this entire issue. Here's what I had to do - 1) I am still iterating over all the sql scripts in a directory, but instead of directly executing them, I call another script(test.sql) with the file location of the scripts I am iterating...

Get detailed error message with REST API Azure in Java

java,azure,virtual-machine,error-code

Not really doing work in Java (so there may be better ways of doing it) but I did encounter similar issue when working on a blog post on same topic. This is how I found out error details: Assuming con is your HttpsURLConnection object: int responseCode = con.getResponseCode(); InputStream errorStream...

Build task exits with code -2146233082

c#,.net,visual-studio-2013,error-code

Well, I fixed it. As it turned out, I should not have installed .NET 4.6 preview on my Windows 7 workstation (https://www.microsoft.com/nl-nl/download/details.aspx?id=44928). Then, I tried to enable "RyuJIT" with the register key HKLM\SOFTWARE\Microsoft\.NETFramework\AltJit The only effect of enabling RyuJIT on Widnows 7 was that it started to destroy many (but...

Phonegap FileTransfer error code returns null

cordova,phonegap-plugins,file-transfer,cordova-plugins,error-code

Fixed it in config.xml I used <gap:plugin name="org.apache.cordova.file"/> <gap:plugin name="org.apache.cordova.file-transfer"/> instead of <feature name="File"> <param name="android-package" value="org.apache.cordova.FileUtils" /> </feature> <feature name="FileTransfer"> <param name="android-package" value="org.apache.cordova.FileTransfer" /> </feature> Im using phonegap 3.4.0 for Android...

Function SQL Error Code : 1046

mysql,sql,function,error-code

The error itself saying error is at line no:8 your line no: 8 is assigning a value to a variable from a table. The syntax is wrong Also you are declaring a cursor and creating a temp table after the select statement. This is not the correct order..You should move...

What HTTP error code should I use when trying to insert an already existing object?

rest,http,error-code

409 Conflict seems appropriate for that case. The W3C status code definitions document says: 10.4.10 409 Conflict The request could not be completed due to a conflict with the current state of the resource. This code is only allowed in situations where it is expected that the user might be...

Convenient way to show OpenCL error codes?

opencl,error-code

This is what I currently do. I believe the error list to be complete for OpenCL 1.2. cl_int result = clSomeFunction(); if(result != CL_SUCCESS) std::cerr << getErrorString(result) << std::endl; And getErrorString defined as follows: const char *getErrorString(cl_int error) { switch(error){ // run-time and JIT compiler errors case 0: return "CL_SUCCESS";...

eclipse: java started but was exited with code=14

java,eclipse,error-code

okaaaay, its done. I checked my windows path environment variable. i installed oracle instant client and the installer messed up my path to jre/bin. It installed without telling a jre 1.3, which of course is outdated. i just set the path back to my jre 1.7 and it worked again...

Android - Is it possible to get error “description” from MediaPlayer error code?

android,android-mediaplayer,error-code

From line 2881 of Android Media Player Source Code there are error code defined which description of Error Code occurred. In-case of MEDIA_ERROR_UNKNOWN "Unspecified media player error." is defined to indicate that there is no description available of the error....

Java Detecting Oracle Database Down Error Codes

java,oracle,sqlexception,error-code

Those codes are related to (and returned by) the JDBC driver and should work regardless of where the JDBC driver is deployed (whether it's a standalone app or an app server).

why does my `main()` doesn't catch exception thrown in a `timer` in a junit test?

java,exception,junit,runtimeexception,error-code

Timer event happens in another thread. main thread exits without errors. Error is logged from another. In case of exception you should set some volatile flag from the scheduled job. Wait for job to finish in the main thread and then check this flag. Have a look here: Waiting for...