About Ola Herrdahl

Author Archive | Ola Herrdahl

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 }

Column ‘ReservedWord’ does not belong to table ReservedWords.

System.ArgumentException: Column ‘ReservedWord’ does not belong to table ReservedWords.

Comments { 0 }
010610_1820_Komprimerad7.png

Komprimera dokument med PDF

PowerPoint-presentationer och Word-dokument lämpar sig väldigt bra att komprimera till PDF. Här ska jag visa hur man kan komprimera en presentation på 2½ MB till ungefär en tiondel av dess originalstorlek. Senare versioner av Office paketet kan själv exportera till PDF. Har man inte tillgång till senare versionen av Microsofts Office paket så kan man [...]

Comments { 0 }

CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.

E/AndroidRuntime( 1720): android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.

Comments { 0 }

WatiN on TeamCity

Test(s) failed. System.ComponentModel.Win32Exception : Access is denied

Comments { 0 }

adb install, -r …apk Failure

[INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]

[INFO] C:\Tools\Java\android-sdk-windows/tools/adb [install, -r, C:\...\target\myApp-0.0.1.apk]
pkg: /data/local/tmp/myApp-0.0.1.apk

Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]
[...]

Comments { 0 }