cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yury Harachka (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAY-2229) Search throws NPE
Date Thu, 18 May 2017 14:04:04 GMT

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

Yury Harachka commented on CAY-2229:
------------------------------------

[~ntimofeev] Search does not work in the version 4.0.M6-SNAPSHOT (May 10, 2017)

Exception: 
{code}18.05.2017 16:52:39 ERROR: CayenneModeler Error
java.lang.NoSuchMethodError: org.apache.cayenne.modeler.util.CellRenderers.iconForObject(Ljava/lang/Object;)Ljavax/swing/ImageIcon;
	at org.apache.cayenne.modeler.dialog.FindDialogView.convertToDataVector(FindDialogView.java:91)
	at org.apache.cayenne.modeler.dialog.FindDialogView.<init>(FindDialogView.java:60)
	at org.apache.cayenne.modeler.dialog.FindDialog.<init>(FindDialog.java:49)
	at org.apache.cayenne.modeler.action.FindAction.performAction(FindAction.java:122)
	at org.apache.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:163)
	at javax.swing.JTextField.fireActionPerformed(Unknown Source)
	at javax.swing.JTextField.postActionEvent(Unknown Source)
	at javax.swing.JTextField$NotifyAction.actionPerformed(Unknown Source)
	at javax.swing.SwingUtilities.notifyAction(Unknown Source)
	at javax.swing.JComponent.processKeyBinding(Unknown Source)
	at javax.swing.JComponent.processKeyBindings(Unknown Source)
	at javax.swing.JComponent.processKeyEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
Source)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

{code}

> Search throws NPE
> -----------------
>
>                 Key: CAY-2229
>                 URL: https://issues.apache.org/jira/browse/CAY-2229
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 4.0.M5
>            Reporter: ana benko
>            Assignee: Nikita Timofeev
>         Attachments: datamap.map.xml, Msearch.png
>
>
> 1. Reengineer db, Save.
> 2. Search any of the existing values in db or obj entities (works ok if no matches)
> -> popup error appears
> CayenneModeler Info
> Version: 4.0.M5-SNAPSHOT
> Build Date: Feb 15 2017 07:32:14
> Exception: 
> =================================
> java.lang.NullPointerException
> 	at org.apache.cayenne.modeler.action.FindAction$SearchResultEntry.compareTo(FindAction.java:355)
> 	at org.apache.cayenne.modeler.action.FindAction$SearchResultEntry.compareTo(FindAction.java:320)
> 	at java.util.ComparableTimSort.countRunAndMakeAscending(ComparableTimSort.java:320)
> 	at java.util.ComparableTimSort.sort(ComparableTimSort.java:188)
> 	at java.util.Arrays.sort(Arrays.java:1312)
> 	at java.util.Arrays.sort(Arrays.java:1506)
> 	at java.util.ArrayList.sort(ArrayList.java:1454)
> 	at java.util.Collections.sort(Collections.java:141)
> 	at org.apache.cayenne.modeler.action.FindAction.search(FindAction.java:146)
> 	at org.apache.cayenne.modeler.action.FindAction.performAction(FindAction.java:102)
> 	at org.apache.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:162)
> 	at javax.swing.JTextField.fireActionPerformed(JTextField.java:508)
> 	at javax.swing.JTextField.postActionEvent(JTextField.java:721)
> 	at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:836)
> 	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1663)
> 	at javax.swing.JComponent.processKeyBinding(JComponent.java:2882)
> 	at javax.swing.JComponent.processKeyBindings(JComponent.java:2929)
> 	at javax.swing.JComponent.processKeyEvent(JComponent.java:2845)
> 	at java.awt.Component.processEvent(Component.java:6310)
> 	at java.awt.Container.processEvent(Container.java:2236)
> 	at java.awt.Component.dispatchEventImpl(Component.java:4889)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2294)
> 	at java.awt.Component.dispatchEvent(Component.java:4711)
> 	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954)
> 	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806)
> 	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074)
> 	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945)
> 	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771)
> 	at java.awt.Component.dispatchEventImpl(Component.java:4760)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2294)
> 	at java.awt.Window.dispatchEventImpl(Window.java:2746)
> 	at java.awt.Component.dispatchEvent(Component.java:4711)
> 	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
> 	at java.awt.EventQueue.access$500(EventQueue.java:97)
> 	at java.awt.EventQueue$3.run(EventQueue.java:709)
> 	at java.awt.EventQueue$3.run(EventQueue.java:703)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
> 	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
> 	at java.awt.EventQueue$4.run(EventQueue.java:731)
> 	at java.awt.EventQueue$4.run(EventQueue.java:729)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
> 	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
> 	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
> 	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
> 	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
> 	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> 	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> 	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message