exception

Code requires too much memory

Hello, I'm porting some code to another structure: class EnvironObject { protected: vector<float> mX, mY, mXSpeed, mYSpeed; int mMaxObjects; public: virtual void init(int maxObjects); virtual void setLimit(int limit); virtual int getLimit(); virtual void update(float arg) = 0; }; void EnvironO...

Hibernate exception while using "identity" generator - how to use

I am using Hibernate over SQL Server for a web application. I was using the "increment" generator class till now and recently ran into ConstraintViolation exceptions. So, I changed the generator to "identity" and I am getting the following error - Cannot insert the value NULL into column 'assessment_administration_id', table 'faip....

How to throw an exception when a main class tries to invoke a private method of another class?

Hi, Let's say I have a ClassA class and a methodA private method in Java. In my ClassB class I have a main method where I invoke MethodA. This should not work, obviously. What can I do to throw an Exception or Error when this happens during the runtime. Thanks. ...

Pesky "Invalid character in a Base-64 string." Exception...

Hello, Recently my application has been getting tons of these exceptions. I run ASP.net 3.5 on a Windows XP machine. The exceptions tend to be random. The application uses the Telerik RadControls for ASP.NET AJAX Q2 2010 SP1. The exception and StackTrace are below. Exception Type: System.FormatException Message: Invalid character...

Where's the exception message ?

Hi all, I meet a weired problem when I use maven. I execute the following code using "maven exec:java". Obviously, it should throw a RuntimeException, but I did not see anything in console. But if I execute it in eclipse, I can see the error message. So where does the exception gone ? Thanks public class HelloWorld { public stati...

identify an exception in an overall iphone app

Hi friends, How to identify an exception in an overall iphone app and throughing to user as alertview(like nsurlconnection exception) Regards, sathish ...

security exception accessing registry when the program runs as scheduled task

the following small line throws a System.Security.SecurityException: Requested registry access is not allowed: RegistryKey _key = HKLM.OpenSubKey("path\\to\\my settings", false); Now.. what's the point some would ask? The point is that this runs ONLY when I am logged on. The exception is thrown if the program runs as scheduled task an...

AWTPermission Exception while implementing Automatic update desktop application using java web start

Hi All, I am working in a Desktop application that provides Online Backup of data. In my application i am trying to implement automatic software update feature. For this i am using java web start. I have done the following process for using java web start. 1> created jar with all resources. 2> created jnlp file as : <?xml versi...

Symfony 1.4 - forward404 pass message to error404 template in production mode

In my app I want to use $this->forward404("Data not found"); to output individual error messages when necessary. In the dev mode it works fine. When I run my app in production mode - where debug is set to false in getApplicationConfiguration() - I don't get the messages anymore. in settings.yml I set a custom 404 action. all: .actions...

OpenSSO proxy setup error

I am trying to setup an SSO app with an IP and SP much like described in tutorial https://wikis.forgerock.org/confluence/display/openam/SAMLv2+IDP+Proxy+Part+1.+Setting+up+a+simple+Proxy+scenario However, I am stuck at the test provided at the very end: my SP is not redirected to my IP. Instead, I get the following error: ERROR: Error...

Assertion and exception on iPad simulator but not iPhone sim or device!

So I've been working on getting my app ready for iOS 4 and iPhone 4. Installed the latest Xcode and SDK and have been tweaking out graphics, etc. All is working flawlessly except I'm having problems running the app on the iPad simulator. I don't have an actual iPad to test. My app uses an ABUnknownPersonViewController and it crashes whe...

log4j Appender Being Closed by Caught Exception

Historical Context: This problem ended up being not at all what I thought it was. The cause and solution are below, but the original posting is left for reference. I'm developing a simple framework for periodically polling a directory for .properties files, then performing SQL queries and sending e-mails based on their configurations. B...

Simple Singleton instantiation problem

I must be doing something very silly, but I'm getting a ExceptionInInitializerError when I try to instantiate an object in my Singleton: class MySingleton { private static MySingleton instance = null; private OtherObject obj; // Do I instantiate obj here??? private MySingleton() { //obj = new OtherObject(); } // Or he...

trigger_error vs. throwing exceptions

A similar question was asked here, but as the answers didn't answer my question, I'm asking: I've almost never used trigger_error, always thrown exceptions instead, since in my mind errors are legacy. But I've changed my mind, I think they can co-exist. There are cases when triggering errors make more sense. I'm updating this library, ...

Performing an SQL query while waiting on an asyncronous operation generates an exception

The code I'm writing copies data from one table to another. It is possible the query may run for a long time so I'm performing an asynchronous query and while waiting I'm doing a count on the destination table to provide a status update. The query that does the count is getting the following exception message... The command execution c...

Sequence contains no matching element

Hi I have one asp.net application , in which i am using linq for data manipulation. But while running, i got one exception like "Sequence contains no matching element " . My code is shown below.. if (_lstAcl.Documents.Count > 0) { for (i = 0; i <= _lstAcl.Documents.Count - 1; i++) { string id = _lstAcl.Documents[i].ID....

asp.net ajax combobox: getting ArgumentOutOfRangeException unexpectedly

I've some tables in my db with the following structure. I've two asp.net ajax comboboxes in the same update panel which is supposed to load data based on the tables mentioned above. <asp:UpdatePanel ID="updatesetloc" runat="server"> <ContentTemplate> <p> <asp:ComboBox ID="cbloc" runat="server" AutoPostBack="Tr...

Python generator, non-swallowing exception in 'coroutine'

I recently came across some surprising behaviour in Python generators: class YieldOne: def __iter__(self): try: yield 1 except: print '*Excepted Successfully*' # raise for i in YieldOne(): raise Exception('test exception') Which gives the output: *Excepted Successfully* Traceback (most recent call last)...

RunWorkerCompleted not executed in the main UI thread?

I have experienced an odd behavior of the BackgroundWorker or the .NET framework when rethrowing an Exception in the RunWorkerCompleted event. Exceptions occuring in the background thread are passed to RunWorkerCompleted. There I do a object temp = e.Result to rethrow the exception. Since this is supposed to happen in the main UI thread...

Heap / buffer overflow exception

Just curious, Is there or has anyone ever come across a heap / buffer overflow exception in C#? ...