Results 1 to 4 of 4

Thread: Cannot run Roo with Jrockit 1.5

  1. #1

    Default Cannot run Roo with Jrockit 1.5

    I'm using the following:

    $ java -version
    java version "1.5.0_04"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
    BEA JRockit(R) (build R26.0.0-189-53463-1.5.0_04-20051122-2041-win-ia32, )

    But get this error:
    $ roo.bat
    Exception in thread "Main Thread" java.lang.ArrayIndexOutOfBoundsException
    at org.springframework.core.MethodParameter.getParame terAnnotations(MethodParameter.java:226)
    at org.springframework.beans.factory.config.Dependenc yDescriptor.getAnnotations(DependencyDescriptor.ja va:233)
    at org.springframework.beans.factory.annotation.Quali fierAnnotationAutowireCandidateResolver.getSuggest edValue(QualifierAnnotationAutowireCandidateResolv er.java:273)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.doResolveDependency(DefaultList ableBeanFactory.java:673)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.resolveDependency(DefaultListab leBeanFactory.java:666)
    at org.springframework.beans.factory.support.Construc torResolver.resolveAutowiredArgument(ConstructorRe solver.java:771)
    at org.springframework.beans.factory.support.Construc torResolver.createArgumentArray(ConstructorResolve r.java:691)
    at org.springframework.beans.factory.support.Construc torResolver.autowireConstructor(ConstructorResolve r.java:192)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireConstructor(Abs tractAutowireCapableBeanFactory.java:978)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBeanInstance(Abst ractAutowireCapableBeanFactory.java:880)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:479)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:450)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 89)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:286 )
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:188)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:543)
    at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:730)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:387)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:139)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:83)
    at org.springframework.roo.bootstrap.Bootstrap.<init> (Bootstrap.java:71)
    at org.springframework.roo.bootstrap.Bootstrap.main(B ootstrap.java:51)

  2. #2

    Default

    Seems that the problem was that JRockit was not installed as a public JRE. But now I get the following error when running the tests:

    $ java -version
    java version "1.5.0_12"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
    BEA JRockit(R) (build R27.4.0-90-89592-1.5.0_12-20070928-1715-windows-ia32, compiled mode)

    $ mvn -v
    Maven version: 2.0.9
    Java version: 1.5.0_12
    OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

    roo> perform tests
    [Main Thread] [INFO] Scanning for projects...
    .
    .
    .
    [Main Thread] org.apache.maven.surefire.booter.SurefireExecution Exception: unsupported classversion 50.0; nested exception is java.lang.UnsupportedClassVersionError: unsupported classversion 50.0
    [Main Thread] java.lang.UnsupportedClassVersionError: unsupportedClassversion 50.0
    .
    .
    .

  3. #3

    Default

    Deleting the project and redeploying the scripts solved that. Apparently the pom.xml that was generated earlier had incorrect dependencies.

  4. #4
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Glad you sorted it out. Although the fix it rather surprising given the exception indicates a startup time failure when Roo's bootstrap class was loading Spring Framework. End user project files wouldn't have even been read by that stage, so it's quite surprising. So if the problem reappears, we might need to do some further investigation.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

Posting Permissions

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