cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CAY-1859) NullPointerException when importing EOModel
Date Fri, 02 Aug 2013 07:37:48 GMT

     [ https://issues.apache.org/jira/browse/CAY-1859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrus Adamchik closed CAY-1859.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 3.2M2

Just committed a fix to trunk. I didn't have a test case, so the fix is done somewhat in the
dark. I understand the issue is caused by an invalid path in EOFetchSpecification. So after
the fix this path will be skipped. If you have a chance to do a build from trunk and verify
the fix, it will be much appreciated.
                
> NullPointerException when importing EOModel
> -------------------------------------------
>
>                 Key: CAY-1859
>                 URL: https://issues.apache.org/jira/browse/CAY-1859
>             Project: Cayenne
>          Issue Type: Bug
>          Components: EOF integration
>    Affects Versions: 3.2M1
>         Environment: Mac OS X 10.8.3
>            Reporter: Nathan Hadfield
>             Fix For: 3.2M2
>
>
> When importing an EOModel, I get the following error. 
> CayenneModeler Info
> Version: 3.2M1
> Build Date: Jul 07 2013 16:55:24
> Exception: 
> =================================
> java.lang.NullPointerException
> 	at org.apache.cayenne.wocompat.EOObjEntity$DBPathConverter.transform(EOObjEntity.java:203)
> 	at org.apache.cayenne.exp.Expression.transformExpression(Expression.java:636)
> 	at org.apache.cayenne.exp.Expression.transform(Expression.java:587)
> 	at org.apache.cayenne.wocompat.EOObjEntity.translateToDbPath(EOObjEntity.java:91)
> 	at org.apache.cayenne.wocompat.EOQuery$EOFetchSpecificationParser.makeQualifier(EOQuery.java:501)
> 	at org.apache.cayenne.wocompat.EOQuery$EOFetchSpecificationParser.makeQualifier(EOQuery.java:423)
> 	at org.apache.cayenne.wocompat.EOQuery.makeQualifier(EOQuery.java:231)
> 	at org.apache.cayenne.wocompat.EOQuery.initFromPlist(EOQuery.java:95)
> 	at org.apache.cayenne.wocompat.EOQuery.<init>(EOQuery.java:57)
> 	at org.apache.cayenne.wocompat.EOModelProcessor.makeQuery(EOModelProcessor.java:252)
> 	at org.apache.cayenne.wocompat.EOModelProcessor.loadEOModel(EOModelProcessor.java:208)
> 	at org.apache.cayenne.wocompat.EOModelProcessor.loadEOModel(EOModelProcessor.java:132)
> 	at org.apache.cayenne.modeler.action.ImportEOModelAction.importEOModel(ImportEOModelAction.java:123)
> 	at org.apache.cayenne.modeler.action.ImportEOModelAction.performAction(ImportEOModelAction.java:87)
> 	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:650)
> 	at java.awt.MenuItem.processEvent(MenuItem.java:609)
> 	at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:343)
> 	at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:331)
> 	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:713)
> 	at java.awt.EventQueue.access$400(EventQueue.java:82)
> 	at java.awt.EventQueue$2.run(EventQueue.java:669)
> 	at java.awt.EventQueue$2.run(EventQueue.java:667)
> 	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$3.run(EventQueue.java:683)
> 	at java.awt.EventQueue$3.run(EventQueue.java:681)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
> 	at java.awt.EventQueue.dispatchEvent(EventQueue.java:680)
> 	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)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message