Error initializing PMS

For help and support with PS3 Media Server in general
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Error initializing PMS

Postby ilsem » Mon Dec 03, 2012 7:39 pm

Each time I start PS3 Media Server I get a notification: Configuration error: java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Pointer

Because of this I am not able to stream movies to my PS. PS3 Media Server doesn't show on PS.

How can I solve this?

Thx
ilsem
 
Posts: 1
Joined: Mon Dec 03, 2012 7:24 pm

Re: Error initializing PMS

Postby meskibob » Mon Dec 03, 2012 7:44 pm

I provide NO application support via PM or email, so please post your question to the forum per the Forum Rules.
meskibob
Moderator
 
Posts: 4763
Joined: Mon Jan 19, 2009 4:11 pm

Re: Error initializing PMS

Postby paulbalegend » Fri Mar 08, 2013 8:15 am

I am having this same issue, and cannot figure out how to fix it.

The only way I can run PMS successfully is immediately after reinstalling PMS. I should also note that tho this error comes up, PMS GUI does still load, but I can't access the server from PS3.

I've tried all the java/pms uninstall/reinstalls, and have successfully set JAVA_HOME and PATH variables.

Relevant line in the TRACE:
Code: Select all
INFO  2013-03-08 02:12:50.081 [main] Configuration error: java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Pointer


How in the world can I fix this?? :oops:
paulbalegend
 
Posts: 4
Joined: Sun Oct 03, 2010 3:05 pm

Re: Error initializing PMS

Postby Raptor399 » Sat Mar 09, 2013 10:56 pm

A post elsewhere mentions problems went away after switching from OpenJDK to Oracle Java.
Which version of Java are you using?
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: Error initializing PMS

Postby myteam » Mon May 06, 2013 2:13 am

I, too, had the same issue as the 2 users above: trace error, GUI loads, but renderers can't see PMS. I am using Oracle JRE 7u21 and PMS 1.81.0.

Initially I reinstalled both the JRE and PMS, but same error showed in traces. I tried deleting PMS.conf in ProgramData to see if starting with defaults would help; still got the error.

The was also an error regarding MediaInfo (access denied to AppData\Local\TEMP\jnaXXXXXXXXXXXXX.dll) but I forgot to document it exactly.

I uninstalled PMS, REBOOTED and reinstalled PMS. Now all of my renderers can see PMS. The only thing done differently was the reboot.

Hope this helps


EDIT: Scratch that. I'm getting the errors again.
Code: Select all
INFO  2013-05-10 22:02:38.666 [main] Loading MediaInfo library
INFO  2013-05-10 22:02:38.843 [main] Error loading MediaInfo library: C:\Users\Parents\AppData\Local\Temp\jna8595650858171214691.dll: Access is denied
INFO  2013-05-10 22:02:38.845 [main] The server will now use the less accurate ffmpeg parsing method

INFO  2013-05-10 22:02:40.556 [main] Configuration error: java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Pointer
DEBUG 2013-05-10 22:03:41.600 [New I/O server worker #2-1] Caught exception
java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
   at net.pms.io.WinUtils$Kernel32.<clinit>(WinUtils.java:43) ~[pms.jar:1.81.0]
   at net.pms.io.WinUtils.disableGoToSleep(WinUtils.java:82) ~[pms.jar:1.81.0]
   at net.pms.network.RequestHandlerV2.messageReceived(RequestHandlerV2.java:94) ~[pms.jar:1.81.0]
   at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:149) ~[pms.jar:1.81.0]
   at org.jboss.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:116) ~[pms.jar:1.81.0]
   at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:302) ~[pms.jar:1.81.0]
   at org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfoldAndFireMessageReceived(ReplayingDecoder.java:527) ~[pms.jar:1.81.0]
   at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:506) ~[pms.jar:1.81.0]
   at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:443) ~[pms.jar:1.81.0]
   at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274) ~[pms.jar:1.81.0]
   at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261) ~[pms.jar:1.81.0]
   at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:351) ~[pms.jar:1.81.0]
   at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:282) ~[pms.jar:1.81.0]
   at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:202) ~[pms.jar:1.81.0]
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_21]
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_21]
   at java.lang.Thread.run(Unknown Source) [na:1.7.0_21]

DEBUG 2013-05-10 22:03:41.870 [New I/O server worker #2-2] Caught exception
java.lang.NoClassDefFoundError: Could not initialize class net.pms.io.WinUtils$Kernel32
   at net.pms.io.WinUtils.disableGoToSleep(WinUtils.java:82) ~[pms.jar:1.81.0]
   at net.pms.network.RequestHandlerV2.messageReceived(RequestHandlerV2.java:94) ~[pms.jar:1.81.0]
   at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:149) ~[pms.jar:1.81.0]
   at org.jboss.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:116) ~[pms.jar:1.81.0]
   at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:302) ~[pms.jar:1.81.0]
   at org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfoldAndFireMessageReceived(ReplayingDecoder.java:527) ~[pms.jar:1.81.0]
   at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:506) ~[pms.jar:1.81.0]
   at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:443) ~[pms.jar:1.81.0]
   at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274) ~[pms.jar:1.81.0]
   at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261) ~[pms.jar:1.81.0]
   at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:351) ~[pms.jar:1.81.0]
   at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:282) ~[pms.jar:1.81.0]
   at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:202) ~[pms.jar:1.81.0]
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_21]
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_21]
   at java.lang.Thread.run(Unknown Source) [na:1.7.0_21]

myteam
 
Posts: 5
Joined: Mon May 06, 2013 1:39 am

Re: Error initializing PMS

Postby myteam » Sat May 11, 2013 3:43 am

Edit my previous post to recant my solution and include debug lines.
myteam
 
Posts: 5
Joined: Mon May 06, 2013 1:39 am

Re: Error initializing PMS

Postby myteam » Mon May 13, 2013 12:20 am

The only way I was able to solve this is by running PMS as Administrator (I just edited the shortcut properties and ticked the "Run as administrator" box). Not a great fix, but the server is up and running again and the family is happy. :)

I hope this gets addressed so that it can be run with standard permissions again.
myteam
 
Posts: 5
Joined: Mon May 06, 2013 1:39 am

Re: Error initializing PMS

Postby technomage » Tue May 14, 2013 2:05 am

Make sure java.io.tmpdir (in the post above, "C:\Users\Parents\AppData\Local\Temp\") exists and is writable by the current user.
technomage
 
Posts: 2
Joined: Mon May 13, 2013 10:35 pm

Re: Error initializing PMS

Postby myteam » Thu Jun 06, 2013 8:11 pm

Apparently something changed/corrupted my security/permissions settings. I created a new user profile and the permissions issue was resolved.

It wasn't a PMS issue after all. My bad. Sorry.
myteam
 
Posts: 5
Joined: Mon May 06, 2013 1:39 am


Return to General Help and Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 11 guests