Announcement Announcement Module
No announcement yet.
Cannot run Roo with Jrockit 1.5 Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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(
    at org.springframework.beans.factory.config.Dependenc yDescriptor.getAnnotations(DependencyDescriptor.ja va:233)
    at org.springframework.beans.factory.annotation.Quali fierAnnotationAutowireCandidateResolver.getSuggest edValue(QualifierAnnotationAutowireCandidateResolv
    at istableBeanFactory.doResolveDependency(DefaultList
    at istableBeanFactory.resolveDependency(DefaultListab
    at torResolver.resolveAutowiredArgument(ConstructorRe
    at torResolver.createArgumentArray(ConstructorResolve
    at torResolver.autowireConstructor(ConstructorResolve
    at AutowireCapableBeanFactory.autowireConstructor(Abs
    at AutowireCapableBeanFactory.createBeanInstance(Abst
    at AutowireCapableBeanFactory.doCreateBean(AbstractAu
    at AutowireCapableBeanFactory.createBean(AbstractAuto
    at BeanFactory$1.getObject( 89)
    at ingletonBeanRegistry.getSingleton(DefaultSingleton
    at BeanFactory.doGetBean( )
    at BeanFactory.getBean(
    at istableBeanFactory.preInstantiateSingletons(Defaul
    at ationContext.finishBeanFactoryInitialization(Abstr
    at ationContext.refresh(AbstractApplicationContext.ja va:387)
    at plicationContext.<init>(ClassPathXmlApplicationCon
    at plicationContext.<init>(ClassPathXmlApplicationCon
    at org.springframework.roo.bootstrap.Bootstrap.<init> (
    at org.springframework.roo.bootstrap.Bootstrap.main(B

  • #2
    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
      Deleting the project and redeploying the scripts solved that. Apparently the pom.xml that was generated earlier had incorrect dependencies.


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