Skip to content

Rbbg package's CONNECTION_FAILURE

8 messages · julien cuisinier, altaf, Nuno Ramiro +1 more

#
Hi All, Happy Holidays!
I am getting this error in blpConnect():

"> blpConnect(blpapi.jar.file="C:\\Program
Files\\Bloomberg\\bloomberg\\API")
R version 2.15.2 (2012-10-26) 
rJava Version 0.9-3 
Rbbg Version 0.4-155 
Java environment initialized successfully.
Adding C:\Program Files\Bloomberg\bloomberg\API to Java classpath
Error in .jnew("org/findata/blpwrapper/Connection", java.log.level) : 
  java.lang.NoClassDefFoundError: com/bloomberglp/blpapi/SessionOptions"

Any idea what is causing it?
Thanks a lot,

Altaf



--
View this message in context: http://r.789695.n4.nabble.com/Rbbg-package-s-CONNECTION-FAILURE-tp4642600p4654022.html
Sent from the Rmetrics mailing list archive at Nabble.com.
#
Hi Julien, thanks for the reply.  Using your simple command above I get the
error:

"> con.BBG<-blpConnect()
R version 2.15.2 (2012-10-26) 
rJava Version 0.9-3 
Rbbg Version 0.4-155 
Java environment initialized successfully.
Looking for most recent blpapi3.jar file...
Error in blpConnect.Java("warning", NULL, TRUE, NULL, TRUE, FALSE) : 
  Can't find C:\blp\API\APIv3\JavaAPI please confirm you have Bloomberg
Version 3 Java API installed. If it's in a different location, please report
this to Rbbg package maintainer.
so that is why I thought I needed to specify the location of the blpapi3.jar
file but when I do (not just the path but the actual file) I get my original
error:

"> blpConnect(blpapi.jar.file="C:\\Program
Files\\Bloomberg\\bloomberg\\API\\blpapi3.jar")
R version 2.15.2 (2012-10-26) 
rJava Version 0.9-3 
Rbbg Version 0.4-155 
Java environment initialized successfully.
Adding C:\Program Files\Bloomberg\bloomberg\API\blpapi3.jar to Java
classpath
Error in .jnew("org/findata/blpwrapper/Connection", java.log.level) : 
  java.lang.NoClassDefFoundError: com/bloomberglp/blpapi/SessionOptions"



--
View this message in context: http://r.789695.n4.nabble.com/Rbbg-package-s-CONNECTION-FAILURE-tp4642600p4654026.html
Sent from the Rmetrics mailing list archive at Nabble.com.
#
Thanks again Julien.  The BBG isntallataion is centrally maintained from a
package by my company's IT support and so I don't really have any control
over it and Bloomberg is so essential to my work (more, even than R) that I
don't really want to reinstall any part of it.
I will alert the maintainer of this package as you suggest (John Laing?)
Thanks again and Happy Holidays!



--
View this message in context: http://r.789695.n4.nabble.com/Rbbg-package-s-CONNECTION-FAILURE-tp4642600p4654031.html
Sent from the Rmetrics mailing list archive at Nabble.com.
#
Thanks, John.  I found the other blpapi3.jar file and made sure I specified
that but then I got the following CONNECTION_FAILURE:
R version 2.15.2 (2012-10-26) 
rJava Version 0.9-3 
Rbbg Version 0.4-155 
Java environment initialized successfully.
Adding C:\blp\API\APIv3\JavaAPI\v3.5.1.1\lib\blpapi3.jar to Java classpath
Error in .jnew("org/findata/blpwrapper/Connection", java.log.level) : 
  org.findata.blpwrapper.WrapperException: Session not started because:
CONNECTION_FAILURE


John Laing wrote

            

            

            
--
View this message in context: http://r.789695.n4.nabble.com/Rbbg-package-s-CONNECTION-FAILURE-tp4642600p4654046.html
Sent from the Rmetrics mailing list archive at Nabble.com.