创建新签名者引发XadeProfileResolutionException[Android Xades4j]

创建新签名者引发XadeProfileResolutionException[Android Xades4j],android,exception,xades4j,signer,Android,Exception,Xades4j,Signer,我有一个简单的方法getSigner,它返回新的Signer(XadesSigner对象)。 同样的方法也适用于简单的控制台java应用程序,但在Android中会抛出XadProfileResolutionException。 有人帮我吗 private XadesSigner getSigner(String pfxPath, String password) throws SigningKeyException { try { KeyingDataProvider

我有一个简单的方法getSigner,它返回新的Signer(XadesSigner对象)。 同样的方法也适用于简单的控制台java应用程序,但在Android中会抛出XadProfileResolutionException。 有人帮我吗

private XadesSigner getSigner(String pfxPath, String password) throws SigningKeyException {

    try {
        KeyingDataProvider keyingProvider = getKeyingDataProvider(pfxPath, password);
        XadesSigningProfile p = new XadesBesSigningProfile(keyingProvider);
        return p.newSigner();

    } catch (KeyStoreException ex) {
        throw new SigningKeyException("Keystore Problem", ex);
    } catch (SigningCertChainException ex) {
        throw new SigningKeyException("Signer Cert Chain Problem", ex);
    } catch (UnexpectedJCAException ex) {
        throw new SigningKeyException("JCA Problem", ex);
    } catch (XadesProfileResolutionException ex) {
        throw new SigningKeyException("XadesProfileResolutionException Problem", ex);
    }
}

您可以添加(内部)异常的详细信息吗?@Igoncalves我找到了异常的原因,并在xades4j.utils.xadeProfileResolutionException:java.lang.ExceptionInInitializerRor上得到了“xades4j.utils.xadeProfileResolutionException:java.lang.ExceptionInInitializerRor”:xades4j.utils.xadeProfileCore.getInstance上的@Igoncalves引起的(XadesProfileCore.java:223在xades4j.production.XadesSigningProfile.newSigner(XadesSigningProfile.java:112)在pl.ezla.mobile.business.podpis.EPodpisOswiadczenieBusiness.getsigner中没有任何消息?这可能与Guice的使用有关。该库从未在Android中进行过真正的测试。@Igoncalves这里是整个错误->