Announcement Announcement Module
Collapse
No announcement yet.
Spring Roo 1.2.0.RC1 released Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Roo 1.2.0.RC1 released

    We’re happy to announce the availability of Spring Roo 1.2.0.RC1 (download here). Spring Roo is a rapid application development tool for Java, allowing you to create full enterprise applications in just minutes.

    Please see my blog post with all the details about the new features.

    NOTE: There have been many changes to the code and some annotations have been removed or have moved to different packages. To use RC1 in an existing Roo project simply rename all instances of @RooEntity to @RooJpaActiveRecord and organise the imports using STS or Eclipse on all your project code.

    Spring Roo has a very active community and responsive development team, so if you have any questions on this new release, please feel free to ask the Spring Roo engineering team on the Community Forum. You'll also find us on Twitter - either follow @SpringRoo or just include #SpringRoo in your tweets.

    We hope you enjoy this new release.

  • #2
    Hi

    Error : when executing commands : Internal Error


    java.lang.AbstractMethodError: org.springframework.roo.shell.eclipse.EclipseShell .setPromptPath(Ljava/lang/String;Z)V
    at org.springframework.roo.classpath.converters.LastU sedImpl.setPromptPath(LastUsedImpl.java:86)
    at org.springframework.roo.classpath.converters.LastU sedImpl.setType(LastUsedImpl.java:67)
    at org.springframework.roo.classpath.converters.JavaT ypeConverter.convertFromText(JavaTypeConverter.jav a:131)
    at org.springframework.roo.classpath.converters.JavaT ypeConverter.convertFromText(JavaTypeConverter.jav a:43)
    at org.springframework.roo.shell.SimpleParser.parse(S impleParser.java:194)
    at org.springframework.roo.shell.AbstractShell.execut eCommand(AbstractShell.java:198)
    at org.springframework.roo.shell.eclipse.EclipseShell .executeCommand(EclipseShell.java:102)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.util.ReflectionUtils.invokeMet hod(ReflectionUtils.java:191)
    at org.springframework.ide.eclipse.core.java.ClassUti ls.invokeMethod(ClassUtils.java:136)
    at org.springframework.ide.eclipse.core.java.ClassUti ls.invokeMethod(ClassUtils.java:96)
    at org.springframework.roo.shell.eclipse.Bootstrap.ex ecute(Bootstrap.java:83)
    at com.springsource.sts.roo.ui.internal.RooShellTab$C ommandJob.run(RooShellTab.java:560)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.j ava:54)


    +++++++++++++++++++++
    SpringSource Tool Suite
    Version: 2.8.1.RELEASE
    Build Id: 201111221000

    Copyright (c) 2007 - 2011 SpringSource, a division of VMware, Inc.
    All rights reserved. Visit http://springsource.com/products/sts

    This product includes software developed by the
    Apache Software Foundation http://www.apache.org


    +++++++++++++++++++++


    / __ \/ __ \/ __ \
    / /_/ / / / / / / /
    / _, _/ /_/ / /_/ /
    /_/ |_|\____/\____/ 1.2.0.RC1 [rev dcaa483]


    Welcome to Spring Roo. For assistance press CTRL+SPACE or type "hint" then hit ENTER.

    +++++++++++++++
    O/S

    Ubuntu - Linux for Human Beings!
    You are using Ubuntu 10.04 LTS
    - the Lucid Lynx - released in April 2010 and supported until April 2013.
    +++++++++++++++++++++++++++

    Commands Entered in the STS -- shell script window
    ++++++++++++++++++++++++++++++++++

    / __ \/ __ \/ __ \
    / /_/ / / / / / / /
    / _, _/ /_/ / /_/ /
    /_/ |_|\____/\____/ 1.2.0.RC1 [rev dcaa483]


    Welcome to Spring Roo. For assistance press CTRL+SPACE or type "hint" then hit ENTER.

    roo> jpa setup --database MYSQL --provider HIBERNATE
    Created SPRING_CONFIG_ROOT/database.properties
    Please update your database details in src/main/resources/META-INF/spring/database.properties.
    Updated SPRING_CONFIG_ROOT/applicationContext.xml
    Created SRC_MAIN_RESOURCES/META-INF/persistence.xml
    Updated ROOT/pom.xml [[36madded dependencies[0m mysql:mysql-connector-java:5.1.18, org.hibernate:hibernate-core:3.6.8.Final, org.hibernate:hibernate-entitymanager:3.6.8.Final, org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.1.Final, org.hibernate:hibernate-validator:4.2.0.Final, javax.validation:validation-api:1.0.0.GA, cglib:cglib-nodep:2.2.2, javax.transaction:jta:1.1, org.springframework:spring-jdbc:${spring.version}, org.springframework:spring-orm:${spring.version}, commons-pool:commons-pool:1.5.4, commons-dbcp:commons-dbcp:1.3]
    roo> enum type --class ~.reference.ProductType
    Last edited by placidus; Nov 24th, 2011, 06:05 PM.

    Comment


    • #3
      I don't see that issue - works OK for me. However, log a bug for us to look at it. But please detail the steps to reproduce it, your environment, versions etc, and the exact Roo script to use.
      Alan

      Comment


      • #4
        Hi

        Mysql driver installation error :

        +++++++++++++++++++++
        SpringSource Tool Suite
        Version: 2.8.1.RELEASE
        Build Id: 201111221000

        Copyright (c) 2007 - 2011 SpringSource, a division of VMware, Inc.
        All rights reserved. Visit http://springsource.com/products/sts

        This product includes software developed by the
        Apache Software Foundation http://www.apache.org


        +++++++++++++++++++++
        ____ ____ ____
        / __ \/ __ \/ __ \
        / /_/ / / / / / / /
        / _, _/ /_/ / /_/ /
        /_/ |_|\____/\____/ 1.2.0.BUILD-SNAPSHOT [rev 09a5d10]


        Welcome to Spring Roo. For assistance press CTRL+SPACE or type "hint" then hit ENTER.
        roo> database introspect --schema test
        Located add-on that may offer this JDBC driver
        1 found, sorted by rank; T = trusted developer; R = Roo 1.2 compatible
        ID T R DESCRIPTION -------------------------------------------------------------
        01 Y Y 5.1.17.0020 #jdbcdriver driverclass:com.mysql.jdbc.Driver. This...
        --------------------------------------------------------------------------------
        [HINT] use 'addon info id --searchResultId ..' to see details about a search result
        [HINT] use 'addon install id --searchResultId ..' to install a specific search result, or
        [HINT] use 'addon install bundle --bundleSymbolicName TAB' to install a specific add-on version
        JDBC driver not available for 'com.mysql.jdbc.Driver'
        roo> addon install id --searchResultId 01
        roo> Target resource(s):
        -------------------
        Spring Roo - Wrapping - mysql-connector-java (5.1.18.0001)

        Required resource(s):
        ---------------------
        slf4j-api (1.6.1)
        slf4j-nop (1.6.1)

        Deploying...done.

        roo>
        roo>

        +++++++++++++++
        O/S

        Ubuntu - Linux for Human Beings!
        You are using Ubuntu 10.04 LTS
        - the Lucid Lynx - released in April 2010 and supported until April 2013.
        +++++++++++++++++++++++++++



        INFO: roo>
        25/11/2011 3:20:25 PM org.springframework.roo.felix.FelixDelegator
        INFO: Target resource(s):
        -------------------
        Spring Roo - Wrapping - mysql-connector-java (5.1.18.0001)

        Required resource(s):
        ---------------------
        slf4j-api (1.6.1)
        slf4j-nop (1.6.1)

        Deploying...done.

        25/11/2011 3:20:25 PM org.springframework.roo.felix.JdkDelegatingLogList ener logNow
        SEVERE: [org.apache.felix.bundlerepository [4]] Resolver: Install error - slf4j.api
        org.apache.felix.log.LogException: java.lang.IllegalStateException: java.lang.IllegalStateException: Public key ID '0x00B5050F' not available from key server
        at org.springframework.roo.felix.pgp.PgpServiceImpl.i sResourceSignedBySignature(PgpServiceImpl.java:423 )
        at org.springframework.roo.felix.HttpPgpUrlStreamHand lerServiceImpl.openConnection(HttpPgpUrlStreamHand lerServiceImpl.java:100)
        at org.eclipse.osgi.framework.internal.protocol.URLSt reamHandlerProxy.openConnection(URLStreamHandlerPr oxy.java:112)
        at java.net.URL.openConnection(URL.java:945)
        at org.apache.felix.bundlerepository.impl.FileUtil.op enURL(FileUtil.java:199)
        at org.apache.felix.bundlerepository.impl.ResolverImp l.deploy(ResolverImpl.java:598)
        at org.apache.felix.bundlerepository.impl.ObrCommandI mpl._deploy(ObrCommandImpl.java:395)
        at org.apache.felix.bundlerepository.impl.ObrCommandI mpl.deploy(ObrCommandImpl.java:333)
        at org.apache.felix.bundlerepository.impl.ObrCommandI mpl.execute(ObrCommandImpl.java:119)
        at org.apache.felix.shell.impl.Activator$ShellService Impl.executeCommand(Activator.java:286)
        at org.springframework.roo.felix.FelixDelegator.perfo rm(FelixDelegator.java:256)
        at org.springframework.roo.felix.FelixDelegator.obrSt art(FelixDelegator.java:245)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.roo.support.util.ReflectionUti ls.invokeMethod(ReflectionUtils.java:191)
        at org.springframework.roo.process.manager.ProcessMan agerHostedExecutionStrategy$1.callback(ProcessMana gerHostedExecutionStrategy.java:49)
        at org.springframework.roo.process.manager.internal.D efaultProcessManager.doTransactionally(DefaultProc essManager.java:183)
        at org.springframework.roo.process.manager.internal.D efaultProcessManager.execute(DefaultProcessManager .java:146)
        at org.springframework.roo.process.manager.ProcessMan agerHostedExecutionStrategy.execute(ProcessManager HostedExecutionStrategy.java:47)
        at org.springframework.roo.shell.AbstractShell.execut eCommand(AbstractShell.java:204)
        at org.springframework.roo.shell.eclipse.EclipseShell .executeCommand(EclipseShell.java:102)
        at org.springframework.roo.addon.roobot.client.AddOnR ooBotOperationsImpl.installOrUpgradeAddOn(AddOnRoo BotOperationsImpl.java:254)
        at org.springframework.roo.addon.roobot.client.AddOnR ooBotOperationsImpl.installAddon(AddOnRooBotOperat ionsImpl.java:231)
        at org.springframework.roo.addon.roobot.client.AddOnR ooBotOperationsImpl.installAddOn(AddOnRooBotOperat ionsImpl.java:226)
        at org.springframework.roo.addon.roobot.client.AddOnC ommands.installId(AddOnCommands.java:82)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.roo.support.util.ReflectionUti ls.invokeMethod(ReflectionUtils.java:191)
        at org.springframework.roo.process.manager.ProcessMan agerHostedExecutionStrategy$1.callback(ProcessMana gerHostedExecutionStrategy.java:49)
        at org.springframework.roo.process.manager.internal.D efaultProcessManager.doTransactionally(DefaultProc essManager.java:183)
        at org.springframework.roo.process.manager.internal.D efaultProcessManager.execute(DefaultProcessManager .java:146)
        at org.springframework.roo.process.manager.ProcessMan agerHostedExecutionStrategy.execute(ProcessManager HostedExecutionStrategy.java:47)
        at org.springframework.roo.shell.AbstractShell.execut eCommand(AbstractShell.java:204)
        at org.springframework.roo.shell.eclipse.EclipseShell .executeCommand(EclipseShell.java:102)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.util.ReflectionUtils.invokeMet hod(ReflectionUtils.java:191)
        at org.springframework.ide.eclipse.core.java.ClassUti ls.invokeMethod(ClassUtils.java:136)
        at org.springframework.ide.eclipse.core.java.ClassUti ls.invokeMethod(ClassUtils.java:96)
        at org.springframework.roo.shell.eclipse.Bootstrap.ex ecute(Bootstrap.java:83)
        at com.springsource.sts.roo.ui.internal.RooShellTab$C ommandJob.run(RooShellTab.java:560)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.j ava:54)
        Caused by: org.apache.felix.log.LogException: java.lang.IllegalStateException: Public key ID '0x00B5050F' not available from key server
        at org.springframework.roo.felix.pgp.PgpServiceImpl.g etPublicKey(PgpServiceImpl.java:290)
        at org.springframework.roo.felix.pgp.PgpServiceImpl.i sResourceSignedBySignature(PgpServiceImpl.java:402 )
        ... 47 more
        Caused by: java.net.ConnectException: Connection timed out
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl .java:351)
        at java.net.PlainSocketImpl.connectToAddress(PlainSoc ketImpl.java:213)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.j ava:200)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:366)
        at java.net.Socket.connect(Socket.java:529)
        at java.net.Socket.connect(Socket.java:478)
        at sun.net.NetworkClient.doConnect(NetworkClient.java :163)
        at sun.net.http://www.http.HttpClient.openServe...ient.java:394)
        at sun.net.http://www.http.HttpClient.openServe...ient.java:529)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java :233)
        at sun.net.www.http.HttpClient.New(HttpClient.java:306)
        at sun.net.www.http.HttpClient.New(HttpClient.java:323)
        at sun.net.http://www.protocol.http.HttpURLConn...tion.java:970)
        at sun.net.http://www.protocol.http.HttpURLConn...tion.java:911)
        at sun.net.http://www.protocol.http.HttpURLConn...tion.java:836)
        at sun.net.http://www.protocol.http.HttpURLConn...ion.java:1172)
        at java.net.URL.openStream(URL.java:1010)
        at com.springsource.sts.roo.core.RooCoreActivator$2.o penConnection(RooCoreActivator.java:108)
        at org.springframework.roo.felix.pgp.PgpServiceImpl.g etPublicKey(PgpServiceImpl.java:287)
        ... 48 more
        25/11/2011 3:20:26 PM org.springframework.roo.shell.eclipse.EclipseShell executeCommand
        INFO: roo>
        25/11/2011 3:20:26 PM org.springframework.roo.shell.eclipse.EclipseShell executeCommand
        INFO: roo>
        25/11/2011 3:20:26 PM org.springframework.roo.addon.roobot.client.AddOnR ooBotOperationsImpl installAddon
        WARNING: Unable to install add-on: Spring Roo - Wrapping - mysql-connector-java [version: 5.1.17.0020]
        25/11/2011 3:20:26 PM org.springframework.roo.shell.eclipse.EclipseShell executeCommand
        INFO: roo>




        Still broke i think

        https://jira.springsource.org/browse/ROO-2759

        Comment


        • #5
          Multi Module Support

          Hi thanks for the new RC, great work.

          So far I've been using Roo 1.2.0.M1 for the domain-module in multi-module maven 3 project w/o trouble. Once I switched to Roo 1.2.0.RC1 I get an Exception as soon as I launch the Roo Shell, namely a java.lang.reflect.InvocationTargetException, Caused by: java.lang.IllegalArgumentException: Version is required (see stack trace further down). Debugging Roo it turns out that Roo, while building the Maven Model, comes across a build/plugins/plugin for which no version is defined locally. However, the version is defined in the pluginManagement section of the parent module. Nevertheless Roo seems to ignore that fact.

          Is there any step I'm missing while migrating to 1.2.0.RC1?

          Code:
          java.lang.reflect.InvocationTargetException
               at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
               at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
               at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
               at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
               at org.springframework.roo.project.maven.PomFactoryImpl.parseElements(PomFactoryImpl.java:100)
               at org.springframework.roo.project.maven.PomFactoryImpl.getInstance(PomFactoryImpl.java:68)
               at org.springframework.roo.project.PomManagementServiceImpl.parseUnparsedPoms(PomManagementServiceImpl.java:166)
               at org.springframework.roo.project.PomManagementServiceImpl.updatePomCache(PomManagementServiceImpl.java:140)
               at org.springframework.roo.project.PomManagementServiceImpl.getPomFromPath(PomManagementServiceImpl.java:84)
               at org.springframework.roo.project.MavenProjectMetadataProvider.onFileEvent(MavenProjectMetadataProvider.java:116)
               at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:350)
               at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanAll(PollingFileMonitorService.java:323)
               at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:181)
               at org.springframework.roo.process.manager.internal.DefaultProcessManager.backgroundPoll(DefaultProcessManager.java:128)
               at org.springframework.roo.process.manager.internal.DefaultProcessManager.timerBasedPoll(DefaultProcessManager.java:243)
               at org.springframework.roo.process.manager.internal.DefaultProcessManager$2.run(DefaultProcessManager.java:71)
               at java.lang.Thread.run(Thread.java:680)
           
               at org.springframework.roo.support.util.Assert.hasText(Assert.java:162)
               at org.springframework.roo.project.GAV.<init>(GAV.java:47)
               at org.springframework.roo.project.Plugin.<init>(Plugin.java:187)
               at org.springframework.roo.project.Plugin.<init>(Plugin.java:159)
               ... 17 more

          Comment


          • #6
            Roo does not consider the pluginManagement section at present. Until then, you will need to add a version number to plugins.

            Comment


            • #7
              hi

              refer to post above --->> Roo mysql addon installation.
              Nov 25th, 2011 03:18 PM

              This is some thing related to network issue. [it's not clear in stack trace it's something related to network]


              If i explain my environment : i used Mac laptop - i got above error when i work in Office [ My work office network ]

              then i tried to connect to my wireless network disconnecting from office network.
              addon install id --searchResultId 01
              and it's work fine with out any issue.


              now all good.


              I have seen this issue lots of uses experiencing.
              keen to find out more on this.

              Placidus.

              Comment


              • #8
                Exception while stating the roo with exiting scaffold

                OS:Ubuntu 11.10

                ____ ____ ____
                / __ \/ __ \/ __ \
                / /_/ / / / / / / /
                / _, _/ /_/ / /_/ /
                /_/ |_|\____/\____/ 1.2.0.RC1 [rev dcaa483]


                Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.
                @jeff_markham: @BrianMMcClain Nice. Play with @SpringRoo a little. You can reverse engineer a db and have GWT | MVC UI with a few commands.
                InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
                roo> hint
                InvocationTargetException at sun.reflect.GeneratedConstructorAccessor11.newInst ance(Unknown Source)

                -Santosh

                Comment


                • #9
                  hi santosh

                  which JDK are you using --- is it OpenJDK
                  then try --> Sun-Java jdk

                  Placidus.

                  Comment


                  • #10
                    Sorry, I should have added this information in original post

                    I am using sun JDK

                    Comment


                    • #11
                      Hi santosh

                      can you post full stack trace , STS error log

                      please

                      Placidus.

                      Comment


                      • #12
                        I get the same problem using Roo from the command line:

                        InvocationTargetException at sun.reflect.GeneratedConstructorAccessor12.newInst ance(Unknown Source)

                        I 'fixed' an earlier problem with a missing plugin version number which caused InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)

                        Is there a way in Roo to give you more information (such as an error log)?

                        Comment


                        • #13
                          I have the same problem too. How can I get the error logs from roo?

                          Comment


                          • #14
                            Hi khk.

                            if you used STS
                            --> Windows -> show view -> other -> general -> error log.

                            if you used command line it should show information i shell prompt.


                            Placidus.

                            Comment


                            • #15
                              Hi placidus, thanks for reply. My error log in STS is empty (I cleared the logs before opening the Roo console). And this is the output in the roo console.

                              ____ ____ ____
                              / __ \/ __ \/ __ \
                              / /_/ / / / / / / /
                              / _, _/ /_/ / /_/ /
                              /_/ |_|\____/\____/ 1.2.0.RC1 [rev dcaa483]


                              Welcome to Spring Roo. For assistance press CTRL+SPACE or type "hint" then hit ENTER.
                              roo> InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)

                              Comment

                              Working...
                              X