Hi, Daniel,

Thanks for the detail :-)

There seems to be a new version of rJava out which I haven't tested yet, so
I'll take a look next week and see if I can figure out what's happening to
cause these errors.

You could try uninstalling rJava and installing the previous version for
now.

It looks like in one of your examples the problem is in the process.result()
function which reshapes the returned data. You can try directly calling the
raw method:

conn$bar(security, field, start_date_time, end_date_time, interval)

and then do whatever reshaping you need on what is returned.

Looking at the 'Enumerations' error, there might also be an intermittent
issue which only arises with large data sets, so you can also experiment
with the bar size and how much data you request per call.

Simplest to downgrade rJava first and see if that fixes things I think, if
that's possible for you.

Regards,
Ana


On Fri, Sep 17, 2010 at 5:33 PM, Daniel Probst <daniel.probst@web.de> wrote:

> Dear All,
>
> I would greatly appreciate a pointer regarding some problems I  am having
> with the "bar" function in RBloomberg. While, I have no problem with "tick"
> or "bdh" functions I cannot get the example under [
> http://www.findata.org/rbloomberg/examples/bar.R] to run.
>
> The example code:
>
> library(RBloomberg)
> conn <- blpConnect()
> bar(conn, "RYA ID Equity", "TRADE", "2010-03-01 09:00:00.000", "2010-03-01
> 15:00:00.000", "60")
>
> gives output:
> > library(RBloomberg)
> > conn <- blpConnect()
> R version 2.11.1 (2010-05-31)
> rJava Version 0.8-5
> RBloomberg Version 0.4-142
> Java environment initialized successfully.
> Looking for most recent blpapi3.jar file...
> Bloomberg API Version 3.3.1.1
> > bar(conn, "RYA ID Equity", "TRADE", "2010-03-01 09:00:00.000",
> "2010-03-01 15:00:00.000", "60")
> Fehler in process.result(result, "first.column") :   Indizierung außerhalb
> der Grenzen
>
> Alternatively
>
> > bar(conn, "CO1 Comdty","PX_LAST", "2010-09-10 10:00:00.000","2010-09-10
> 10:01:00.000","1")
> Fehler in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl,  :
>   com.bloomberglp.blpapi.InvalidConversionException: Cannot convert String
>  to Enumeration
>
> while bdh(conn,"CO1 Comdty","PX_LAST","20100801","20100901") works fine
>
> Any ideas in which direction I should search for errors?
>
> Many Thanks
> Dan Probst
> ___________________________________________________________
> GRATIS: Spider-Man 1-3 sowie 300 weitere Videos!
>
> _______________________________________________
> R-SIG-Finance@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions
> should go.

	[[alternative HTML version deleted]]

