Bug 198021

Summary: [patch] net/serviio: Export a JAVA_VERSION to handle when multiple Java versions are installed
Product: Ports & Packages Reporter: Jason Unovitch <junovitch>
Component: Individual Port(s)Assignee: Alexander Leidinger <netchild>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (netchild)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Description Flags
Patch to export JAVA_VERSION in serviiod script and bump PORTREVISION
Poudriere bulk -t log for serviio-1.5_1 patch none

Description Jason Unovitch freebsd_committer 2015-02-24 23:47:46 UTC
Created attachment 153490 [details]
Patch to export JAVA_VERSION in serviiod script and bump PORTREVISION

I missed this case when updating Serviio.  When multiple Java versions are installed, the javavm program will use the current default of OpenJDK7 which is unsupported with Serviio.

FreeBSD Forum thread issue:

Log Message Pre-patch:
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/serviio/MediaServer : Unsupported major.minor version 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
Comment 1 Bugzilla Automation freebsd_committer 2015-02-24 23:47:46 UTC
Auto-assigned to maintainer netchild@FreeBSD.org
Comment 2 Jason Unovitch freebsd_committer 2015-02-24 23:50:34 UTC
Created attachment 153491 [details]
Poudriere bulk -t log for serviio-1.5_1 patch
Comment 3 commit-hook freebsd_committer 2015-03-13 10:25:01 UTC
A commit references this bug:

Author: netchild
Date: Fri Mar 13 10:24:45 UTC 2015
New revision: 381171
URL: https://svnweb.freebsd.org/changeset/ports/381171

  - Update to 1.5.1 (automatic library updates can be enabled again)
  - Fix problems when more than one JVM is installed [1]

  PR:		198021 [1]
  Noticed by:	jason.unovitch@gmail.com [1]

Comment 4 Alexander Leidinger freebsd_committer 2015-03-13 10:26:01 UTC
JVM fix included in the update to 1.5.1.