BusinessObjects Board

Migration BO4.1 to BO4.3 logon is depricated and not working

i am trying to logon to the session but i get this error :

Dec 07, 2023 5:04:18 PM com.sap.commoncryptolib.provider.SAPJCE getOwnVersionFromManifest
WARNING: Manifest file not found
Dec 07, 2023 5:04:18 PM com.sap.commoncryptolib.provider.SAPJCE traceProviderInfo
INFO:
SAPJCE version : 8.5
CommonCryptoLib : null
CommonCryptoLib version : 8.5.51
Crypto Kernel version : 8.4.47
FIPS 140-2 mode : YES

Exception at logon()com.crystaldecisions.sdk.exception.SDKException$ConfidentialChannelFailed: Failed to establish confidential channel. (FWM 02119)
cause:com.businessobjects.bcm.exception.UnexpectedError: An unexpected error occurred(DerInputStream.getLength(): Redundant length bytes found). Please validate recently changed internal code. (DerInputStream.getLength(): Redundant length bytes found)
detail:Failed to establish confidential channel. (FWM 02119) An unexpected error occurred(DerInputStream.getLength(): Redundant length bytes found). Please validate recently changed internal code. (DerInputStream.getLength(): Redundant length bytes found)
at com.crystaldecisions.sdk.occa.security.internal.ConfidentialChannelService.establishConfidentialChannel(ConfidentialChannelService.java:217)
at com.crystaldecisions.sdk.occa.security.internal.ConfidentialChannelService.createConfidentialChannel(ConfidentialChannelService.java:149)
at com.crystaldecisions.sdk.occa.security.internal.CCMap.locateCCItem(CCMap.java:63)
at com.crystaldecisions.sdk.occa.security.internal.LogonService.doUserLogon(LogonService.java:1057)
at com.crystaldecisions.sdk.occa.security.internal.LogonService.doUserLogon(LogonService.java:1011)
at com.crystaldecisions.sdk.occa.security.internal.LogonService.userLogon(LogonService.java:301)
at com.crystaldecisions.sdk.occa.security.internal.SecurityMgr.userLogon(SecurityMgr.java:168)
at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon_aroundBody0(SessionMgr.java:800)
at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon(SessionMgr.java:1)
at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon_aroundBody2(SessionMgr.java:828)
at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon_aroundBody3$advice(SessionMgr.java:528)
at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon(SessionMgr.java:1)
at fr.maafvie.batch.demat.bo4.testapp.main(testapp.java:26)

Caused by: com.businessobjects.bcm.exception.UnexpectedError: An unexpected error occurred(DerInputStream.getLength(): Redundant length bytes found). Please validate recently changed internal code. (DerInputStream.getLength(): Redundant length bytes found)
at com.businessobjects.bcm.internal.DHKeyAgreeImpl.(DHKeyAgreeImpl.java:43)
at com.businessobjects.bcm.BCM.createKeyAgreement(BCM.java:1096)
at com.crystaldecisions.sdk.occa.security.internal.ConfidentialChannelService.establishConfidentialChannel(ConfidentialChannelService.java:187)
… 12 more
Caused by: java.io.IOException: DerInputStream.getLength(): Redundant length bytes found
at sun.security.util.DerInputStream.getLength(DerInputStream.java:606)
at sun.security.util.DerInputStream.getLength(DerInputStream.java:569)
at sun.security.util.DerInputStream.getBigInteger(DerInputStream.java:206)
at com.sap.commoncryptolib.provider.AlgorithmParametersDH.engineInit(Unknown Source)
at java.security.AlgorithmParameters.init(AlgorithmParameters.java:293)
at com.businessobjects.bcm.internal.DHKeyAgreeImpl.(DHKeyAgreeImpl.java:40)
… 14 more

First thing to try: make sure you have replaced all of the SDK jars in your project with the new versions from BI4.3. You will also need sapjce.jar, which is new.

For me every things are setup ! i get all equivalent jars from installed repo of busines object 4.3, i delete all jar bo4.1 then i copy sapjce.jar in C:\Program Files\Java\jdk1.8.0_152\jre\lib then i copy sapcrypto.dll, slcryptokernel.dll, slcryptokernel.dll.sha256 in C:\Program Files\Java\jdk1.8.0_152\jre\bin

So despite this manipulation i still have the same error!

thans in advance

Are you running this on a computer that has the BO client software installed? If so, instead of using the jre you currently are, try using the one in C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win64_x64\sapjvm\jre\bin

1 Like