Using the Idea of compiling the code, compile normal under WINDOWS, compile under ubuntu is normal, but will appear under the centos on strong type of mistake?
Error is as follows: the Exception in the thread "is the main" Java. Lang. ClassCastException: com. Xx. SDK. AbstractDocumentSigner $1 always be cast to com. Xx. SDK. PDF. PDFDocumentSignResult
Involved code:
PDFDocumentSigner signers.=PDFDocumentSigner getInstance ();
Final PDFDocumentSignResult result=(PDFDocumentSignResult) signers. Sign (request);
Public abstract class AbstractDocumentSignerImplements DocumentSigner {
Public SignResult sign (Payload content {
Final Throwable err=this. CheckAndLoadLibrary ();
If (err!=null) {
Return new DocumentSignResult () {
Public Throwable getError () {
Return new RuntimeException (" loading Docsign SDK failure ", err);
}
Public int getResultCode () {
return -1;
}
};
}
} else {
Return this. SignInternal (content);
}
}
}
Public class PDFDocumentSigner extends AbstractDocumentSigner{
Protected PDFDocumentSignResult signInternal (PDFDocumentSignRequest payload) {}
}
CodePudding user response:
Package not found, were introduced in or package for removing a conflict