error-message

Error monitoring/handling on webservers

Hi everybody, We have a web server that we're about to launch a number of applications onto. They will all share database and memcached servers, but each application has it's own mySQL database and all memcached keys per application, is prefixed. Possible scenario: If a memcached server in our cluster goes boom, we want someone (opera...

How to avoid notice in php when one of the conditions is not true

I've notice that when one of the two conditions in a php if statement is not true. You get an undefined index notice for the statement that is not true. And the result in my case is a distorted web page. For example, this code: <?php session_start(); if (!isset($_SESSION['loginAdmin']) && ($_SESSION['loginAdmin'] != '')) { header ...

Intrinsics program (SSE) - g++ - help needed

Hi all, This is the first time I am posting a question on stackoverflow, so please try and overlook any errors I may have made in formatting my question/code. But please do point the same out to me so I may be more careful. I was trying to write some simple intrinsics routines for the addition of two 128-bit (containing 4 float variabl...

400 error when submitting tumblr post (ruby on rails)

I am having a bit of an issue with getting tumblr working within a rails app. This is the snippet of code which results in a 400 error (meaning that there was an incorrect parameter) @postcontent = @post.content.gsub(/<\/?[^>]*>/, "") post = Tumblr::Post.create(:email => 'valid@email', :password => 'mypassword', :type => 'video', :em...

Send error message as JSON object

I have two servlet: first servlet is similar to a client and creates an HttpURLConnection to call the second servlet. I would like send a special error, formatted like a JSON object, so I call sendError method in this way: response.sendError(code, "{json-object}") But in the first servlet when I read error with getResponseMessage me...

How to nicely inform to the user that an unknown error has happened?

There are several guidelines for error reporting, that are usually based on giving to the user useful information when he or she does something wrong, but to give this kind of information you need to be handling the error and know that it can happen. There are also tons of articles about designing 404 error pages. But, what can you do wh...

Error message when compiling while-loop expected identifier

When trying to compile an infinite while loop in xcode iphone view based application, it gives me an error that reads expected identifier or '(' before 'while'. I made it as simple as possible. Sorry about the picture. Code block was not working. If you want to see an image of the code, here is the link. http://www.freeimagehosting....

How to show / debug PEAR::DB errors in webpage?

I am connecting to MySQL database on my webpage and have this copy-pasted code for errors: if(DB::isError($db)) die($db->getMessage()); I have the connection code in an outside file called connection.inc that I include at the beginning of my page before the DOCTYPE and html tags. For debugging purposes, how can I print the database e...

Interpreting java.lang.NoSuchMethodError message

I get the following runtime error message (along with the first line of the stack trace, which points to line 94). I'm trying to figure out why it says no such method exists. java.lang.NoSuchMethodError: com.sun.tools.doclets.formats.html.SubWriterHolderWriter.printDocLinkForMenu( ILcom/sun/javadoc/ClassDoc;Lcom/sun/javadoc/Member...

Another Call to a member function get_segment() on a non-object question

I get the above error when calling this code: <? class Test1 extends Core { function home(){ ?> This is the INDEX of test1 <? } function test2(){ echo $this->uri->get_segment(1); //this is where the error comes from ?> This is the test2 of test1 testing URI <? } } ?> I get the error where commentated. This class extends this class: ...

ld: symbol(s) not found with OpenSSL (libssl)

...

XForms bind element error

Hi! I am changing my code to use binds in XForms (which is better practice than using nodesets everywhere!) but I am getting errors. The error message I receive is: "Error: XForms Error (8): id (data_criterion) does not refer to a bind element..." From tutorials/guides I have been using, it seems as though this should work, but clear...

Pop-up message: assert failed

What does a pop up that says assert failed mean? ...

Standard error messages

Very often we have to make up standard messages to show user. It can be an error or a warning message, whatever. Has anybody seen somewhere a site with such messages? ...

strange error in running executable files (linux)

I try to run an executable file on newly installed Ubuntu and I get this strange error >./hadoop hadoop : Not a directoryh >hadoop hadoop command not found the first error says "directoryh", what is the reason for these messages ...

Why does PostgreSQL have to be different (scheme does not exist)?

I'm not used to working with PostgreSQL, but am using Zend_Db_Select to create my queries. What does the error below mean? SQL error: ERROR: schema "il" does not exist In statement: SELECT il.count(*) AS "count" FROM "image_lite" AS "il" INNER JOIN "exif_parse" AS "ex" ON il.image_id = ex.image_id WHERE (ex.cam_make = 'apple') ...

What is causing this template-related compile error? (c++)

When I try to compile this: #include <map> #include <string> template <class T> class ZUniquePool { typedef std::map< int, T* > ZObjectMap; ZObjectMap m_objects; public: T * Get( int id ) { ZObjectMap::const_iterator it = m_objects.find( id ); if( it == m_objects.end() ) ...

internel server error 500

hello, I made a web application that I connect to it from a mobile device and I used Ajax Request Object but the status of the object returned data is 500 and after search I found that this means Internel Server Error 500 Is there any suggestions what may be the reason ?? thanks ...

Null check error message as "is null" or "was null"

When doing null checks in Java code, and you throw IllegalArgumentExceptions for null values, what kind of message template do you use? We tend to use something like this public User getUser(String username){ if (username == null){ throw new IllegalArgumentException("username is null"); } // ... } What is better : "i...

Debug.Assert-s use the same error message. Should I promote it to a static variable?

I love Asserts and code readability but not code duplication, and in several places I use a Debug.Assert which checks for the same condition like so: Debug.Assert(kosherBaconList.SelectedIndex != -1, "An error message along the lines - you should not ever be able to click on edit button without selecting a kosher bacon first."); This ...