Menu

#84 Crashes when re-instantiating new BufferedReader object

Version 0.5
open
nobody
None
5
2013-08-01
2013-07-30
Daniel
No

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

Related

Bugs: #84

Discussion

  • Daniel

    Daniel - 2013-08-01

    NOTE: I only start the JVM once but my view in django needs to be called n times....

     
  • Steve Menard

    Steve Menard - 2013-08-01

    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:

    NOTE: I only start the JVM once but my view in django needs to be called n
    times....


    Status: open
    Created: Tue Jul 30, 2013 01:48 PM UTC by Daniel
    Last Updated: Tue Jul 30, 2013 01:48 PM UTC
    Owner: nobody

    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

    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/jpype/bugs/84/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Bugs: #84

  • Daniel

    Daniel - 2013-08-05

    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:

    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:

    NOTE: I only start the JVM once but my view in django needs to be called n
    times....


    Status: open
    Created: Tue Jul 30, 2013 01:48 PM UTC by Daniel
    Last Updated: Tue Jul 30, 2013 01:48 PM UTC
    Owner: nobody

    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

    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/jpype/bugs/84/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/


    Status: open
    Created: Tue Jul 30, 2013 01:48 PM UTC by Daniel
    Last Updated: Thu Aug 01, 2013 09:49 AM UTC
    Owner: nobody

    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

    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/jpype/bugs/84/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Bugs: #84


Log in to post a comment.

Monday.com Logo