problem installing subsonic on osx

Need help? Post your questions here.

Moderator: moderators

problem installing subsonic on osx

Postby mr_nobody » Fri Dec 07, 2012 3:40 pm

Hi. I am trying to set 4.7 up on an old mac that wasn't doing much and subsonic is crashing when launched. If I try running it from the terminal, it outputs the following. Any ideas what the problem is? Thanks.

Code: Select all
72 [main] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@6fe0f4: display name [org.springframework.context.support.ClassPathXmlApplicationContext@6fe0f4]; startup date [Fri Dec 07 10:35:32 EST 2012]; root of context hierarchy
285 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [applicationContext-mac.xml]
1552 [main] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@6fe0f4]: org.springframework.beans.factory.support.DefaultListableBeanFactory@3803ba
1602 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3803ba: defining beans [deployer,frame,controller]; root of factory hierarchy
1688 [main] INFO org.mortbay.log - Logging to org.slf4j.impl.SimpleLogger(org.mortbay.log) via org.mortbay.log.Slf4jLog
Using WAR file: /Applications/Subsonic.app/Contents/Resources/subsonic.war
Extracting webapp to /Library/Application Support/Subsonic/jetty/3105
Using WAR file: /Applications/Subsonic.app/Contents/Resources/subsonic.war
1823 [main] INFO org.mortbay.log - jetty-6.1.x
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Applications/Subsonic.app/Contents/Resources/Java/subsonic-booter-jar-with-dependencies.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Library/Application%20Support/Subsonic/jetty/3105/webapp/WEB-INF/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
3515 [main] INFO / - Initializing Spring root WebApplicationContext
3515 [main] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
3667 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@c0b204: display name [Root WebApplicationContext]; startup date [Fri Dec 07 10:35:36 EST 2012]; root of context hierarchy
3906 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-service.xml]
4292 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-security.xml]
4570 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-cache.xml]
4688 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@c0b204]: org.springframework.beans.factory.support.DefaultListableBeanFactory@803f84
4964 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@803f84: defining beans [playerDao,mediaFileDao,artistDao,albumDao,playlistDao,internetRadioDao,musicFileInfoDao,musicFolderDao,userDao,transcodingDao,podcastDao,avatarDao,shareDao,daoHelper,mediaFileService,securityService,settingsService,mediaScannerService,searchService,networkService,playerService,playlistService,versionService,statusService,musicInfoService,musicIndexService,audioScrobblerService,transcodingService,shareService,podcastService,adService,jukeboxService,metaDataParserFactory,ajaxMultiService,ajaxNowPlayingService,ajaxPlayQueueService,ajaxPlaylistService,ajaxLyricsService,ajaxCoverArtService,ajaxStarService,ajaxTagService,ajaxTransferService,ajaxChatService,filterChainProxy,httpSessionContextIntegrationFilter,logoutFilter,authenticationProcessingFilter,basicProcessingFilter,restRequestParameterProcessingFilter,basicProcessingFilterEntryPoint,securityContextHolderAwareRequestFilter,rememberMeProcessingFilter,anonymousProcessingFilter,exceptionTranslationFilter,basicExceptionTranslationFilter,filterInvocationInterceptor,accessDecisionManager,rememberMeServices,authenticationManager,daoAuthenticationProvider,userCacheWrapper,ldapAuthenticationProvider,bindAuthenticator,userDetailsServiceBasedAuthoritiesPopulator,ajaxServiceInterceptor,ajaxTagServiceSecure,ajaxTransferServiceSecure,cacheFactory,userCache,mediaFileMemoryCache,musicFileMemoryCache]; root of factory hierarchy
5109 [main] INFO org.springframework.jdbc.datasource.DriverManagerDataSource - Loaded JDBC driver: org.hsqldb.jdbcDriver
9002 [main] INFO org.acegisecurity.intercept.AbstractSecurityInterceptor - Validated configuration attributes
9026 [main] INFO org.acegisecurity.intercept.method.MethodDefinitionMap - Adding secure method [public net.sourceforge.subsonic.ajax.UploadInfo net.sourceforge.subsonic.ajax.TransferService.getUploadInfo()] with attributes [[ROLE_UPLOAD]]
9027 [main] INFO org.acegisecurity.intercept.method.MethodDefinitionMap - Adding secure method [public java.lang.String net.sourceforge.subsonic.ajax.TagService.setTags(int,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)] with attributes [[ROLE_COVERART]]
9028 [main] INFO org.acegisecurity.intercept.AbstractSecurityInterceptor - Validated configuration attributes
9136 [main] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 5620 ms
9340 [main] INFO / - Initializing Spring FrameworkServlet 'subsonic'
9341 [main] INFO org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'subsonic': initialization started
9344 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@e5e1a3: display name [WebApplicationContext for namespace 'subsonic-servlet']; startup date [Fri Dec 07 10:35:42 EST 2012]; parent: org.springframework.web.context.support.XmlWebApplicationContext@c0b204
9346 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/subsonic-servlet.xml]
9823 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@e5e1a3]: org.springframework.beans.factory.support.DefaultListableBeanFactory@4c9e55
10264 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4c9e55: defining beans [leftController,rightController,statusController,mainController,playlistController,importPlaylistController,topController,helpController,moreController,uploadController,lyricsController,allmusicController,podcastController,podcastReceiverController,podcastReceiverAdminController,setMusicFileInfoController,shareManagementController,setRatingController,randomPlayQueueController,changeCoverArtController,nowPlayingController,starredController,searchController,settingsController,playerSettingsController,shareSettingsController,musicFolderSettingsController,networkSettingsController,transcodingSettingsController,internetRadioSettingsController,podcastSettingsController,generalSettingsController,advancedSettingsController,personalSettingsController,avatarUploadController,userSettingsController,passwordSettingsController,homeController,editTagsController,playQueueController,coverArtController,avatarController,proxyController,statusChartController,userChartController,m3uController,streamController,hlsController,videoPlayerController,externalPlayerController,downloadController,donateController,multiController,wapController,restController,dbController,donateValidator,userSettingsValidator,passwordSettingsValidator,urlMapping,messageSource,themeSource,localeResolver,themeResolver,viewResolver]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@803f84
Exception in thread "MessageQueue" java.lang.NoSuchMethodError: java.util.LinkedList.pop()Ljava/lang/Object;
   at com.hoodcomputing.natpmp.MessageQueue.run(MessageQueue.java:171)
   at java.lang.Thread.run(Thread.java:613)
11733 [main] INFO org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'subsonic': initialization completed in 2391 ms
11780 [main] INFO org.mortbay.log - Started SelectChannelConnector@0.0.0.0:4040
Subsonic running on: http://localhost:4040/
12872 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3803ba: defining beans [deployer,frame,controller]; root of factory hierarchy
[LaunchRunner Error] net.sourceforge.subsonic.booter.Main.main(String[]) threw an exception:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'controller' defined in class path resource [applicationContext-mac.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [net.sourceforge.subsonic.booter.mac.SubsonicController]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: java/awt/TrayIcon
   at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
   at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
   at net.sourceforge.subsonic.booter.Main.<init>(Main.java:24)
   at net.sourceforge.subsonic.booter.Main.main(Main.java:63)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at apple.launcher.LaunchRunner.run(LaunchRunner.java:115)
   at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
   at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [net.sourceforge.subsonic.booter.mac.SubsonicController]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: java/awt/TrayIcon
   at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)
   at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
   at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)
   ... 25 more
Caused by: java.lang.NoClassDefFoundError: java/awt/TrayIcon
   at net.sourceforge.subsonic.booter.mac.SubsonicController.createComponents(SubsonicController.java:61)
   at net.sourceforge.subsonic.booter.mac.SubsonicController.<init>(SubsonicController.java:28)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
   at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
   ... 27 more
Shutting down database.
Done.
mr_nobody
 
Posts: 202
Joined: Thu May 31, 2012 8:17 pm

Re: problem installing subsonic on osx

Postby hakko » Fri Dec 07, 2012 4:02 pm

What java version are you using? This is the key: java.lang.NoClassDefFoundError: java/awt/TrayIcon
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: problem installing subsonic on osx

Postby mr_nobody » Fri Dec 07, 2012 4:32 pm

Thanks for replying. Like I said, this is an OLD mac...osx 10.5.7 and the java version is 1.5.0_13. I thought I looked at the wiki and it said 1.5 was required but perhaps that is out of date? What is required for 4.7? If I go back to an earlier version of subsonic, do the java requirements drop down? Thanks again.
mr_nobody
 
Posts: 202
Joined: Thu May 31, 2012 8:17 pm

Re: problem installing subsonic on osx

Postby BKKKPewsey » Fri Dec 07, 2012 4:47 pm

hakko wrote:I thought I looked at the wiki and it said 1.5 was required but perhaps that is out of date?


It does :?
If somebody can let us know what version of java is required for what SS version I will attempt to edit the Wiki.

:mrgreen:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: problem installing subsonic on osx

Postby columbiabbs » Tue Dec 11, 2012 4:34 am

Hi Guy:
Well I am running Subsonic for more than a year using a Mac Mini with 1.6.0 Java with no problems. I was running 4.1 thru 4.6 with Leopard then Snow Leopard.If you can't find it let me know and I'll sent it to you.
columbia,subsonic.org

William.
Last edited by columbiabbs on Tue Dec 11, 2012 7:47 pm, edited 2 times in total.
columbiabbs
 
Posts: 52
Joined: Sun Oct 03, 2010 3:10 am
Location: COLUMBIA,SC

Re: problem installing subsonic on osx

Postby daneren2005 » Tue Dec 11, 2012 4:22 pm

Not sure if this applies to osx but I'm pretty sure I've seen other places that 1.6 is required (though that has come up in the context that 1.7 causes issues).
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 7 guests