https://stellar.stackexchange.com/questions/2064/getting-error-xdr-write-error-undefined-is-not-a-hyper-when-trying-to-create
The question is already posted on stellar.stackexchange, please click on the above link to view.
Any help will be extremely appreciated.