Subsonic error including error message

Need help? Post your questions here.

Moderator: moderators

Subsonic error including error message

Postby AndreasD » Sat Aug 15, 2015 7:20 am

Help. I encountered an error, details below.
Did it occur because i filled the form as described on http://www.subsonic.org/pages/sonos.jsp trying to introduce the Subsonic music service into the Sonos system belonging to one of my users?
(Yesterday my own Sonos system did not recognize the Subsonic music service anymore)

I do not really know how to paste the error message properly into this message.
I just pasted it now, let me know if there's a better way.

Help me, please! Thanks!

    Error
    Subsonic encountered an internal error. You can report this error in the Subsonic Forum. Please include the information below.

    Exception org.springframework.dao.TransientDataAccessResourceException
    Message PreparedStatementCallback; SQL [select id, path, folder, type, format, title, album, artist, album_artist, disc_number, track_number, year, genre, bit_rate, variable_bit_rate, duration_seconds, file_size, width, height, cover_art_path, parent_path, play_count, last_played, comment, created, changed, last_scanned, children_last_updated, present, version from media_file where type = ? and folder in (?) and present order by created desc limit ? offset ?]; S1000 General error java.lang.NullPointerException in statement [select id, path, folder, type, format, title, album, artist, album_artist, disc_number, track_number, year, genre, bit_rate, variable_bit_rate, duration_seconds, file_size, width, height, cover_art_path, parent_path, play_count, last_played, comment, created, changed, last_scanned, children_last_updated, present, version from media_file where type = ? and folder in (?) and present order by created desc limit ? offset ?]; nested exception is java.sql.SQLException: S1000 General error java.lang.NullPointerException in statement [select id, path, folder, type, format, title, album, artist, album_artist, disc_number, track_number, year, genre, bit_rate, variable_bit_rate, duration_seconds, file_size, width, height, cover_art_path, parent_path, play_count, last_played, comment, created, changed, last_scanned, children_last_updated, present, version from media_file where type = ? and folder in (?) and present order by created desc limit ? offset ?]
    Java version Oracle Corporation 1.8.0_31
    Operating system Windows 7 6.1
    Server jetty-6.1.x
    Memory Used 66 of 145 MB
    Stack trace org.springframework.dao.TransientDataAccessResourceException: PreparedStatementCallback; SQL [select id, path, folder, type, format, title, album, artist, album_artist, disc_number, track_number, year, genre, bit_rate, variable_bit_rate, duration_seconds, file_size, width, height, cover_art_path, parent_path, play_count, last_played, comment, created, changed, last_scanned, children_last_updated, present, version from media_file where type = ? and folder in (?) and present order by created desc limit ? offset ?]; S1000 General error java.lang.NullPointerException in statement [select id, path, folder, type, format, title, album, artist, album_artist, disc_number, track_number, year, genre, bit_rate, variable_bit_rate, duration_seconds, file_size, width, height, cover_art_path, parent_path, play_count, last_played, comment, created, changed, last_scanned, children_last_updated, present, version from media_file where type = ? and folder in (?) and present order by created desc limit ? offset ?]; nested exception is java.sql.SQLException: S1000 General error java.lang.NullPointerException in statement [select id, path, folder, type, format, title, album, artist, album_artist, disc_number, track_number, year, genre, bit_rate, variable_bit_rate, duration_seconds, file_size, width, height, cover_art_path, parent_path, play_count, last_played, comment, created, changed, last_scanned, children_last_updated, present, version from media_file where type = ? and folder in (?) and present order by created desc limit ? offset ?]
    at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:106)
    at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)
    at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)
    at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:607)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:641)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:666)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:698)
    at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.query(NamedParameterJdbcTemplate.java:133)
    at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.query(NamedParameterJdbcTemplate.java:137)
    at net.sourceforge.subsonic.dao.AbstractDao.namedQuery(AbstractDao.java:104)
    at net.sourceforge.subsonic.dao.MediaFileDao.getNewestAlbums(MediaFileDao.java:278)
    at net.sourceforge.subsonic.service.MediaFileService.getNewestAlbums(MediaFileService.java:276)
    at net.sourceforge.subsonic.controller.HomeController.getNewest(HomeController.java:162)
    at net.sourceforge.subsonic.controller.HomeController.handleRequestInternal(HomeController.java:90)
    at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
    at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
    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:166)
    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:173)
    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.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
    at net.sourceforge.subsonic.filter.ResponseHeaderFilter.doFilter(ResponseHeaderFilter.java:47)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
    at net.sourceforge.subsonic.filter.RequestEncodingFilter.doFilter(RequestEncodingFilter.java:43)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
    at net.sourceforge.subsonic.filter.ParameterDecodingFilter.doFilter(ParameterDecodingFilter.java:54)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
    at net.sourceforge.subsonic.filter.BootstrapVerificationFilter.doFilter(BootstrapVerificationFilter.java:54)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
    at org.mortbay.jetty.Server.handle(Server.java:313)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
    at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
    Caused by: java.sql.SQLException: S1000 General error java.lang.NullPointerException in statement [select id, path, folder, type, format, title, album, artist, album_artist, disc_number, track_number, year, genre, bit_rate, variable_bit_rate, duration_seconds, file_size, width, height, cover_art_path, parent_path, play_count, last_played, comment, created, changed, last_scanned, children_last_updated, present, version from media_file where type = ? and folder in (?) and present order by created desc limit ? offset ?]
    at org.hsqldb.jdbc.Util.throwError(Unknown Source)
    at org.hsqldb.jdbc.jdbcPreparedStatement.executeQuery(Unknown Source)
    at org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:648)
    at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:591)
    ... 65 more
AndreasD
 
Posts: 12
Joined: Thu Aug 13, 2015 8:48 pm

Re: Subsonic error including error message

Postby alphawave7 » Sat Aug 15, 2015 1:23 pm

S1000 errors usually a corrupt database. Stop the service, Rename subsonic.db file to subsonic.old, restart to recreate db.

Sent from my Nexus 6 using Tapatalk
alphawave7
 
Posts: 1042
Joined: Thu Feb 11, 2010 9:54 am

Re: Subsonic error including error message

Postby AndreasD » Sat Aug 15, 2015 2:38 pm

That worked. Thanks!
However I lost all my users. Is there a way to restore this?
AndreasD
 
Posts: 12
Joined: Thu Aug 13, 2015 8:48 pm

Re: Subsonic error including error message

Postby alphawave7 » Sat Aug 15, 2015 9:08 pm

AndreasD wrote:That worked. Thanks!
However I lost all my users. Is there a way to restore this?


I believe (but haven't tried it personally since I only have several users) that the script file from db.old can be transferred to new. Stop service, swap the script file, restart the service...report back your results. Cheers!
alphawave7
 
Posts: 1042
Joined: Thu Feb 11, 2010 9:54 am

Re: Subsonic error including error message

Postby AndreasD » Mon Aug 17, 2015 7:00 am

I have also only few users.
I restored their inlogs by hand.
AndreasD
 
Posts: 12
Joined: Thu Aug 13, 2015 8:48 pm

Re: Subsonic error including error message

Postby andreasdevig » Sat Sep 12, 2015 11:39 am

I am having the same error message. I don't know what to do. I don't see any subsonic.db file...
andreasdevig
 
Posts: 16
Joined: Sun Mar 08, 2015 1:15 pm

Re: Subsonic error including error message

Postby tornadotj » Thu Sep 17, 2015 9:05 pm

I also cannot find a subsonic.db file.
tornadotj
 
Posts: 15
Joined: Thu Jan 12, 2012 3:01 pm

Re: Subsonic error including error message

Postby andreasdevig » Thu Oct 01, 2015 1:56 am

Tornadotj, have you tried deleting your folders from your subsonic website account, then deleting anything named subsonic on your computer, then installing subsonic again? The premiumship will be lost, so it's a good thing if you still have your subsonic licence key.
andreasdevig
 
Posts: 16
Joined: Sun Mar 08, 2015 1:15 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 13 guests