[SAK-20518] Error [Exception starting filter sakai.request] when startup tomcat of sakai 2.8.0 Created: 29-Apr-2011  Updated: 04-May-2011  Resolved: 04-May-2011

Status: Closed
Project: Sakai
Component/s: Install/Upgrade
Affects Version/s: 2.8.0
Fix Version/s: None

Type: Bug Priority: Blocker
Reporter: Kenneth Chan (Inactive) Assignee: OSP Jira Team (Inactive)
Resolution: Non-Issue Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS name: "linux" version: "2.6.18-194.32.1.el5" arch: "amd64" Family: "unix"
jdk1.6.0_24/ jdk1.6.0_23, tomcat 5.5.33/ tomcat 5.5.26
Oracle 10g


Attachments: File catalina.out     Text File error.txt     Text File error.txt     Text File error.txt     Text File error.txt    

 Description   

Dear all,

I have built sakai 2.8.0 with the environmental configuration and it is success.
However, when i start from clean tomcat 5.5.33 with clean Oracle 10g db, so many errors found, as follow and I have attached the cataline.out file.

The interesting point is when I used JDK1.5.15 to build and then deployed in tomcat, no error is found. I already followed the instruction which to set the following parameters in JAVA_OPTS when using JDK1.6
-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false
-Dsun.lang.ClassLoader.allowArraySyntax=true
-Dhttp.agent=Sakai

I have tried with JDK1.6.0_23 and JDK1.6.0_24 with clean tomcat 5.5.26 and 5.5.33

Is anyone has idea about this?

Many thx

2011-04-29 17:15:58,428 ERROR main org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/portal] - Exception starting filter sakai.request
java.lang.NumberFormatException: For input string: "30 "
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Long.parseLong(Long.java:419)
at java.lang.Long.valueOf(Long.java:525)
at org.sakaiproject.util.RequestFilter.init(RequestFilter.java:857)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3666)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4258)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:634)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:561)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:496)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1203)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
2011-04-29 17:15:58,428 ERROR main org.apache.catalina.core.StandardContext - Error filterStart
2011-04-29 17:15:58,428 ERROR main org.apache.catalina.core.StandardContext - Context [/portal] startup failed due to previous errors
2011-04-29 17:15:58,428 INFO main org.sakaiproject.util.ResponseHeaderFilter - DESTROY
2011-04-29 17:15:58,485 INFO main org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/xsl-portal] - Initializing Spring root WebApplicationContext
2011-04-29 17:15:58,502 INFO main org.apache.catalina.loader.WebappClassLoader - Illegal access: this web application instance has been stopped already. Could not load org/sakaiproject/memory/api/ehcache.xml. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
2011-04-29 17:15:58,502 WARN main org.sakaiproject.site.impl.DbSiteService - init():
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'db.cache.SAKAI_SITE_PROPERTY' defined in file [/usr/java/lmes28/apache-tomcat-5.5.33/components/sakai-kernel-component/WEB-INF/db-components.xml]: Cannot resolve reference to bean 'org.sakaiproject.memory.api.MemoryService.cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.memory.api.MemoryService.cacheManager' defined in file [/usr/java/lmes28/apache-tomcat-5.5.33/components/sakai-kernel-component/WEB-INF/memory-components.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [org/sakaiproject/memory/api/ehcache.xml] cannot be opened because it does not exist
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.sakaiproject.util.NoisierDefaultListableBeanFactory.getBean(NoisierDefaultListableBeanFactory.java:114)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:254)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.sakaiproject.util.NoisierDefaultListableBeanFactory.getBean(NoisierDefaultListableBeanFactory.java:114)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy$CglibSubclassCreator$LookupOverrideMethodInterceptor.intercept(CglibSubclassingInstantiationStrategy.java:156)
at org.sakaiproject.site.impl.DbSiteService$$EnhancerByCGLIB$$112428a9.sqlService(<generated>)
at org.sakaiproject.site.impl.DbSiteService.init(DbSiteService.java:155)



 Comments   
Comment by David Horwitz [ 03-May-2011 ]

not reproducible on any of the qa environments that build using java 1.6 - please raise on sakai-dev

Comment by Kenneth Chan (Inactive) [ 04-May-2011 ]

Seems it is DB problem.
When i don't create the sakai.properties under /tomcat/sakai and just run Sakai Default DB. No error is found from Tomcat.

But when I set to use Oracle 9i as DB, will has this error

2011-05-04 16:02:44,256 INFO main org.sakaiproject.sitestats.impl.StatsAggregateJobImpl - StatsAggregateJobImpl.init()
2011-05-04 16:02:44,492 ERROR main org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/ops-glossary] - Exception starting filter org.sakaiproject.util.RequestFilter
java.lang.NumberFormatException: For input string: "30 "
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Long.parseLong(Long.java:419)

Any idea please?

Generated at Fri Nov 16 06:30:20 CST 2018 using JIRA 7.5.0#75005-sha1:fd8c849d4e278dd8bbaccc61e707a716ad697024.