Danielis János (1800?-1861), honvéd ezredes, a főhadsereg főhadbiztosa, várfogságot szenved