Crashes when re-instantiating new BufferedReader object
Status: Beta
Brought to you by:
devilwolf
Hi, I have data coming in from a server which needs to be processed in real time....
So i have this:
BufferedReader = JClass("java.io.BufferedReader")
br = BufferedReader(FileReader("C:\Users\Daniel\JAVAworkspace\ZigBee\ZBApp\templates\ZBApp\outlierTestSet.arff"))
br.close()
This needs to be done every 30 seconds as the data comes in. It only crashes when it reaches the "br = BufferedReader(FileReader("C:\Users\Daniel\JAVAworkspace\ZigBee\ZBApp\templates\ZBApp\outlierTestSet.arff"))" line.... I tried it other objects too and its the same result....
Does anyone know a way around this?
Thanks
NOTE: I only start the JVM once but my view in django needs to be called n times....
Can you give me more details about the crash ?
Steve Menard
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning.
Rick Cook, The Wizardry Compiled
There are two major products that come out of Berkeley: LSD and UNIX. We
don't believe this to be a coincidence.
-- Jeremy S. Anderson
On Thu, Aug 1, 2013 at 5:49 AM, Daniel dannyshox@users.sf.net wrote:
Related
Bugs: #84
Hi Steve,
Thanks for getting back to me and apologies about the delay of my response.
So I have a Home Area Network using smart plugs to monitor household
appliances. Each plug sends data (kWs, kWhs, Plug ID) to my webapp page
every 30 seconds and I currently have this just showing up below an image
of each plug.
What I want to do is to send this data to a server side and use a machine
learning library called WEKA to apply machine learning algorithms on the
data.....I have this working but it seems it only works for the first
reading and then crashes....The problem always occurs when an object is
setup server side such as:
br =
BufferedReader(FileReader("C:\Users\Daniel\JAVAworkspace\
ZigBee\ZBApp\templates\ZBApp\outlierTestSet.arff"))
at the beginning of the server side function (being called repeatedly) in
question, I check to see if the JVM is started and if not: start, if it is
started: ignore.....
I am using Eclipse Juno (64-bit) with pydev plugin, django-1.5.1 and a
WEKA 3.6 jar file
I just want to check if there any solution to this before I consider using
other ML libraries,
Thanks,
Daniel
On Thu, Aug 1, 2013 at 5:13 PM, Steve Menard devilwolf@users.sf.net wrote:
Related
Bugs: #84