My Oracle Support Banner

签名无效编码 Java.security.SignatureException: Invalid Encoding For Signature (Doc ID 2442682.1)

Last updated on SEPTEMBER 09, 2018

适用于:

Oracle WebLogic Server - 版本 12.2.1.3.0 和更高版本
本文档所含信息适用于所有平台

症状

On : 12.2.1.3.0 version, 部署一个web 应用时出现以下错误:

java.security.SignatureException: Invalid encoding for signature
       at sun.security.provider.DSA.engineVerify(DSA.java:290)
       at sun.security.provider.DSA.engineVerify(DSA.java:251)
       at java.security.Signature$Delegate.engineVerify(Signature.java:1223)
       at java.security.Signature.verify(Signature.java:656)
       at com.eland.util.license.LicenseManagerImpl.verifySignature(LicenseManagerImpl.java:642)
       at com.eland.util.license.LicenseManagerImpl.loadLicenseFile(LicenseManagerImpl.java:328)
       at com.eland.util.license.LicenseManagerImpl.<init>(LicenseManagerImpl.java:89)
       at com.eland.util.license.LicenseManagerImpl.getInstance(LicenseManagerImpl.java:393)
       at com.eland.project.uma.UmaStartupServlet.init(Unknown Source)
       at javax.servlet.GenericServlet.init(GenericServlet.java:244)
       at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:343)
       at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:294)
       at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326)
       at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:197)
       at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203)
       at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71)
       at weblogic.servlet.internal.StubSecurityHelper.initServletInstance(StubSecurityHelper.java:99)
       at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:87)
       at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:71)
       at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:57)
       at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:31)
       at weblogic.servlet.internal.ServletStubImpl.initStubLifecycleHelper(ServletStubImpl.java:673)
       at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:612)
       at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2064)
       at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:2041)
       at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1930)
       at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3101)
       at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1843)
       at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:884)
       at weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:360)
       at weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:356)
       at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
       at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:138)
       at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
       at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:233)
       at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:228)
       at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
       at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:78)
       at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:52)
       at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:752)
       at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
       at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:262)
       at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:52)
       at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
       at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:90)
       at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:631)
       at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:171)
       at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:121)
       at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:348)
       at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:907)
       at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1468)
       at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:459)
       at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:181)
       at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:217)
       at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:14)
       at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:69)
       at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:670)
       at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)
       at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)
       at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)
       at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
       at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:644)
       at weblogic.work.ExecuteThread.execute(ExecuteThread.java:415)
       at weblogic.work.ExecuteThread.run(ExecuteThread.java:355)
Caused by: java.io.IOException: Invalid encoding for signature
       at sun.security.provider.DSA.engineVerify(DSA.java:285)


更改

 

原因

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


文档内容
症状
更改
原因
 SOLUTION
解决方案
参考

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.