Excep. with UPnP Device - too many open files

  • Pradeep Bhaduria

    I am a newbie to UPnP and I have made a UPnP Device with the help of Clink170.jar.
          I specified only two xml files i.e. one is Device Description ann the other is one service description.
          While executing it is giving the following warning.
    CyberGarage warning : java.io.FileNotFoundException: /root/Pradeep/workspace-pradeep/UPnPAVRenderer/description/service/transport/description.xml (Too many open files)
    org.cybergarage.xml.ParserException: java.io.FileNotFoundException: /root/Pradeep/workspace-pradeep/UPnPAVRenderer/description/service/transport/description.xml (Too many open files)

        at org.cybergarage.xml.Parser.parse(Parser.java:89)
        at org.cybergarage.upnp.Service.getSCPDNode(Service.java:319)
        at org.cybergarage.upnp.Service.getSCPDNode(Service.java:360)
        at org.cybergarage.upnp.Service.getSCPDData(Service.java:376)
        at org.cybergarage.upnp.Device.httpGetRequestRecieved(Device.java:1387)
        at org.cybergarage.upnp.Device.httpRequestRecieved(Device.java:1333)
        at org.cybergarage.http.HTTPServer.performRequestListener(HTTPServer.java:155)
        at org.cybergarage.http.HTTPServerThread.run(HTTPServerThread.java:47)
    Caused by: java.io.FileNotFoundException: /root/Pradeep/workspace-pradeep/UPnPAVRenderer/description/service/transport/description.xml (Too many open files)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at org.cybergarage.xml.Parser.parse(Parser.java:83)
        ... 7 more
    [Fatal Error] :-1:-1: Premature end of file.

    • Pradeep Bhaduria

      I forgot to include the O.S. is Linux.

      • Stefano Lenzi

        Stefano Lenzi - 2006-10-27

        Hi Pradeep,
           Sorry for the late answer, I don't know if are been able to fix the issue by yourself, if you did it why don't share the solution with us :)
           Otherwise I have some question for you:
        - Which Linux distribution are you using?
        - Are you running the program on a embedded device like PDA or so?

        I'm asking you such questions because by the error message that you have reported it seems that Linux kernel was configure and compiled with a low number of "How many files it can open at the same times" and that limit is usually reached when you are on a embedded device.

        Stefano "Kismet" Lenzi


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks