Uploaded image for project: 'Jaikoz'
  1. Jaikoz
  2. JAIKOZ-1085

Too many files exception when matching

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.3.5
    • Fix Version/s: 8.4.0
    • Labels:
      None
    • Forum Username:
      evangraj

      Description

      java.net.SocketException: Too many open files
      at java.net.Socket.createImpl(Socket.java:460)
      at java.net.Socket.connect(Socket.java:587)
      at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
      at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
      at sun.net.www.http.HttpClient.New(HttpClient.java:308)
      at sun.net.www.http.HttpClient.New(HttpClient.java:326)
      at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1167)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1103)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:997)
      at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:931)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1511)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)
      at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
      at com.jthink.jthinksearch.client.JthinkSearchServer.doQuery(JthinkSearchServer.java:256)
      at com.jthink.jthinksearch.client.JthinkSearchServer.performQuery(JthinkSearchServer.java:161)
      at com.jthink.jthinksearch.client.SearchRelease.queryByTrackAndArtist(SearchRelease.java:279)
      at com.jthink.jthinksearch.client.DiscogsSearchRelease.queryByTrackAndArtist(DiscogsSearchRelease.java:49)
      at com.jthink.jaikoz.manipulate.DiscogsSingleSongMatcher.queryForCandidateReleasesByArtistTrackAndReleaseTitleForSingleSong(DiscogsSingleSongMatcher.java:134)
      at com.jthink.jaikoz.manipulate.CorrectFromDiscogsReleaseWorker.singleSongMatch(CorrectFromDiscogsReleaseWorker.java:645)
      at com.jthink.jaikoz.manipulate.CorrectFromDiscogsReleaseWorker.secondaryFolderMatch(CorrectFromDiscogsReleaseWorker.java:606)
      at com.jthink.jaikoz.manipulate.CorrectFromDiscogsReleaseWorker.doMatching(CorrectFromDiscogsReleaseWorker.java:151)
      at com.jthink.jaikoz.manipulate.CorrectFromDiscogsReleaseWorker.call(CorrectFromDiscogsReleaseWorker.java:322)
      at com.jthink.jaikoz.manipulate.CorrectFromDiscogsReleaseWorker.call(CorrectFromDiscogsReleaseWorker.java:34)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
      31/10/2015 16.27.39

      The underlying cause seems to be this error:

      java.io.IOException: Error writing to server
      at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:664)
      at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:676)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1532)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)
      at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
      at com.jthink.jthinksearch.client.JthinkSearchServer.doQuery(JthinkSearchServer.java:256)
      at com.jthink.jthinksearch.client.JthinkSearchServer.performQuery(JthinkSearchServer.java:161)
      at com.jthink.jthinksearch.client.SearchRelease.queryByReleasesAndArtists(SearchRelease.java:146)
      at com.jthink.jthinksearch.client.DiscogsSearchRelease.queryByReleasesAndArtists(DiscogsSearchRelease.java:40)
      at com.jthink.jaikoz.manipulate.CorrectFromDiscogsReleaseWorker.queryByMetadata(CorrectFromDiscogsReleaseWorker.java:259)
      at com.jthink.jaikoz.manipulate.CorrectFromDiscogsReleaseWorker.queryForReleases(CorrectFromDiscogsReleaseWorker.java:301)
      at com.jthink.jaikoz.manipulate.CorrectFromDiscogsReleaseWorker.doMatching(CorrectFromDiscogsReleaseWorker.java:118)
      at com.jthink.jaikoz.manipulate.CorrectFromDiscogsReleaseWorker.call(CorrectFromDiscogsReleaseWorker.java:322)
      at com.jthink.jaikoz.manipulate.CorrectFromDiscogsReleaseWorker.call(CorrectFromDiscogsReleaseWorker.java:34)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)

        Attachments

          Activity

            People

            • Reporter:
              ijabz IJabz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: