error-message

Is there any good way to debug "String or binary data would be truncated?"

The year is 2010. SQL Server licenses are not cheap. And yet, this error still does not indicate the row or the column or the value that produced the problem. Hell, it can't even tell you whether it was "string" or "binary" data. Am I missing something? ...

Grails Problem with custom error messages

Hi, I am currently trying to specify custom error messages in grails for the default constraints but so far all I get back is the default error message. I know that I have to edit the grails-app/i18n/messages.properties file If I change the following default error codes message, it will correctly display the new error message default...

Is there a list of all possible PHP imap_last_error() messages?

imap_last_error() gives a string return in PHP when an error has occured. I'd like to capture these so I can pass them to my app and act upon them. Problem is, it doesn't give a error code, additionally I can't find all the possible errors of which may appear. Does anyone know where I can discover these? Currently I know 'Unknown Erro...

access Error table in msi

Hi All, Basically I am trying to make a localized copy of an existing English msi file. If I rebuild the MSI with proper wxl file n code page it takes a long time, and I need my installer in more than 25 languages. I am able to access all other local strings like text on controls n all but I couldn't find the way to change the error tabl...

Displaying Grails Field Errors

Does anybody know how I could get the fieldError to print out in the example below. for each item with an error, I would like to print custom error messages that I have defined in the messages.properties file at the moment all this does is print the default error codes item.errors?.allErrors?.each{ println it.toString() }; I have ...

Send Facebook message from application

Hello! How can I send a message to the currently logged in user from inside a Flex application contained in a Facebook iFrame and using the official AS3 Library for Facebook please? ...

geoDjango - coercing to Unicode: need string or buffer, LineString found

I'm running a Django installation with geoDjango, and have created a model like this: #models.py from django.contrib.gis.db import models class Route(models.Model): name = models.CharField(max_length=100) path = models.LineStringField(srid=4326) objects = models.GeoManager() def __unicode__(self): return str(s...

RegQueryValueEx gets a weird value

I am trying to retrieve some values from the registry. Here is the full path: [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes] "ThemeChangesMousePointers"=0x00000001 (1) And here is my code: HKEY hKey; DWORD dwDisp = REG_DWORD; DWORD dwType; DWORD dwSize = sizeof(DWORD); DWORD dwValue = 0; DWORD dwReturn; char buffe...

How can you make Pylons email you the full post parameters with an error report?

Pylons can email you errors when something goes wrong in production mode, but it truncates the post parameters so it's hard to see what the error is. Is there a way to make it email you the whole thing? ...

Android Question - "Id cannot be resolved or is not a field" error?

I keep getting this error... should I just make "id" a field? My code: public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); ImageView mainimage = (ImageView) findViewById(R.id.mainanim); mainimage.setBackgroundResource(R.anim.mainanim); mainanimation = (AnimationDr...

Rails 3 Nested resources undefined method error

In Rails 3 edge, I have set up two nested resources like this: config/routes.rb resources :agencies do resources :properties end I use Mongomapper as my ORM, and when I try to create a new property under an existing agency, I get this error: ---> http://localhost:3000/agencies/4c3ff0f455899f0fb5000001/properties/new NoMethodErro...

C#/XML: 'System.Xml.XmlDocument' does not contain a definition for 'Descendants'

I just received an error a while ago from this code: private void ShowXMLDatatoRTB() { XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load("XMLFile.xml"); var persons = from person in xmlDoc.Descendants("Person") select new { Name = person.Element("Name").Value, City = person.Elem...

Warning: preg_match() [function.preg-match]: Unknown modifier '/' -- I would like help to fix this problem.

I'm trying to use preg_match to return all the URL's that are inclosed in " " in a page source code. The code I am using is preg_match('"http://(.+?)\"', $code, $matches); And I am getting the following error: Warning: preg_match() [function.preg-match]: Unknown modifier '/' in .... on line 13 Please help me. This is driving me m...

error:$("#menu ul.menu").lavalamp is not a function

dear all..i have a problem. at firebug show: $("#menu ul.menu").lavaLamp is not a function at menu.js the hover at menu not show. this problem show after i put this: <style type="text/css"> * { margin:0 auto; padding:0; } body{ w...

Show errors before redirect

Hi all! When i do a redirect, no errors are shown. I use codeigniter framework and there's error_reporting(E_ALL); ini_set('display_errors', 1); in my index.php file. When something is breaking in my code(e.g.some 'undefined index' error) and i do a redirect to another page - the error isn't showing. How to avoid this - break the red...

error message: expected ')' before 'NSRect'

I am having a strange error in the program. However, I do not find any syntax error. The error is: expected ')' before 'NSRect'. How can I get rid of it? I get those errors in line 1 and 2. I also tried importing Foundation/NSGraphics.h. It did not work. #import <Foundation/Foundation.h> @interface MyQuartzView : NSObject { } - (id)i...

How to retrieve useful system information in java?

Which system information are useful - especially when tracing an exception or other problems down - in a java application? I am thinking about details about exceptions, java/os information, memory/object consumptions, io information, environment/enchodings etc. ...

Does anyone use a style guide for error messages?

I've noticed that error messages tend to be written in a handful of common styles. Either in full-form, casual-friendly sentences, or in shortened passive ones that don't always form a full sentence. The latter of the two seems to be the more common - though maybe not as common as the haphazard mixing of styles that I see in a lot of app...

Getting a line # and proc name in asp.net

I am writing an error log procedure (for security reasons I cannot use log4net / elmah etc), and I wanted to know if it is possible to get the line number of the line where the error occured and / or the procedure name where the error occured? I will be creating try catch finally statement blocks, so I am hoping to get the line number of...

apply decorator to all django error views

Hi I've got a Http BasicAuth decorator wrapped around most of my views in django on my testing site and no BasicAuth on my production site. If debug = false it simply returns the view, otherwise it does a BasicAuth password check. I just discovered that the nice debug error pages are still visible to any little hacker, though. (Obvious...