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"); [...]
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.
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 [...]
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 [...]
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.
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
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.
IntelliJ cannot create new class
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?
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 [...]
Ola Herrdahl
Eventual consistent developer currently working on solving complex problems by applying simple solutions.
- CQRS for dummies November 13, 2011
- ASP.NET: System.IO.IOException: The file or directory is corrupted and unreadable. April 25, 2010
- Watin and portable Firefox March 15, 2011
- IntelliJ cannot create new class April 21, 2010
- Accessing Ubuntu running on Hyper-V over Remote Desktop November 20, 2010
- Document based sagas for dummies November 13, 2011
- CQRS for developers November 13, 2011
- CQRS for dummies November 13, 2011
- Access a Mercurial (BitBucket) repository using SSH key from TeamCity September 15, 2011
- Setting up kdiff3 for git on windows June 22, 2011
- Jigs: Thank you so much, you saved my life. I have been ...
- Document based sagas for dummies | Ola Kodar: [...] previous two post, CQRS for dummies and CQRS...
- CQRS for developers | Ola Kodar: [...] the CQRS for dummies post we can extract a c...
- Scott: WOW!! This saved me literally HOURS of searching!...
- Evgeni: check name of your package where you try to create...
Categories
- Error of the Day (14)
- Hailstorm (2)
- Software Development (4)
- Tips & Tricks (6)
- Web Development (1)
Recent Tweets
Follow @herrdahl on Twitter

Recent Comments