This seems to do the trick for now..
 
options(java.parameters="-Duser.home=c:/temp")
 
 
Thanks

Jorge Nieves 
Moore Capital 
Telephone 212.782.7083 
Fax 212.642.7644 

 

________________________________

From: Ana Nelson [mailto:nelson.ana@gmail.com] 
Sent: Wednesday, April 20, 2011 01:16 PM
To: r-sig-finance@stat.math.ethz.ch
Cc: Jorge Nieves
Subject: Re: [R-SIG-Finance] Rbloomberg problem


Hi, Jorge,

Thanks for the very helpful bug report.

It is currently not possible to disable the logging or to change the log
location. I will try to get a new release out within the next few weeks
which will address this issue, either by letting you specify an
alternate location or disabling logging altogether or both.

The actual location that is specified is
%h/org.findata.blpwrapper.%g.log where %h is "the value of the
"user.home" system property" according to
http://download.oracle.com/javase/6/docs/api/java/util/logging/FileHandl
er.html, so there may be a workaround in setting this system property to
a location that is writable. This might be possible at the system level
or perhaps within RJava, I'm not sure.

Regards,
Ana



On Wed, Apr 20, 2011 at 5:48 PM, Jorge Nieves
<jorge.nieves@moorecap.com> wrote:


	Hi,
	
	The connection to Bloomberg fails with the following error.....
	
	> library(RBloomberg)
	Loading required package: rJava
	> conn <- blpConnect()
	R version 2.13.0 (2011-04-13)
	rJava Version 0.9-0
	RBloomberg Version 0.4-148
	Java environment initialized successfully.
	Looking for most recent blpapi3.jar file...
	Adding C:\blp\API\APIv3\JavaAPI\v3.4.1.3\lib\blpapi3.jar to Java
	classpath
	Error in .jnew("org/findata/blpwrapper/Connection",
java.log.level) :
	 java.io.IOException: Couldn't get lock for
	%h/org.findata.blpwrapper.%g.log
	
	Using Filemon from systernals I have figured out that this is
due to the
	user not having access to the location where R attempts to write
the log
	file....
	
	\\nyc-fs1\home$\jnieves\org.findata.blpwrapper.0.log.33.lck
ACCESS
	DENIED
	
	We use Windows DFS (Distributed File System) which is a way of
	standardizing file system paths across our organization. We
redirect
	c:\documents and settings\jnieves to a DFS path which resolves
to
	\\nyc-fs1\home$\jnieves\My Documents\ ...therefore the location
	\\nyc-fs1\home$\jnieves is inaccessible. IS it possible to
change the
	location that rBloomberg attempts to write the
org.findata.blpwrapper.
	log file?
	
	Jorge Nieves
	
	
	
	       [[alternative HTML version deleted]]
	
	_______________________________________________
	R-SIG-Finance@r-project.org 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]]

