Page 1 of 1

Excpetion with PMSEncoder

Posted: Mon Dec 08, 2014 2:37 am
by gabriels
I added the latest PMSEcoder plugin to the plugins folder and I am getting this error:
Full debug log attached

INFO 2014-12-07 16:34:39.746 [main] PMSEncoder: loading built-in log4j config file: jar:file:/C:/Program%20Files%20(x86)/Universal%20Media%20Server/plugins/pmsencoder-2.0.0.jar!/log4j_default.xml
INFO 2014-12-07 16:34:39.938 [main] Exception in thread "main" java.lang.NoClassDefFoundError: java/util/HashMap$Entry
INFO 2014-12-07 16:34:39.940 [main] at java.lang.Class.getDeclaredMethods0(Native Method)
INFO 2014-12-07 16:34:39.941 [main] at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
INFO 2014-12-07 16:34:39.941 [main] at java.lang.Class.getDeclaredMethods(Unknown Source)
INFO 2014-12-07 16:34:39.942 [main] at org.codehaus.groovy.reflection.CachedClass$3$1.run(CachedClass.java:84)
INFO 2014-12-07 16:34:39.942 [main] at java.security.AccessController.doPrivileged(Native Method)
INFO 2014-12-07 16:34:39.943 [main] at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:81)
INFO 2014-12-07 16:34:39.943 [main] at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:79)
INFO 2014-12-07 16:34:39.943 [main] at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
INFO 2014-12-07 16:34:39.943 [main] at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
INFO 2014-12-07 16:34:39.944 [main] at org.codehaus.groovy.reflection.CachedClass.getMethods(CachedClass.java:250)
INFO 2014-12-07 16:34:39.944 [main] at groovy.lang.MetaClassImpl.populateMethods(MetaClassImpl.java:343)
INFO 2014-12-07 16:34:39.945 [main] at groovy.lang.MetaClassImpl.fillMethodIndex(MetaClassImpl.java:293)
INFO 2014-12-07 16:34:39.945 [main] at groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:3048)
INFO 2014-12-07 16:34:39.945 [main] at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:176)
INFO 2014-12-07 16:34:39.946 [main] at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:192)
INFO 2014-12-07 16:34:39.946 [main] at com.chocolatey.pmsencoder.Stash.$getStaticMetaClass(Stash.groovy)
INFO 2014-12-07 16:34:39.946 [main] at com.chocolatey.pmsencoder.Stash.<init>(Stash.groovy:15)
INFO 2014-12-07 16:34:39.947 [main] at com.chocolatey.pmsencoder.Matcher.<init>(Matcher.groovy:44)
INFO 2014-12-07 16:34:39.947 [main] at com.chocolatey.pmsencoder.Plugin.createMatcher(Plugin.groovy:254)
INFO 2014-12-07 16:34:39.948 [main] at com.chocolatey.pmsencoder.Plugin.<init>(Plugin.groovy:182)
INFO 2014-12-07 16:34:39.948 [main] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
INFO 2014-12-07 16:34:39.948 [main] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
INFO 2014-12-07 16:34:39.949 [main] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
INFO 2014-12-07 16:34:39.949 [main] at java.lang.reflect.Constructor.newInstance(Unknown Source)
INFO 2014-12-07 16:34:39.949 [main] at java.lang.Class.newInstance(Unknown Source)
INFO 2014-12-07 16:34:39.950 [main] at net.pms.external.ExternalFactory.instantiateEarlyListeners(ExternalFactory.java:417)
INFO 2014-12-07 16:34:39.950 [main] at net.pms.external.ExternalFactory.lookup(ExternalFactory.java:397)
INFO 2014-12-07 16:34:39.950 [main] at net.pms.PMS.init(PMS.java:638)
INFO 2014-12-07 16:34:39.951 [main] at net.pms.PMS.createInstance(PMS.java:1035)
INFO 2014-12-07 16:34:39.951 [main] at net.pms.PMS.main(PMS.java:1135)
INFO 2014-12-07 16:34:39.952 [main] Caused by: java.lang.ClassNotFoundException: java.util.HashMap$Entry
INFO 2014-12-07 16:34:39.952 [main] at java.net.URLClassLoader$1.run(Unknown Source)
INFO 2014-12-07 16:34:39.952 [main] at java.net.URLClassLoader$1.run(Unknown Source)
INFO 2014-12-07 16:34:39.953 [main] at java.security.AccessController.doPrivileged(Native Method)
INFO 2014-12-07 16:34:39.953 [main] at java.net.URLClassLoader.findClass(Unknown Source)
INFO 2014-12-07 16:34:39.953 [main] at java.lang.ClassLoader.loadClass(Unknown Source)
INFO 2014-12-07 16:34:39.954 [main] at java.lang.ClassLoader.loadClass(Unknown Source)

Re: Excpetion with PMSEncoder

Posted: Mon Dec 08, 2014 7:26 pm
by SharkHunter
Most likely you have some permission error that don't let you write the log file. Change permissions.

Re: Excpetion with PMSEncoder

Posted: Tue Dec 09, 2014 6:17 am
by gabriels
SharkHunter wrote:Most likely you have some permission error that don't let you write the log file. Change permissions.
It has nothing to do with permissions.
I'm running as Administrator and the file pmsencoder.log is created in C:\ProgramData\UMS
I've deleted it and it has been created again when I run UMS.
Same plugin with same permission runs perfect in PS3 Media Server.

Re: Excpetion with PMSEncoder

Posted: Tue Dec 09, 2014 9:24 pm
by SharkHunter
The fault is described here http://groovy.329449.n5.nabble.com/NoCl ... 20093.html and in short it's the new java has done some change to HashMap which groovy can't cope with. So your options are to either use java7 or try and fix PMSEncoder to work under java8.

Re: Excpetion with PMSEncoder

Posted: Wed Dec 10, 2014 2:09 am
by infidel
PMSEncoder is incompatible with current UMS even if you get past this bug, the codebase has diverged and it would need patching.

Re: Excpetion with PMSEncoder

Posted: Fri Jan 09, 2015 7:19 pm
by gabriels
debug.log
(15.32 KiB) Downloaded 574 times
SharkHunter wrote:The fault is described here http://groovy.329449.n5.nabble.com/NoCl ... 20093.html and in short it's the new java has done some change to HashMap which groovy can't cope with. So your options are to either use java7 or try and fix PMSEncoder to work under java8.
I've removed Java 8 and installed Java 7.
Now I get a different exception with PMSEncoder.
debug.log
(15.32 KiB) Downloaded 574 times

Re: Excpetion with PMSEncoder

Posted: Fri Jan 09, 2015 11:40 pm
by SharkHunter
gabriels wrote:
debug.log
SharkHunter wrote:The fault is described here http://groovy.329449.n5.nabble.com/NoCl ... 20093.html and in short it's the new java has done some change to HashMap which groovy can't cope with. So your options are to either use java7 or try and fix PMSEncoder to work under java8.
I've removed Java 8 and installed Java 7.
Now I get a different exception with PMSEncoder.
debug.log
Read infidels last post again. UMS has diverged a bit from PMS and PMSEncoder will most likely not work with UMS.

Re: Excpetion with PMSEncoder

Posted: Sat Jan 10, 2015 12:03 am
by gabriels
SharkHunter wrote:
gabriels wrote:
debug.log
SharkHunter wrote:The fault is described here http://groovy.329449.n5.nabble.com/NoCl ... 20093.html and in short it's the new java has done some change to HashMap which groovy can't cope with. So your options are to either use java7 or try and fix PMSEncoder to work under java8.
I've removed Java 8 and installed Java 7.
Now I get a different exception with PMSEncoder.
debug.log
Read infidels last post again. UMS has diverged a bit from PMS and PMSEncoder will most likely not work with UMS.
Maybe you should remove it from your plugins link in the help tab?
Me I am back to PMS since I only need it for PMSEncoder.

Re: Excpetion with PMSEncoder

Posted: Sat Jan 10, 2015 3:32 am
by SharkHunter
Exactly which function of PMSencoder is it you use. We/I have move most of the functionallity into UMS and other plugins.

Re: Excpetion with PMSEncoder

Posted: Wed Mar 11, 2015 6:55 am
by gabriels
SharkHunter wrote:Exactly which function of PMSencoder is it you use. We/I have move most of the functionallity into UMS and other plugins.
I am streaming from SopCast to my PS3 using PMSEncoder.
If you have a solution for this I'd be happy.