archienz / ps3mediaserver

Automatically exported from code.google.com/p/ps3mediaserver
0 stars 0 forks source link

[Startup] Error on startup under linux #140

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

./PMS.sh

What is the expected output? What do you see instead?

[main] TRACE 14:51:23.782 Class not found:
net.pms.newgui.update.AutoUpdateDialog
Header Chunk. Image width:256 height:256 depth:8 color type:6 compression
type:0 filter type:0 interlace:0
java.lang.NullPointerException
   at
net.pms.util.KeyedComboBoxModel.fireListDataEvent(KeyedComboBoxModel.java:208)
   at
net.pms.util.KeyedComboBoxModel.setSelectedKey(KeyedComboBoxModel.java:249)
   at net.pms.newgui.NetworkTab.build(NetworkTab.java:179)
   at net.pms.newgui.LooksFrame.buildMain(LooksFrame.java:290)
   at net.pms.newgui.LooksFrame.buildContent(LooksFrame.java:270)
   at net.pms.newgui.LooksFrame.<init>(LooksFrame.java:165)
   at net.pms.PMS.init(PMS.java:269)
   at net.pms.PMS.get(PMS.java:827)
   at net.pms.PMS.main(PMS.java:877)

What version of the product are you using? On what operating system?

pms-linux-1.02.1

[nathan@ebisu ~/tmp/pms-linux-1.02.1] uname -a
Linux ebisu 2.6.27.7-9-default #1 SMP 2008-12-04 18:10:04 +0100 x86_64
x86_64 x86_64 GNU/Linux

Please provide any additional information below and PLEASE JOIN debug.log
file !!

Original issue reported on code.google.com by nathan.i...@gmail.com on 10 Jan 2009 at 7:53

Attachments:

GoogleCodeExporter commented 9 years ago
Also:
[nathan@ebisu ~/tmp/pms-linux-1.02.1] which java
/usr/bin/java
[nathan@ebisu ~/tmp/pms-linux-1.02.1] echo $JAVA_HOME
/usr/lib64/jvm/java
[nathan@ebisu ~/tmp/pms-linux-1.02.1] java -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.0-b16, mixed mode)

Original comment by nathan.i...@gmail.com on 10 Jan 2009 at 7:55

GoogleCodeExporter commented 9 years ago
Issue 171 has been merged into this issue.

Original comment by ps3mediaserver@gmail.com on 14 Jan 2009 at 11:14

GoogleCodeExporter commented 9 years ago
I removed all the gcj and gij stuff I had installed, and now it will run fine. I
don't know why that would cause it to break, but there you go. 

[nathan@ebisu ~] rpm -qa | grep java
java-1_6_0-sun-1.6.0.u11-1.1
java-1_6_0-sun-alsa-1.6.0.u11-1.1
theora-java-20071009-0.pm.1
ffmpeg-java-20071012-0.pm.1
java-1_6_0-sun-devel-1.6.0.u11-1.1

If you have anything in there other than the Sun JVM, try removing the package 
and
see if that works.

Original comment by nathan.i...@gmail.com on 14 Jan 2009 at 11:34

GoogleCodeExporter commented 9 years ago
I just checked and that's the "getDefaultLang" method from Java who returns 
null in 
this case... It should never occurs (should return "en" in most cases), so one 
can 
say something really weird happens here
anyway, I've changed the line to avoid this error for next version...

Original comment by ps3mediaserver@gmail.com on 14 Jan 2009 at 11:40

GoogleCodeExporter commented 9 years ago

Original comment by ps3mediaserver@gmail.com on 17 Jan 2009 at 1:50

GoogleCodeExporter commented 9 years ago
Issue 223 has been merged into this issue.

Original comment by ps3mediaserver@gmail.com on 24 Jan 2009 at 2:30

GoogleCodeExporter commented 9 years ago
Just tried 308 build - still has the same issue. ETA for a fix? 

Original comment by aka...@gmail.com on 7 Mar 2009 at 8:05

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
OK, followed nathan.interlude advice and removed the gcj compat packages and 
it's all go.

But this bug is NOT fixed in the current build

Original comment by aka...@gmail.com on 7 Mar 2009 at 8:52

GoogleCodeExporter commented 9 years ago

Original comment by ps3mediaserver@gmail.com on 7 Mar 2009 at 9:31

GoogleCodeExporter commented 9 years ago
also, once gcj stuff was removed I had to do this:
# Setup the JVM
if [ "x$JAVA" = "x" ]; then
        if [ "x$JAVA_HOME" != "x" ]; then
#               JAVA="$JAVA_HOME/bin/java"
#       else
                JAVA="java"
        fi
fi

Original comment by aka...@gmail.com on 7 Mar 2009 at 9:58

GoogleCodeExporter commented 9 years ago
I also followed the hint from Akawoz & Nathan.interlude and did the following on
debian: apt-get remove java-gcj-compat
Now it works

Original comment by gaston.b...@gmail.com on 24 Aug 2009 at 5:24

GoogleCodeExporter commented 9 years ago
Closing as there is a documented fix for this issue and it's a GCJ 
incompatibility rather than something that can be fixed in PMS.

Original comment by chocol...@cpan.org on 30 Jan 2011 at 8:16