iTunes Library Scan Error

For help and support with issues specific to Mac OS X
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

iTunes Library Scan Error

Postby owine » Fri Oct 28, 2011 8:53 pm

I am getting errors with the iTunes library scan. Didn't use this feature before iTunes 10.5 came out so I do not know if it is related to the new release but here is the data from trace:

Code: Select all
[New I/O server worker #1-2] ERROR 14:48:00.416 Something went wrong with the iTunes Library scan:
java.lang.NullPointerException: null
   at net.pms.dlna.RootFolder.getiTunesFolder(RootFolder.java:628) [pms.jar:na]
   at net.pms.dlna.RootFolder.discoverChildren(RootFolder.java:129) [pms.jar:na]
   at net.pms.dlna.DLNAResource.discoverWithRenderer(DLNAResource.java:592) [pms.jar:na]
   at net.pms.dlna.DLNAResource.getDLNAResources(DLNAResource.java:534) [pms.jar:na]
   at net.pms.network.RequestV2.answer(RequestV2.java:558) [pms.jar:na]
   at net.pms.network.RequestHandlerV2.writeResponse(RequestHandlerV2.java:255) [pms.jar:na]
   at net.pms.network.RequestHandlerV2.messageReceived(RequestHandlerV2.java:225) [pms.jar:na]
   at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:545) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:754) [pms.jar:na]
   at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:148) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:545) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:754) [pms.jar:na]
   at org.jboss.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:116) [pms.jar:na]
   at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:545) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:754) [pms.jar:na]
   at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:302) [pms.jar:na]
   at org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfoldAndfireMessageReceived(ReplayingDecoder.java:522) [pms.jar:na]
   at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:506) [pms.jar:na]
   at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:443) [pms.jar:na]
   at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:545) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:540) [pms.jar:na]
   at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274) [pms.jar:na]
   at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261) [pms.jar:na]
   at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:349) [pms.jar:na]
   at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:280) [pms.jar:na]
   at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:200) [pms.jar:na]
   at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [pms.jar:na]
   at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44) [pms.jar:na]
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_26]
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_26]
   at java.lang.Thread.run(Thread.java:680) [na:1.6.0_26]


Something with my configuration or something else? This is on 1.50.0 beta, but it does not work with 1.40.0 either. Same error.
owine
 
Posts: 3
Joined: Fri Oct 28, 2011 8:49 pm

Re: iTunes Library Scan Error

Postby Raptor399 » Sat Oct 29, 2011 9:44 am

That code hasn't changed in a long while. The NullPointerException indicates a problem with one of the files that was found, but I don't see any hints on what was wrong with it.
Fix committed in r961, thanks for the bug report!
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: iTunes Library Scan Error

Postby owine » Thu Dec 15, 2011 11:51 pm

Seems an issue with the iTunes library has cropped up again. Seems to be similar to the previous one. Here's the trace.

Code: Select all
[New I/O server worker #1-2] ERROR 16:49:19.387 Something went wrong with the iTunes Library scan:
java.lang.NullPointerException: null
   at net.pms.dlna.RootFolder.getiTunesFolder(RootFolder.java:632) [pms.jar:na]
   at net.pms.dlna.RootFolder.discoverChildren(RootFolder.java:129) [pms.jar:na]
   at net.pms.dlna.DLNAResource.discoverWithRenderer(DLNAResource.java:725) [pms.jar:na]
   at net.pms.dlna.DLNAResource.getDLNAResources(DLNAResource.java:668) [pms.jar:na]
   at net.pms.network.RequestV2.answer(RequestV2.java:568) [pms.jar:na]
   at net.pms.network.RequestHandlerV2.writeResponse(RequestHandlerV2.java:290) [pms.jar:na]
   at net.pms.network.RequestHandlerV2.messageReceived(RequestHandlerV2.java:253) [pms.jar:na]
   at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:545) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:754) [pms.jar:na]
   at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:148) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:545) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:754) [pms.jar:na]
   at org.jboss.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:116) [pms.jar:na]
   at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:545) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:754) [pms.jar:na]
   at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:302) [pms.jar:na]
   at org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfoldAndfireMessageReceived(ReplayingDecoder.java:522) [pms.jar:na]
   at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:506) [pms.jar:na]
   at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:443) [pms.jar:na]
   at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:545) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:540) [pms.jar:na]
   at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274) [pms.jar:na]
   at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261) [pms.jar:na]
   at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:349) [pms.jar:na]
   at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:280) [pms.jar:na]
   at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:200) [pms.jar:na]
   at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [pms.jar:na]
   at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44) [pms.jar:na]
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_29]
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_29]
   at java.lang.Thread.run(Thread.java:680) [na:1.6.0_29]
owine
 
Posts: 3
Joined: Fri Oct 28, 2011 8:49 pm

Re: iTunes Library Scan Error

Postby Raptor399 » Fri Dec 16, 2011 8:20 am

You're right, it is similar.
It has already been fixed in commit 6ce85d5435.

Thanks for reporting!
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: iTunes Library Scan Error

Postby astopy » Tue Jan 31, 2012 7:18 pm

Did this bug fix get included in 1.50.1? Because I'm getting the same error:

Code: Select all
[New I/O server worker #1-4] ERROR 18:05:52.880 Something went wrong with the iTunes Library scan:
java.lang.NullPointerException: null
   at net.pms.dlna.RootFolder.getiTunesFolder(RootFolder.java:632) [pms.jar:na]
   at net.pms.dlna.RootFolder.discoverChildren(RootFolder.java:129) [pms.jar:na]
   at net.pms.configuration.RendererConfiguration.getRootFolder(RendererConfiguration.java:92) [pms.jar:na]
   at net.pms.PMS.getRootFolder(PMS.java:160) [pms.jar:na]
   at net.pms.network.RequestV2.answer(RequestV2.java:568) [pms.jar:na]
   at net.pms.network.RequestHandlerV2.writeResponse(RequestHandlerV2.java:290) [pms.jar:na]
   at net.pms.network.RequestHandlerV2.messageReceived(RequestHandlerV2.java:253) [pms.jar:na]
   at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:545) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:754) [pms.jar:na]
   at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:148) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:545) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:754) [pms.jar:na]
   at org.jboss.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:116) [pms.jar:na]
   at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:545) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:754) [pms.jar:na]
   at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:302) [pms.jar:na]
   at org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfoldAndfireMessageReceived(ReplayingDecoder.java:522) [pms.jar:na]
   at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:506) [pms.jar:na]
   at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:443) [pms.jar:na]
   at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:545) [pms.jar:na]
   at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:540) [pms.jar:na]
   at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274) [pms.jar:na]
   at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261) [pms.jar:na]
   at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:349) [pms.jar:na]
   at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:280) [pms.jar:na]
   at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:200) [pms.jar:na]
   at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [pms.jar:na]
   at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44) [pms.jar:na]
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_29]
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_29]
   at java.lang.Thread.run(Thread.java:680) [na:1.6.0_29]
astopy
 
Posts: 3
Joined: Tue Jan 31, 2012 7:15 pm

Re: iTunes Library Scan Error

Postby Raptor399 » Tue Jan 31, 2012 7:22 pm

Nope, that commit isn't in PMS 1.50.1.
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: iTunes Library Scan Error

Postby astopy » Tue Jan 31, 2012 7:30 pm

Thanks. Any idea when it's likely to make it into a release?
astopy
 
Posts: 3
Joined: Tue Jan 31, 2012 7:15 pm

Re: iTunes Library Scan Error

Postby Raptor399 » Wed Feb 01, 2012 8:38 am

astopy wrote:Thanks. Any idea when it's likely to make it into a release?

It will be in the next release.
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: iTunes Library Scan Error

Postby astopy » Wed Feb 01, 2012 7:39 pm

Excellent, thanks.
astopy
 
Posts: 3
Joined: Tue Jan 31, 2012 7:15 pm

Re: iTunes Library Scan Error

Postby styro » Sun Feb 12, 2012 5:29 pm

Applied fix to RootFolder.java and it works perfectly. Thanx much!
styro
 
Posts: 20
Joined: Wed Aug 03, 2011 4:08 pm

Next

Return to Mac OS X Support

Who is online

Users browsing this forum: Google [Bot] and 5 guests