cancel
Showing results for 
Search instead for 
Did you mean: 

Semantic Layer: Interface requested not found : csLIB

DellSC
Active Contributor
0 Kudos

BI 4.1 SP4

I'm developing an application that will pull all of the information about a universe and its objects using the Semantic Layer SDK.  I'm using Eclipse as my development environment and currently just running in debug mode in Eclipse, but I'm getting the above error when I try to load the retrieved .blx file into the LocalResourceService.

BuildPath includes references to the following:

sl_sdk.jar

com.sap.sl.sdk.framework.jar

com.sap.sl.sdk.authoring.jar

com.sap.sl.sdk.jar

All of the .jar files from ..\dataAccess\connectionServer

JVM has the -Dbusinessobjects.connectivity.directory parameter correctly set in Eclipse.

The win32_x86 folder is in the Path environment variable.

I've looked at the following discussions and tried to implement the solutions mentioned in them:

What am I missing?

-Dell

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Dell,

Have you specified the path variable under Run->Run Configurations->Environment in eclipse?

Are you using 32 or 64 bit java?

Also can you share the full stack trace of the error.

Thanks,

Prithvi

DellSC
Active Contributor
0 Kudos

Yes, the path variable in in the Run Configuration in Eclipse.

The full stack trace is:

com.sap.tools.commons.exception.NestedException: Interface requested not found : csLIB

  at com.sap.tools.commons.exception.NestedException.create(Unknown Source)

  at com.businessobjects.mds.services.parser.decoder.DataFoundationSQLDecoder.getPRM(DataFoundationSQLDecoder.java:82)

  at com.businessobjects.mds.services.parser.decoder.DataFoundationSQLDecoder.<init>(DataFoundationSQLDecoder.java:97)

  at com.businessobjects.mds.services.parser.decoder.UniverseSQLDecoder.<init>(UniverseSQLDecoder.java:40)

  at com.businessobjects.mds.services.parser.EncodeDecodeHelper.decodeExpression(EncodeDecodeHelper.java:301)

  at com.businessobjects.mds.services.helpers.BindingHelper.decodeExpression(BindingHelper.java:250)

  at com.businessobjects.mds.services.helpers.BindingHelper.decodeResultExpression(BindingHelper.java:264)

  at com.sap.sl.sdk.authoring.businesslayer.internal.services.MdsToSdkBusinessLayerConverter.getResultExpression(MdsToSdkBusinessLayerConverter.java:356)

  at com.sap.sl.sdk.authoring.businesslayer.internal.services.MdsToSdkBusinessLayerConverter.copyBusinessItemProperties(MdsToSdkBusinessLayerConverter.java:311)

  at com.sap.sl.sdk.authoring.businesslayer.internal.services.MdsToSdkBusinessLayerConverter.createSdkItem(MdsToSdkBusinessLayerConverter.java:260)

  at com.sap.sl.sdk.authoring.businesslayer.internal.services.MdsToSdkBusinessLayerConverter.copyMdsToSdk(MdsToSdkBusinessLayerConverter.java:212)

  at com.sap.sl.sdk.authoring.businesslayer.internal.services.MdsToSdkBusinessLayerConverter.copyMdsToSdk(MdsToSdkBusinessLayerConverter.java:219)

  at com.sap.sl.sdk.authoring.businesslayer.internal.services.MdsToSdkBusinessLayerConverter.createSdkModel(MdsToSdkBusinessLayerConverter.java:151)

  at com.sap.sl.sdk.authoring.businesslayer.internal.services.BusinessLayerModelToModel.createSdkModel(BusinessLayerModelToModel.java:31)

  at com.sap.sl.sdk.authoring.local.internal.services.LocalResourceServiceImpl.createSdkBusinessLayer(LocalResourceServiceImpl.java:191)

  at com.sap.sl.sdk.authoring.local.internal.services.LocalResourceServiceImpl.loadInternal(LocalResourceServiceImpl.java:170)

  at com.sap.sl.sdk.authoring.local.internal.services.LocalResourceServiceImpl.load(LocalResourceServiceImpl.java:131)

  at com.dft.boetools.SemanticLayer.SLWrapper.loadUniverse(SLWrapper.java:46)

  at com.dft.boetools.CMSInfo.UniverseInfo.loadUnxObjects(UniverseInfo.java:92)

  at com.dft.UniverseInfo.ExtractUniverseInfo.loadUnxs(ExtractUniverseInfo.java:378)

  at com.dft.UniverseInfo.ExtractUniverseInfo.runInternal(ExtractUniverseInfo.java:119)

  at com.dft.boetools.programs.AbstractProgram.run(AbstractProgram.java:191)

  at com.dft.boetools.programs.AbstractProgram.test(AbstractProgram.java:245)

  at com.dft.UniverseInfo.ExtractUniverseInfo.main(ExtractUniverseInfo.java:496)

Caused by: com.sap.connectivity.cs.core.CSError: Interface requested not found : csLIB

  at com.sap.connectivity.cs.extended.ImplementationManager.getImplementation(ImplementationManager.java:151)

  at com.sap.connectivity.cs.extended.ImplementationManager.getConfiguration(ImplementationManager.java:195)

  at com.sap.connectivity.cs.extended.NLDBProvider.populateMap(NLDBProvider.java:49)

  at com.sap.connectivity.cs.extended.NLDBProvider.getManager(NLDBProvider.java:157)

  at com.sap.connectivity.cs.extended.Provider.getEnvironment(Provider.java:93)

  at com.sap.connectivity.cs.extended.ConnectionServer.JobProfile(ConnectionServer.java:532)

  at com.sap.connectivity.cs.api.trace.EnvironmentLogger.JobProfile(EnvironmentLogger.java:609)

  at com.businessobjects.mds.services.relational.PrmProperties.getDbParameterSet(PrmProperties.java:1403)

  at com.businessobjects.mds.services.relational.PrmProperties.loadFunctions(PrmProperties.java:1446)

  at com.businessobjects.mds.services.relational.PrmProperties.loadParameters(PrmProperties.java:1420)

  at com.businessobjects.mds.services.relational.PrmProperties.<init>(PrmProperties.java:155)

  at com.businessobjects.mds.services.relational.CsService.getPRMProperties(CsService.java:1194)

  at com.businessobjects.mds.services.parser.decoder.DataFoundationSQLDecoder.getPRM(DataFoundationSQLDecoder.java:80)

  ... 22 more

Caused by: java.lang.UnsatisfiedLinkError: no cs_jni in java.library.path

  at java.lang.ClassLoader.loadLibrary(Unknown Source)

  at java.lang.Runtime.loadLibrary0(Unknown Source)

  at java.lang.System.loadLibrary(Unknown Source)

  at com.sap.connectivity.cs.library.ConnectionServer.<clinit>(ConnectionServer.java:330)

  at java.lang.Class.forName0(Native Method)

  at java.lang.Class.forName(Unknown Source)

  at com.businessobjects.connectionserver.ConnectionServer.getImplementation(ConnectionServer.java:428)

  at com.businessobjects.connectionserver.ConnectionServer.getInstance(ConnectionServer.java:132)

  at com.sap.connectivity.cs.extended.ImplementationManager.getImplementation(ImplementationManager.java:144)

  ... 34 more

Thanks!

-Dell

Former Member
0 Kudos

Can you check if you can find cs_jni.dll in win23_x86 folder

Also can you confirm if you are using 32 bit java?

I have encountered the similar issue when my java program was not able to find the directory win32_x86 specified under path system variable.

Can you also try to set the path in the path system variable under Environment variables for your machine once and test?

Thanks,

Prithvi

DellSC
Active Contributor
0 Kudos

The cs_jni.dll file is available in the win32_x86 folder.

I tried adding the win32_x86 folder to the path environment variable for my development VM (which is running Windows Server 2008 r2)

I was not using 32-bit Java or Eclipse so I installed both of them and tried again.  I'm not getting the error, but the program is crashing at the call to load the BusinessLayer.  I've attached the code for the class that I'm using to instantiate the semantic layer connections along with the trace file that's generated when the program crashes.

Thanks for taking a look at this!

-Dell

DellSC
Active Contributor
0 Kudos

I just opened a support case on this.  The ticket number is 194836/2016.

-Dell

Former Member
0 Kudos

Hi Dell,

In the logs I see a lot of class not found errors and unable to instantiate the class errors. I havent encountered this, however it seems some issues with the classpath.

Did you hear anything back from SAP on this?

Thanks,

Prithvi

DellSC
Active Contributor
0 Kudos

Yes - I'm scheduled to get online with Mahesh on Tuesday for him to look at what I'm doing.

Thanks!

-Dell