diff --git a/airsonic-main/pom.xml b/airsonic-main/pom.xml index b0842afc..ad6e8d02 100755 --- a/airsonic-main/pom.xml +++ b/airsonic-main/pom.xml @@ -332,6 +332,7 @@ org.assertj assertj-core + test @@ -539,7 +540,7 @@ org.springframework.boot spring-boot-maven-plugin - 1.5.2.RELEASE + 1.5.8.RELEASE org.airsonic.player.Application WAR diff --git a/airsonic-main/src/main/java/org/airsonic/player/controller/StreamController.java b/airsonic-main/src/main/java/org/airsonic/player/controller/StreamController.java index 7a038637..1a40a656 100644 --- a/airsonic-main/src/main/java/org/airsonic/player/controller/StreamController.java +++ b/airsonic-main/src/main/java/org/airsonic/player/controller/StreamController.java @@ -29,7 +29,6 @@ import org.airsonic.player.service.sonos.SonosHelper; import org.airsonic.player.util.HttpRange; import org.airsonic.player.util.StringUtil; import org.airsonic.player.util.Util; -import org.apache.catalina.connector.ClientAbortException; import org.apache.commons.io.IOUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -249,9 +248,12 @@ public class StreamController { } } } - } catch (ClientAbortException err) { - LOG.info("org.apache.catalina.connector.ClientAbortException: Connection reset"); - return; + } catch (Exception err) { + if("org.apache.catalina.connector.ClientAbortException".equals(err.getClass().getName())) { + LOG.info("org.apache.catalina.connector.ClientAbortException: Connection reset"); + return; + } + LOG.error("Error occurred in handleRequest.", err); } finally { if (status != null) { securityService.updateUserByteCounts(user, status.getBytesTransfered(), 0L, 0L);