[OS-JIRA] Created: (WOL-986) Entity modeler's SQL generation doesn't work with ERPrototypes NSJarBundle Frameworks

From: Greg.Brown (JIRA) ("Greg.Brown)
Date: Mon Mar 30 2009 - 08:49:17 EDT

  • Next message: Marcus Breier: "trouble using ant task "frameworks" with woproject.jar provided by WOLips 3.4.5708"

    Entity modeler's SQL generation doesn't work with ERPrototypes NSJarBundle Frameworks
    -------------------------------------------------------------------------------------

                     Key: WOL-986
                     URL: http://issues.objectstyle.org/jira/browse/WOL-986
                 Project: WOProject/WOLips
              Issue Type: Bug
              Components: wolips
             Environment: Eclipse 3.4.2, wolips 3.4.5708 (nightly), Wonder 5.0.0-snapshot of 3-20?-09, Mac os x 10.4.11
                Reporter: Greg.Brown
                Priority: Minor

    ERPrototypes NSJarBundle Framework cause the below error message; a workaround is to put the regular 'directory' framework before the nsjarbundle framework on the classpath:

    java.lang.IllegalArgumentException: Unable to read either 'jar:file:/Volumes/OS9User/gbrown/.m2/repository/wonder/core/ERPrototypes/5.0.0-SNAPSHOT/ERPrototypes-5.0.0-SNAPSHOT.jar!/Resources/erprototypes.eomodeld//index.eomodeld' or 'jar:file:/Volumes/OS9User/gbrown/.m2/repository/wonder/core/ERPrototypes/5.0.0-SNAPSHOT/ERPrototypes-5.0.0-SNAPSHOT.jar!/Resources/erprototypes.eomodeld//eomodel.plist
            at com.webobjects.eoaccess.EOModel.<init>(EOModel.java:800)
            at com.webobjects.eoaccess.EOModelGroup.addModelWithPathURL(EOModelGroup.java:498)
            at org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGenerator.<init>(EOFSQLGenerator.java:121)
            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:494)
            at org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory.sqlGenerator(EOFSQLGeneratorFactory.java:36)
            at org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog.generateSql(GenerateSQLDialog.java:297)
            at org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog$1.run(GenerateSQLDialog.java:279)
            at java.lang.Thread.run(Thread.java:613)

    And, of coarse it works if I add the ERPrototypes framework directory to the classpath, or just pet the fluffy bunny.

    -- 
    This message is automatically generated by JIRA.
    -
    If you think it was sent incorrectly contact one of the administrators: http://issues.objectstyle.org/jira/secure/Administrators.jspa
    -
    For more information on JIRA, see: http://www.atlassian.com/software/jira
    



    This archive was generated by hypermail 2.0.0 : Mon Mar 30 2009 - 08:51:50 EDT