Kinggrid金格技术论坛-应用资料库

注册

 

发新话题 回复该主题

【已回复】盖章时报错 [复制链接]

1#
jdk用的1.8的,报错:
Exception in thread "main" java.lang.ExceptionInInitializerError

at com.KGitextpdf.text.pdf.security.CertificateInfo.getSubjectFields(CertificateInfo.java:355)

at com.KGitextpdf.text.pdf.PdfSignatureAppearance.getAppearance(PdfSignatureAppearance.java:919)

at com.kinggrid.pdf.executes.PdfSignature.sign(PdfSignature.java:183)

at com.kinggrid.pdf.executes.AbstractSign.xySign(AbstractSign.java:309)

at com.kinggrid.pdf.executes.AbstractSign.execute(AbstractSign.java40)

at com.kinggrid.pdf.executes.PdfSignature.execute(PdfSignature.java:138)

at com.kinggrid.pdf.KGExecute.doExecute(KGExecute.java:58)

at com.kinggrid.pdf.KGPdfHummer$PdfSignatureApCallbackImpl.execute(KGPdfHummer.java:735)

at com.KGitextpdf.text.pdf.PdfSignatureAppearance.preClose(PdfSignatureAppearance.java:1330)

at com.KGitextpdf.text.pdf.security.MakeSignature.signDetached(MakeSignature.java:147)

at com.kinggrid.pdf.KGPdfHummer.doSignature(KGPdfHummer.java:354)

at com.kinggrid.pdf.KGPdfHummer$$EnhancerByCGLIB$$e73006cc.CGLIB$doSignature$7(<generated>)

at com.kinggrid.pdf.KGPdfHummer$$EnhancerByCGLIB$$e73006cc$$FastClassByCGLIB$$bf29d4cb.invoke(<generated>)

at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java28)

at com.kinggrid.authorization.KGFacadeCglib.intercept(KGFacadeCglib.java:58)

at com.kinggrid.pdf.KGPdfHummer$$EnhancerByCGLIB$$e73006cc.doSignature(<generated>)

at com.fengbang.microservice.contract.util.ChapterUtil.testElectronicSeal(ChapterUtil.java:85)

at com.fengbang.microservice.contract.util.ChapterUtil.main(ChapterUtil.java:34)
Caused by: java.lang.SecurityException: class "org.bouncycastle.asn1.ASN1ObjectIdentifier"'s signer information does not match signer information of other classes in the same package

at java.lang.ClassLoader.checkCerts(ClassLoader.java:898)

at java.lang.ClassLoader.preDefineClass(ClassLoader.java:668)

at java.lang.ClassLoader.defineClass(ClassLoader.java:761)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)

at java.net.URLClassLoader.access$100(URLClassLoader.java:73)

at java.net.URLClassLoader$1.run(URLClassLoader.java:368)

at java.net.URLClassLoader$1.run(URLClassLoader.java:362)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:361)

at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)

at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

at com.KGitextpdf.text.pdf.security.CertificateInfo$X500Name.<clinit>(CertificateInfo.java:79)

... 18 more
分享 转发
TOP
2#

这个错误是集成的iWebPDF还是iWebPDF2015,是进行了什么操作导致的?
TOP
发新话题 回复该主题