FAQ  •  Register  •  Login

Serviio not adding files to the Library sql exception

<<

jesuscarrillo

Serviio newbie

Posts: 4

Joined: Tue Jan 31, 2012 6:11 am

Post Tue Jan 31, 2012 6:18 am

Serviio not adding files to the Library sql exception

Hi I'm running Serviio 0.6.0.1 on FreeBSD 8.2 it was working great until I charged all my music/movies library and the new items didn´t showed in the library
I found the following in the serviio log

WARN [LibraryAdditionsCheckerThread] Cannot add file 03 - Beyond Rangoon - Beyond Rangoon.mp3 because of an unexpected error. Message: Cannot create MusicTrack with title Beyond Rangoon

Caused by: java.sql.SQLDataException: The resulting value is outside the range for the data type SMALLINT.


Does anyone have the same issue??

Thanks for the help here is the complete stack trace.


Let me know if you need something else?


Also is there a way to use mysql instead of Derby?



2012-01-30 19:32:29,664 INFO [MediaServer] ------------------------------------------------------------------------
2012-01-30 19:32:29,697 INFO [MediaServer] Serviio DLNA media streaming server v 0.6.0.1 (rev. 8e4ee98bff12)
2012-01-30 19:32:29,698 INFO [MediaServer] Petr Nejedly 2009-2011
2012-01-30 19:32:29,698 INFO [MediaServer] http://www.serviio.org
2012-01-30 19:32:29,712 INFO [MediaServer]
2012-01-30 19:32:29,712 INFO [MediaServer] Java 1.6.0_07-The FreeBSD Foundation
2012-01-30 19:32:29,713 INFO [MediaServer] OS FreeBSD i386 8.2-RELEASE
2012-01-30 19:32:29,713 INFO [MediaServer] File encoding: ISO-8859-1
2012-01-30 19:32:29,714 INFO [MediaServer] Headless mode enabled: true
2012-01-30 19:32:29,714 INFO [MediaServer] User home dir: /nonexistent
2012-01-30 19:32:29,714 INFO [MediaServer] Temp dir: /var/tmp/
2012-01-30 19:32:29,714 INFO [MediaServer] ------------------------------------------------------------------------
2012-01-30 19:32:30,125 INFO [RestletServer] Starting Restlet server exposed on 192.168.0.200:23423


2012-01-30 19:21:50,888 WARN [LibraryAdditionsCheckerThread] Cannot add file 03 - Beyond Rangoon - Beyond Rangoon.mp3 because of an unexpected error. Message: Cannot create MusicTrack with title Beyond Rangoon
org.serviio.db.dao.PersistenceException: Cannot create MusicTrack with title Beyond Rangoon
at org.serviio.library.dao.MusicTrackDAOImpl.create(MusicTrackDAOImpl.java:85)
at org.serviio.library.dao.MusicTrackDAOImpl.create(MusicTrackDAOImpl.java:37)
at org.serviio.library.local.service.AudioService.addMusicTrackToLibrary(AudioService.java:86)
at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.searchForNewFiles(LibraryAdditionsCheckerThread.java:154)
at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.searchForNewFiles(LibraryAdditionsCheckerThread.java:128)
at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.searchForNewFiles(LibraryAdditionsCheckerThread.java:128)
at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.run(LibraryAdditionsCheckerThread.java:78)
Caused by: java.sql.SQLDataException: The resulting value is outside the range for the data type SMALLINT.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedResultSet.noStateChangeException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.setInt(Unknown Source)
at org.serviio.util.JdbcUtils.setIntValueOnStatement(JdbcUtils.java:177)
at org.serviio.library.dao.MusicTrackDAOImpl.create(MusicTrackDAOImpl.java:66)
... 6 more
Caused by: java.sql.SQLException: The resulting value is outside the range for the data type SMALLINT.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 13 more
Caused by: ERROR 22003: The resulting value is outside the range for the data type SMALLINT.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.iapi.types.SQLSmallint.setValue(Unknown Source)
... 9 more
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Tue Jan 31, 2012 6:35 am

Re: Serviio not adding files to the Library sql exception

update your install of java it is extremely old. your on java 1.6.0_07 and current verstion is 1.6.0_30.
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

jesuscarrillo

Serviio newbie

Posts: 4

Joined: Tue Jan 31, 2012 6:11 am

Post Tue Jan 31, 2012 7:21 am

Re: Serviio not adding files to the Library sql exception

Thanks for reply but do you really think that's the problem?
Could that be a problem with the library table schema?

I will upgrade the jvm tomorrow and I will post the results.

Thanks for your help!!!

Appreciate it.
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Tue Jan 31, 2012 8:31 am

Re: Serviio not adding files to the Library sql exception

yer that will more than likely solve your issue.
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Feb 01, 2012 12:49 pm

Re: Serviio not adding files to the Library sql exception

that seems like a bug in the schema, i'll have a look. might be something with the track's metadata (eg track number too high)
<<

jesuscarrillo

Serviio newbie

Posts: 4

Joined: Tue Jan 31, 2012 6:11 am

Post Tue Sep 18, 2012 4:54 am

Re: Serviio not adding files to the Library sql exception

Hello:
I just upgraded to FreeBSD 9.0 Latest Serviio package and I still have the same issue, is there any thing that I can help with to solve this??

Thanks appreciate your help-

Jesus
<<

jesuscarrillo

Serviio newbie

Posts: 4

Joined: Tue Jan 31, 2012 6:11 am

Post Tue Sep 18, 2012 4:55 am

Re: Serviio not adding files to the Library sql exception

Forgot to say
Running serviio-0.6.2
Java:

java -version
openjdk version "1.6.0_30"
OpenJDK Runtime Environment (build 1.6.0_30-b24)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

Thanks!
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Sep 18, 2012 3:53 pm

Re: Serviio not adding files to the Library sql exception

you don't have the latest Serviio. It's probably caused by invalid file metadata, try to remove the offending file.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 63 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.