Java 1.7 Incompatibility

Need help? Post your questions here.

Moderator: moderators

Re: Java 1.7 Incompatibility

Postby GJ51 » Sat May 19, 2012 5:14 am

I can verify that the "chopped off" issue is no longer a problem in 4.7 beta 1. i have it running and it works fine on Android.

Cheers.
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: Java 1.7 Incompatibility

Postby Alsaya » Sun May 20, 2012 10:09 am

Isub on my iPad plays again the whole song, too.
Subsonic on Server 2012, only flac
Image
Alsaya
 
Posts: 67
Joined: Thu Feb 04, 2010 2:46 pm

Re: Java 1.7 Incompatibility

Postby omegatotal » Tue Jun 05, 2012 7:05 am

I am running windows xp 32bit with java v7u4, and have experienced no issues aside from an ffmpeg specific one, even on the android app it works fine for me *shrugs*


About Subsonic
Version 4.6 (build 2583) – December 6, 2011
Server jetty-6.1.x, java 1.7.0_04, Windows XP
omegatotal
 
Posts: 10
Joined: Thu May 31, 2012 9:22 am

Re: Java 1.7 Incompatibility

Postby andu_ » Mon Jun 18, 2012 1:42 am

I didn't have any issues until I updated Java today. Then I received the below error in my Artist Browser window (Version and Server info after error):

Subsonic encountered an internal error. You can report this error in the Subsonic Forum. Please include the information below.

Exception java.lang.IllegalArgumentException
Message Comparison method violates its general contract!
Java version Oracle Corporation 1.7.0_05
Operating system Windows 7 6.1
Server jetty-6.1.x
Memory Used 54 of 111 MB
Stack trace java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.util.TimSort.mergeHi(Unknown Source)
at java.util.TimSort.mergeAt(Unknown Source)
at java.util.TimSort.mergeCollapse(Unknown Source)
at java.util.TimSort.sort(Unknown Source)
at java.util.TimSort.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.Collections.sort(Unknown Source)
at net.sourceforge.subsonic.service.MediaFileService.getChildrenOf(MediaFileService.java:212)
at net.sourceforge.subsonic.service.MusicIndexService.createArtistsByFolderStructure(MusicIndexService.java:143)
at net.sourceforge.subsonic.service.MusicIndexService.createArtists(MusicIndexService.java:131)
at net.sourceforge.subsonic.service.MusicIndexService.getIndexedArtists(MusicIndexService.java:66)
at net.sourceforge.subsonic.controller.LeftController.getMusicFolderContent(LeftController.java:218)
at net.sourceforge.subsonic.controller.LeftController.handleRequestInternal(LeftController.java:140)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
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:715)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
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.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at net.sourceforge.subsonic.filter.ResponseHeaderFilter.doFilter(ResponseHeaderFilter.java:47)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at net.sourceforge.subsonic.filter.RequestEncodingFilter.doFilter(RequestEncodingFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at net.sourceforge.subsonic.filter.ParameterDecodingFilter.doFilter(ParameterDecodingFilter.java:54)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at net.sourceforge.subsonic.filter.BootstrapVerificationFilter.doFilter(BootstrapVerificationFilter.java:54)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

Version 4.7.beta2 (build 3012) – June 9, 2012
Server jetty-6.1.x, java 1.7.0_05, Windows 7 (60.8 MB / 111.1 MB)
andu_
 
Posts: 18
Joined: Mon Oct 17, 2011 6:38 pm

Re: Java 1.7 Incompatibility

Postby GJ51 » Mon Jun 18, 2012 3:25 am

I saw this once or twice while upgrading my sites. A server reboot fixed it for me.

But that was using 7.4 Java. I haven't tried 7.5 yet. Thanks for the heads up.

EDIT: Just did an upgrade to a 4.7b1 site from Java 7.4 to 7.5 and it killed the left column. I had to do a THOROUGH uninstall of Java and Subsonic, including a search of the C: dirve for all files with "subsonic" in them. I didn't know some files were used in the locations found by the search, but I got my first clue when I did the first reinstall attempt and SS found all my setting even though I had deleted C:\Subsonic.

After the second uninstall, I reinstalled Jave 7.5 32 & 64 bit and then installed 4.4 beta 2 and now have no errors. I know others have found the cause for this problem and there's probably an easier way to fix it. Hopefully it will get fixed in the final 4.7 release.

Either way, a clean install solves the problem.
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: Java 1.7 Incompatibility

Postby pemholder » Mon Jun 18, 2012 10:55 am

Odd:
I have installaed Java 7.4 and had no problmes till updating from Subsonic Beta 4.7 Beta 1 to Beta2.
http://forum.subsonic.org/forum/viewtopic.php?f=4&t=9686&start=45#p42295
pemholder
 
Posts: 97
Joined: Wed Dec 09, 2009 1:28 pm

Re: Java 1.7 Incompatibility

Postby sindre_mehus » Mon Jun 18, 2012 11:12 am

andu_ wrote:I didn't have any issues until I updated Java today. Then I received the below error in my Artist Browser window (Version and Server info after error):

Subsonic encountered an internal error. You can report this error in the Subsonic Forum. Please include the information below.

Exception java.lang.IllegalArgumentException
Message Comparison method violates its general contract!
Java version Oracle Corporation 1.7.0_05
Operating system Windows 7 6.1
Server jetty-6.1.x
Memory Used 54 of 111 MB
Stack trace java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.util.TimSort.mergeHi(Unknown Source)
at java.util.TimSort.mergeAt(Unknown Source)
at java.util.TimSort.mergeCollapse(Unknown Source)
at java.util.TimSort.sort(Unknown Source)
at java.util.TimSort.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.Collections.sort(Unknown Source)
at net.sourceforge.subsonic.service.MediaFileService.getChildrenOf(MediaFileService.java:212)
at net.sourceforge.subsonic.service.MusicIndexService.createArtistsByFolderStructure(MusicIndexService.java:143)
at net.sourceforge.subsonic.service.MusicIndexService.createArtists(MusicIndexService.java:131)
at net.sourceforge.subsonic.service.MusicIndexService.getIndexedArtists(MusicIndexService.java:66)
at net.sourceforge.subsonic.controller.LeftController.getMusicFolderContent(LeftController.java:218)

Version 4.7.beta2 (build 3012) – June 9, 2012
Server jetty-6.1.x, java 1.7.0_05, Windows 7 (60.8 MB / 111.1 MB)


Hi,

This sounds like a bug in my code. To help me track it down, can you please describe what you have in your root music folder? Do you have only artist directories, or also album directories and/or individual songs?

Thanks,
Sindre
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Re: Java 1.7 Incompatibility

Postby pemholder » Mon Jun 18, 2012 12:00 pm

sindre_mehus wrote:This sounds like a bug in my code. To help me track it down, can you please describe what you have in your root music folder? Do you have only artist directories, or also album directories and/or individual songs?

Your hint made me think over my changes I made. I wrote that the problem occured when I changed from 4.7 Beta1 to Beta2.
I now remembered that I added another folder to the music library at the same time.
This music folder has a Album directory in the root.

So I made some tests:
If I deactive the albums-folder all works fine.
If I activate it again I get the same error.

Next i added another album folder. There was no error.
Then I added a folder with individual songs. There was no error.

All I can say now is, that the problem has to do with album-folders in the root.
But as the error did not show up with every added album folders in the root.
pemholder
 
Posts: 97
Joined: Wed Dec 09, 2009 1:28 pm

Re: Java 1.7 Incompatibility

Postby sindre_mehus » Mon Jun 18, 2012 12:43 pm

pemholder wrote:
sindre_mehus wrote:This sounds like a bug in my code. To help me track it down, can you please describe what you have in your root music folder? Do you have only artist directories, or also album directories and/or individual songs?

Your hint made me think over my changes I made. I wrote that the problem occured when I changed from 4.7 Beta1 to Beta2.
I now remembered that I added another folder to the music library at the same time.
This music folder has a Album directory in the root.

So I made some tests:
If I deactive the albums-folder all works fine.
If I activate it again I get the same error.

Next i added another album folder. There was no error.
Then I added a folder with individual songs. There was no error.

All I can say now is, that the problem has to do with album-folders in the root.
But as the error did not show up with every added album folders in the root.



Can you do me a great favor? Go to http://yourserver/db.view and run this query:

Code: Select all
select * from media_folder where parent_path = 'c:/music'


but replace c:\music with the offending root folder.

Then save the resulting html page and email it to me: sindre@activeobjects.no

That would help me a lot!
Thanks,
Sindre
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Re: Java 1.7 Incompatibility

Postby sindre_mehus » Mon Jun 18, 2012 1:37 pm

Hi,

I think I found the problem, although I am unable to reproduce it.

Could you please try to download this file: http://dl.dropbox.com/u/17217411/subson ... -06-18.war

Save it as c:/program files/subsonic/subsonic.war

Please let me know if this solves the problem.

Kind regards,
Sindre
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Re: Java 1.7 Incompatibility

Postby pemholder » Mon Jun 18, 2012 1:39 pm

[quote="sindre_mehus"]
Code: Select all
select * from media_folder where parent_path = 'c:/music'


All I get is:
Code: Select all
Error
Table not found in statement [select * from media_folders]
pemholder
 
Posts: 97
Joined: Wed Dec 09, 2009 1:28 pm

Re: Java 1.7 Incompatibility

Postby sindre_mehus » Mon Jun 18, 2012 1:46 pm

Sorry, it should be
Code: Select all
select * from media_file where parent_path = 'c:/music'
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Re: Java 1.7 Incompatibility

Postby GJ51 » Mon Jun 18, 2012 1:50 pm

I had a similar issue last night when I update a Windows 2008 install that had 4.7 beta 1 on it that was running OK. I updated to 4.7b2 and it gave me a long Java error in the left column. I uninstalled Jaca and then installed Java 7.4 and it still had the same problem.

I then uninstalled and reinstalled Java and SS and the problem persitsted, even though I deleted the C:\Subsonic directory.

I then uninstalled Java and SS, did a C: searcj for "subsonic" that produced a bunch of files I had no idea were on the hard drive. I deleted them all then reinstalled Java 7.5 and Subsonic 4.7 beta 2 and everthing now works as it should.

HTH
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: Java 1.7 Incompatibility

Postby andu_ » Mon Jun 18, 2012 10:12 pm

Hello,

I tried to run the query above (select * from media_file where parent_path = 'c:/music') and it did not return any results. The majority of my C:/music directory is organized in folders as artist/album/files, but there are a few stray mp3 files as well. Let me know if there is anything else I can try or that you need.

Thanks!

Edit - I tried replacing the WAR file as well. Same result.
andu_
 
Posts: 18
Joined: Mon Oct 17, 2011 6:38 pm

Re: Java 1.7 Incompatibility

Postby sindre_mehus » Tue Jun 19, 2012 8:01 am

Would it be possible to create a temporary user with admin rights for me so I can have a closer look at the problem? If so, could you please PM or email me the username and password. If you don't want to do it it's perfectly ok.

Thanks,
Sindre
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

PreviousNext

Return to Help

Who is online

Users browsing this forum: No registered users and 12 guests