Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1654

Can't switch DataSource Factory on certain projects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1M3
    • 3.1B1
    • Modeler
    • None
    • OS X 10.6.8, Java 1.6.0_29

    Description

      1. Open an existing project.
      2. Navigate to DataNode with JNDIDataSourceFactory
      3. Change DataSource Factory to org.apache.cayenne.configuration.server.XMLPoolingDataSourceFactory
      4. Nothing happens, the following exception appears in Console.app.

      Oddly it happens only for a single project. Attempt to reproduce with a clean project failed. I can't attach the project to the issue, as it has a bunch of customer proprietary information, so I guess I'll have to investigate that internally....

      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: org.apache.cayenne.swing.BindingException: [v.3.1M3 Sep 13 2011 18:52:59] Evaluation failed in context: org.apache.cayenne.modeler.editor.datanode.MainDataNodeEditor@175c30f6
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at org.apache.cayenne.swing.BindingBase.processException(BindingBase.java:186)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at org.apache.cayenne.swing.BindingBase.setValue(BindingBase.java:155)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at org.apache.cayenne.swing.ComboSelectionBinding.updateModel(ComboSelectionBinding.java:114)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at org.apache.cayenne.swing.ComboSelectionBinding$1.actionPerformed(ComboSelectionBinding.java:65)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1240)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at javax.swing.JComboBox.setSelectedItem(JComboBox.java:567)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:603)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(BasicComboPopup.java:831)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.Component.processMouseEvent(Component.java:6373)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at com.apple.laf.AquaComboBoxPopup$1.processMouseEvent(AquaComboBoxPopup.java:132)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.Component.processEvent(Component.java:6138)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.Container.processEvent(Container.java:2085)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.Component.dispatchEventImpl(Component.java:4735)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.Container.dispatchEventImpl(Container.java:2143)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.Component.dispatchEvent(Component.java:4565)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4621)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4282)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.Container.dispatchEventImpl(Container.java:2129)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.Window.dispatchEventImpl(Window.java:2478)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.Component.dispatchEvent(Component.java:4565)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:679)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.EventQueue.access$000(EventQueue.java:85)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.EventQueue$1.run(EventQueue.java:638)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.EventQueue$1.run(EventQueue.java:636)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.security.AccessController.doPrivileged(Native Method)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.EventQueue$2.run(EventQueue.java:652)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.EventQueue$2.run(EventQueue.java:650)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.security.AccessController.doPrivileged(Native Method)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.EventQueue.dispatchEvent(EventQueue.java:649)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: Caused by: ognl.OgnlException: source is null for getProperty(null, "userName")
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1611)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at ognl.ASTProperty.getValueBody(ASTProperty.java:96)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at ognl.SimpleNode.getValue(SimpleNode.java:210)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at ognl.ASTChain.getValueBody(ASTChain.java:109)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at ognl.SimpleNode.getValue(SimpleNode.java:210)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at ognl.Ognl.getValue(Ognl.java:333)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at ognl.Ognl.getValue(Ognl.java:413)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at ognl.Ognl.getValue(Ognl.java:395)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at org.apache.cayenne.swing.BindingBase.getValue(BindingBase.java:168)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at org.apache.cayenne.swing.TextBinding.updateView(TextBinding.java:108)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at org.apache.cayenne.modeler.editor.datanode.DataSourceEditor.setNode(DataSourceEditor.java:56)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at org.apache.cayenne.modeler.editor.datanode.MainDataNodeEditor.showDataSourceSubview(MainDataNodeEditor.java:335)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at org.apache.cayenne.modeler.editor.datanode.MainDataNodeEditor.setFactoryName(MainDataNodeEditor.java:131)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at java.lang.reflect.Method.invoke(Method.java:597)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:491)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:785)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:937)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:76)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:132)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1629)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at ognl.ASTProperty.setValueBody(ASTProperty.java:105)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at ognl.SimpleNode.setValue(SimpleNode.java:246)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at ognl.Ognl.setValue(Ognl.java:476)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at ognl.Ognl.setValue(Ognl.java:511)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: at org.apache.cayenne.swing.BindingBase.setValue(BindingBase.java:144)
      Jan 24 13:37:59 garodnya [0x0-0x49a49a].CayenneModeler[19131]: ... 39 more

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: