Upsala Slott den 9 September 1840.