sun.java2d.Disposer blows up

Need help? Post your questions here.

Moderator: moderators

sun.java2d.Disposer blows up

Postby tacgnol » Mon Dec 21, 2009 11:31 pm

I am getting this weird error when subsonic tries to create thumbnails. I am running the newest version of subsonic (2.8) on OS X via Tomcat 6. Here's the error:

Code: Select all
[2009-12-21 18:15:01,864] WARN CoverArtController - Failed to create thumbnail for /Users/tacgnol/Music/Bad Company - Shot Down On Safari/CD1/01 - Bad Company - Mo'fire .mp3
java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.Disposer
        at javax.imageio.stream.FileCacheImageInputStream.<init>(FileCacheImageInputStream.java:94)
        at com.sun.imageio.spi.InputStreamImageInputStreamSpi.createInputStreamInstance(InputStreamImageInputStreamSpi.java:51)
        at javax.imageio.ImageIO.createImageInputStream(ImageIO.java:331)
        at javax.imageio.ImageIO.read(ImageIO.java:1325)
        at net.sourceforge.subsonic.controller.CoverArtController.getCachedImage(CoverArtController.java:140)
        at net.sourceforge.subsonic.controller.CoverArtController.handleRequest(CoverArtController.java:92)
        at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:625)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
        at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
        at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
        at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
        at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
        at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
        at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
        at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
        at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
        at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
        at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
        at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
        at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at net.sourceforge.subsonic.filter.RequestEncodingFilter.doFilter(RequestEncodingFilter.java:43)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at net.sourceforge.subsonic.filter.ParameterDecodingFilter.doFilter(ParameterDecodingFilter.java:54)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at net.sourceforge.subsonic.filter.BootstrapVerificationFilter.doFilter(BootstrapVerificationFilter.java:54)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:637)


I am guessing something is not right with my install of Java? anyone know for sure what's wrong though?

Thanks!
User avatar
tacgnol
 
Posts: 31
Joined: Mon Dec 21, 2009 1:46 pm

Postby tacgnol » Tue Dec 22, 2009 12:57 am

so I think it has to do with mod_jk because when I run subsonic as a standalone app or through Tomcat (port 8080) it seems to run fine. I am guessing there's some type of conifg for jk I have to set up?
User avatar
tacgnol
 
Posts: 31
Joined: Mon Dec 21, 2009 1:46 pm

Postby tacgnol » Tue Dec 22, 2009 1:19 am

Looking in one of the tomcat logs (localhost.2009..) I found this:

Code: Select all
Dec 21, 2009 8:14:34 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet subsonic threw exception
java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.Disposer
        at javax.imageio.stream.FileCacheImageInputStream.<init>(FileCacheImageInputStream.java:94)
        at com.sun.imageio.spi.InputStreamImageInputStreamSpi.createInputStreamInstance(InputStreamImageInputStreamSpi.java:51)
        at javax.imageio.ImageIO.createImageInputStream(ImageIO.java:331)
        at javax.imageio.ImageIO.read(ImageIO.java:1325)
        at net.sourceforge.subsonic.controller.CoverArtController.sendDefault(CoverArtController.java:111)
        at net.sourceforge.subsonic.controller.CoverArtController.handleRequest(CoverArtController.java:87)
        at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:625)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
        ...
User avatar
tacgnol
 
Posts: 31
Joined: Mon Dec 21, 2009 1:46 pm

Postby tacgnol » Tue Dec 22, 2009 1:32 pm

I am guessing that maybe running subsonic in Tomcat is missing a jar although I put jai_core.jar into /Library/Tomcat/Extensions/ and the error is still happening.

I checked all the permissions (eg, /var/subsonic/thumbs/) and they are all set correctly too.
User avatar
tacgnol
 
Posts: 31
Joined: Mon Dec 21, 2009 1:46 pm

Postby tacgnol » Tue Dec 22, 2009 1:50 pm

Ok, I fixed my problem. I disabled mod_jk and am just using proxy module to forward requests to Tomcat

Thanks!
User avatar
tacgnol
 
Posts: 31
Joined: Mon Dec 21, 2009 1:46 pm

how?

Postby spookybathtub » Tue May 01, 2012 11:50 pm

Can you explain more how you fixed this? I'm getting the exact same error with thumbnails, but I don't know anything about mod_jk. I just installed Tomcat6 on my OS X server, and am running Subsonic 4.6. The server is also running Lion's built-in apache, if that makes any difference. Could you explain how you disabled mod_jk, and are there any other implications of doing that?
spookybathtub
 
Posts: 110
Joined: Thu Oct 07, 2010 7:13 am

Re: sun.java2d.Disposer blows up

Postby BKKKPewsey » Wed May 02, 2012 12:11 am

As that user last visited the forum in 2010 you may be waiting awhile for a reply :roll:
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: sun.java2d.Disposer blows up

Postby GJ51 » Wed May 02, 2012 4:51 am

He could always try a pm to see if he's still alive. Goodness only knows if he still remembers what he did. :lol:

I think we all should also put in requests for better emoticons, like the ones in Skype. :idea:
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Solved

Postby spookybathtub » Wed May 02, 2012 5:43 am

I figured it out. Had to add this line to the startup script (Tomcat5.sh)
Code: Select all
CATALINA_OPTS=-Djava.awt.headless=true
spookybathtub
 
Posts: 110
Joined: Thu Oct 07, 2010 7:13 am

Re: sun.java2d.Disposer blows up

Postby GJ51 » Wed May 02, 2012 6:08 am

Sounds like you've really made some headway on your setup. Now, how many of those 6000 CD's have you ripped? :wink:

Thanks for the info on the LDAP setup, I'm gonna give it a go after I get a Sharepoint fiasco sorted out.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: sun.java2d.Disposer blows up

Postby spookybathtub » Wed May 02, 2012 6:23 am

Only about 400 so far. It's been a lot of work on the other end setting up the Ripstation machine. It runs on Windows, so I set up Cygwin and wrote some scripts to transfer the rips to the Subsonic server. As much as I love automation and scripting, it kills me to have to physically box and unbox all the stinkin' jewel cases. We hired someone today to do all that, so it should be done in 3 weeks.
spookybathtub
 
Posts: 110
Joined: Thu Oct 07, 2010 7:13 am


Return to Help

Who is online

Users browsing this forum: No registered users and 20 guests