Announcement Announcement Module
Collapse
No announcement yet.
Spring 1.1.2 JDK version requirement Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      Re: Spring 1.1.2 JDK version requirement

      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

      Comment


      • #4
        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

        Comment


        • #5
          THANK YOU!!

          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

          Comment


          • #6
            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

            Comment


            • #7
              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

              Comment

              Working...
              X