I developed a JAVA class that lists Essbase connections.
I access the info through provider services connector => http://myserver:13080/aps/JAPI
I'm using ess_japi.jar library only, JDK is 1.5.0_17 and my JRE is 1.6.0_11
I developed and tested the class/jar on my laptop without any error. Now I'm trying to connect to the company server (exactly same version 11.1.1.3 ...but... 64 bits vs 32 on my laptop...) from my professional laptop (JRE 1.5.0_22).
I get the following msg (traduced) :
No way to connect to the provider. Make sure that connection params are fine and that provider is up and running...
I couldn't find anything related in the logs directory (strange).
I tried different server names : IP, server name... no success
Any help is welcome!
Scoring disabled. You must be logged in to score posts.
Here's an extract of the jar, with the full ListEssConnection class - where everything related to Essbase happens indeed. I save you the Swing classes that kept me busy all day long yesterday...
I'm not a java guru so that code may not be the most beautiful and optimized.
// Listing des connexions en cours
for (int i = 0; i < requests.getCount(); i++) {
Vector<String> data = new Vector<String>();
IEssOlapRequest request = (IEssOlapRequest) requests.getAt(i);
// Etat de la requête
switch (request.getRequestState()) {
case 0:
etat = "en cours...";
break;
case 1:
etat = "en cours d'arrêt";
break;
case 2:
etat = "terminé";
break;
default:
break;
}
// Requête de requête (Restructure, ClearData, GetStats, Calculate, DataLoad)
if (request.getRequestString().equals("Restructure")) {
requete = "Restructuration";
} else if (request.getRequestString().equals("ClearData")) {
requete = request.getRequestString();
} else if (request.getRequestString().equals("GetStats")) {
requete = request.getRequestString();
} else if (request.getRequestString().equals("Calculate")) {
requete = "Calcul";
} else {
requete = request.getRequestString();
}
1. When you connect to EAS, then open up your provider services node and connect to that node, is the Essbase server you are trying to connect to present?
2. Have you tried embedded mode? Try using "embedded" instead of the http url in your connect string. The Java API will bypass your APS server altogether. Note that some situations call for using an http connection via APS and others don't. Further, you will need to include ess_es_server.jar, cpld14.jar and log4j-1.2.8.jar in your classpath (for JAPI 11.1.1.3).
Tim
Tim Tow
Oracle ACE Director
Applied OLAP, Inc
Scoring disabled. You must be logged in to score posts.
I kept trying during one hour - still the same error message trying to reach APS on dev server (64bits). No problem on my personal laptop (32bits).
It seems that it cannot find the Provider... as I really don't get anything in the logs (I played with the essbase.properties file to enable tracing).
Tried replacing the server name by IP. Set ClassPath to JRE path (who knows)...
I finally copied the jar+lib on the server itself and ... IT WORKS!!! So it seems that it cannot locate the server however the url test http://server:13080/aps/JAPI works fine from my profesional laptop.
For information the only lib I'm using is the ess_japi.jar one.
Scoring disabled. You must be logged in to score posts.
I have never seen an issue like this one in my 9+ years of working with the Java API.. What version of the Java JRE do you have? I have seen strange things in other areas with JRE 1.6.
Tim Tow
Oracle ACE Director
Applied OLAP, Inc
Scoring disabled. You must be logged in to score posts.
I did see it on my iPhone but have been pretty busy lately (working on some new and exciting features in Dodeca).. I was hoping someone else would take the opportunity to answer it.. <BigGrin>
Tim
Tim Tow
Oracle ACE Director
Applied OLAP, Inc
Scoring disabled. You must be logged in to score posts.