Archive | Error of the Day RSS feed for this section

Never version things by date

Suddenly our CI-machine started to fail on code that we had not touched for ages. Test(s) failed. Expected string length 6 but was 4. Strings differ at index 0. Expected: “foobar” But was: “test” The test that broke the build was very straight forward: [Test] public void SettingsShouldSupportCRUD() { ApplicationSetting.Delete("Test.ABC");   var setting = ApplicationSetting.Get("Test.ABC"); [...]

Comments { 0 }

AuthenticateRequest not raised when doing a Server.Transfer

I’ve recently enhanced a legacy product with support for “custom links” by writing a simple HttpModule.

The module is very simple, it hooks in to each request and check if a mapping exists for the current path.
In order to do this all it needs is a simple map of new to old (legacy) paths.

If a mapping is found, a call to Server.Transfer is done to transfer the request the the correct page.

This worked like a charm until I realized that the AuthenticateRequest was no longer raised when visiting a link that was served using my new module.

Comments { 0 }

C programming sucks

I really love all the cryptic errors you can run into in this fantastic language. void replayAllPastEvents(DumbThing *dumbThing){ // read events from disk, bla bla bla apply(dumbthing, event); // <- explosion in this call // … } The code did compile but crashed due to a segmentation fault in the apply function. Can you spot [...]

Comments { 0 }
server-side-solution

Solving the html word wrapping problem in DayPilot Lite

A while ago I ported the DayPilot Lite calendar/schedule control into a Monorail view component and everything went smooth except for the word wrapping. Whenever an event in the calendar/schedule contained a word that did not fit the placeholder the entire description was hidden from the end user. It looked like this: When it should [...]

Comments { 0 }

The call to method ‘Deserialize’ needs to be dynamically dispatched, but cannot be because it is part of a base access expression

Error 66 The call to method ‘Deserialize’ needs to be dynamically dispatched, but cannot be because it is part of a base access expression. Consider casting the dynamic arguments or eliminating the base access.

Comments { 0 }

Invalid argument in JDBC call: parameter index out of range

16:45:04,220  WARN JDBCExceptionReporter:100 - SQL Error: -62, SQLState: SOO10
16:45:04,221 ERROR JDBCExceptionReporter:101 - Invalid argument in JDBC call: parameter index out of range: 7
Comments { 0 }

ASP.NET: System.IO.IOException: The file or directory is corrupted and unreadable.

Exception Details: System.IO.IOException: The file or directory is corrupted and unreadable.

Comments { 2 }
IntelliJ new class window

IntelliJ cannot create new class

Now I’m almost prepared to take back all good things I ever said about IntelliJ.

When trying to create a new class in IntelliJ I this little window pops upIntelliJ new class window
But nothing happends when I press OK…

Comments { 1 }

NHibernate.HibernateException: instance not of expected entity type

Given:

[ActiveRecord(DiscriminatorValue = "OnState")]
class OnState: UnitState {
//…
}

I got

NHibernate.TransactionException: An error occured when trying to dispose the transaction —> NHibernate.HibernateException: instance not of expected entity type: Model.OnState is not a: Model.UnitState

Hmmm?

Comments { 0 }
PooledHttpClient.java

Strangest cannot resolve symbol error ever

This is a not so uncommon error: But when I switched to PooledHttpClient.java I got a bit confused: Seriously wtf happened here? Has my RAID controller gone berserk on the poor file? A couple of weeks ago I saw something similary happend on a production server (VPS). Suddenly one of my static HTML-files contained fragments of [...]

Comments { 0 }