java.lang.ExceptionInInitializerError while initializing Page Factory

I am making POM framework with Page Factory and while initializing Page Factory with PageFactory.initElements(new AppiumFieldDecorator(driver),this) it is throwing Exception as
at io.appium.java_client.pagefactory.utils.ProxyFactory.getEnhancedProxy(

I am using
Java Client-6.1.0

Changing the MobileElement to WebElement in the PageObject Class fixed this issue for me.

Can u mention ur appium and java client version after changing to webelement for me it is not working