error

Generating a error code per property in Hibernate Validator

I am looking at using Hibernate Validator for a requirement of mine. I want to validate a JavaBean where properties may have multiple validation checks. For example: class MyValidationBean { @NotNull @Length( min = 5, max = 10 ) private String myProperty; } But if this property fails validation I want a specific error code t...

Windows Azure: asp.net <appsetting> for ChatHttpHandler not found

I have a problem in setting the chartHttpHandler in web.config for windows azure Initially I added a chartHttpHandler on my web.config file <remove name="ChartImageHandler"/> <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, ...

postgres - ERROR: syntax error at or near "COST"

EDIT Taking COST 100 out made the command go through, however, I'm still unable to run my query because it yields this error: ERROR: function group_concat(character) does not exist HINT: No function matches the given name and argument types. You may need to add explicit type casts. The query I'm running is this: select tpid, group_...

postgres - ERROR: operator does not exist

Again, I have a function that works fine locally, but moving it online yields a big fat error... Taking a cue from a response in which someone had pointed out the number of arguments I was passing wasn't accurate, I double-checked in this situation to be certain that I am passing 5 arguments to the function itself... Query failed: ERRO...

Why does Perl complain "can't modify non-lvalue subroutine call"?

I have index.pl and subs.pl. When I run the program, the user inserts the date of birth and then it is passed to the getage() subroutine in subs.pl, which has many subroutines. getage() than implicitly calls another subroutine called validate() which validates the date entered by user. When I run the index.pl and the user enters the dat...

Deleting a database row with mysql - getting an error!?

Here's the code: mysql_query("DELETE " . $_GET['id'] . " FROM forum_favorites WHERE thread_id='" . $_GET['id'] . "' AND user='" . $userinfo['username'] . "'") or die(mysql_error()); And the error message: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax...

Django send_mail results in error 61 refused on Mac OSX

Running into a very stange error. I'm running Django on my Mac OSX and when I tried to send an email from my application it hangs and gives me this error: "Error 61 Connection Refused" Any ideas? I don't have my firewall turned on. I can upload an image of the error if needed. ...

postgresql INSERT ... RETURNING query keeps failing?

The error message is kinda vague... The query below works on one server, but fails on another: INSERT INTO searches (status, uid, datecreated, searchname, options) VALUES (0, 1, NOW(), 'TEST', '16') RETURNING sid; And I get this error: Query failed: ERROR: syntax error at or near "RETURNING" Am I missing something here? ...

Global declarations are illegal in Verilog 2001 syntax!

I have written something small in verilog: `define LW 6'b100011 `define SW 6'b101011 parameter [3:0] i_fetch = 4'b0001, decode_rr = 4'b0010, mem_addr = 4'b0100, alu_exec = 4'b1000; and i am getting this error: Error: test.v(5): (vlog-2155) Global declarations are illegal in Verilog 2001 syntax. What I am doing wrong...

Random GUI errors using C# Mono on Mac OS X

I'm developing an application in C# (Windows Forms), which uses Mono to run on Mac OS X. It contains some dynamic controls, for example a custom groupbox which contains some labels and textboxes, a button, etc.These boxes can both be added and removed dynamically. My CustomGrpBx inherits from GroupBox and this is the contructor I use: ...

How to check PHP filecode syntax in PHP?

Hi, I am in a need of running the PHP parser for PHP code inside PHP. I am on Windows, and I have tried system("C:\\Program Files (x86)\\PHP\\php.exe -l \"C:/Program Files (x86)/Apache/htdocs/a.php\"", $output); var_dump($output); without luck. The parameter -l should check for correct PHP syntax, and throw errors if some problems ex...

GnuPG + Webservice + ASP.NET

Hi! I'm exhausted. I have installed GnuPG and exported secret key, and two public keys (my own and one of my client) from another instance of GnuPG. I try to configure 'my encrypting/decrypting' method on the local machine. When I run encrypting method from a little console application it works good. When I run this (same! - with the s...

I get an error in FF (NS_ERROR_MALFORMED_URI)

Just wondering if there is an easy fix for this problem. The full error is: Error: uncaught exception: [Exception... "Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI) [nsIURL.spec]" nsresult: "0x804b000a (NS_ERROR_MALFORMED_URI)" location: "JS frame :: chrome://fastdial/content/file.js :: anonymous :: line 218" d...

jQuery lightBox plugin, problem with first image

Hi, for start sorry for my bad english... but i have a little problem with this plugin. http://leandrovieira.com/projects/jquery/lightbox/ - to be sure we know what i'm talking about. So... i've got an image gallery with thumbs, and everything goes well.. except... when i click on the first image... it shows - ok, but i can go to the ...

Php trapping maximun execution time error

Is there a way in PHP to trap the fatal error when the max execution time is reached and give the user a better message? ...

What are some different ways to handle warnings and errors in a programming language?

I'm interested in the different ways warnings and errors are (and could be) handled in programming languages. As far as I know, the only language-level error/warning functionality are the following: compiler errors/warnings (which can be created by programmers using compiler commands, usually compiler specific) console errors that can ...

C++ 'ClassName Not Declared' Error

I have this cpp file. dsets.cpp: #ifndef DSETS_CPP #define DSET_CPP //Adds elements to the DisjointSet data structure. This function adds //x unconnected roots to the end of the array. void DisjointSets::addelements(int x){ } //Given an int this function finds the root associated with that node. int DisjointS...

what happens when .NET Framework is not installed?

Hello. Does anyone know what error message will be displayed when someone tries to run an application developed using .NET on a computer where .NET Framework is not installed? ex) Windows XP original. will the error message tell you that .NET Framework is not installed? or will it not show any useful messages? ...

my .jar file won't do anything.

I created a program that more or less holds an array of strings as an object and randomly prints one. so basicaly class Fun { string[] namestrings = new string[#] constructor() { fill with some strings} public static void main (String[]arg) { create instance of class ...

Excel: disable "Error in loading DLL" message

Hello, I am building a data validation system (to check entries in cells) that is referring to a dynamically built named range. Sometimes the range does not exist and I have the "Error in loading DLL message".. is there a way to disable it? Thanks. ...