Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoSuchFieldError: data #45

Open
okancetin opened this issue Sep 14, 2017 · 1 comment
Open

java.lang.NoSuchFieldError: data #45

okancetin opened this issue Sep 14, 2017 · 1 comment

Comments

@okancetin
Copy link

`KeyStore keystore = KeyStore.getInstance("PKCS12");

keystore.load(p12File, "test".toCharArray());

PassSigner signer = PassSignerImpl.builder().keystore(keystore, "1").intermediateCertificate(new FileInputStream("AppleWWDRCA.cer")).build();`

I am using this code to create .pkpass file. But when I deploy to Weblogic, PassSignerImpl.builder(). line gives this error :

Caused by: java.lang.NoSuchFieldError: data
at org.bouncycastle.cms.CMSSignedGenerator.(Unknown Source)
at com.ryantenney.passkit4j.sign.PassSignerImpl.createGenerator(PassSignerImpl.java:136)
at com.ryantenney.passkit4j.sign.PassSignerImpl.(PassSignerImpl.java:128)
at com.ryantenney.passkit4j.sign.PassSignerImpl$Builder.build(PassSignerImpl.java:122)

#7 it looks like the same problem but i checked all the lib files and there is no duplicate or older version of any org.bouncycastle jar files.

I am not even sure if i need to add below dependency to my pom.xml :

<dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcprov-jdk16</artifactId> <version>1.46</version> </dependency>

@tsengfhy
Copy link

It seems passkit4j uses the public constructor of CMSSignedGenerator in bcmail-jdk15on, so pls ensure this class isn't overrided in other pkg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants