Page 1 of 1

Madsonic doens't start anymore after upgrading on OSX

Posted: 15 Dec 2014, 18:06
by skopo
For some reason Madsonic doens't start anymore after upgrading 5.2 Beta2.

How to troubleshoot?

Re: Madsonic doens't start anymore after upgrading

Posted: 15 Dec 2014, 18:20
by Madsonic
Hi there,

Please provide more Infos:
  • used operating system
  • used CPU architecture
  • used server memory
  • used Java version
  • Madsonic Build before
  • Madsonic Build upgrade to
  • Error messages
  • Log entries

it is very difficult to make diagnoses without any clues. ;)

Support guide: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

Best regards

Re: Madsonic doens't start anymore after upgrading

Posted: 15 Dec 2014, 18:47
by skopo
  • used operating system: OSX 10.10.1
  • used CPU architecture: i5 sandybridge x64
  • used server memory: old one 64.4 MB / 81.1 MB
  • used Java version: Java 7. update 71
  • Madsonic Build before: 5.0.3830
  • Madsonic Build upgrade to: 5.2 Beta2
  • Error messages: N/A just doens't start. no process
  • Log entries: How to find on osx?

Re: Madsonic doens't start anymore after upgrading

Posted: 15 Dec 2014, 18:58
by Madsonic
skopo wrote:
  • used operating system: OSX 10.10.1
  • used CPU architecture: i5 sandybridge x64
  • used server memory: old one 64.4 MB / 81.1 MB
  • used Java version: Java 7. update 71
  • Madsonic Build before: 5.0.3830
  • Madsonic Build upgrade to: 5.2 Beta2
  • Error messages: N/A just doens't start. no process
  • Log entries: How to find on osx?
I wish also such a Mac for testing, but need to test it all even virtually. :(

Maybe the new Madsonic starter script doesn't work right on Yosemite.

Infos about the OSX installer can found here: http://beta.madsonic.org/installation.jsp#mac

best regards

Re: Madsonic doens't start anymore after upgrading

Posted: 15 Dec 2014, 19:24
by skopo
Maybe the new Madsonic starter script doesn't work right on Yosemite.
I think that might cause the problem.

But problem remains with my older mac on work that runs 10.9.4. (test bench for everything. Should be re-installed from very beginning)
I have tried to get standalone running but problem remains the same (even with older builds) it just won't start.

Re: Madsonic doens't start anymore after upgrading

Posted: 15 Dec 2014, 19:49
by Madsonic
skopo wrote:
Maybe the new Madsonic starter script doesn't work right on Yosemite.
I think that might cause the problem.

But problem remains with my older mac on work that runs 10.9.4. (test bench for everything. Should be re-installed from very beginning)
I have tried to get standalone running but problem remains the same (even with older builds) it just won't start.
Did you use the new OSX installer?

Please try the following:

open Terminal.app

Code: Select all

cd /Applications/Madsonic.app/Contents/Resources/Java/
java -cp madsonic-booter.jar org.madsonic.booter.Main -mac
you should see something like this:

Code: Select all

Dez 15, 2014 7:47:04 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@67abaab: display name [org.springframework.context.support.ClassPathXmlApplicationContext@67abaab]; startup date [Mon Dec 15 19:47:04 CET 2014]; root of context hierarchy
Dez 15, 2014 7:47:04 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [applicationContext-mac.xml]
Dez 15, 2014 7:47:04 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@67abaab]: org.springframework.beans.factory.support.DefaultListableBeanFactory@4a8acc0c
Dez 15, 2014 7:47:04 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4a8acc0c: defining beans [deployer,frame,controller]; root of factory hierarchy
Using WAR file: /Applications/Madsonic.app/Contents/Resources/Java/madsonic.war
Extracting webapp to /Library/Application Support/Madsonic/jetty/5420
Using WAR file: /Applications/Madsonic.app/Contents/Resources/Java/madsonic.war
Using GZIP-compression for REST
2014-12-15 19:47:04.651:INFO:oejs.Server:jetty-8.y.z-SNAPSHOT
2014-12-15 19:47:07.831:INFO:/:Initializing Spring root WebApplicationContext
Dez 15, 2014 7:47:07 PM org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization started
Dez 15, 2014 7:47:07 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing Root WebApplicationContext: startup date [Mon Dec 15 19:47:07 CET 2014]; root of context hierarchy
Dez 15, 2014 7:47:08 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-service.xml]
Dez 15, 2014 7:47:08 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-security.xml]
Dez 15, 2014 7:47:08 PM org.springframework.security.config.SecurityNamespaceHandler <init>
INFO: Spring Security 'config' module version is 3.2.5.RELEASE
Dez 15, 2014 7:47:08 PM org.springframework.security.config.http.FilterInvocationSecurityMetadataSourceParser parseInterceptUrlsForFilterInvocationRequestMap
INFO: Creating access control expression attribute 'permitAll' for /**
...
...
OSX.png
Madsonic starts and you can see the whole start procedure, after some seconds the Madsonic tray icon should appear.

Not all error/warnings will be logged into the file, maybe some strange errors can only found on the debug console.

Madsonic logfile can be found here: /Library/Application Support/Madsonic/madsonic.log

Best regards

Re: Madsonic doens't start anymore after upgrading on OSX

Posted: 16 Dec 2014, 14:32
by skopo
Test server gives this when running terminal command.

Code: Select all

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/madsonic/booter/Main : Unsupported major.minor version 51.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Re: Madsonic doens't start anymore after upgrading on OSX

Posted: 17 Dec 2014, 17:30
by Madsonic
This error mean, your system use the internal Apple JAVA6 engine as default. But Madsonic need to run the installed Java7.

You can override this with the environment setting JAVA_HOME

Literally all you have to do is:

Code: Select all

echo export "JAVA_HOME=\$(/usr/libexec/java_home)" >> ~/.bash_profile
and restart your shell and try it again.

Now this comand should return the right path

Code: Select all

echo $JAVA_HOME

/Library/Java/JavaVirtualMachines/jdk1.7.0_72.jdk/Contents/Home
or

Code: Select all

java -version

java version "1.7.0_72"
Java(TM) SE Runtime Environment (build 1.7.0_72-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode)

Re: Madsonic doens't start anymore after upgrading on OSX

Posted: 17 Dec 2014, 18:17
by DoCC
if only v6 is installed, install v7 additionally.

then list your java versions again in the terminal.

if there is still v6 listed,
then you have to alter the default engine.

in linux there is a way like "update-alternatives --config java"
then you can select the new default ...

but as we all know apple wants it the hardway ...

this is a way to switch it in osx
http://superuser.com/questions/490425/h ... s-x-10-8-2

Re: Madsonic doens't start anymore after upgrading on OSX

Posted: 18 Dec 2014, 08:12
by skopo
That did the trick!

I had installed Java 1.6 after 1.7 for some applications.

I thought 1.7 should stay as default.

Now running like dream. (Had to rebuild DB but that was expected anyway)