exception

ORA-04091 on Create or Replace Trigger xxx Before Insert of Update on xxx

Can someone help me correct the Trigger below? I am assigned this problem but my technical skill is limited. My script hit the error below (ORA 4091): Processing STANDARD PO Number: 27179 ...................................... Updating PO Status.. Done Approval Processing. dist id 611294gl amount 10000.88 bill_del_amount 0 l_amoun...

Constraint Exception when copying table?

I'm experiencing some weird behavior when trying to modify some DataTable objects. Upon the second call to the subroutine, I get the following error when I to copy the source DataTable to a working set: System.Data.ConstraintException was caught Message="Column 'pk' is constrained to be unique. Value 'path0.tag0' is already...

Grails, Nimble and Blogito

Hi, I tried to run the sample application of Nimble 0.2 (blogito) downloaded here : http://github.com/intient/blogito but unfortunately I got stuck with 2 major issues: When running grails run-app, I got 2 times out of 3 the following error : 2009-10-24 14:38:15,198 [main] ERROR context.ContextLoader - Context initialization faile...

WinForms - why aren't my exceptions caught?

Hi, In my multithread server I am using following code (before running Form itself or course) AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomainUnhandledException); Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(ApplicationThreadException); The called methods...

What is causing this Python exception?

I have a C++ app that uses Python to load some scripts. It calls some functions in the scripts, and everything works fine until the app exits and calls Py_Finalize. Then it displays the following: (GetName is a function in one of the scripts) Exception AttributeError: "'module' object has no attribute 'GetName'" in 'garbage collection' ...

Python Selenium handling Timeout Exceptions with a long list of URLs

Hi, I am using selenium RC to cycle through a long list of URLs, sequentially writing the HTML from each URL to a csv file. Problem: the program frequently exits at various points in list due to URL "Timed out after 30000ms" exceptions. Instead of stopping the program when it hits a URL time-out, I was trying to have the program simply ...

How to throw a exception that doesnt inherit from Exception?

I would like to test some exception handling logic in the empty catch block of the below code. try { //Do Some stuff that throws a exception //This is the code i need } catch (Exception) { //Handle things that inherits from Exception } catch { //Handle things that dont inherits from Exception //Want to test this code } ...

Why I get UnsupportedOperationException for this?

I am using a List to hold some data obtained by calling Array.asList() method. Then I am trying to remove an element using myList.Remove(int i) method. But while I try to do that I am getting an UnsupportedOperationException. What would be the reason for this? How should I resolve this problem? ...

Visual Studio does not break at exceptions in Form_Load Event

I recently updated my laptop from Vista 32bit with Visual Studio 2005/2008 installed to Windows 7 x64 with only Visual Studio 2008 installed. So I don't know if this is a "Windows 7" issue or just a configuration within visual studio. My problem is that exeptions in the Form_Load() event get swallowed without notifing me, which makes i...

How to debug "Safe handle has been closed" error

Code which I have inherited keeps crashing out rather powerfully with the following error (not changed at all): System.ObjectDisposedException: Safe handle has been closed at Microsoft.Win32.UnsafeNativeMethods.GetOverlappedResult(SafeFileHandle hFile, NativeOverlapped* lpOverlapped, Int32& lpNumberOfBytesTransferred, Boolean bWait) ...

FileUtils.readFileToByteArray throwing java.lang.OutOfMemoryError: Java heap space error

I am using Apache Commons IO FileUtils utility to read a file into a byte array. The file is 1.13 gigabytes in size. Each time this method is called, I get an out of memory error. I have this running on a Windows Server 2008 64 bit server with 8GB of memory. The first time I got this error, I opened up the Tomcat 6 Configuration utility ...

string.Contains with Linq To Sql return an Null exception

My Linq To Sql query PROJETS = PROJETS.Where(p => (p.VilleArrive != "" && p.VilleArrive != null) && p.VilleArrive.Contains(alerte.VilleArrive)); is translated like this SELECT * // (many columns) FROM [dbo].[cov_Projet] AS [t0] WHERE ([t0].[VilleArrive] <> @p0) // city != "" AND ([t0].[VilleArrive] IS NOT NULL) // city != nul...

PHP Exceptions and Security

When in a page triggered by an exception, what vulnerabilities is a php page open to? I am using Kohana and am used to triggering exceptions (404, runtimes, etc) But I recently read a book (19 Sins in Software Security) that says a site in an unstable state(i.e. in an page triggered by exception) is open to critical attacks. I am worr...

What are possible reasons for "Potentially dangerous Request.RawUrl"?

In an asp.net web forms application we get an error message with "A potentially dangerous Request.RawUrl" sometimes, but I cannot find the source of it. What are the possible reasons for this exception? Some details from our case: Event message: A validation error has occurred Exception type: System.Web.HttpRequestValidationExcept...

I can't load bitmaps on WinCE

I wrote a small project that displays icons on the screen on WinCE. The icons are 28x28 16-color BMP files, placed in the main resource file (Resources.resx) (the resx for the main Form has the same problem, and GIF files don't work either). The first time I try to get any bitmap from the resources, an exception of type Exception with M...

Getting an exception when site is pushed to production

This is probably a shot in the dark but here goes nothing... I have a Sitecore 6 site that I am developing locallty. When I pushed it to the production server, I now get an exception when trying to access the site. I had done an upgrade of the Sitecore version, and added the Forms module, among some other minor edits. So I moved ever...

Security exception when launching c# app from network location

Hi, i have a very small utilty app written in c# that works fine on my local machine but if i put it on a network drive and try to run it from there i get the following securityException.. Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c...

Debugging C++ from core files with GDB

GDB seems to always just work for C programs, but for C++ I often get these cryptic stacks: (gdb) bt #0 0x08055fa4 in std::runtime_error::what () #1 0x080576c8 in std::runtime_error::what () #2 0x08057dda in std::runtime_error::what () #3 0x080580d2 in std::runtime_error::what () #4 0x08058662 in std::runtime_error::what () #5 0x0...

Create a global Robot variable without throwing AWTException

I'm trying to create a global Robot variable in a java class without throwing AWTException. The only way that I can come up with it is by throwing the exception. The reason I need it to be global is because I need to use the same Robot variable in other methods in the class. public class Robo{ Robot r; public Robo() t...

Checking arguments in numerical python code

I find myself writing the same argument checking code all the time for number-crunching: def myfun(a, b): if a < 0: raise ValueError('a cannot be < 0 (was a=%s)' % a) # more if.. raise exception stuff here ... return a + b Is there a better way? I was told not to use 'assert' for these things (though I don't see th...