Line 1: |
Line 1: |
| + | you might get this error trying to play music as jukebox (using internal soundcard) : |
| + | <code> |
| + | tail -f /var/madsonic/madsonic.log |
| + | [2020-01-26 10:44:08,478] DEBUG TranscodeInputStream - Starting transcoder: [/var/madsonic/transcode/ffmpeg] [-ss] [0] [-i] [/home/e-smith/files/ibays/musique/files/emon.mp3] [-v] [0] [-f] [au] [-] |
| + | [2020-01-26 10:44:08,850] ERROR JukeboxService - Error in jukebox: java.lang.IllegalArgumentException: No line matching interface SourceDataLine supporting format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, big-endian is supported. |
| + | java.lang.IllegalArgumentException: No line matching interface SourceDataLine supporting format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, big-endian is supported. |
| + | at javax.sound.sampled.AudioSystem.getLine(AudioSystem.java:479) |
| + | at javax.sound.sampled.AudioSystem.getSourceDataLine(AudioSystem.java:606) |
| + | at net.sourceforge.subsonic.service.jukebox.AudioPlayer.<init>(AudioPlayer.java:60) |
| + | at net.sourceforge.subsonic.service.JukeboxService.play(JukeboxService.java:110) |
| + | at net.sourceforge.subsonic.service.JukeboxService.updateJukebox(JukeboxService.java:78) |
| + | at net.sourceforge.subsonic.ajax.PlayQueueService.convert(PlayQueueService.java:529) |
| + | at net.sourceforge.subsonic.ajax.PlayQueueService.doSkip(PlayQueueService.java:123) |
| + | at net.sourceforge.subsonic.ajax.PlayQueueService.skip(PlayQueueService.java:116) |
| + | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
| + | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) |
| + | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
| + | at java.lang.reflect.Method.invoke(Method.java:498) |
| + | at org.directwebremoting.impl.CreatorModule$1.doFilter(CreatorModule.java:230) |
| + | at org.directwebremoting.impl.CreatorModule.executeMethod(CreatorModule.java:242) |
| + | at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:358) |
| + | at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:311) |
| + | at org.directwebremoting.dwrp.BaseCallHandler.handle(BaseCallHandler.java:105) |
| + | at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:126) |
| + | at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:144) |
| + | at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) |
| + | at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) |
| + | at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686) |
| + | at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494) |
| + | at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265) |
| + | at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107) |
| + | at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72) |
| + | at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) |
| + | at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124) |
| + | at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) |
| + | at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) |
| + | at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) |
| + | at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) |
| + | at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) |
| + | at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81) |
| + | at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) |
| + | at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174) |
| + | at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) |
| + | at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) |
| + | at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) |
| + | at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110) |
| + | at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) |
| + | at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) |
| + | at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) |
| + | at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149) |
| + | at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) |
| + | at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) |
| + | at net.sourceforge.subsonic.filter.RequestEncodingFilter.doFilter(RequestEncodingFilter.java:43) |
| + | at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) |
| + | at net.sourceforge.subsonic.filter.ParameterDecodingFilter.doFilter(ParameterDecodingFilter.java:54) |
| + | at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) |
| + | at net.sourceforge.subsonic.filter.BootstrapVerificationFilter.doFilter(BootstrapVerificationFilter.java:54) |
| + | at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474) |
| + | at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499) |
| + | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) |
| + | at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) |
| + | at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) |
| + | at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) |
| + | at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428) |
| + | at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) |
| + | at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) |
| + | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) |
| + | at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) |
| + | at org.eclipse.jetty.server.Server.handle(Server.java:370) |
| + | at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) |
| + | at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960) |
| + | at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021) |
| + | at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) |
| + | at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) |
| + | at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) |
| + | at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) |
| + | at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) |
| + | at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) |
| + | at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) |
| + | at java.lang.Thread.run(Thread.java:748) |
| + | |
| + | </code> |
| + | |
| to play as jukebox on the server | | to play as jukebox on the server |
| | | |
− | yum install java-1.7.0-openjdk-devel java-openjdk-devel -y | + | yum install java-1.8.0-openjdk-devel java-openjdk-devel -y |
| | | |
| | | |
Line 49: |
Line 132: |
| javax.sound.sampled.TargetDataLine=#Intel [plughw:0,0] | | javax.sound.sampled.TargetDataLine=#Intel [plughw:0,0] |
| | | |
− | In my case, files were: / | + | In my case, files were in one of these: / |
| + | vim /usr/lib/jvm/java-1.8.0/jre/lib/sound.properties |
| vim /usr/lib/jvm/java-1.7.0/jre/lib/sound.properties | | vim /usr/lib/jvm/java-1.7.0/jre/lib/sound.properties |
| vim /usr/lib/jvm/java-1.6.0/jre/lib/sound.properties | | vim /usr/lib/jvm/java-1.6.0/jre/lib/sound.properties |