Wed Apr 06, 2016 6:19 pm by gcetera
			
			
			ok, iam trying to give permission:
connect by ssh to synology as admin.
typing "sudo su -" to login as root
chmod 777 -R /volume1/@appstore/Serviio
Serviio runing but type error:
[ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
-   Code:
 Java HotSpot(TM) Embedded Client VM warning: G1 GC is disabled in this release.
2016-04-06 21:09:14,971 INFO  [MediaServer] ------------------------------------------------------------------------
2016-04-06 21:09:14,975 INFO  [MediaServer] Serviio DLNA media streaming server v 1.6 (rev. 9a1458ed77db)
2016-04-06 21:09:14,975 INFO  [MediaServer] Petr Nejedly 2009-2015
2016-04-06 21:09:14,975 INFO  [MediaServer] http://www.serviio.org
2016-04-06 21:09:14,975 INFO  [MediaServer] 
2016-04-06 21:09:14,976 INFO  [MediaServer] Java 1.8.0_77-Oracle Corporation arm
2016-04-06 21:09:14,976 INFO  [MediaServer] OS Linux 3.2.40
2016-04-06 21:09:14,976 INFO  [MediaServer] File encoding: UTF-8
2016-04-06 21:09:15,435 INFO  [MediaServer] Headless mode enabled: true
2016-04-06 21:09:15,436 INFO  [MediaServer] User: root
2016-04-06 21:09:15,436 INFO  [MediaServer] User home dir: /root
2016-04-06 21:09:15,436 INFO  [MediaServer] Temp dir: /tmp
2016-04-06 21:09:15,436 INFO  [MediaServer] ------------------------------------------------------------------------
2016-04-06 21:09:16,019 INFO  [WebServer] Socket buffer set to 65535 bytes
2016-04-06 21:09:16,021 INFO  [RestletServer] Starting Restlet server (/console) exposed on port 23423
2016-04-06 21:09:16,033 INFO  [RestletServer] Starting Restlet server (/rest) exposed on port 23423
2016-04-06 21:09:16,286 INFO  [RestletServer] Starting Restlet server (/cds) exposed on port 23424
2016-04-06 21:09:16,287 INFO  [RestletServer] Starting Restlet server (/mediabrowser) exposed on port 23424
2016-04-06 21:09:16,337 INFO  [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2016-04-06 21:09:16,393 INFO  [DatabaseManager] Using DERBY database language
2016-04-06 21:09:21,216 INFO  [DBSchemaUpdateExecutor] Updating DB schema
2016-04-06 21:09:26,071 INFO  [DBSchemaUpdateExecutor] Dropping search index
2016-04-06 21:09:26,086 INFO  [SearchManager] Starting up search engine
2016-04-06 21:09:26,825 INFO  [DBSchemaUpdateExecutor] Cleaning temporary cache
2016-04-06 21:09:26,914 INFO  [Device] Created UPnP Device with UUID: 32f0d5f5-050c-3e1b-a6ce-bd888c0aeeee, bound address: 192.168.50.6
2016-04-06 21:09:27,254 INFO  [DBSchemaUpdateExecutor] Cleaning persistent cache
2016-04-06 21:09:27,326 WARN  [IndexedDiskCache] Region [online_technical_metadata] Reseting cache
2016-04-06 21:09:27,972 INFO  [MediaServer] ------------------------------------------------------------------------
2016-04-06 21:09:27,972 INFO  [MediaServer] License: PRO (EVALUATION, id: 11111111-1111-1111-1111-111111111113)
2016-04-06 21:09:27,973 INFO  [MediaServer] ------------------------------------------------------------------------
2016-04-06 21:09:28,914 INFO  [ProfilesDefinitionParser] Parsing Profiles definition
2016-04-06 21:09:29,103 INFO  [ProfilesDefinitionParser] Added profile 'Generic DLNA profile' (id=1)
2016-04-06 21:09:29,129 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV (B-series)' (id=2)
2016-04-06 21:09:29,139 INFO  [ProfilesDefinitionParser] Added profile 'Xbox 360' (id=3)
2016-04-06 21:09:29,142 INFO  [ProfilesDefinitionParser] Added profile 'Playstation 3' (id=4)
2016-04-06 21:09:29,146 INFO  [ProfilesDefinitionParser] Added profile 'Playstation 4' (id=ps4)
2016-04-06 21:09:29,158 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV (A-series)' (id=5)
2016-04-06 21:09:29,192 INFO  [ProfilesDefinitionParser] Added profile 'DirecTV HD-DVR' (id=6)
2016-04-06 21:09:29,196 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV / player (H-series)' (id=sam_h)
2016-04-06 21:09:29,199 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV / player (J-series)' (id=sam_j)
2016-04-06 21:09:29,201 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV / player (E/F-series)' (id=sam_ef)
2016-04-06 21:09:29,203 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV / player (C/D-series)' (id=7)
2016-04-06 21:09:29,204 INFO  [ProfilesDefinitionParser] Added profile 'LG TV / player' (id=8)
2016-04-06 21:09:29,211 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2012)' (id=sony2012)
2016-04-06 21:09:29,214 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2013/14)' (id=sony2013)
2016-04-06 21:09:29,216 INFO  [ProfilesDefinitionParser] Added profile 'Sony BDP-Sx100 (2013)' (id=bdp2013)
2016-04-06 21:09:29,218 INFO  [ProfilesDefinitionParser] Added profile 'Sony BDP-Sx90 (2012)' (id=bdp2012)
2016-04-06 21:09:29,222 INFO  [ProfilesDefinitionParser] Added profile 'Sony BDP-Sx70/SMP-N100 (2010)' (id=bdp2010)
2016-04-06 21:09:29,224 INFO  [ProfilesDefinitionParser] Added profile 'Sony BDP-Sx70/SMP-N100 (2010) - US' (id=bdp2010us)
2016-04-06 21:09:29,225 INFO  [ProfilesDefinitionParser] Added profile 'Sony BDP-Sx80/SMP-N200 (2011)' (id=bdp2011)
2016-04-06 21:09:29,226 INFO  [ProfilesDefinitionParser] Added profile 'Toshiba REGZA' (id=13)
2016-04-06 21:09:29,229 INFO  [ProfilesDefinitionParser] Added profile 'Toshiba REGZA 2012-' (id=tosh2012)
2016-04-06 21:09:29,233 INFO  [ProfilesDefinitionParser] Added profile 'WDTV Live' (id=14)
2016-04-06 21:09:29,234 INFO  [ProfilesDefinitionParser] Added profile 'LaCie LaCinema Media Player' (id=15)
2016-04-06 21:09:29,235 INFO  [ProfilesDefinitionParser] Added profile 'Manta WIFI Centre' (id=16)
2016-04-06 21:09:29,236 INFO  [ProfilesDefinitionParser] Added profile 'Pure Flow' (id=17)
2016-04-06 21:09:29,238 INFO  [ProfilesDefinitionParser] Added profile 'Sharp Aquos' (id=18)
2016-04-06 21:09:29,239 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2011)' (id=sony2011)
2016-04-06 21:09:29,240 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2010)' (id=sony2010)
2016-04-06 21:09:29,241 INFO  [ProfilesDefinitionParser] Added profile 'Philips (2010-)' (id=plps2010)
2016-04-06 21:09:29,248 INFO  [ProfilesDefinitionParser] Added profile 'Philips (2009)' (id=20)
2016-04-06 21:09:29,249 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2009)' (id=sony2009)
2016-04-06 21:09:29,252 INFO  [ProfilesDefinitionParser] Added profile 'Denon AVR' (id=22)
2016-04-06 21:09:29,253 INFO  [ProfilesDefinitionParser] Added profile 'Panasonic Viera (2013)' (id=viera2013)
2016-04-06 21:09:29,255 INFO  [ProfilesDefinitionParser] Added profile 'Panasonic Viera G/GT/DT/UT/VT (2011/2012)' (id=viera2011a)
2016-04-06 21:09:29,302 INFO  [ProfilesDefinitionParser] Added profile 'Panasonic Viera E/S/ST/VT (2011)' (id=viera2011)
2016-04-06 21:09:29,303 INFO  [ProfilesDefinitionParser] Added profile 'Panasonic Viera (2010)' (id=viera2010)
2016-04-06 21:09:29,304 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2012) - US' (id=sony2012us)
2016-04-06 21:09:29,305 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2011) - US' (id=sony2011us)
2016-04-06 21:09:29,307 INFO  [ProfilesDefinitionParser] Added profile 'Sony AVReceiver STR' (id=SonySTR)
2016-04-06 21:09:29,308 INFO  [ProfilesDefinitionParser] Added profile 'Sony Audio CMT' (id=SonyCMT)
2016-04-06 21:09:29,309 INFO  [ProfilesDefinitionParser] Added profile 'Vizio TV' (id=viziotv)
2016-04-06 21:09:29,312 INFO  [ProfilesDefinitionParser] Added profile 'Windows 8/RT' (id=win8metro)
2016-04-06 21:09:29,314 INFO  [ProfilesDefinitionParser] Added profile 'Panasonic BD player' (id=panasonicBDT220)
2016-04-06 21:09:29,315 INFO  [ProfilesDefinitionParser] Added profile 'Philips NP Streamium' (id=philips_streamium)
2016-04-06 21:09:29,316 INFO  [ProfilesDefinitionParser] Added profile 'Chaneru' (id=roku)
2016-04-06 21:09:29,320 INFO  [ProfilesDefinitionParser] Added profile 'Roku Media Player' (id=RokuMPApp)
2016-04-06 21:09:29,321 INFO  [ProfilesDefinitionParser] Added profile 'Yamaha BD-A1020/BD-A1010' (id=YamBD)
2016-04-06 21:09:29,322 INFO  [ProfilesDefinitionParser] Added profile 'Telenet Yelo TV' (id=TNDC)
2016-04-06 21:09:29,324 INFO  [ProfilesDefinitionParser] Added profile 'Xbox One' (id=xbox_one)
2016-04-06 21:09:29,326 INFO  [ProfilesDefinitionParser] Added profile 'Raumfeld' (id=raumfeld)
2016-04-06 21:09:29,417 INFO  [ProfilesDefinitionParser] Parsing Profiles definition
2016-04-06 21:09:29,420 INFO  [ProfilesDefinitionParser] Added profile 'Flash player' (id=flv_player)
2016-04-06 21:09:29,422 INFO  [ProfilesDefinitionParser] Added profile 'iOS' (id=ios)
2016-04-06 21:09:29,423 INFO  [ProfilesDefinitionParser] Added profile 'HTML5' (id=html5)
2016-04-06 21:09:29,425 INFO  [ProfilesDefinitionParser] Added profile 'ServiiGo (Standard)' (id=serviigo_standard)
2016-04-06 21:09:29,426 INFO  [ProfilesDefinitionParser] Added profile 'ServiiGo (Legacy Devices)' (id=serviigo)
2016-04-06 21:09:29,428 INFO  [ProfilesDefinitionParser] Added profile 'ServiiGo (HLS)' (id=serviigo_hls)
2016-04-06 21:09:29,429 INFO  [ProfilesDefinitionParser] Added profile 'ServiiGo (Google TV)' (id=serviigo_gtv)
2016-04-06 21:09:29,431 INFO  [ProfilesDefinitionParser] Added profile 'Google Cast' (id=googlecast)
2016-04-06 21:09:29,432 INFO  [ProfilesDefinitionParser] Added profile 'Chromecast' (id=chromecast)
2016-04-06 21:09:29,434 INFO  [ProfilesDefinitionParser] Added profile 'Windows Phone 8' (id=wp8)
2016-04-06 21:09:29,465 INFO  [PluginCompilerThread] Looking for plugins at /volume1/public/serviio/plugins
2016-04-06 21:09:29,466 INFO  [PluginCompilerThread] Started looking for plugins
2016-04-06 21:09:29,471 INFO  [UpdateChecker] Checking if a new version is available
2016-04-06 21:09:29,636 INFO  [FFMPEGWrapper] Found FFmpeg: ffmpeg version 2.7.1-compiled_by_patters_for_Serviio Copyright (c) 2000-2015 the FFmpeg developers
2016-04-06 21:09:29,710 INFO  [AbstractAVTranscodingDeliveryEngine] Cleaning transcode engine and its data
2016-04-06 21:09:29,813 INFO  [WebServer] WebServer starting on port 8895
2016-04-06 21:09:29,814 INFO  [Device] Updated bound IP address of Device with UUID: 32f0d5f5-050c-3e1b-a6ce-bd888c0aeeee, bound address: 192.168.50.6
2016-04-06 21:09:29,830 INFO  [EventDispatcher] Starting EventDispatcher
2016-04-06 21:09:29,838 INFO  [EventSubscriptionExpirationChecker] Starting EventSubscriptionExpirationChecker
2016-04-06 21:09:29,839 INFO  [DiscoverySSDPMessageListener] Starting DiscoverySSDPMessageListener using interface bond0 (bond0) and address 192.168.50.6, timeout = 0
2016-04-06 21:09:29,840 INFO  [DiscoveryAdvertisementNotifier] Starting DiscoveryAdvertisementNotifier
2016-04-06 21:09:29,845 INFO  [RendererExpirationChecker] Starting RendererExpirationChecker
2016-04-06 21:09:29,846 INFO  [RendererSearchSender] Searching for Renderer devices
2016-04-06 21:09:30,252 WARN  [RendererManager] Error while retrieving renderer description: Cannot retrieve device description from http://192.168.50.22:7676/smp_18_
2016-04-06 21:09:30,749 INFO  [RendererManager] Stored a new renderer: uuid='0c845881-00d2-1000-a4da-1c5a3ea66349', name = 'UE32ES5507', ipAddress='192.168.50.22', profile = '1', accessGroupId = '1'
2016-04-06 21:09:39,372 INFO  [FileDeltaWatcher] Using 'sun.nio.fs.LinuxWatchService' for delta scan
2016-04-06 21:09:39,407 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:09:55,948 INFO  [FeedUpdaterWorker] Started looking for information about online resources
2016-04-06 21:09:55,953 INFO  [RepositoriesStatusCoordinator$RepositoriesStatusThread] Started checking repositories status
2016-04-06 21:09:56,003 INFO  [LocalLibraryManager] Starting automatic library scan
2016-04-06 21:09:56,010 INFO  [LibraryDeltaScanner] Starting the library delta scan
2016-04-06 21:09:56,014 INFO  [PlaylistMaintainerWorker] Started looking for playlist changes
2016-04-06 21:09:58,705 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:10:03,703 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:10:08,721 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:10:13,707 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:10:18,707 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:10:21,496 WARN  [ServiioStatusService] ArrayIndexOutOfBoundsException occured. Returning error code 500 to the REST layer. Message: 0
2016-04-06 21:10:23,707 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:10:28,704 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:10:33,704 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:10:38,707 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:10:43,707 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:10:48,704 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:10:53,704 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:10:58,705 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:10:59,038 INFO  [LibraryOneTimeScanner] Interrupting library scan
2016-04-06 21:10:59,038 INFO  [LibraryDeltaScanner] Stopping the library delta scan
2016-04-06 21:10:59,049 INFO  [PlaylistMaintainerWorker] Finished looking for playlist changes
2016-04-06 21:10:59,289 INFO  [LocalLibraryManager] Starting automatic library scan
2016-04-06 21:11:00,667 INFO  [LibraryDeltaScanner] Added repository '/volume1/Storage/Video' to delta scanner (POLLER)
2016-04-06 21:11:00,667 INFO  [LibraryDeltaScanner] Starting the library delta scan
2016-04-06 21:11:00,965 INFO  [PlaylistMaintainerWorker] Started looking for playlist changes
2016-04-06 21:11:01,004 WARN  [MediaFileIndexer] Cannot add file Battle.Creek.s01e01.1080p.WEBDL.NewStudio.TV.mkv because of an unexpected error. Message: Cannot find media item by file path: /volume1/Storage/Video/Battle.Creek/Battle.Creek.s01e01.1080p.WEBDL.NewStudio.TV.mkv 
org.serviio.db.dao.PersistenceException: Cannot find media item by file path: /volume1/Storage/Video/Battle.Creek/Battle.Creek.s01e01.1080p.WEBDL.NewStudio.TV.mkv 
   at org.serviio.library.dao.MediaItemDAOImpl.getMediaItem(MediaItemDAOImpl.java:89)
   at org.serviio.library.dao.MediaItemDAOImpl.isMediaItemPresent(MediaItemDAOImpl.java:61)
   at org.serviio.library.local.service.MediaService.isMediaPresentInLibrary(MediaService.java:43)
   at org.serviio.library.local.indexing.MediaFileIndexer.addNewMediaFile(MediaFileIndexer.java:71)
   at org.serviio.library.local.indexing.DefaultLibraryMonitor.fileAdded(DefaultLibraryMonitor.java:49)
   at org.serviio.library.local.indexing.pipe.PipeManager$PipeProcessingConsumer.lambda$run$9(PipeManager.java:174)
   at java.util.Optional.ifPresent(Optional.java:159)
   at org.serviio.library.local.indexing.pipe.PipeManager$PipeProcessingConsumer.run(PipeManager.java:169)
   at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLSyntaxErrorException: Table/View 'MEDIA_ITEM' does not exist.
   at org.apache.derby.impl.jdbc.SQLExceptionFactory.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.TransactionResourceImpl.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement42.<init>(Unknown Source)
   at org.apache.derby.jdbc.Driver42.newEmbedPreparedStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
   at org.serviio.library.dao.MediaItemDAOImpl.getMediaItem(MediaItemDAOImpl.java:81)
   ... 8 more
Caused by: ERROR 42X05: Table/View 'MEDIA_ITEM' does not exist.
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromBaseTable.bindTableDescriptor(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromBaseTable.bindNonVTITables(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromList.bindTables(Unknown Source)
   at org.apache.derby.impl.sql.compile.SelectNode.bindNonVTITables(Unknown Source)
   at org.apache.derby.impl.sql.compile.DMLStatementNode.bindTables(Unknown Source)
   at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Source)
   at org.apache.derby.impl.sql.compile.CursorNode.bindStatement(Unknown Source)
   at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
   at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
   at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown Source)
   ... 14 more
2016-04-06 21:11:01,036 WARN  [MediaFileIndexer] Cannot add file Battle.Creek.S01E02.1080p.rus.LostFilm.TV.mkv because of an unexpected error. Message: Cannot find media item by file path: /volume1/Storage/Video/Battle.Creek/Battle.Creek.S01E02.1080p.rus.LostFilm.TV.mkv 
org.serviio.db.dao.PersistenceException: Cannot find media item by file path: /volume1/Storage/Video/Battle.Creek/Battle.Creek.S01E02.1080p.rus.LostFilm.TV.mkv 
   at org.serviio.library.dao.MediaItemDAOImpl.getMediaItem(MediaItemDAOImpl.java:89)
   at org.serviio.library.dao.MediaItemDAOImpl.isMediaItemPresent(MediaItemDAOImpl.java:61)
   at org.serviio.library.local.service.MediaService.isMediaPresentInLibrary(MediaService.java:43)
   at org.serviio.library.local.indexing.MediaFileIndexer.addNewMediaFile(MediaFileIndexer.java:71)
   at org.serviio.library.local.indexing.DefaultLibraryMonitor.fileAdded(DefaultLibraryMonitor.java:49)
   at org.serviio.library.local.indexing.pipe.PipeManager$PipeProcessingConsumer.lambda$run$9(PipeManager.java:174)
   at java.util.Optional.ifPresent(Optional.java:159)
   at org.serviio.library.local.indexing.pipe.PipeManager$PipeProcessingConsumer.run(PipeManager.java:169)
   at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLSyntaxErrorException: Table/View 'MEDIA_ITEM' does not exist.
   at org.apache.derby.impl.jdbc.SQLExceptionFactory.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.TransactionResourceImpl.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement42.<init>(Unknown Source)
   at org.apache.derby.jdbc.Driver42.newEmbedPreparedStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
   at org.serviio.library.dao.MediaItemDAOImpl.getMediaItem(MediaItemDAOImpl.java:81)
   ... 8 more
Caused by: ERROR 42X05: Table/View 'MEDIA_ITEM' does not exist.
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromBaseTable.bindTableDescriptor(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromBaseTable.bindNonVTITables(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromList.bindTables(Unknown Source)
   at org.apache.derby.impl.sql.compile.SelectNode.bindNonVTITables(Unknown Source)
   at org.apache.derby.impl.sql.compile.DMLStatementNode.bindTables(Unknown Source)
   at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Source)
   at org.apache.derby.impl.sql.compile.CursorNode.bindStatement(Unknown Source)
   at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
   at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
   at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown Source)
   ... 14 more
2016-04-06 21:11:01,080 WARN  [MediaFileIndexer] Cannot add file Battle.Creek.S01E03.1080p.rus.LostFilm.TV.mkv because of an unexpected error. Message: Cannot find media item by file path: /volume1/Storage/Video/Battle.Creek/Battle.Creek.S01E03.1080p.rus.LostFilm.TV.mkv 
org.serviio.db.dao.PersistenceException: Cannot find media item by file path: /volume1/Storage/Video/Battle.Creek/Battle.Creek.S01E03.1080p.rus.LostFilm.TV.mkv 
   at org.serviio.library.dao.MediaItemDAOImpl.getMediaItem(MediaItemDAOImpl.java:89)
   at org.serviio.library.dao.MediaItemDAOImpl.isMediaItemPresent(MediaItemDAOImpl.java:61)
   at org.serviio.library.local.service.MediaService.isMediaPresentInLibrary(MediaService.java:43)
   at org.serviio.library.local.indexing.MediaFileIndexer.addNewMediaFile(MediaFileIndexer.java:71)
   at org.serviio.library.local.indexing.DefaultLibraryMonitor.fileAdded(DefaultLibraryMonitor.java:49)
   at org.serviio.library.local.indexing.pipe.PipeManager$PipeProcessingConsumer.lambda$run$9(PipeManager.java:174)
   at java.util.Optional.ifPresent(Optional.java:159)
   at org.serviio.library.local.indexing.pipe.PipeManager$PipeProcessingConsumer.run(PipeManager.java:169)
   at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLSyntaxErrorException: Table/View 'MEDIA_ITEM' does not exist.
   at org.apache.derby.impl.jdbc.SQLExceptionFactory.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.TransactionResourceImpl.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement42.<init>(Unknown Source)
   at org.apache.derby.jdbc.Driver42.newEmbedPreparedStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
   at org.serviio.library.dao.MediaItemDAOImpl.getMediaItem(MediaItemDAOImpl.java:81)
   ... 8 more
Caused by: ERROR 42X05: Table/View 'MEDIA_ITEM' does not exist.
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromBaseTable.bindTableDescriptor(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromBaseTable.bindNonVTITables(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromList.bindTables(Unknown Source)
   at org.apache.derby.impl.sql.compile.SelectNode.bindNonVTITables(Unknown Source)
   at org.apache.derby.impl.sql.compile.DMLStatementNode.bindTables(Unknown Source)
   at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Source)
   at org.apache.derby.impl.sql.compile.CursorNode.bindStatement(Unknown Source)
   at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
   at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
   at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown Source)
   ... 14 more
2016-04-06 21:11:01,096 WARN  [MediaFileIndexer] Cannot add file Battle.Creek.S01E04.1080p.rus.LostFilm.TV.mkv because of an unexpected error. Message: Cannot find media item by file path: /volume1/Storage/Video/Battle.Creek/Battle.Creek.S01E04.1080p.rus.LostFilm.TV.mkv 
org.serviio.db.dao.PersistenceException: Cannot find media item by file path: /volume1/Storage/Video/Battle.Creek/Battle.Creek.S01E04.1080p.rus.LostFilm.TV.mkv 
   at org.serviio.library.dao.MediaItemDAOImpl.getMediaItem(MediaItemDAOImpl.java:89)
   at org.serviio.library.dao.MediaItemDAOImpl.isMediaItemPresent(MediaItemDAOImpl.java:61)
   at org.serviio.library.local.service.MediaService.isMediaPresentInLibrary(MediaService.java:43)
   at org.serviio.library.local.indexing.MediaFileIndexer.addNewMediaFile(MediaFileIndexer.java:71)
   at org.serviio.library.local.indexing.DefaultLibraryMonitor.fileAdded(DefaultLibraryMonitor.java:49)
   at org.serviio.library.local.indexing.pipe.PipeManager$PipeProcessingConsumer.lambda$run$9(PipeManager.java:174)
   at java.util.Optional.ifPresent(Optional.java:159)
   at org.serviio.library.local.indexing.pipe.PipeManager$PipeProcessingConsumer.run(PipeManager.java:169)
   at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLSyntaxErrorException: Table/View 'MEDIA_ITEM' does not exist.
   at org.apache.derby.impl.jdbc.SQLExceptionFactory.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.TransactionResourceImpl.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement42.<init>(Unknown Source)
   at org.apache.derby.jdbc.Driver42.newEmbedPreparedStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
   at org.serviio.library.dao.MediaItemDAOImpl.getMediaItem(MediaItemDAOImpl.java:81)
   ... 8 more
Caused by: ERROR 42X05: Table/View 'MEDIA_ITEM' does not exist.
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromBaseTable.bindTableDescriptor(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromBaseTable.bindNonVTITables(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromList.bindTables(Unknown Source)
   at org.apache.derby.impl.sql.compile.SelectNode.bindNonVTITables(Unknown Source)
   at org.apache.derby.impl.sql.compile.DMLStatementNode.bindTables(Unknown Source)
   at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Source)
   at org.apache.derby.impl.sql.compile.CursorNode.bindStatement(Unknown Source)
   at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
   at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
   at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown Source)
   ... 14 more
2016-04-06 21:11:01,117 WARN  [MediaFileIndexer] Cannot add file Battle.Creek.S01E05.1080p.rus.LostFilm.TV.mkv because of an unexpected error. Message: Cannot find media item by file path: /volume1/Storage/Video/Battle.Creek/Battle.Creek.S01E05.1080p.rus.LostFilm.TV.mkv 
org.serviio.db.dao.PersistenceException: Cannot find media item by file path: /volume1/Storage/Video/Battle.Creek/Battle.Creek.S01E05.1080p.rus.LostFilm.TV.mkv 
   at org.serviio.library.dao.MediaItemDAOImpl.getMediaItem(MediaItemDAOImpl.java:89)
   at org.serviio.library.dao.MediaItemDAOImpl.isMediaItemPresent(MediaItemDAOImpl.java:61)
   at org.serviio.library.local.service.MediaService.isMediaPresentInLibrary(MediaService.java:43)
   at org.serviio.library.local.indexing.MediaFileIndexer.addNewMediaFile(MediaFileIndexer.java:71)
   at org.serviio.library.local.indexing.DefaultLibraryMonitor.fileAdded(DefaultLibraryMonitor.java:49)
   at org.serviio.library.local.indexing.pipe.PipeManager$PipeProcessingConsumer.lambda$run$9(PipeManager.java:174)
   at java.util.Optional.ifPresent(Optional.java:159)
   at org.serviio.library.local.indexing.pipe.PipeManager$PipeProcessingConsumer.run(PipeManager.java:169)
   at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLSyntaxErrorException: Table/View 'MEDIA_ITEM' does not exist.
   at org.apache.derby.impl.jdbc.SQLExceptionFactory.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.TransactionResourceImpl.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement42.<init>(Unknown Source)
   at org.apache.derby.jdbc.Driver42.newEmbedPreparedStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
   at org.serviio.library.dao.MediaItemDAOImpl.getMediaItem(MediaItemDAOImpl.java:81)
   ... 8 more
Caused by: ERROR 42X05: Table/View 'MEDIA_ITEM' does not exist.
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromBaseTable.bindTableDescriptor(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromBaseTable.bindNonVTITables(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromList.bindTables(Unknown Source)
   at org.apache.derby.impl.sql.compile.SelectNode.bindNonVTITables(Unknown Source)
   at org.apache.derby.impl.sql.compile.DMLStatementNode.bindTables(Unknown Source)
   at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Source)
   at org.apache.derby.impl.sql.compile.CursorNode.bindStatement(Unknown Source)
   at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
   at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
   at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown Source)
   ... 14 more
2016-04-06 21:11:01,148 WARN  [MediaFileIndexer] Cannot add file Battle.Creek.S01E06.1080p.rus.LostFilm.TV.mkv because of an unexpected error. Message: Cannot find media item by file path: /volume1/Storage/Video/Battle.Creek/Battle.Creek.S01E06.1080p.rus.LostFilm.TV.mkv 
org.serviio.db.dao.PersistenceException: Cannot find media item by file path: /volume1/Storage/Video/Battle.Creek/Battle.Creek.S01E06.1080p.rus.LostFilm.TV.mkv 
   at org.serviio.library.dao.MediaItemDAOImpl.getMediaItem(MediaItemDAOImpl.java:89)
   at org.serviio.library.dao.MediaItemDAOImpl.isMediaItemPresent(MediaItemDAOImpl.java:61)
   at org.serviio.library.local.service.MediaService.isMediaPresentInLibrary(MediaService.java:43)
   at org.serviio.library.local.indexing.MediaFileIndexer.addNewMediaFile(MediaFileIndexer.java:71)
   at org.serviio.library.local.indexing.DefaultLibraryMonitor.fileAdded(DefaultLibraryMonitor.java:49)
   at org.serviio.library.local.indexing.pipe.PipeManager$PipeProcessingConsumer.lambda$run$9(PipeManager.java:174)
   at java.util.Optional.ifPresent(Optional.java:159)
   at org.serviio.library.local.indexing.pipe.PipeManager$PipeProcessingConsumer.run(PipeManager.java:169)
   at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLSyntaxErrorException: Table/View 'MEDIA_ITEM' does not exist.
   at org.apache.derby.impl.jdbc.SQLExceptionFactory.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.TransactionResourceImpl.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement42.<init>(Unknown Source)
   at org.apache.derby.jdbc.Driver42.newEmbedPreparedStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
   at org.serviio.library.dao.MediaItemDAOImpl.getMediaItem(MediaItemDAOImpl.java:81)
   ... 8 more
Caused by: ERROR 42X05: Table/View 'MEDIA_ITEM' does not exist.
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromBaseTable.bindTableDescriptor(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromBaseTable.bindNonVTITables(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromList.bindTables(Unknown Source)
   at org.apache.derby.impl.sql.compile.SelectNode.bindNonVTITables(Unknown Source)
   at org.apache.derby.impl.sql.compile.DMLStatementNode.bindTables(Unknown Source)
   at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Source)
   at org.apache.derby.impl.sql.compile.CursorNode.bindStatement(Unknown Source)
   at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
   at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
   at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown Source)
   ... 14 more
2016-04-06 21:11:01,169 WARN  [MediaFileIndexer] Cannot add file Battle.Creek.S01E07.1080p.rus.LostFilm.TV.mkv because of an unexpected error. Message: Cannot find media item by file path: /volume1/Storage/Video/Battle.Creek/Battle.Creek.S01E07.1080p.rus.LostFilm.TV.mkv 
org.serviio.db.dao.PersistenceException: Cannot find media item by file path: /volume1/Storage/Video/Battle.Creek/Battle.Creek.S01E07.1080p.rus.LostFilm.TV.mkv 
   at org.serviio.library.dao.MediaItemDAOImpl.getMediaItem(MediaItemDAOImpl.java:89)
   at org.serviio.library.dao.MediaItemDAOImpl.isMediaItemPresent(MediaItemDAOImpl.java:61)
   at org.serviio.library.local.service.MediaService.isMediaPresentInLibrary(MediaService.java:43)
   at org.serviio.library.local.indexing.MediaFileIndexer.addNewMediaFile(MediaFileIndexer.java:71)
   at org.serviio.library.local.indexing.DefaultLibraryMonitor.fileAdded(DefaultLibraryMonitor.java:49)
   at org.serviio.library.local.indexing.pipe.PipeManager$PipeProcessingConsumer.lambda$run$9(PipeManager.java:174)
   at java.util.Optional.ifPresent(Optional.java:159)
   at org.serviio.library.local.indexing.pipe.PipeManager$PipeProcessingConsumer.run(PipeManager.java:169)
   at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLSyntaxErrorException: Table/View 'MEDIA_ITEM' does not exist.
   at org.apache.derby.impl.jdbc.SQLExceptionFactory.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.TransactionResourceImpl.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement42.<init>(Unknown Source)
   at org.apache.derby.jdbc.Driver42.newEmbedPreparedStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
   at org.serviio.library.dao.MediaItemDAOImpl.getMediaItem(MediaItemDAOImpl.java:81)
   ... 8 more
Caused by: ERROR 42X05: Table/View 'MEDIA_ITEM' does not exist.
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromBaseTable.bindTableDescriptor(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromBaseTable.bindNonVTITables(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromList.bindTables(Unknown Source)
   at org.apache.derby.impl.sql.compile.SelectNode.bindNonVTITables(Unknown Source)
   at org.apache.derby.impl.sql.compile.DMLStatementNode.bindTables(Unknown Source)
   at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Source)
   at org.apache.derby.impl.sql.compile.CursorNode.bindStatement(Unknown Source)
   at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
   at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
   at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown Source)
   ... 14 more
2016-04-06 21:11:01,191 WARN  [MediaFileIndexer] Cannot add file Battle.Creek.S01E09.1080p.rus.LostFilm.TV.mkv because of an unexpected error. Message: Cannot find media item by file path: /volume1/Storage/Video/Battle.Creek/Battle.Creek.S01E09.1080p.rus.LostFilm.TV.mkv 
org.serviio.db.dao.PersistenceException: Cannot find media item by file path: /volume1/Storage/Video/Battle.Creek/Battle.Creek.S01E09.1080p.rus.LostFilm.TV.mkv 
   at org.serviio.library.dao.MediaItemDAOImpl.getMediaItem(MediaItemDAOImpl.java:89)
   at org.serviio.library.dao.MediaItemDAOImpl.isMediaItemPresent(MediaItemDAOImpl.java:61)
   at org.serviio.library.local.service.MediaService.isMediaPresentInLibrary(MediaService.java:43)
   at org.serviio.library.local.indexing.MediaFileIndexer.addNewMediaFile(MediaFileIndexer.java:71)
   at org.serviio.library.local.indexing.DefaultLibraryMonitor.fileAdded(DefaultLibraryMonitor.java:49)
   at org.serviio.library.local.indexing.pipe.PipeManager$PipeProcessingConsumer.lambda$run$9(PipeManager.java:174)
   at java.util.Optional.ifPresent(Optional.java:159)
   at org.serviio.library.local.indexing.pipe.PipeManager$PipeProcessingConsumer.run(PipeManager.java:169)
   at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLSyntaxErrorException: Table/View 'MEDIA_ITEM' does not exist.
   at org.apache.derby.impl.jdbc.SQLExceptionFactory.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.TransactionResourceImpl.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement42.<init>(Unknown Source)
   at org.apache.derby.jdbc.Driver42.newEmbedPreparedStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
   at org.serviio.library.dao.MediaItemDAOImpl.getMediaItem(MediaItemDAOImpl.java:81)
   ... 8 more
Caused by: ERROR 42X05: Table/View 'MEDIA_ITEM' does not exist.
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromBaseTable.bindTableDescriptor(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromBaseTable.bindNonVTITables(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromList.bindTables(Unknown Source)
   at org.apache.derby.impl.sql.compile.SelectNode.bindNonVTITables(Unknown Source)
   at org.apache.derby.impl.sql.compile.DMLStatementNode.bindTables(Unknown Source)
   at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Source)
   at org.apache.derby.impl.sql.compile.CursorNode.bindStatement(Unknown Source)
   at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
   at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
   at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown Source)
   ... 14 more
Exception in thread "Thread-89" java.lang.ArrayIndexOutOfBoundsException: 0
   at sun.nio.cs.UTF_8$Encoder.encode(UTF_8.java:716)
   at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:304)
   at java.lang.StringCoding.encode(StringCoding.java:344)
   at java.lang.String.getBytes(String.java:918)
   at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
   at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:242)
   at java.io.File.isHidden(File.java:911)
   at org.serviio.library.local.indexing.LibraryHelper.fileIsVisible(LibraryHelper.java:60)
   at org.serviio.library.local.indexing.DefaultLibraryMonitor.fileAdded(DefaultLibraryMonitor.java:48)
   at org.serviio.library.local.indexing.pipe.PipeManager$PipeProcessingConsumer.lambda$run$9(PipeManager.java:174)
   at java.util.Optional.ifPresent(Optional.java:159)
   at org.serviio.library.local.indexing.pipe.PipeManager$PipeProcessingConsumer.run(PipeManager.java:169)
   at java.lang.Thread.run(Thread.java:745)
2016-04-06 21:11:02,063 WARN  [LibraryOneTimeScanner] An error occured while scanning for items to be removed or updated, will continue
org.serviio.db.dao.PersistenceException: Cannot read MediaItems for Repository with id = 1
   at org.serviio.library.dao.MediaItemDAOImpl.getMediaItemsInRepository(MediaItemDAOImpl.java:197)
   at org.serviio.library.local.service.MediaService.getMediaItemsInRepository(MediaService.java:83)
   at org.serviio.library.local.indexing.LibraryOneTimeScanner.searchForRemovedAndUpdatedFiles(LibraryOneTimeScanner.java:228)
   at org.serviio.library.local.indexing.LibraryOneTimeScanner.searchForUpdatesAndRemovals(LibraryOneTimeScanner.java:133)
   at org.serviio.library.local.indexing.LibraryOneTimeScanner.scanLibrary(LibraryOneTimeScanner.java:82)
   at org.serviio.library.local.indexing.LocalLibraryManager.performManualScan(LocalLibraryManager.java:186)
   at org.serviio.library.local.indexing.LocalLibraryManager.startLibraryScanning(LocalLibraryManager.java:117)
   at org.serviio.ui.resources.server.RepositoryServerResource.lambda$save$87(RepositoryServerResource.java:119)
   at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLSyntaxErrorException: Table/View 'MEDIA_ITEM' does not exist.
   at org.apache.derby.impl.jdbc.SQLExceptionFactory.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.TransactionResourceImpl.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement42.<init>(Unknown Source)
   at org.apache.derby.jdbc.Driver42.newEmbedPreparedStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
   at org.serviio.library.dao.MediaItemDAOImpl.getMediaItemsInRepository(MediaItemDAOImpl.java:190)
   ... 8 more
Caused by: ERROR 42X05: Table/View 'MEDIA_ITEM' does not exist.
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromBaseTable.bindTableDescriptor(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromBaseTable.bindNonVTITables(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromList.bindTables(Unknown Source)
   at org.apache.derby.impl.sql.compile.SelectNode.bindNonVTITables(Unknown Source)
   at org.apache.derby.impl.sql.compile.DMLStatementNode.bindTables(Unknown Source)
   at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Source)
   at org.apache.derby.impl.sql.compile.CursorNode.bindStatement(Unknown Source)
   at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
   at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
   at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown Source)
   ... 14 more
2016-04-06 21:11:02,077 WARN  [LibraryOneTimeScanner] An error occured while updating metadata, will continue
org.serviio.db.dao.PersistenceException: Cannot read dirty MediaItems for Repository with id = 1
   at org.serviio.library.dao.MediaItemDAOImpl.getDirtyMediaItemsInRepository(MediaItemDAOImpl.java:324)
   at org.serviio.library.local.service.MediaService.getDirtyMediaItemsInRepository(MediaService.java:91)
   at org.serviio.library.local.indexing.LibraryOneTimeScanner.updateMetadata(LibraryOneTimeScanner.java:272)
   at org.serviio.library.local.indexing.LibraryOneTimeScanner.searchForUpdatesAndRemovals(LibraryOneTimeScanner.java:146)
   at org.serviio.library.local.indexing.LibraryOneTimeScanner.scanLibrary(LibraryOneTimeScanner.java:82)
   at org.serviio.library.local.indexing.LocalLibraryManager.performManualScan(LocalLibraryManager.java:186)
   at org.serviio.library.local.indexing.LocalLibraryManager.startLibraryScanning(LocalLibraryManager.java:117)
   at org.serviio.ui.resources.server.RepositoryServerResource.lambda$save$87(RepositoryServerResource.java:119)
   at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLSyntaxErrorException: Table/View 'MEDIA_ITEM' does not exist.
   at org.apache.derby.impl.jdbc.SQLExceptionFactory.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.TransactionResourceImpl.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement42.<init>(Unknown Source)
   at org.apache.derby.jdbc.Driver42.newEmbedPreparedStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
   at org.serviio.library.dao.MediaItemDAOImpl.getDirtyMediaItemsInRepository(MediaItemDAOImpl.java:317)
   ... 8 more
Caused by: ERROR 42X05: Table/View 'MEDIA_ITEM' does not exist.
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromBaseTable.bindTableDescriptor(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromBaseTable.bindNonVTITables(Unknown Source)
   at org.apache.derby.impl.sql.compile.FromList.bindTables(Unknown Source)
   at org.apache.derby.impl.sql.compile.SelectNode.bindNonVTITables(Unknown Source)
   at org.apache.derby.impl.sql.compile.DMLStatementNode.bindTables(Unknown Source)
   at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Source)
   at org.apache.derby.impl.sql.compile.CursorNode.bindStatement(Unknown Source)
   at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
   at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
   at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown Source)
   ... 14 more
2016-04-06 21:11:03,708 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:11:08,704 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:11:13,704 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:11:18,705 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:11:23,702 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:11:48,707 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:11:53,706 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:11:53,852 INFO  [WebServer] WebServer shutting down
2016-04-06 21:11:53,853 INFO  [EventSubscriptionExpirationChecker] Leaving EventSubscriptionExpirationChecker, removing all event subscriptions
2016-04-06 21:11:53,853 INFO  [DiscoveryAdvertisementNotifier] Leaving DiscoveryAdvertisementNotifier
2016-04-06 21:11:53,853 INFO  [EventDispatcher] Leaving EventDispatcher
2016-04-06 21:11:53,854 INFO  [DiscoverySSDPMessageListener] Leaving DiscoverySSDPMessageListener
2016-04-06 21:11:53,878 INFO  [WebServer] WebServer starting on port 8895
2016-04-06 21:11:53,879 INFO  [Device] Updated bound IP address of Device with UUID: 32f0d5f5-050c-3e1b-a6ce-bd888c0aeeee, bound address: 192.168.50.6
2016-04-06 21:11:53,899 INFO  [DiscoverySSDPMessageListener] Starting DiscoverySSDPMessageListener using interface bond0 (bond0) and address 192.168.50.6, timeout = 0
2016-04-06 21:11:53,932 INFO  [RendererSearchSender] Searching for Renderer devices
2016-04-06 21:11:53,928 INFO  [EventDispatcher] Starting EventDispatcher
2016-04-06 21:11:53,932 INFO  [DiscoveryAdvertisementNotifier] Starting DiscoveryAdvertisementNotifier
2016-04-06 21:11:53,935 INFO  [EventSubscriptionExpirationChecker] Starting EventSubscriptionExpirationChecker
2016-04-06 21:11:55,208 INFO  [RendererExpirationChecker] Leaving RendererExpirationChecker
2016-04-06 21:11:58,716 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:12:00,790 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:12:06,430 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:12:11,430 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:12:16,430 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:12:21,434 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:12:26,430 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:12:31,432 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:12:36,433 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:12:41,434 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:12:46,433 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:12:51,432 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type
2016-04-06 21:13:25,247 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot get counts of media items by type