Error

Need help? Post your questions here.

Moderator: moderators

Error

Postby HiSpeed » Sat Mar 25, 2006 9:28 am

Can you help me on this?

HTTP Status 500 - ;

type: Exception report

message:

description: The server encountered an internal error () that prevented it from fulfilling this request.

exception:

javax.servlet.ServletException: Filter execution threw an exception
net.sourceforge.subsonic.filter.RequestEncodingFilter.doFilter(RequestEncodingFilter.java:32)


root cause:

java.lang.NoClassDefFoundError
net.sourceforge.subsonic.filter.SecurityRealmFilter.booleanAuthenticate(SecurityRealmFilter.java:30)
org.securityfilter.realm.SimpleSecurityRealmBase.authenticate(SimpleSecurityRealmBase.java:107)
org.securityfilter.authenticator.BasicAuthenticator.processLogin(BasicAuthenticator.java:123)
org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:138)
net.sourceforge.subsonic.filter.RequestEncodingFilter.doFilter(RequestEncodingFilter.java:32)


note: The full stack trace of the root cause is available in the Apache Tomcat/5.5.12 logs.
HiSpeed
 
Posts: 33
Joined: Wed Nov 30, 2005 7:51 am
Location: Norway

Postby sindre_mehus » Sat Mar 25, 2006 10:12 am

When did you get this error? Immediately after upgrading to Subsonic 2.6?

Have you tried to delete the <TOMCAT_HOME>/work directory, as per the instructions in point 6 at http://subsonic.sourceforge.net/download.html ?

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

Postby HiSpeed » Sat Mar 25, 2006 10:27 am

After upgrade to 2.6 and using streaming to my cellphone.

I have deleted Work directory but i get the same messages.
HiSpeed
 
Posts: 33
Joined: Wed Nov 30, 2005 7:51 am
Location: Norway

Postby sindre_mehus » Sat Mar 25, 2006 11:15 am

Strange.. Does it work from a normal browser? Have you tried to restart Tomcat?
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby HiSpeed » Sat Mar 25, 2006 11:20 am

No; I have restarted Tomcat.

This message war in Subsonic.log
[2006-03-25 12:19:02,953] ERROR [/subsonic].[jsp] - Servlet.service() for servlet jsp threw exception
java.lang.ExceptionInInitializerError
at net.sourceforge.subsonic.filter.SecurityRealmFilter.booleanAuthenticate(SecurityRealmFilter.java:30)
at org.securityfilter.realm.SimpleSecurityRealmBase.authenticate(SimpleSecurityRealmBase.java:107)
at org.securityfilter.authenticator.BasicAuthenticator.processLogin(BasicAuthenticator.java:123)
at org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at net.sourceforge.subsonic.filter.RequestEncodingFilter.doFilter(RequestEncodingFilter.java:32)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Non-positive period.
at java.util.Timer.schedule(Unknown Source)
at net.sourceforge.subsonic.service.SearchService.schedule(SearchService.java:217)
at net.sourceforge.subsonic.service.SearchService.<init>(SearchService.java:100)
at net.sourceforge.subsonic.service.ServiceFactory.<clinit>(ServiceFactory.java:35)
... 21 more
HiSpeed
 
Posts: 33
Joined: Wed Nov 30, 2005 7:51 am
Location: Norway

Postby sindre_mehus » Sat Mar 25, 2006 11:29 am

Aha, that's interesting! Can you please post your c:\subsonic\subsonic.properties file?
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby HiSpeed » Sat Mar 25, 2006 1:37 pm

#Subsonic preferences. NOTE: This file is automatically generated.
#Sat Mar 25 12:19:02 CET 2006
IndexString=A B C D E F G H I J K L M N O P Q R S T U V W X-Z(XYZ) \u00C6-\u00C5(\u00C6\u00D8\u00C5)
LocaleCountry=
IndexCreationHour=3
LocaleVariant=
WelcomeMessage=Velkommen til BH-veien Mediasenter \:)
IgnoredArticles=The El La Los Las Le Les
LocaleLanguage=no
CoverArtMask=folder.jpg cover.jpg .jpg .jpeg .gif .png
MusicMask=.mp3 .ogg .aac .wav .wma
CoverArtLimit=30
PlaylistFolder=H\:/Spilleliste
IndexCreationInterval=30
HiSpeed
 
Posts: 33
Joined: Wed Nov 30, 2005 7:51 am
Location: Norway

Postby sindre_mehus » Sat Mar 25, 2006 1:55 pm

I get the same error when I use 30 days as index creation interval. I will look into that.

Now, to get around the problem, please do the following:
1. Stop Tomcat.
2. Manually edit subsonic.properties and change IndexCreationInterval to 14.
3. Start Tomcat.

Hope this helps, Sindre :-)
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby HiSpeed » Sat Mar 25, 2006 2:03 pm

:D
HiSpeed
 
Posts: 33
Joined: Wed Nov 30, 2005 7:51 am
Location: Norway

Postby sindre_mehus » Sat Mar 25, 2006 2:06 pm

Yup, I took a look at the source code, and there was indeed an integer overflow bug there. Will be fixed in the next Subsonic version.

Please note that search index creation intervals larger than 14 days will not work properly.
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway


Return to Help

Who is online

Users browsing this forum: No registered users and 19 guests