[OS-JIRA] Created: (CAY-133) Error Generating Classes

From: jir..bjectstyle.org
Date: Mon May 31 2004 - 09:32:46 EDT

  • Next message: jir..bjectstyle.org: "[OS-JIRA] Created: (CAY-134) Changing entity name should ask to change class name"

    Message:

      A new issue has been created in JIRA.

    ---------------------------------------------------------------------
    View the issue:

      http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-133

    Here is an overview of the issue:
    ---------------------------------------------------------------------
            Key: CAY-133
        Summary: Error Generating Classes
           Type: Bug

         Status: Assigned
       Priority: Minor

        Project: Cayenne
     Components:
                 CayenneModeler GUI
       Versions:
                 1.1 [DEV]

       Assignee: Andrus Adamchik
       Reporter: Michael Gentry

        Created: Mon, 31 May 2004 9:31 AM
        Updated: Mon, 31 May 2004 9:31 AM
    Environment: Cayenne 1.1M6 Modeler

    Description:
    If you run the modeler from a directory which isn't writable, you receive a dialog which says:

    "Error generating classes - [v.1.1M6 April 25 2004] Can't initialize VTL"

    Which didn't make any sense to me. I attempted again and got:

    "Error generating classes - null"

    After quitting the modeler, I went back to the shell to re-run it and saw the reason:

    Caused by: java.lang.Exception: Unable to configure AvalonLogSystem : java.io.FileNotFoundException: /usr/local/java/cayenne/cayenne-1.1M6/bin/velocity.log (Permission denied)

    I changed directories from "/usr/local/java/cayenne/cayenne-1.1M6/bin/" to someplace I could write and the ran the modeler as "/usr/local/java/cayenne/cayenne-1.1M6/bin/modeler.sh" and then I could generate classes.

    A) The initial message (and even worse, the null messages) aren't terribly helpful.
    B) Does the modeler really need to litter whatever directory you happen to run the modeler from with "velocity.log" files? If they have to be written, couldn't "/tmp" (or the Java equivalent) be used?

    ---------------------------------------------------------------------
    JIRA INFORMATION:
    This message is automatically generated by JIRA.

    If you think it was sent incorrectly contact one of the administrators:
       http://objectstyle.org/jira/secure/Administrators.jspa

    If you want more information on JIRA, or have a bug to report see:
       http://www.atlassian.com/software/jira



    This archive was generated by hypermail 2.0.0 : Mon May 31 2004 - 09:32:48 EDT