From: Ronald T. <ron...@ia...> - 2011-03-23 15:35:34
|
Hi, Hmmm, the line that throws the Exception is as simple as long resultCode = ((Long) outDataTpm[0]).longValue(); and there should always be some return value.. Also, the HW TPMs should be fine. Perhaps there are different software setups on the two machines? Please try LocalTCSBindings and do some more detailed debugging / perhaps stepping through the code to narrow the problem down. Ronald On 03/23/2011 02:45 PM, Mudassar Aslam wrote: > Hi, > > Thanks for your help and I appreciate your prompt support. Now with > nonce in External Data, It worked for my Lenovo X200 laptop which has > TPM version 1.2.4.1. But when I run the same code on actual target > platform which has Infinion TPM 1.2.3.16, I get following exception: > > Exception in thread "main" java.lang.NullPointerException > at > iaik.tc.tss.impl.java.tsp.internal.TcTspInternal.TspCertifyKey_Internal(TcTspInternal.java:3247) > at > iaik.tc.tss.impl.java.tsp.TcRsaKey.certifyKey(TcRsaKey.java:294) > at tests.TestCertifyKey.main(TestCertifyKey.java:130) > > Regards. > > Mudassar > > > -----Original Message----- From: Ronald Tögl > Sent: Wednesday, March 23, 2011 11:32 AM > To: tru...@li... > Cc: Mudassar Aslam > Subject: Re: [Trustedjava-support] NullPointerException in > TcIRsaKey.certifiyKey() > > Hi! > > Try to place the nonce in the External Data. > > hth, > Ronald > > > > On 03/23/2011 11:28 AM, Mudassar Aslam wrote: >> Hi >> >> I tried to initialize it as well but did not work. >> >> TcTssValidation val = new TcTssValidation(); >> val.setData(TcBlobData.newString("ddd")); >> TcTssValidation validationResult = bindKey.certifyKey(aikKey, val); >> >> Regards. >> >> Mudassar. -- Dipl.-Ing. Ronald Tögl phone +43 316/873-5502 Secure and Correct Systems fax +43 316/873-5520 IAIK ron...@ia... Graz University of Technology http://www.iaik.tugraz.at |