cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joerg S (Issue Comment Edited) (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (CAY-1640) NullPointerException when saving
Date Mon, 21 Nov 2011 08:26:52 GMT

    [ https://issues.apache.org/jira/browse/CAY-1640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13154076#comment-13154076
] 

Joerg S edited comment on CAY-1640 at 11/21/11 8:25 AM:
--------------------------------------------------------

It occurs if you delete a DB relationship for which there is still an object relationship.
Also happens in 3.1M4.
                
      was (Author: joerg776):
    It occurs if you delete a DB relationship for which there is still an object relationship.
                  
> NullPointerException when saving
> --------------------------------
>
>                 Key: CAY-1640
>                 URL: https://issues.apache.org/jira/browse/CAY-1640
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 3.1M3
>         Environment: Windows 7 Professional 64bit
> Java 1.6.27
>            Reporter: Joerg S
>
> Stacktrace:
> CayenneModeler Info
> Version: 3.1M3
> Build Date: Sep 13 2011 19:17:16
> Exception: 
> =================================
> java.lang.NullPointerException
> 	at org.apache.cayenne.project.validation.ObjRelationshipValidator.validate(ObjRelationshipValidator.java:140)
> 	at org.apache.cayenne.project.validation.DefaultProjectValidator$ValidationVisitor.visitObjRelationship(DefaultProjectValidator.java:221)
> 	at org.apache.cayenne.project.validation.DefaultProjectValidator$ValidationVisitor.visitObjEntity(DefaultProjectValidator.java:215)
> 	at org.apache.cayenne.project.validation.DefaultProjectValidator$ValidationVisitor.visitDataMap(DefaultProjectValidator.java:127)
> 	at org.apache.cayenne.project.validation.DefaultProjectValidator$ValidationVisitor.visitDataChannelDescriptor(DefaultProjectValidator.java:110)
> 	at org.apache.cayenne.project.validation.DefaultProjectValidator$ValidationVisitor.visitDataChannelDescriptor(DefaultProjectValidator.java:92)
> 	at org.apache.cayenne.configuration.DataChannelDescriptor.acceptVisitor(DataChannelDescriptor.java:112)
> 	at org.apache.cayenne.project.validation.DefaultProjectValidator.validate(DefaultProjectValidator.java:89)
> 	at org.apache.cayenne.modeler.action.SaveAsAction.performAction(SaveAsAction.java:186)
> 	at org.apache.cayenne.modeler.action.SaveAsAction.performAction(SaveAsAction.java:179)
> 	at org.apache.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:162)
> 	at org.apache.cayenne.modeler.action.ProjectAction.checkSaveOnClose(ProjectAction.java:99)
> 	at org.apache.cayenne.modeler.action.ExitAction.exit(ExitAction.java:47)
> 	at org.apache.cayenne.modeler.CayenneModelerController$1.windowClosing(CayenneModelerController.java:109)
> 	at java.awt.Window.processWindowEvent(Window.java:1865)
> 	at javax.swing.JFrame.processWindowEvent(JFrame.java:274)
> 	at java.awt.Window.processEvent(Window.java:1823)
> 	at java.awt.Component.dispatchEventImpl(Component.java:4651)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2099)
> 	at java.awt.Window.dispatchEventImpl(Window.java:2478)
> 	at java.awt.Component.dispatchEvent(Component.java:4481)
> 	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
> 	at java.awt.EventQueue.access$000(EventQueue.java:84)
> 	at java.awt.EventQueue$1.run(EventQueue.java:602)
> 	at java.awt.EventQueue$1.run(EventQueue.java:600)
> 	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:616)
> 	at java.awt.EventQueue$2.run(EventQueue.java:614)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
> 	at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
> 	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
> 	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
> 	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
> 	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
> 	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
> 	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message