Announcement Announcement Module
Collapse
No announcement yet.
How to turn on the roo engine logging ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to turn on the roo engine logging ?

    Hi there,

    I have an issue when I try to generate GWT stuff for my project: the main problem is that I don't know what's happening under the hood. Manys files are created then undone and the last message is
    Undo create SRC_MAIN_WEBAPP/WEB-INF/spring
    String index out of range: -1

    In the logs the message is not better :-)
    persistence setup --database HYPERSONIC_PERSISTENT --provider HIBERNATE
    // [failed] gwt setup

    So I wanted to turn on the roo logging (i'm unders STS) and google didn't help this time...

    Thanks in advance

  • #2
    By the way I found this in the forum (without eh link to its reported issue)
    http://forum.springsource.org/showthread.php?t=92256

    I turned on the developement mode but the logs are not more verbose. And the result is the same throught the external console (so it's not exactly the same bug)

    roo> development mode
    Development mode set to true
    roo> gwt setup
    Created SRC_MAIN_WEBAPP/WEB-INF/spring
    Created SRC_MAIN_WEBAPP/WEB-INF/spring/webmvc-config.xml
    Created SRC_MAIN_WEBAPP/WEB-INF/web.xml
    Managed SRC_MAIN_WEBAPP/WEB-INF/web.xml
    Managed ROOT/pom.xml [Added dependency org.springframework:spring-web:${spring.version}]
    Managed ROOT/pom.xml [Added dependency org.springframework:spring-webmvc:${spring.version}]
    Managed ROOT/pom.xml [Added dependency org.springframework.webflow:spring-js-resources:2.2.0.RELEASE]
    Managed ROOT/pom.xml [Added dependency commons-digester:commons-digester:2.0]
    Managed ROOT/pom.xml [Added dependency commons-fileupload:commons-fileupload:1.2.1]
    Managed ROOT/pom.xml [Added dependency javax.servlet:jstl:1.2]
    Managed ROOT/pom.xml [Added dependency javax.el:el-api:1.0]
    Managed ROOT/pom.xml [Added dependency joda-time:joda-time:1.6]
    Managed ROOT/pom.xml [Added dependency javax.servlet.jsp:jsp-api:2.1]
    Managed ROOT/pom.xml
    Managed ROOT/pom.xml [Added dependency com.google.gwt:gwt-servlet:2.1.0]
    Managed ROOT/pom.xml [Added dependency com.google.gwt:gwt-user:2.1.0]
    Managed ROOT/pom.xml [Added dependency org.json:json:20090211]
    Managed ROOT/pom.xml [Added dependency com.googlecode.gwt.inject:gin:1.0]
    Managed ROOT/pom.xml [Added dependency xalan:xalan:2.7.1]
    Managed ROOT/pom.xml
    Managed SRC_MAIN_WEBAPP/WEB-INF/web.xml
    Managed SRC_MAIN_WEBAPP/WEB-INF/spring/webmvc-config.xml
    Created SRC_MAIN_JAVA/fr/ploisir/client
    Created SRC_MAIN_JAVA/fr/ploisir/ApplicationScaffold.gwt.xml
    Created SRC_MAIN_JAVA/fr/ploisir/client/managed/request
    Created SRC_MAIN_JAVA/fr/ploisir/client/scaffold
    Created SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ScaffoldDesktopShell.java
    Created SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ScaffoldMobileShell.java.orig
    Created SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ScaffoldMobileShell.java
    .......etc...
    Created SRC_MAIN_JAVA/fr/ploisir/client/scaffold/activity/IsScaffoldMobileActivity.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/activity/IsScaffoldMobileActivity.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/activity
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/managed/activity
    Undo create SRC_MAIN_WEBAPP/ApplicationScaffold.html
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/style/images/rooLogo.png
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/style/images/backButton.png
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/style/images/userIcon.png
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/style/images/gwtLogo.png
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/style/images/titleGradient.png
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/style/images/selectionGradient.png
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/style/images/openGradient.png
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/style/images/groupIcon.png
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/style/images/createButton.png
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/style/images
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/place/ProxyListPlace.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/place/PlaceHistoryFactory.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/place/CollectionRenderer.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/place/ProxyPlaceToListPlace.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/place/ProxyListPlacePicker.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/place/AbstractProxyEditActivity.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/place/ScaffoldPlaceHistoryMapper.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/place/CreateAndEditProxy.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/place/ProxyDetailsView.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/place/FindAndEditProxy.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/place/ProxyPlace.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/place/AbstractProxyListView.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/place/AbstractProxyListActivity.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/place/ProxyEditView.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/place/ProxyListView.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/place
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ioc/DesktopInjector.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ioc/MobileInjectorWrapper.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ioc/DesktopInjectorWrapper.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ioc/MobileInjector.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ioc/ScaffoldModule.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ioc/InjectorWrapper.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ioc/ScaffoldInjector.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ioc
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/style/mobile.css
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/style/MobileListResources.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/style
    Undo create SRC_MAIN_JAVA/fr/ploisir/server
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/managed/ui
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ui/BigDecimalParser.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ui/FloatBox.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ui/CollectionRenderer.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ui/CharParser.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ui/BigDecimalBox.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ui/ShortParser.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ui/ByteBox.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ui/ShortBox.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ui/BigDecimalRenderer.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ui/FloatParser.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ui/CharBox.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ui/MobileProxyListView.ui.xml
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ui/ShortRenderer.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ui/FloatRenderer.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ui/CharRenderer.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ui/ByteRenderer.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ui/ByteParser.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ui/MobileProxyListView.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ui
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/Scaffold.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ScaffoldMobileApp.java.orig
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ScaffoldApp.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ScaffoldMobileShell.ui.xml
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ScaffoldMobileApp.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ScaffoldDesktopApp.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ScaffoldDesktopShell.ui.xml
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ScaffoldMobileShell.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ScaffoldMobileShell.java.orig
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold/ScaffoldDesktopShell.java
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/scaffold
    Undo create SRC_MAIN_JAVA/fr/ploisir/client/managed/request
    Undo create SRC_MAIN_JAVA/fr/ploisir/ApplicationScaffold.gwt.xml
    Undo create SRC_MAIN_JAVA/fr/ploisir/client
    Undo manage SRC_MAIN_WEBAPP/WEB-INF/spring/webmvc-config.xml
    Undo manage SRC_MAIN_WEBAPP/WEB-INF/web.xml
    Undo manage ROOT/pom.xml
    Undo manage SRC_MAIN_WEBAPP/WEB-INF/web.xml
    Undo create SRC_MAIN_WEBAPP/WEB-INF/web.xml
    Undo create SRC_MAIN_WEBAPP/WEB-INF/spring/webmvc-config.xml
    Undo create SRC_MAIN_WEBAPP/WEB-INF/spring
    String index out of range: -1
    roo>

    Best regards,
    Zied Hamdi

    Comment


    • #3
      I found a unlocking solution:

      The GWT code is correcttly generated when I put my domain objects either under client or server but not under shared. Knowing that a class not found exception is thrown on runtime when to objects are under server (they are used by the generated client code).

      It is anyway weired that the generator is so rigid! ??

      Can you please also tell me how to trun on roo's internals logging so that I can loose less time on resolving next time :-). This could be a useful general information for many people

      Best regards,
      Zied Hamdi

      Comment


      • #4
        development mode to enable stack trace

        Hello,

        was also looking for a way for roo to explain why it was giving me this error

        java.lang.ClassCastException: org.springframework.roo.model.EnumDetails cannot be cast to java.lang.Integer

        found (in the roo console)

        development mode

        and then presto i got a full stacktrace.

        Hope it helps some one

        Comment

        Working...
        X