error

Uploading files with tomahawk - problem with displaying error message

Hello I'm uploading files with <t:inputFileUploadall is working fine but when file is larger from value set in web.xml it doesn't output any error or warning message. My code: <h:form id="uploadForm" enctype="multipart/form-data"> <t:inputFileUpload id="fileupload" accept="image/*" storage="file" ...

Why is there an error when dividing 2/5.0 in Python?

Possible Duplicate: Python float - str - float weirdness In python, 2/5.0 or 2/float(5) returns 0.40000000000000002 Why do I get that error at the end and how can I get the right value to use in additional calculations? ...

Biztalk forced suspense?

Hi, I am getting the error: This service instance was suspended by a BizTalk administrator. However I didn't force a suspense and it's on my local machine. I get this message all the time with every item i input. The thing is I changed a line in assembly which was a small translation, however this couldn't possibly be the cause. ...

How do I force the C# compiler to throw an exception when any math operation produces 'NaN' ?

Some math functions in a program I recently wrote are returning unacceptable values, such as NaN (possibly due to not checking some function's input params). The problem is that it's being quite difficult to track down which functions are passing the wrong values. This results in errors being propagated throughout the code and making the...

Check if an include (or require) exists.

Hi, How do you check if an include / require_once exists before you call it, I tried putting it in an error block, but PHP didn't like that. I think file_exists() would work with some effort, however that would require the whole file path, and a relative include could not be passed into it easily. Are there any other ways? ...

enterprise library logging in C++ - logwriter->Dispose() error

I'm using Microsoft's enterprise library logging to log to a rolling flat file listener in my C++ dll. (IDE - VS2005) I'm having an issue that new files keep getting generated, with the GUID appended to the beginning of the file name. I've been googling this issue, and the solution seems to be to call logwriter.Dispose(). For some rea...

Java/Prolog help - problem trouble shooting

Hello everyone. I'm having a pretty rough time trying to make use of interprolog I have some code, trying to call a prolog command and the problem is the actual loading of my prolog database. Here is the code: myEngine = new NativeEngine(); myEngine.consultFromPackage("userlist.p", LoginHandler.class); boolean x = myEngine....

Python: Help with UnboundLocalError: local variable referenced before assignment

I keep getting this error for a portion of my code. Traceback (most recent call last): File "./mang.py", line 1688, in <module> files, tsize = logger() File "./mang.py", line 1466, in logger nl = sshfile(list, "nl") UnboundLocalError: local variable 'sshfile' referenced before assignment I haven't put the code up cause it goes back an...

Why am I getting "undefined reference to `glibtop_init'" during linking?

I'm building a very small C/C++ project using eclipse and i'm getting the following during build: make all Building file: ../Metric.cpp Invoking: GCC C++ Compiler g++ -I/usr/include/glib-2.0 -I/usr/include/libgtop-2.0 -I/usr/lib/glib-2.0/include -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"Metric.d" -MT"Metric.d" -o"Metric.o" "../M...

Loading Huge resolution images causing Heap error in j2me

Hello, I am trying to load a 3776 * 2816 PNG, 24 bit image - 804KB onto my phone , the MOTO ROKR e6.It gives up with java.lang.OutOfMemoryError,Is their a general way to handle loading such high resolution images.The phone's internal memory is only 8MB, I think this has something to do with the error. I have also, tried to split the im...

Debugging report error on SSRS

Hi Folks, we have a bunch of reports (RDL) on SSRS built using officewriter. Sometimes errors occur in a report after updating the excel template. While the report renders fine, an error occurs on the server when trying to save the report using 'export to excel format for office writer' option. How do we debug to find the cause of the er...

AS3 Error #2044. Once dissmissed the app works fine.

I'm working in as3 and my code is producing an error: "Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed." Other then the fact that the app is producing this error and interrupting users who have a the debug version of the adobe flash player the app works just fine, I "Dismiss All" errors and I've been debugg...

ASP.Net when post back get The specified URL cannot be found

When clicking the save button on a asp.net web form page, I get the following immediately: The specified URL cannot be found This does not happen when I try this using a browser on the web server. Has anyone run across this problem before? Is this some kind of security issue? ...

Error Undefined symbols: "_compress" with Image Upload Class

Hi, im want use this Class http://stackoverflow.com/questions/125306/how-can-i-upload-a-photo-to-a-server-with-the-iphone to Upload an image from my iPhone App to my Webserver. Ive Copyd the header and main file and added "#import "EPUploader.m"" to my ViewControler where i call the EPUploader Method. Error Message is: Ld build/Relea...

Attribute to generate compilation error on method call ?

Hi, I would like to ensure that a method (actually a constructor in my case) is never called explicitly from code. It should only be called through reflection at runtime. To do that, I would like to apply an attribute on the method that would generate a compiler error if the method is called, something like : [NotCallable("This method ...

A strange iPhone CORE DATA error behavior

Hi there, I have a really strange behavior in a Core Data app. This is the code: unaReg.valore = [NSNumber numberWithInt:val]; NSError *error; if (![managedObjectContext save:&error]) { [myUtil manageError:[error localizedDescription]]; } unaReg is a Core Data Entity and I want to update its...

Android Application Development O'reilly MJAnddroid Example Code

Good Afternoon... I recently bought the book "Android Application Development" from O'reilly and I'm at a section where it asked me to download MJAndroid Code and import into Eclipse... Here is the link http://examples.oreilly.com/9780596521509/ I was able to downloaded / import it but now I'm stuck... Here is what it saids... "You...

calling fdopen: Bad file descriptor

I'm getting the following error when trying to compile my program: calling fdopen: Bad file descriptor I've read this might be a problem related to including a precompiled header in one of my header files. The file which is causing the error includes the stdio.h header in it so I have access to the FILE type. If I remove this, the er...

"using typedef-name ... as class" on a forward declaration

I'm doing some policy-based designs here and I have the need to typedef lots of template types to shorten the names. Now the problem comes that when I need to use a pointer to one of those types I try to just forward-declare it but the compiler complains with a test.cpp:8: error: using typedef-name ‘Test1’ after ‘class’ It's nothing to ...

How do I reference the managedObjectContext in my App Delegate from my View Controller?

Hi, I know there are other questions covering this topic, but none seem to fit exactly what I'm experiencing, hence the new question. I have an app which is a UITabBarController, I have defined two subviews Both tabs have their Class attribute in the Identity Inspector set to UINavigationController. Both subviews are Class UIViewContr...