Re: [base] BASE2 login error

2007-10-11 Thread Nicklas Nordborg
Reha Yildirimman wrote:
> Hello,
> 
> I have the following setup:
> BASE2.4.0
> tomcat 5.5.17
> mysql 5.0.45
> 64bit linux system
> 

The error seems to be related to the "Recently view items" menu. For 
some reason the string that holds the information has become corrupt and 
the code is unfortunately not able to handle this. The best advice I can 
give right now is to edit the /www/include/menu.jsp to try to 
avoid the error. It is line 110 in this file that is causing the error.

A temporary solution might be to change this to something like:
int itemId = tmp.length < 2 ? 0 : Values.getInt(tmp[1], 0);

I'll try to check in a better fix in subversion tomorrow.

/Nicklas

> Without changing anything, today I get the following error when I try to 
> login:
> 
> java.lang.ArrayIndexOutOfBoundsException: 1
>at org.apache.jsp.include.menu_jsp._jspService(menu_jsp.java:185)
>at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>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:802)
>at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>  
> 
>at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>  
> 
>at 
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
>  
> 
>at 
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
>  
> 
>at 
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
>  
> 
>at 
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
>  
> 
>at 
> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:614)
>at net.sf.basedb.clients.web.taglib.Body.doStartTag(Body.java:293)
>at 
> org.apache.jsp.exception.exception_jsp._jspService(exception_jsp.java:173)
>at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>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:802)
>at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>  
> 
>at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>  
> 
>at 
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
>  
> 
>at 
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
>  
> 
>at 
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
>  
> 
>at 
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
>  
> 
>at 
> org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363) 
> 
>at 
> org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:212)
>  
> 
>at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134) 
> 
>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:869)
>at 
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>  
> 
>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(Thread.java:595)
> 
> 
> I restarted everything, dropped and updated the dbindex wihtout a 
> change. I can access the mysql database and tomcat is working.
> The BASE2 frontpage is shown, when I put a wrong password I get the 
> appropriate error message and clicking on "More about this server" opens
> the pop-window with all the info (version, etc.) - just enterning the 
> correct password results in the above error message
> 
> Does anybody have encountered this or might have a clue what is

Re: [base] BASE2 login error

2007-10-12 Thread Nicklas Nordborg
Nicklas Nordborg wrote:
> The error seems to be related to the "Recently view items" menu. For 
> some reason the string that holds the information has become corrupt and 
> the code is unfortunately not able to handle this. The best advice I can 
> give right now is to edit the /www/include/menu.jsp to try to 
> avoid the error. It is line 110 in this file that is causing the error.
> 
> A temporary solution might be to change this to something like:
> int itemId = tmp.length < 2 ? 0 : Values.getInt(tmp[1], 0);
> 
> I'll try to check in a better fix in subversion tomorrow.

There is now a fix available in the repository. Those who can't wait for 
2.4.4 to be released can download the updated file:
http://base.thep.lu.se/browser/branches/2.4-stable/www/include/menu.jsp?format=raw

Replace the menu.jsp file inside /www/include file with the 
downloaded file.

/Nicklas


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
The BASE general discussion mailing list
basedb-users@lists.sourceforge.net
unsubscribe: send a mail with subject "unsubscribe" to
[EMAIL PROTECTED]


Re: [base] BASE2 login error

2007-10-12 Thread Reha Yildirimman

Dear Nicklas,

many thanks for the fast fix !

Cheerio,

Reha

Nicklas Nordborg wrote:

Nicklas Nordborg wrote:
  
The error seems to be related to the "Recently view items" menu. For 
some reason the string that holds the information has become corrupt and 
the code is unfortunately not able to handle this. The best advice I can 
give right now is to edit the /www/include/menu.jsp to try to 
avoid the error. It is line 110 in this file that is causing the error.


A temporary solution might be to change this to something like:
int itemId = tmp.length < 2 ? 0 : Values.getInt(tmp[1], 0);

I'll try to check in a better fix in subversion tomorrow.



There is now a fix available in the repository. Those who can't wait for 
2.4.4 to be released can download the updated file:

http://base.thep.lu.se/browser/branches/2.4-stable/www/include/menu.jsp?format=raw

Replace the menu.jsp file inside /www/include file with the 
downloaded file.


/Nicklas


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
The BASE general discussion mailing list
basedb-users@lists.sourceforge.net
unsubscribe: send a mail with subject "unsubscribe" to
[EMAIL PROTECTED]
  
begin:vcard
fn:Reha Yildirimman
n:Yildirimman;Reha
org:Max Planck Institute for molecular genetics;Lehrach AG Herwig
adr:;;Ihnestr. 63-73;Berlin;;14195;Germany
email;internet:[EMAIL PROTECTED]
tel;work:+49-30-84131277
url:http://www.molgen.mpg.de
version:2.1
end:vcard

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
The BASE general discussion mailing list
basedb-users@lists.sourceforge.net
unsubscribe: send a mail with subject "unsubscribe" to
[EMAIL PROTECTED]