Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Could anyone tell me how to debug ROO please??

  1. #11
    Join Date
    Mar 2011
    Location
    Sofia, Bulgaria
    Posts
    22

    Default

    Have you published your public key using the command "gpg --keyserver hkp://pgp.mit.edu --send-keys <your-key-id>". I'm not sure if this is absolutely necessary, but it won't hurt.

    Is gpg executable on your path? Could you also try the other two ways to provide password of your key (as specified in readme.txt file, you can pass it as a parameter to Maven command line or in MAVEN_OPTS)?

  2. #12
    Join Date
    Feb 2011
    Location
    Oviedo (Spain)
    Posts
    28

    Default

    Thanks Ilian.

    Quote Originally Posted by Ilian Iliev View Post
    Have you published your public key using the command "gpg --keyserver hkp://pgp.mit.edu --send-keys <your-key-id>"
    I've published the key, but it doesn't work.

    Quote Originally Posted by Ilian Iliev View Post
    Could you also try the other two ways to provide password of your key (as specified in readme.txt file, you can pass it as a parameter to Maven command line or in MAVEN_OPTS)?
    Which is the README.txt? I attach you the README.txt that I found in GPG folders, is that the right file?
    Attached Files Attached Files

  3. #13
    Join Date
    Mar 2011
    Location
    Sofia, Bulgaria
    Posts
    22

    Default

    No, I meant the file readme.txt that comes with Roo source code (when you checkout Roo from Git repo, this file is in the root folder).

    Excerpt from it:
    Finally, every time you build you will be prompted for the password of
    your key. You have three options:

    * Type the password in every time
    * Include a -Dgpg.passphrase=thephrase argument when calling "mvn"
    * Edit ~/.bashrc and add -Dgpg.passphrase=thephrase to MAVEN_OPTS

  4. #14
    Join Date
    Feb 2011
    Location
    Oviedo (Spain)
    Posts
    28

    Default

    Thank you so much Ilian,

    I added -Dgpg.passphrase=thephrase to MAVEN_OPTS and this step worked.

    Then, it fails in the next step
    [INFO] Spring Roo - OSGi Start Level Control ............. FAILURE [1.328s]
    .
    The error that shows:
    [ERROR] Error building bundle org.springframework.roo:org.springframework.roo.st artlevel:bundle:1.1.3.BUILD-SNAPSHOT : Error in processing included file: D:/...../target/build-number.mf
    Did it happen to you?

  5. #15
    Join Date
    Mar 2011
    Location
    Sofia, Bulgaria
    Posts
    22

    Default

    Seems you don't have Git executable on the path.

    Check it by opening a new OS command console and executing 'git --version' (without quotes)

  6. #16
    Join Date
    Feb 2011
    Location
    Oviedo (Spain)
    Posts
    28

    Default

    You're right Ilian, thanks indeed.

  7. #17

    Default hanging with status COMPLETING_STARTUP

    Sorry for the delay in the reply. I tried a breakpoint like you said, but the hang is before the help command gets executed. I poked around in the debugger, and the problem seems to be that the DBRE addon is hanging during startup. I dug into the stack, and found the FelixDispatchQueue thread is hanging trying to open a connection to db.apache.org. This can be traced all the way down to the DBRE addon trying to retrieve the DTD for the .roo-dbre file, http://db.apache.org/torque/dtd/database_3_3.dtd. I'm behind a corporate firewall, so this just hangs.

    Apparently some magic happens in the Eclipse environment that makes this work, but I don't know how to get around this for debugging behind our firewall.

    EDIT: setting http.proxyHost and http.proxyPort in roo-dev.bat seems to have gotten around the problem.

    Quote Originally Posted by Ilian Iliev View Post
    Just to eliminate some possibilities, could you:

    • Try with a newer 1.1.3.BUILD-SNAPSHOT build.
    • Attach with a debugger, set a breakpoint to 'help' command entry point and check whether the hang will happen after you reach this entry point or somewhere after it.
      The entry point for 'help' command is in project 'org.springframework.roo.shell.osgi', class 'SimpleParserComponent', method 'obtainHelp'.

    If you reach the breakpoint in obtainHelp() method, then you can try to debug to to find where the hang happens by stepping-in the code.
    Last edited by dsp; Mar 11th, 2011 at 01:56 PM.

  8. #18
    Join Date
    May 2006
    Location
    Madrid
    Posts
    382

    Default

    This is a great post and the Ilian Iliev's response is terrific.

    I appreciate it a lot.

  9. #19
    Join Date
    Nov 2011
    Posts
    1

    Default Thanks for the instructions

    Thanks a lot for the instructions, this information is missing in the official documentation or I wasn't able to find it.

    Best regards

    max

Posting Permissions

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