failure

Visual Studio 2008 Publish Fails.

HI everyone, i need some advice regarding Visual Studio 2008 Pro. We develop a lot of web service applications and ever since we started we keep encountering an error on our production server that does not seem to occur on the development or test systems. When publishing new code to the server we are normally met with the following err...

Java VM suddenly exiting without apparent reason

I have a problem with my Java progam suddenly exiting, without any exception thrown or the program finishing normally. I'm writing a program to solve Project Euler's 14th problem. This is what I got: private static final int INITIAL_CACHE_SIZE = 30000; private static Map<Long, Integer> cache = new HashMap<Long, Integer>(INITIAL_CACHE_S...

NIO Server Reading Once

I have a problem where I am able to read from any connection only once and then never again. When I select I do basically the following in a while(true) loop: if(selector.select( 500 ) == 0) continue; for(SelectionKey sk : selector.keys()) { // if (sk != anyOtherSk()) { obj = createAnObject(sk); } // obj.readChannel()...

Cryptographic failure while signing assembly '<assemblyname>.dll' – 'Bad Version of Provider'

I purchased an authenticode certificate from a well known provider. Now I want to strong name an assembly and later on digitally sign it. This is what I've done so far: Extracted public key from pfx by running sn.exe -p keypair.pfx key.snk Checked both "Sign the assembly" and "Delay sign only" checkboxes on project properties signing...

mysql backup and restore from ib_logfile failure

Here's the case: After computer being hacked, we are in a rush to backup all data out to other computer. As a result, the mysql databases are not backup out as sql statement. What we have done is backup out all the physical files/folders in the C drive to new computer. Eg: C:\Program Files\MySQL\MySQL Server 4.1\data In this case,...

Rails unit testing doesn't load fixtures

Hello together, rake test:units fails in my current application, because the needed data of the fixtures is missing. If I'm loading the fixtures manually via rake db:fixtures:load RAILS_ENV=test the unit tests are working, but rake purges the test database. My test_helper includes fixtures :all and my tests are inheriting from it - bu...

Android Database error?

I have a MenuItem in my Android application that deletes all the values in the database, its used more for my debugging purposes, after a while, inserting dummy values get redundant. Anyways, I have used LogCat to debug my program as it runs in the emulator and it gives me an error: Failure 21 (out of memory) on 0x0 when preparing 'DELE...

GLFW window fails to open (Ubuntu)

When compiling and running my GLFW-based C program under Ubuntu (9.04), it fails when trying to open the window (it compiles fine, having installed the latest GLFW). I've tried varying resolutions, going as low as 300x300, and left the bit depths to zeros, hoping a default will catch on. The relevant piece of code reads (directly snippe...

Best practice in python for return value on error vs. success.

Hi, In general, let's say you have a method like the below. def intersect_two_lists(self, list1, list2): if not list1: self.trap_error("union_two_lists: list1 must not be empty.") return False if not list2: self.trap_error("union_two_lists: list2 must not be empty.") return False #http://byt...

Selenium.SeleniumException: ERROR: Command execution failure.

Please search the forum at http://clearspace.openqa.org for error details from the log window. The error message is: Permission denied I am getting error when i am trying to execute Selenium.IsElementPresent(ticketLocator) Help me!! ...

Recovering Apache from a mounted, unavailable NFS Mount

Hello - I have several web applications in production that utilize NFS mounts to share resources (usually static asset files) among web heads. In the event that an NFS mount becomes unavailable, Apache will hang requesting files that cannot be accessed, the kernel will log: Nov 2 14:21:20 server2 kernel: nfs: server server1 not resp...

PHP on IIS 5.1 is not working

I know this has been asked a few times here. But none of the suggestions or answers related to PHP on IIS have helped. I have tried installing PHP ON IIS 5.1 (XP SP 3) on two computers and it still doesn't work. I've even began to think that all of the articles and installers for PHP on IIS are a huge prank...and that PHP on IIS doesn't...

Released/production version got heap corruption. Solution preventing it?

In our company we somehow got code to production which crashed(because Heap got corrupted somehow). Developers developed, after that testers had hands on it and later on it was released natural way(monthly release). Everything was fine till it crashed... We tried to investigate it and found many places where we could get a heap corruptio...

SPSiteDataQuery fails if field of type UserMulti is specified in ViewFields

Hello. I`m trying to query all task lists. I have modified default Task content type to allow multiple choices for Assigned To field (Internal name - AssignedTo). My SPSiteDataQuery fails if I specify <FieldRef Name='AssignedTo' /> (Returns no results) If I add Nullable='TRUE' then results are returned but AssignedTo field ends up bein...

Method to handle "killed" Java jobs?

Our server web app will handle jobs that are requested by REST API requests. Ideally if the server dies during a job (ie: plug pulled), the job should resume or restart at startup. A very convenient way to process these jobs is in a separate thread using some of the concurrent utility classes in Java 5. The only issue is, given a fa...

How do you get the current failure count for a windows service

I have a service which will fail when certain resources are unavailable. I have configured it to try restarting twice, then send me an SMS on the third attempt. Unfortunately windows only gives you the option to reset the failure count after a certain number of days, whereas I really want it to reset on every third failure. The problem i...

CodeIgniter - continue on SQL error?

Hi Basically I have a table with a couple of columns marked Unique. I have a script that dumps a bunch of values into the table with a command like this: $this->db->query("INSERT INTO `table` (`col1`, `col2`, `col3`) VALUES (`val1`, `val2`, `val3`)"); Every so often my script will try to insert a row which would violate the uniquenes...

nunit2 Nant task always returns exit code 0 (TeamCity 5.0)

Hello, I just cannot for the life of me get my nant build file to terminate upon a test failure and return (thus preventing the packaging and artifact step from running) This is the unit part of the nant file: <target name="unittest" depends="build"> <nunit2 verbose="true" haltonfailure="false" failonerror="true" failonfailureatend=...

Best way to handle malloc failure in Cocoa

Although it won't happen often, there are a couple of cases where my Cocoa application will allocate very large amounts of memory, enough to make me worry about malloc failing. What is the best way to handle this sort of failure in a Cocoa application? I've heard that Exceptions are generally discouraged in this development environment...

Stumped. (C#, JSP)

So long story short, the company I work for, that is all about saving money, went from 1 service application, to 2 service web interfaces. They're not secure, have no cert's, not even over SSL...yet, they have a timeout associated with each interface. Which then breaks the page you're viewing, and you have to refresh IE, and then proceed...