[JIRA] Created: (CAY-691) ClassNotFoundException on query validation

From: Andrus Adamchik (JIRA) ("Andrus)
Date: Fri Oct 13 2006 - 15:14:31 EDT

  • Next message: Andrus Adamchik: "Vacation note"

    ClassNotFoundException on query validation
    ------------------------------------------

             Key: CAY-691
             URL: http://issues.apache.org/cayenne/browse/CAY-691
         Project: Cayenne
            Type: Bug

      Components: CayenneModeler GUI
        Versions: 3.0
        Reporter: Andrus Adamchik
     Assigned to: Andrus Adamchik
         Fix For: 3.0

    CayenneModeler throws an exception below on query validation. This probably only affects the builds from the last few days due to CAY-687 implementation.

    Version: cayenne.version
    Build Date: cayenne.build.date
    Exception:
    =================================
    java.lang.ClassNotFoundException: XXX
            at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:219)
            at org.apache.cayenne.util.Util.getJavaClass(Util.java:566)
            at org.apache.cayenne.map.ObjEntity.getJavaClass(ObjEntity.java:216)
            at org.apache.cayenne.map.EntityDescriptor.compile(EntityDescriptor.java:112)
            at org.apache.cayenne.map.EntityDescriptorFactory.getDescriptor(EntityDescriptorFactory.java:71)
            at org.apache.cayenne.map.EntityResolver.getClassDescriptor(EntityResolver.java:254)
            at org.apache.cayenne.query.BaseQueryMetadata.resolve(BaseQueryMetadata.java:137)
            at org.apache.cayenne.query.SelectQueryMetadata.resolve(SelectQueryMetadata.java:34)
            at org.apache.cayenne.query.SelectQuery.getMetaData(SelectQuery.java:151)
            at org.apache.cayenne.project.validator.SelectQueryValidator.validateRoot(SelectQueryValidator.java:109)
            at org.apache.cayenne.project.validator.SelectQueryValidator.validateObject(SelectQueryValidator.java:52)
            at org.apache.cayenne.project.validator.TreeNodeValidator.validate(TreeNodeValidator.java:119)
            at org.apache.cayenne.project.validator.Validator.validate(Validator.java:168)
            at org.apache.cayenne.project.validator.Validator.validate(Validator.java:154)
            at org.apache.cayenne.modeler.action.ValidateAction.performAction(ValidateAction.java:63)
            at org.apache.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:163)
            at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1819)
            at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1872)
            at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
            at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
            at javax.swing.AbstractButton.doClick(AbstractButton.java:321)
            at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
            at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
            at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
            at java.awt.Component.processMouseEvent(Component.java:5166)
            at java.awt.Component.processEvent(Component.java:4963)
            at java.awt.Container.processEvent(Container.java:1613)
            at java.awt.Component.dispatchEventImpl(Component.java:3681)
            at java.awt.Container.dispatchEventImpl(Container.java:1671)
            at java.awt.Component.dispatchEvent(Component.java:3543)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3527)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3242)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3172)
            at java.awt.Container.dispatchEventImpl(Container.java:1657)
            at java.awt.Window.dispatchEventImpl(Window.java:1606)
            at java.awt.Component.dispatchEvent(Component.java:3543)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

    -- 
    This message is automatically generated by JIRA.
    -
    If you think it was sent incorrectly contact one of the administrators:
       http://issues.apache.org/cayenne/secure/Administrators.jspa
    -
    For more information on JIRA, see:
       http://www.atlassian.com/software/jira
    



    This archive was generated by hypermail 2.0.0 : Fri Oct 13 2006 - 15:15:18 EDT