(Solved) Java broken on "more" tab

Need help? Post your questions here.

Moderator: moderators

(Solved) Java broken on "more" tab

Postby hornetjockey » Sun Sep 05, 2010 4:19 am

Update:

Let this be a lesson to always set the correct date and time. I found the detailed message in subsonic_sh.log:

Code: Select all
73624 [btpool0-8] WARN org.mortbay.log - Nested in org.apache.jasper.JasperExcep
tion: Exception in JSP: /WEB-INF/jsp/more.jsp:78

75:                     <select name="year">
76:                         <option value="any"><fmt:message key="more.random.an
yyear"/></option>
77:
78:                         <c:forEach begin="0" end="${model.currentYear - 2006}" var="yearOffset">
79:                             <c:set var="year" value="${model.currentYear - yearOffset}"/>
80:                             <option value="${year} ${year}">${year}</option>
81:                         </c:forEach>


The error message says 'end < 0'. Line 78 says to take the current year and subtract 2006. The year on my server was set to 2002. Do the math. I don't know why it performs this check, but that was the issue and everything is working great again!


Original post:

I got this error initially because I didn't had only the "headless" jre installed. I have the full jre now, and everything was working happily, but suddenly with no changes, I'm back to the java error when I go to the "more" section (where the uploading is):


    Error

    Subsonic encountered an internal error. You can report this error in the Subsonic Forum. Please include the information below.
    Exception javax.servlet.ServletException
    Message javax.servlet.jsp.JspTagException: 'end' < 0
    Java version Sun Microsystems Inc. 1.6.0_18
    Operating system Linux 2.6.32-24-generic-pae
    Server jetty-6.1.x
    Memory Used 18 of 33 MB
    Stack trace javax.servlet.ServletException: javax.servlet.jsp.JspTagException: 'end' < 0 at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) at org.apache.jsp.WEB_002dINF.jsp.more_jsp._jspService(org.apache.jsp.WEB_002dINF.jsp.more_jsp:225) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) 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.handle(ServletHandler.java:362) 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.servlet.Dispatcher.forward(Dispatcher.java:268) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126) at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:236) at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:257) at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1183) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:902) 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:707) 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.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:81) at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:132) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) 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.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) Caused by: javax.servlet.jsp.JspTagException: 'end' < 0 at javax.servlet.jsp.jstl.core.LoopTagSupport.validateEnd(LoopTagSupport.java:450) at org.apache.taglibs.standard.tag.rt.core.ForEachTag.setEnd(ForEachTag.java:53) at org.apache.jsp.WEB_002dINF.jsp.more_jsp._jspx_meth_c_forEach_1(org.apache.jsp.WEB_002dINF.jsp.more_jsp:979) at org.apache.jsp.WEB_002dINF.jsp.more_jsp._jspx_meth_c_if_0(org.apache.jsp.WEB_002dINF.jsp.more_jsp:494) at org.apache.jsp.WEB_002dINF.jsp.more_jsp._jspService(org.apache.jsp.WEB_002dINF.jsp.more_jsp:179) ... 71 more

Last edited by hornetjockey on Tue Sep 07, 2010 5:43 pm, edited 1 time in total.
hornetjockey
 
Posts: 9
Joined: Thu Sep 02, 2010 7:55 pm

Postby hornetjockey » Tue Sep 07, 2010 12:46 pm

I have now completely purged all java and related libraries and dependencies, as well as subsonic itself, and reinstalled everything. It's still doing this!

The only thing that happened between this working and not working was a power outage. Maybe some file got corrupted, but you would think the purge/reinstall would fix it.

Please help! (running Ubuntu 10.04)
hornetjockey
 
Posts: 9
Joined: Thu Sep 02, 2010 7:55 pm

Postby hornetjockey » Tue Sep 07, 2010 4:53 pm

I've switched from the open jdk to sun java now, still no change. I'm hoping someone can point me in the right direction, otherwise I'm going to wipe the system completely and start over tonight.
hornetjockey
 
Posts: 9
Joined: Thu Sep 02, 2010 7:55 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 15 guests