Announcement Announcement Module
Collapse
No announcement yet.
StackOverflowError for Spring roo Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • StackOverflowError for Spring roo

    Hi,

    I am getting the below error when executing commands on the Roo shell. Please advise.

    Thanks,

    Karen

    Exception in thread "Spring Roo JLine Shell" java.lang.StackOverflowError
    at java.lang.String.indexOf(String.java:1533)
    at java.net.URLStreamHandler.parseURL(URLStreamHandle r.java:144)
    at java.net.URL.<init>(URL.java:612)
    at java.net.URL.<init>(URL.java:480)
    at sun.misc.URLClassPath$Loader.findResource(URLClass Path.java:473)
    at sun.misc.URLClassPath.findResource(URLClassPath.ja va:162)
    at java.net.URLClassLoader$2.run(URLClassLoader.java: 379)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findResource(URLClassLoade r.java:376)
    at java.lang.ClassLoader.getResource(ClassLoader.java :977)
    at java.lang.ClassLoader.getResourceAsStream(ClassLoa der.java:1159)
    at javax.xml.parsers.SecuritySupport$4.run(SecuritySu pport.java:94)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.xml.parsers.SecuritySupport.getResourceAsStr eam(SecuritySupport.java:87)
    at javax.xml.parsers.FactoryFinder.findJarServiceProv ider(FactoryFinder.java:248)
    at javax.xml.parsers.FactoryFinder.find(FactoryFinder .java:221)
    at javax.xml.parsers.SAXParserFactory.newInstance(SAX ParserFactory.java:126)
    at org.springframework.roo.addon.dbre.model.DatabaseX mlUtils.readDatabase(DatabaseXmlUtils.java:43)
    at org.springframework.roo.addon.dbre.model.DbreModel ServiceImpl.getDatabase(DbreModelServiceImpl.java: 100)
    at com.chase.es.parameters.roo.addon.operations.impl. KeyFieldsFinderOperationsImpl.getTableForEntity(Ke yFieldsFinderOperationsImpl.java:200)
    at com.chase.es.parameters.roo.addon.operations.impl. KeyFieldsFinderOperationsImpl.lookupKeyFieldInDbre BySymbolName(KeyFieldsFinderOperationsImpl.java:13 7)
    at com.chase.es.parameters.roo.addon.operations.impl. KeyFieldsFinderOperationsImpl.populateFieldTypeMap ForFieldSymbolNames(KeyFieldsFinderOperationsImpl. java:119)
    at com.chase.es.parameters.roo.addon.operations.impl. KeyFieldsFinderOperationsImpl.getKeyFields(KeyFiel dsFinderOperationsImpl.java:107)

  • #2
    My version of Roo is spring-roo-1.2.0.M1

    Comment


    • #3
      Please use 1.2.2.RELEASE

      Comment


      • #4
        Alan,

        Thanks. Version 1.2.1 uses spring 3.1. We have quite a lot of code and it would be quite an effort to convert it all to Spring 3.1. Is it possible to configure Roo to use a specific Spring version? If not, do you have any other recommendations as we do not have the resources/time to refactor all the code to Spring 3.1 at this time.

        Thanks,

        Karen

        Comment


        • #5
          What are your environment settings? Is this in STS version? or in terminal?

          What about 1.2.RELEASE?

          Comment


          • #6
            Environment settings are below. This is in a terminal. I launched roo outside of STS because STS was hanging. As for 1.2 there are also quite a few changes that have been made that result in modification to the generated code. However, I haven't tried the command on this version to see if I get the some issue.


            SSH_AGENT_PID=1578
            GPG_AGENT_INFO=/tmp/keyring-SUJlft/gpg:0:1
            TERM=xterm
            SHELL=/bin/bash
            XDG_SESSION_COOKIE=033d6353d4c35ecc046499330000000 c-1338830490.350658-1294073113
            WINDOWID=46148880
            GNOME_KEYRING_CONTROL=/tmp/keyring-SUJlft
            GTK_MODULES=canberra-gtk-module:canberra-gtk-module
            USER=i026526
            http_proxy=http://dmzohproxy.bankone.net:8080/
            LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00i=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01: or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow =34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:* .arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*. tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01 ;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*. bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz =01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=0 1;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01; 31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35 :*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:* .tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.t iff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.m ng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpe g=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4= 01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01 ;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35 :*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35: *.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xw d=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv= 01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00 ;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00; 36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36 :*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*. spx=00;36:*.xspf=00;36:
            SSH_AUTH_SOCK=/tmp/keyring-SUJlft/ssh
            ftp_proxy=ftp://dmzohproxy.bankone.net:8080/
            SESSION_MANAGER=local/xeon-pc-2:@/tmp/.ICE-unix/1537,unix/xeon-pc-2:/tmp/.ICE-unix/1537
            USERNAME=i026526
            DEFAULTS_PATH=/usr/share/gconf/gnome-classic.default.path
            XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome-classic:/etc/xdg
            PATH=/usr/local/bin:/usr/bin:/bin:/usr/games://home/i026526/Downloads/jdk1.6.0_18/bin
            DESKTOP_SESSION=gnome-classic
            PWD=/home/i026526/Documents/Projects/Parameters
            JAVA_HOME=/home/i026526/Downloads/jdk1.6.0_18
            GNOME_KEYRING_PID=1520
            LANG=en_US.UTF-8
            GDM_LANG=en_US
            MANDATORY_PATH=/usr/share/gconf/gnome-classic.mandatory.path
            UBUNTU_MENUPROXY=libappmenu.so
            https_proxy=https://dmzsslproxy.bankone.net:8443/
            GDMSESSION=gnome-classic
            SHLVL=1
            HOME=/home/i026526
            LANGUAGE=en_US:en
            GNOME_DESKTOP_SESSION_ID=this-is-deprecated
            LOGNAME=i026526
            XDG_DATA_DIRS=/usr/share/gnome-classic:/usr/share/gnome:/usr/local/share/:/usr/share/
            DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-uJLlgifcPc,guid=374830613784a56a1e14002b0000001c
            LESSOPEN=| /usr/bin/lesspipe %s
            WINDOWPATH=7
            DISPLAY=:0
            XDG_CURRENT_DESKTOP=GNOME
            LESSCLOSE=/usr/bin/lesspipe %s %s
            COLORTERM=gnome-terminal
            XAUTHORITY=/var/run/gdm/auth-for-i026526-vNLNQm/database
            _=/usr/bin/env

            Comment

            Working...
            X