I am getting this
java.lang.reflect.UndeclaredThrowableException
at com.sun.proxy.$Proxy1.getMyObject(Unknown Source)
I went through a similar post here and this article posted in one the comments .
But in this case the I am calling following method using a ThriftClient
which was created using com.twitter.common.thrift.ThriftFactory<T>
myThriftClient.getMyObject()
Is there any way of knowing what is the actual cause of this error ? Should I need to change something in thrift side code ?