Results 1 to 7 of 7

Thread: Spring 1.1.2 JDK version requirement

  1. #1
    Join Date
    Sep 2004
    Location
    Leuven, Belgium
    Posts
    1,853

    Default Spring 1.1.2 JDK version requirement

    Could somebody give the exact JDK version requirements of the Spring 1.1.2 release?

    The thing is that I get the following error on a WebSphere 5.0 server (J2RE 1.3.1 IBM Windows 32 build cn131-20021107 (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM):

    [18/11/04 15:46:47:398 CET] 9ce4293 DispatcherSer E org.springframework.web.servlet.DispatcherServlet TRAS0014I: The following exception was logged org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'itemListFlow' defined in ServletContext resource [/WEB-INF/itemList-servlet.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: java.lang.StringBuffer: method indexOf(Ljava/lang/StringI not found
    java.lang.NoSuchMethodError: java.lang.StringBuffer: method indexOf(Ljava/lang/StringI not found
    at org.springframework.core.io.AbstractPathResolvingP ropertyEditor.resolvePath(AbstractPathResolvingPro pertyEditor.java:55)
    at org.springframework.core.io.ResourceEditor.setAsTe xt(ResourceEditor.java:59)
    at org.springframework.beans.BeanWrapperImpl.doTypeCo nversionIfNecessary(BeanWrapperImpl.java:874)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:711)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:617)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:758)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:785)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:774)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:784)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:601)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:258)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:193)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:240)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:163)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:236)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:304)
    at org.springframework.web.context.support.XmlWebAppl icationContext.refresh(XmlWebApplicationContext.ja va:131)
    at org.springframework.web.servlet.FrameworkServlet.c reateWebApplicationContext(FrameworkServlet.java:2 81)
    at org.springframework.web.servlet.FrameworkServlet.i nitWebApplicationContext(FrameworkServlet.java:228 )
    at org.springframework.web.servlet.FrameworkServlet.i nitServletBean(FrameworkServlet.java:199)
    at org.springframework.web.servlet.HttpServletBean.in it(HttpServletBean.java:103)
    at javax.servlet.GenericServlet.init(GenericServlet.j ava:258)
    With Spring 1.1.1 this worked perfectly. So it seems that you now need JDK 1.4 iso 1.3?

    Should this be reported in JIRA as a bug?

    Erwin

  2. #2
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    Erwin,

    This is a problem with Spring 1.1.2 only. It has been fixed in CVS and will be released in version 1.1.3.

    Rob

  3. #3
    Join Date
    Dec 2004
    Location
    MEXICO
    Posts
    11

    Default Re: Spring 1.1.2 JDK version requirement

    Quote Originally Posted by ev9d9
    Could somebody give the exact JDK version requirements of the Spring 1.1.2 release?

    The thing is that I get the following error on a WebSphere 5.0 server (J2RE 1.3.1 IBM Windows 32 build cn131-20021107 (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM):

    [18/11/04 15:46:47:398 CET] 9ce4293 DispatcherSer E org.springframework.web.servlet.DispatcherServlet TRAS0014I: The following exception was logged org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'itemListFlow' defined in ServletContext resource [/WEB-INF/itemList-servlet.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: java.lang.StringBuffer: method indexOf(Ljava/lang/StringI not found
    java.lang.NoSuchMethodError: java.lang.StringBuffer: method indexOf(Ljava/lang/StringI not found
    at org.springframework.core.io.AbstractPathResolvingP ropertyEditor.resolvePath(AbstractPathResolvingPro pertyEditor.java:55)
    at org.springframework.core.io.ResourceEditor.setAsTe xt(ResourceEditor.java:59)
    at org.springframework.beans.BeanWrapperImpl.doTypeCo nversionIfNecessary(BeanWrapperImpl.java:874)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:711)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:617)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:758)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:785)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:774)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:784)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:601)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:258)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:193)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:240)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:163)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:236)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:304)
    at org.springframework.web.context.support.XmlWebAppl icationContext.refresh(XmlWebApplicationContext.ja va:131)
    at org.springframework.web.servlet.FrameworkServlet.c reateWebApplicationContext(FrameworkServlet.java:2 81)
    at org.springframework.web.servlet.FrameworkServlet.i nitWebApplicationContext(FrameworkServlet.java:228 )
    at org.springframework.web.servlet.FrameworkServlet.i nitServletBean(FrameworkServlet.java:199)
    at org.springframework.web.servlet.HttpServletBean.in it(HttpServletBean.java:103)
    at javax.servlet.GenericServlet.init(GenericServlet.j ava:258)
    With Spring 1.1.1 this worked perfectly. So it seems that you now need JDK 1.4 iso 1.3?

    Should this be reported in JIRA as a bug?

    Erwin
    Hi,

    I am getting the same error, but with WebLogic Server 6.1 (JDK131). I want to clearly state that I get this error with no code of mine: It appears when the WebLogic Server is starting up (and the web application with the ContextLoaderListener/ContextLoaderServlet is configured). I append my stacktrace so you can see it's quite the same error:

    <9/12/2004 09:30:42 AM PST> <Error> <HTTP> <[WebAppServletContext(9248159,acrone
    t,/acronet)] Error loading servlet: "context"
    java.lang.NoSuchMethodError: org.springframework.core.io.AbstractResource: metho
    d getDescription()Ljava/lang/String; not found
    at java.lang.String.valueOf(String.java:1947)
    at java.lang.StringBuffer.append(StringBuffer.java:37 0)
    at
    org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBea
    nDefinitions(XmlBeanDefinitionReader.java:117)
    at org.springframework.context.support.AbstractXmlApp licationContext.loa
    dBeanDefinitions(AbstractXmlApplicationContext.jav a:144)
    at org.springframework.context.support.AbstractXmlApp licationContext.ref
    reshBeanFactory(AbstractXmlApplicationContext.java :79)
    at org.springframework.context.support.AbstractApplic ationContext.refres
    h(AbstractApplicationContext.java:249)
    at org.springframework.web.context.support.XmlWebAppl icationContext.refr
    esh(XmlWebApplicationContext.java:131)
    at org.springframework.web.context.ContextLoader.crea teWebApplicationCon
    text(ContextLoader.java:167)
    at org.springframework.web.context.ContextLoader.init WebApplicationConte
    xt(ContextLoader.java:101)
    at org.springframework.web.context.ContextLoaderServl et.init(ContextLoad
    erServlet.java:80)
    at javax.servlet.GenericServlet.init(GenericServlet.j ava:258)
    at weblogic.servlet.internal.ServletStubImpl.createSe rvlet(ServletStubIm
    pl.java:731)
    at weblogic.servlet.internal.ServletStubImpl.createIn stances(ServletStub
    Impl.java:658)
    at weblogic.servlet.internal.ServletStubImpl.prepareS ervlet(ServletStubI
    mpl.java:603)
    at weblogic.servlet.internal.WebAppServletContext.pre loadServlet(WebAppS
    ervletContext.java:2360)
    at weblogic.servlet.internal.WebAppServletContext.pre loadServlets(WebApp
    ServletContext.java:2301)
    at weblogic.servlet.internal.HttpServer.preloadServle ts(HttpServer.java:
    558)
    at weblogic.servlet.internal.WebService.preloadServle ts(WebService.java:
    450)
    at weblogic.t3.srvr.ServletInitRunner.run(ServletInit Runner.java:49)
    at java.lang.Thread.run(Thread.java:484)
    >
    javax.servlet.ServletException: Servlet class: 'org.springframework.web.context.
    ContextLoaderServlet' could not be handled by the ClassLoader
    at weblogic.servlet.internal.ServletStubImpl.prepareS ervlet(ServletStubI
    mpl.java:637)
    at weblogic.servlet.internal.WebAppServletContext.pre loadServlet(WebAppS
    ervletContext.java:2360)
    at weblogic.servlet.internal.WebAppServletContext.pre loadServlets(WebApp
    ServletContext.java:2301)
    at weblogic.servlet.internal.HttpServer.preloadServle ts(HttpServer.java:
    558)
    at weblogic.servlet.internal.WebService.preloadServle ts(WebService.java:
    450)
    at weblogic.t3.srvr.ServletInitRunner.run(ServletInit Runner.java:49)
    at java.lang.Thread.run(Thread.java:484)
    =============== Initializing Logger ======================
    <9/12/2004 09:30:43 AM PST> <Notice> <WebLogicServer> <ListenThread listening on
    port 7501>
    <9/12/2004 09:30:44 AM PST> <Notice> <WebLogicServer> <Started WebLogic Admin Se
    rver "portalServer" for domain "portalDomain" running in Production Mode>

    Thanks for your attention

    Carlos Morales

  4. #4
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    Carlos,

    As of Spring 1.1.2, certain features in the core require JDK 1.4. However, this will be fixed in the next release, 1.1.3, which is due any day now.

    Rob

  5. #5
    Join Date
    Dec 2004
    Location
    MEXICO
    Posts
    11

    Default THANK YOU!!

    Quote Originally Posted by robh
    Carlos,

    As of Spring 1.1.2, certain features in the core require JDK 1.4. However, this will be fixed in the next release, 1.1.3, which is due any day now.

    Rob
    Hi robh,

    I have noticed that you answered to both of my posts relating this error. I want to thank you for your kind attention and time.

    I downloaded the 1.1.3 from the CVS (spring-framework-1.1.3-dev-build.167-20041209.zip). I tried to use it but the same exception is thrown.

    Anyway, thank you again...

    Carlos D. Morales Durán

  6. #6
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    Carlos,

    I'll look into this further. I cannot see any calls to unknown method in the code for that method but I will check further.

    Rob

  7. #7
    Join Date
    Aug 2004
    Location
    Linz, Austria
    Posts
    391

    Default

    Regarding the NoSuchMethodError on StringBuffer: This is definitely fixed in the 1.1.3 codebase, available as snapshots for a couple of weeks now. Please double-check that you've updated all the Spring jars in your project, to avoid old spring jars interfering.

    Regarding the NoSuchMethodError on AbstractResource: This is probably caused by multiple Spring jar versions lying around in your classpath. Please double-check that all your Spring jars in the classpath are from the same Spring distribution.

    Juergen

Similar Threads

  1. Spring MVC Web Framework versus Struts
    By biguniverse in forum Web Flow
    Replies: 27
    Last Post: Aug 29th, 2012, 03:57 AM
  2. Replies: 5
    Last Post: Aug 9th, 2008, 05:30 AM
  3. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM
  4. Replies: 4
    Last Post: Dec 8th, 2004, 02:07 PM
  5. Spring Framework 1.1.2 Released
    By Colin Sampaleanu in forum Announcements
    Replies: 0
    Last Post: Nov 14th, 2004, 06:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •