Cayenne
  1. Cayenne
  2. CAY-1690

Import EOModel, created with WOLips using comments

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1M3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Mac OS X 10.7.3

      Description

      CayenneModeler Info
      Version: 3.1M3
      Build Date: Sep 13 2011 18:52:59
      Exception:
      =================================
      org.apache.cayenne.wocompat.parser.TokenMgrError: Lexical error at line 61, column 139. Encountered: "r" (114), after : "EACH Action Menu Access Right MUST BE access mode based by ONE AND ONLY ONE Access Right Group<br />
      "
      at org.apache.cayenne.wocompat.parser.ParserTokenManager.getNextToken(ParserTokenManager.java:782)
      at org.apache.cayenne.wocompat.parser.Parser.jj_ntk(Parser.java:446)
      at org.apache.cayenne.wocompat.parser.Parser.object(Parser.java:73)
      at org.apache.cayenne.wocompat.parser.Parser.keyValuePair(Parser.java:167)
      at org.apache.cayenne.wocompat.parser.Parser.map(Parser.java:134)
      at org.apache.cayenne.wocompat.parser.Parser.object(Parser.java:79)
      at org.apache.cayenne.wocompat.parser.Parser.keyValuePair(Parser.java:167)
      at org.apache.cayenne.wocompat.parser.Parser.map(Parser.java:134)
      at org.apache.cayenne.wocompat.parser.Parser.object(Parser.java:79)
      at org.apache.cayenne.wocompat.parser.Parser.keyValuePair(Parser.java:167)
      at org.apache.cayenne.wocompat.parser.Parser.map(Parser.java:143)
      at org.apache.cayenne.wocompat.parser.Parser.object(Parser.java:79)
      at org.apache.cayenne.wocompat.parser.Parser.collection(Parser.java:183)
      at org.apache.cayenne.wocompat.parser.Parser.object(Parser.java:75)
      at org.apache.cayenne.wocompat.parser.Parser.keyValuePair(Parser.java:167)
      at org.apache.cayenne.wocompat.parser.Parser.map(Parser.java:143)
      at org.apache.cayenne.wocompat.parser.Parser.object(Parser.java:79)
      at org.apache.cayenne.wocompat.parser.Parser.propertyList(Parser.java:64)
      at org.apache.cayenne.wocompat.EOModelHelper.loadEntityIndex(EOModelHelper.java:372)
      at org.apache.cayenne.wocompat.EOModelHelper.<init>(EOModelHelper.java:86)
      at org.apache.cayenne.wocompat.EOModelProcessor.makeHelper(EOModelProcessor.java:216)
      at org.apache.cayenne.wocompat.EOModelProcessor.loadEOModel(EOModelProcessor.java:128)
      at org.apache.cayenne.wocompat.EOModelProcessor.loadEOModel(EOModelProcessor.java:115)
      at org.apache.cayenne.modeler.action.ImportEOModelAction.importEOModel(ImportEOModelAction.java:122)
      at org.apache.cayenne.modeler.action.ImportEOModelAction.performAction(ImportEOModelAction.java:86)
      at org.apache.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:162)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
      at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
      at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
      at javax.swing.AbstractButton.doClick(AbstractButton.java:389)
      at com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:95)
      at java.awt.MenuItem.processActionEvent(MenuItem.java:627)
      at java.awt.MenuItem.processEvent(MenuItem.java:586)
      at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:337)
      at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:325)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:682)
      at java.awt.EventQueue.access$000(EventQueue.java:85)
      at java.awt.EventQueue$1.run(EventQueue.java:638)
      at java.awt.EventQueue$1.run(EventQueue.java:636)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
      at java.awt.EventQueue$2.run(EventQueue.java:652)
      at java.awt.EventQueue$2.run(EventQueue.java:650)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:649)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

      1. SoaringWithError.eomodeld.zip
        32 kB
        Robert Huber
      2. SoaringWithoutError.eomodeld.zip
        32 kB
        Robert Huber

        Activity

        Hide
        Robert Huber added a comment - - edited

        I very much would like to import EOModels into Cayenne, as all sour models are EOModels, but because I assume, because I use comments in Entity Modeler (WOLips), the import fails. Even if the comments are just ignored for the moment that would be ok, so I can start using Cayenne Modeler.

        Show
        Robert Huber added a comment - - edited I very much would like to import EOModels into Cayenne, as all sour models are EOModels, but because I assume, because I use comments in Entity Modeler (WOLips), the import fails. Even if the comments are just ignored for the moment that would be ok, so I can start using Cayenne Modeler.
        Hide
        Andrus Adamchik added a comment -

        Hi Robert,

        Could you possibly attach either your EOModel (or since it is likely confidential) a dummy EOModel that displays this issue. Also since I can't promise a specific fix schedule, maybe in the meantime you can start by reengineering your database schema into Cayenne?

        Show
        Andrus Adamchik added a comment - Hi Robert, Could you possibly attach either your EOModel (or since it is likely confidential) a dummy EOModel that displays this issue. Also since I can't promise a specific fix schedule, maybe in the meantime you can start by reengineering your database schema into Cayenne?
        Hide
        Andrus Adamchik added a comment -

        Or another quite obvious solution (that I somehow haven't thought of it before) - edit your EOModel files by hand removing offending comments, and then importing them to Cayenne.

        Show
        Andrus Adamchik added a comment - Or another quite obvious solution (that I somehow haven't thought of it before) - edit your EOModel files by hand removing offending comments, and then importing them to Cayenne.
        Hide
        Robert Huber added a comment -

        Hi Andrus

        Thanks very much for your fast response! I tested and found the error (or at least one of it). It's because I have new lines in the comments, i. e. using the <Return> key. I also use <br /> for good looking HTML preview, as it shows in the Docs tab, which may or may not cause problems.
        I have made 2 .eomodels file I can send you, one having the error, the other one not having it. Its because of the comment in the Docs tab of the first entity called Attribute (yes I know a very strange name for an entity .-)
        Where can I attach the files?

        Show
        Robert Huber added a comment - Hi Andrus Thanks very much for your fast response! I tested and found the error (or at least one of it). It's because I have new lines in the comments, i. e. using the <Return> key. I also use <br /> for good looking HTML preview, as it shows in the Docs tab, which may or may not cause problems. I have made 2 .eomodels file I can send you, one having the error, the other one not having it. Its because of the comment in the Docs tab of the first entity called Attribute (yes I know a very strange name for an entity .-) Where can I attach the files?
        Hide
        Robert Huber added a comment -

        Ok, I found the tab More Actions for uploading my 2 Entity Modeler files.

        Show
        Robert Huber added a comment - Ok, I found the tab More Actions for uploading my 2 Entity Modeler files.
        Hide
        Robert Huber added a comment -

        Hi Andrus

        I cleaned up for one of our projects successfully the comments and could import it into CayenneModeler - great!

        Show
        Robert Huber added a comment - Hi Andrus I cleaned up for one of our projects successfully the comments and could import it into CayenneModeler - great!

          People

          • Assignee:
            Unassigned
            Reporter:
            Robert Huber
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development