Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Event Dispatch Error

Preetosc
2007-10-12
2013-05-02
  • Preetosc
    Preetosc
    2007-10-12

    I get this error when I try to run Compiere from Eclipse.
    The Login Window is properly displayed and takes in all the the parameters such as ROLE and then after clicking on OK the error in console appears as follows,

    I am using ER/Box and Enterprise DB

    Exception occurred during event dispatching:
    java.lang.IllegalStateException: No PK nor FK - AD_Language
        at org.compiere.model.PO.setKeyInfo(PO.java:1443)
        at org.compiere.model.PO.load(PO.java:1211)
        at org.compiere.model.PO.<init>(PO.java:124)
        at org.compiere.model.PO.<init>(PO.java:89)
        at org.compiere.model.X_AD_Language.<init>(X_AD_Language.java:58)
        at org.compiere.model.MLanguage.<init>(MLanguage.java:186)
        at org.compiere.model.MLanguage.get(MLanguage.java:63)
        at org.compiere.model.MCountry.loadAllCountries(MCountry.java:93)
        at org.compiere.model.MCountry.getDefault(MCountry.java:65)
        at org.compiere.util.Login.loadPreferences(Login.java:888)
        at org.compiere.apps.ALogin.defaultsOK(ALogin.java:507)
        at org.compiere.apps.ALogin.actionPerformed(ALogin.java:397)
        at org.compiere.apps.AppsAction.actionPerformed(AppsAction.java:263)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
        at java.awt.Component.processMouseEvent(Component.java:5517)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
        at java.awt.Component.processEvent(Component.java:5282)
        at java.awt.Container.processEvent(Container.java:1966)
        at java.awt.Component.dispatchEventImpl(Component.java:3984)
        at java.awt.Container.dispatchEventImpl(Container.java:2024)
        at java.awt.Component.dispatchEvent(Component.java:3819)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
        at java.awt.Container.dispatchEventImpl(Container.java:2010)
        at java.awt.Window.dispatchEventImpl(Window.java:1791)
        at java.awt.Component.dispatchEvent(Component.java:3819)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
        at java.awt.Dialog$1.run(Dialog.java:535)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)