error-message

strings invalidated after parser finished, iphone

I've parsed an xml and stored the parsed data on strings which are property declared, retained and synthesized, the values are getting into these strings during parsing, but are being invalidated after the parser finish parsing. I'm not able to access them from another IBAction method, where i get EXEC BAD ACCESS error, which, from my ex...

organizing technical and user-facing error messages in php

I'm having a little trouble organizing my error messages for two interacting classes. One object has states that are 'error-ish', where something went wrong, or happened unexpectedly, but the situation is still salvageable. I don't want to use exceptions, 1. because they only have a single string for the message, and 2. because I want to...

Add Source file link to the default ASP.NET Server Error page?

Has anyone ever thought to attempt to modify the default ASP.NET Server error page to provide a link BACK to the error source in Visual Studio? Consider the following standard error page in ASP.NET: Server Error in '/myproject' Application. Invalid object name 'usp_DoSomething'. Description: An unhandled exception ...

How To Ignore Warnings With GCJ

I have some classes that implement interfaces, some of which have methods whose parameters are by definition unused in the particular class implementation. e.g. A "Shape" interface may define a "contains(point)" method, but my particular class defines a line, which cannot contain anything since it's 1-dimensional, so it always returns fa...

VS2008: Unable to start debugging, Remote Debugging Monitor has been closed

I am getting a mysterious error from time to time that I just don't get. I can "fix" it by restarting Visual Studio 2008, but that isn't exactly a solution... It states the following: Error while trying to run project: Unable to start debugging. The Microsoft Visual Studio Remote Debugging Monitor has been closed on the remote ...

Cakephp saveAll() Fatal error: Call to a member function getColumnType()

So I am creating a form builder. Users will login and then fillout the forms that Admins have created. I am using saveAll() in my "data_controller" "add" method. This works fine and and looks like this: //debug($this->data); prints the following //app/controllers/data_controller.php (line 21) Array ( [Datum] => Array ( ...

$_REQUEST not created when using variable variables?

Consider the following snippets of code: Exhibit A: $_REQUEST = json_decode(stripslashes(json_encode($_REQUEST, JSON_HEX_APOS)), true); Exhibit B: ${'_REQUEST'} = json_decode(stripslashes(json_encode(${'_REQUEST'}, JSON_HEX_APOS)), true); Exhibit C: ${'_' . 'REQUEST'} = json_decode(stripslashes(json_encode(${'_' . 'REQUEST'}, JSO...

InstallShield 2010 - 1603 Fatal Error [Windows Installer] (Windows 7 Only)

Hi all, I created an MSI InstalScript Project where i deploy a web based (ASP.NET) precompiled project copying the files during installation in the \inetpub\wwwroot\projectnamefolder, creating an AppPool and the virtual dir of course in the IIS. The setup works great in windows XP Pro (SP3 i used). But soon as i try in Windows 7 (tried ...

Customize errors symfony

There are some "best practice" in Symfony to customize form errors? For exemple, if i would to show "Campo obligatorio" when the field is required. 1)How can i do that better way and independent from what forms call it? 2)How can i customize message 'An object with the same "%namefield" already exist.' ? Thanks updated sorry, but if...

ValueError: no such test method in <class 'myapp.tests.SessionTestCase'>: runTest

I have a test case: class LoginTestCase(unittest.TestCase): ... I'd like to use it in a different test case: class EditProfileTestCase(unittest.TestCase): def __init__(self): self.t = LoginTestCase() self.t.login() This raises: ValueError: no such test method in <class 'LoginTest: runTest` I looked at the unittest ...

unidentified com_error in python

I've encountered the following error while scripting in Python. ERROR Tue 19. Jan 14:51:21 2010 C:\Python24\Lib\site-packages\win32com\client\util.py:0: Script Error com_error: (-2147217385, 'OLE error 0x80041017', None, None) Unfortunately, I don't know what it means, or even what other information I might need to find out. Does ...

best practice to handle error in multilingual application

hi. i am developing a multilingual application in which i have to consider different errors.. suggest me whether i use error code or exceptions... ...

Can you make CustomValidator's ErrorMessage show up in a TextBox?

I have the following code: <asp:TextBox runat="server" ID="textBox1" /> <asp:CustomValidator ID="validator1" runat="server" ErrorMessage="error message" OnServerValidate="thing_to_validate" Display="Dynamic"></asp:CustomValidator> This allows the error message to show up BELOW the textbox when validating. My question is, how can I m...

JNI Unsatisfied Link Error

Hello, I am getting the following error. Please advide where I may be going wrong. Exception in thread "main" java.lang.UnsatisfiedLinkError: Plcio.open(Ljava/lang/String;)I at Plcio.open(Native Method) at Plcio.main(Plcio.java:11) I am certain that the library is present in the path specified. Plcio.java public class Plcio { priva...

Oracle DML errors lacking detail

I am catching errors from a bulk insert operation like this: begin --bulk insert forall i in v_data.first .. v_data.last save exceptions insert into my_filter_table values v_data (i); commit; exception -- catch and print the saved-up DML errors. when X_DML_ERRORS then declare v_iteration...

Interpreting a JVM Class cast exception error message - what is the original type that can't be casted

I have a Java production system with IBM JVM running on Linux. A customer reports the following exception printed to the log: java.lang.ClassCastException: [B incompatible with java.lang.String When trying to cast the individual attributes returned from: javax.naming.directory.InitialDirContext(...) From this exception I can't figure ou...

StructureMap 202 - Why?

OK, I'm trying to set a property on a type I'm registering with SM. Here's the code from the registry in one of my components. This registry is being added during the configuration from a console app. When I try to access the EndorsementSpecs property of the instance AutoMandatoryEndorsementAggregator object, I get the 202. What's int...

Error : The service is invalid

Hi everybody, I am having some problem in installing my app on the iphone as I am constantly getting the following error message The service is invalid Please check your setup and try again (0XE8000022) It was running perfectly well till yesterday but since yesterday I am having this problem. Can anyone help me with this... Thanx...

Implementing a Custom Error page on an ASP.Net website.

I have an ASP.Net website and I want to use a custom error page. I put the following code in my web.config <customErrors mode="On" defaultRedirect="~/error.aspx"> <error statusCode="404" redirect="~/error.aspx" /> </customErrors> The problem is when i go to a URL that does not exist is still uses the 404 error page specified in II...

Why varargs should be the last in method signature?

If I try to write a method like below public void someStuff(Object ... args, String a ) I get this error The variable argument type Object of the method someStuff must be the last parameter. I don't fully understand the requirement of variable argument type to be the last. Any inputs will be helpful. ...