cancel
Showing results for 
Search instead for 
Did you mean: 

BI CONNECTION EXCEPTION

Former Member
0 Kudos

Hello,

We are trying to connect to our BW System from netweaver using this code, we followed the tutorial "How to use BI Java SDK in a web Dynpro application" as a reference, but after compiling we get this error:

javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

Any Ideas how to solve this?

The code we are using:

IConnectionFactory connectionFactory = null;

IConnectionSpec connectionSpec = null;

IBIConnection connection = null;

Context initctx = new InitialContext();

connectionFactory =

(IConnectionFactory) initctx.lookup(

"deployedAdapters/SDK_XMLA/shareable/SDK_XMLA");

connectionSpec = connectionFactory.getConnectionSpec();

// establish connection using default connection properties

connection =

(IBIConnection) connectionFactory.getConnectionEx(null);

THANKS

Gabriel P.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Gabriel:

I suggest you check the configuration at Visual Administrator.

I'm following the same tutorial and I'm getting the context initialize. My problem is at this line

connection = (IBIConnection) connectionFactory.getConnectionEx(null);

always returns me null.

Good luck.

RLS.

Answers (0)