From: Lothar K. <jo...@ki...> - 2007-08-27 09:59:59
|
ikiliklip ikiliklip schrieb: strange name. > kbm = (KeyBundleMessage) msgs.iterator().next(); [...] > java.lang.ClassCastException: cryptix.openpgp.provider.PGPLiteralMessageImpl PGPLiteralMessageImpl is not a subclass of KeyBundleMessage, so casting to it must lead to this exception. You should cast to Message and check for the type of the class before doing a more concrete cast. Regards, Lothar |