You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Dave Dombrosky (JIRA)" <ji...@apache.org> on 2009/09/18 08:38:57 UTC

[jira] Created: (CAY-1278) M6 Modeler Error: Map failed to load

M6 Modeler Error: Map failed to load
------------------------------------

                 Key: CAY-1278
                 URL: https://issues.apache.org/jira/browse/CAY-1278
             Project: Cayenne
          Issue Type: Bug
          Components: CayenneModeler GUI
    Affects Versions: 3.0M6
         Environment: Linux 2.6, OpenJDK 1.6.0_0
            Reporter: Dave Dombrosky


When loading a project with 7 DataMaps in the M6 Modeler, 4 of them fail to load with the message "Error: Map failed to load".  The project validates with no errors in M5.

Let me know if there's anything I can do to debug this further.  I am unable to attach the project because it is for my company.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAY-1278) Project with cross-datamap flattenned relationships fails to load

Posted by "Andrey Razumovsky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrey Razumovsky updated CAY-1278:
-----------------------------------

      Component/s:     (was: CayenneModeler GUI)
                   Cayenne Core Library
    Fix Version/s: 3.0 beta 1
         Assignee: Andrey Razumovsky
          Summary: Project with cross-datamap flattenned relationships fails to load  (was: M6 Modeler Error: Map failed to load)

OK, now I see this is related to my changes per CAY-1205. Since then ObjRelations are immediately resolved from path. Guess we should use deffered binding during configuration loading. For other uses, I still think current behavior is fine

> Project with cross-datamap flattenned relationships fails to load
> -----------------------------------------------------------------
>
>                 Key: CAY-1278
>                 URL: https://issues.apache.org/jira/browse/CAY-1278
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Cayenne Core Library
>    Affects Versions: 3.0M6
>         Environment: Linux 2.6, OpenJDK 1.6.0_0
>            Reporter: Dave Dombrosky
>            Assignee: Andrey Razumovsky
>             Fix For: 3.0 beta 1
>
>         Attachments: bug_example.zip
>
>
> When loading a project with 7 DataMaps in the M6 Modeler, 4 of them fail to load with the message "Error: Map failed to load".  The project validates with no errors in M5.
> Let me know if there's anything I can do to debug this further.  I am unable to attach the project because it is for my company.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAY-1278) M6 Modeler Error: Map failed to load

Posted by "Dave Dombrosky (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAY-1278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12758160#action_12758160 ] 

Dave Dombrosky commented on CAY-1278:
-------------------------------------

I used your added log info to help me find where the issue was occurring.  This helped me to generate a small example project to demonstrate the bug.  I think it might have something to do with relationships spanning DataMaps.  I'm attaching the example project now.

> M6 Modeler Error: Map failed to load
> ------------------------------------
>
>                 Key: CAY-1278
>                 URL: https://issues.apache.org/jira/browse/CAY-1278
>             Project: Cayenne
>          Issue Type: Bug
>          Components: CayenneModeler GUI
>    Affects Versions: 3.0M6
>         Environment: Linux 2.6, OpenJDK 1.6.0_0
>            Reporter: Dave Dombrosky
>         Attachments: bug_example.zip
>
>
> When loading a project with 7 DataMaps in the M6 Modeler, 4 of them fail to load with the message "Error: Map failed to load".  The project validates with no errors in M5.
> Let me know if there's anything I can do to debug this further.  I am unable to attach the project because it is for my company.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAY-1278) M6 Modeler Error: Map failed to load

Posted by "Dave Dombrosky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dave Dombrosky updated CAY-1278:
--------------------------------

    Attachment: bug_example.zip

Adding example project to demonstrate bug.

> M6 Modeler Error: Map failed to load
> ------------------------------------
>
>                 Key: CAY-1278
>                 URL: https://issues.apache.org/jira/browse/CAY-1278
>             Project: Cayenne
>          Issue Type: Bug
>          Components: CayenneModeler GUI
>    Affects Versions: 3.0M6
>         Environment: Linux 2.6, OpenJDK 1.6.0_0
>            Reporter: Dave Dombrosky
>         Attachments: bug_example.zip
>
>
> When loading a project with 7 DataMaps in the M6 Modeler, 4 of them fail to load with the message "Error: Map failed to load".  The project validates with no errors in M5.
> Let me know if there's anything I can do to debug this further.  I am unable to attach the project because it is for my company.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (CAY-1278) Project with cross-datamap flattenned relationships fails to load

Posted by "Andrey Razumovsky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrey Razumovsky closed CAY-1278.
----------------------------------

    Resolution: Fixed

> Project with cross-datamap flattenned relationships fails to load
> -----------------------------------------------------------------
>
>                 Key: CAY-1278
>                 URL: https://issues.apache.org/jira/browse/CAY-1278
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Cayenne Core Library
>    Affects Versions: 3.0M6
>         Environment: Linux 2.6, OpenJDK 1.6.0_0
>            Reporter: Dave Dombrosky
>            Assignee: Andrey Razumovsky
>             Fix For: 3.0 beta 1
>
>         Attachments: bug_example.zip
>
>
> When loading a project with 7 DataMaps in the M6 Modeler, 4 of them fail to load with the message "Error: Map failed to load".  The project validates with no errors in M5.
> Let me know if there's anything I can do to debug this further.  I am unable to attach the project because it is for my company.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAY-1278) M6 Modeler Error: Map failed to load

Posted by "Andrey Razumovsky (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAY-1278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12757040#action_12757040 ] 

Andrey Razumovsky commented on CAY-1278:
----------------------------------------

Please choose Tools->Show Log COnsole and post here the content of log at the moment of loading the project (or stack trace of exception)

> M6 Modeler Error: Map failed to load
> ------------------------------------
>
>                 Key: CAY-1278
>                 URL: https://issues.apache.org/jira/browse/CAY-1278
>             Project: Cayenne
>          Issue Type: Bug
>          Components: CayenneModeler GUI
>    Affects Versions: 3.0M6
>         Environment: Linux 2.6, OpenJDK 1.6.0_0
>            Reporter: Dave Dombrosky
>
> When loading a project with 7 DataMaps in the M6 Modeler, 4 of them fail to load with the message "Error: Map failed to load".  The project validates with no errors in M5.
> Let me know if there's anything I can do to debug this further.  I am unable to attach the project because it is for my company.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAY-1278) M6 Modeler Error: Map failed to load

Posted by "Andrey Razumovsky (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAY-1278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12757991#action_12757991 ] 

Andrey Razumovsky commented on CAY-1278:
----------------------------------------

Unfortunately It's hard to tell the reason from this stack trace.. Tried to reproduce the bug with no success. I've added some debugging info, could you pick the latest built modeler from the link below and try it (you'll see what relationship causes the error at least)? Alternatively, you can send me your project privately (to andrey at apache dot org).

http://hudson.zones.apache.org/hudson/job/Cayenne-trunk/462/org.apache.cayenne$cayenne-modeler-java/artifact/org.apache.cayenne/cayenne-modeler-java/3.0-SNAPSHOT/cayenne-modeler-java-3.0-SNAPSHOT.jar

The jar must be unpacked to get common CayenneModeler.jar

> M6 Modeler Error: Map failed to load
> ------------------------------------
>
>                 Key: CAY-1278
>                 URL: https://issues.apache.org/jira/browse/CAY-1278
>             Project: Cayenne
>          Issue Type: Bug
>          Components: CayenneModeler GUI
>    Affects Versions: 3.0M6
>         Environment: Linux 2.6, OpenJDK 1.6.0_0
>            Reporter: Dave Dombrosky
>
> When loading a project with 7 DataMaps in the M6 Modeler, 4 of them fail to load with the message "Error: Map failed to load".  The project validates with no errors in M5.
> Let me know if there's anything I can do to debug this further.  I am unable to attach the project because it is for my company.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAY-1278) M6 Modeler Error: Map failed to load

Posted by "Dave Dombrosky (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAY-1278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12757346#action_12757346 ] 

Dave Dombrosky commented on CAY-1278:
-------------------------------------

INFO: Warning: map loading failed.
org.apache.cayenne.CayenneRuntimeException: [v.3.0M6 May 18 2009 07:49:46] Error loading DataMap, last processed tag: <obj-relationship
	at org.apache.cayenne.map.MapLoader.loadDataMap(MapLoader.java:688)
	at org.apache.cayenne.conf.RuntimeLoadDelegate.loadDataMap(RuntimeLoadDelegate.java:212)
	at org.apache.cayenne.conf.RuntimeLoadDelegate.shouldLoadDataMaps(RuntimeLoadDelegate.java:170)
	at org.apache.cayenne.conf.ConfigLoader$DomainHandler.loadMaps(ConfigLoader.java:251)
	at org.apache.cayenne.conf.ConfigLoader$DomainHandler.startElement(ConfigLoader.java:220)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:504)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:376)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2723)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:624)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:486)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:810)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:740)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:110)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525)
	at org.apache.cayenne.conf.ConfigLoader.loadDomains(ConfigLoader.java:78)
	at org.apache.cayenne.conf.DefaultConfiguration.initialize(DefaultConfiguration.java:152)
	at org.apache.cayenne.project.ApplicationProject.loadProject(ApplicationProject.java:114)
	at org.apache.cayenne.project.ApplicationProject.postInitialize(ApplicationProject.java:101)
	at org.apache.cayenne.project.ApplicationProject.<init>(ApplicationProject.java:85)
	at org.apache.cayenne.modeler.action.OpenProjectAction.openProject(OpenProjectAction.java:121)
	at org.apache.cayenne.modeler.action.OpenProjectAction.performAction(OpenProjectAction.java:102)
	at org.apache.cayenne.modeler.WelcomeScreen$RecentFileListRenderer.mouseReleased(WelcomeScreen.java:278)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
	at java.awt.Component.processMouseEvent(Component.java:6108)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3276)
	at java.awt.Component.processEvent(Component.java:5873)
	at java.awt.Container.processEvent(Container.java:2105)
	at java.awt.Component.dispatchEventImpl(Component.java:4469)
	at java.awt.Container.dispatchEventImpl(Container.java:2163)
	at java.awt.Component.dispatchEvent(Component.java:4295)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
	at java.awt.Container.dispatchEventImpl(Container.java:2149)
	at java.awt.Window.dispatchEventImpl(Window.java:2478)
	at java.awt.Component.dispatchEvent(Component.java:4295)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Caused by: java.lang.NullPointerException
	at org.apache.cayenne.map.Entity$PathIterator.next(Entity.java:408)
	at org.apache.cayenne.map.Entity$PathIterator.next(Entity.java:387)
	at org.apache.cayenne.map.ObjRelationship.refreshFromPath(ObjRelationship.java:534)
	at org.apache.cayenne.map.ObjRelationship.setDbRelationshipPath(ObjRelationship.java:467)
	at org.apache.cayenne.map.MapLoader.processStartObjRelationship(MapLoader.java:1060)
	at org.apache.cayenne.map.MapLoader.access$1100(MapLoader.java:46)
	at org.apache.cayenne.map.MapLoader$12.execute(MapLoader.java:261)
	at org.apache.cayenne.map.MapLoader.startElement(MapLoader.java:794)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:504)
	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:353)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2723)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:624)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:486)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:810)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:740)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:110)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525)
	at org.apache.cayenne.map.MapLoader.loadDataMap(MapLoader.java:678)
	... 44 more

> M6 Modeler Error: Map failed to load
> ------------------------------------
>
>                 Key: CAY-1278
>                 URL: https://issues.apache.org/jira/browse/CAY-1278
>             Project: Cayenne
>          Issue Type: Bug
>          Components: CayenneModeler GUI
>    Affects Versions: 3.0M6
>         Environment: Linux 2.6, OpenJDK 1.6.0_0
>            Reporter: Dave Dombrosky
>
> When loading a project with 7 DataMaps in the M6 Modeler, 4 of them fail to load with the message "Error: Map failed to load".  The project validates with no errors in M5.
> Let me know if there's anything I can do to debug this further.  I am unable to attach the project because it is for my company.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.