cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Shea (JIRA)" <>
Subject [jira] Created: (CAY-1196) ClassNotFoundException in modeler
Date Mon, 16 Mar 2009 18:04:17 GMT
ClassNotFoundException in modeler

                 Key: CAY-1196
             Project: Cayenne
          Issue Type: Bug
          Components: CayenneModeler GUI
    Affects Versions: 3.0M5
         Environment: Ubuntu Linux
            Reporter: Michael Shea
            Priority: Minor

To duplicate:

1. Open an existing project with the Cayenne Modeler.
2. Select an existing attribute on an existing object entity. Delete the Java Type field.
3. Navigate to some other object entity.
4. Go back to the original one and click the "attributes" tab. You will see that the GUI doesn't
get updated when you switch to that tab.

It looks like the modeler is calling Class.forName( "" ).
I have managed to work around this by manually editing the map.xml file and filling in a valid
java classname for the attribute in question.

The following stacktrace is printed to the console:

Exception in thread "AWT-EventQueue-0" org.apache.cayenne.CayenneRuntimeException: [v.3.0M5
Dec 09 2008 00:19:19] Failed to load class for name '':                                  
        at org.apache.cayenne.modeler.editor.ObjAttributeTableModel.getValueAt(
        at javax.swing.JTable.getValueAt(                               
        at javax.swing.JTable.prepareRenderer(
        at javax.swing.plaf.basic.BasicTableUI.paintCell(
        at javax.swing.plaf.basic.BasicTableUI.paintCells(
        at javax.swing.plaf.basic.BasicTableUI.paint(
        at javax.swing.plaf.ComponentUI.update(
        at javax.swing.JComponent.paintComponent(
        at javax.swing.JComponent.paint(
        at javax.swing.JComponent.paintChildren(
        at javax.swing.JComponent.paint(
        at javax.swing.JViewport.paint(
        at javax.swing.JComponent.paintChildren(
        at javax.swing.JComponent.paint(
        at javax.swing.JComponent.paintToOffscreen(
        at javax.swing.BufferStrategyPaintManager.paint(
        at javax.swing.RepaintManager.paint(
        at javax.swing.JComponent._paintImmediately(
        at javax.swing.JComponent.paintImmediately(
        at javax.swing.RepaintManager.paintDirtyRegions(
        at javax.swing.RepaintManager.paintDirtyRegions(
        at javax.swing.RepaintManager.seqPaintDirtyRegions(
        at javax.swing.SystemEventQueueUtilities$
        at java.awt.event.InvocationEvent.dispatch(
        at java.awt.EventQueue.dispatchEvent(
        at java.awt.EventDispatchThread.pumpOneEventForFilters(
        at java.awt.EventDispatchThread.pumpEventsForFilter(
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(
        at java.awt.EventDispatchThread.pumpEvents(
        at java.awt.EventDispatchThread.pumpEvents(
Caused by: java.lang.ClassNotFoundException:
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(
        at org.apache.cayenne.util.Util.getJavaClass(
        ... 31 more

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message