Re: SQL generation in Entity Modeler and java.lang.ExceptionInInitializerError: null

From: Denis Frolov (de..emax.ru)
Date: Thu Sep 14 2006 - 08:57:51 EDT

  • Next message: Anjo Krank: "Re: SQL generation in Entity Modeler and java.lang.ExceptionInInitializerError: null"

    Another note is that I get a similar exception (listed below) when I try to
    run Eclipse Junit tests against this project with DMExtensions framework
    (one that has DMCoreBusinessLogic model with AbstractUser entity) linked
    from workspace (via Java Build Path - Projects). When I link this framework
    from /Library/Frameworks/ tests run fine although SQL generation is still
    not working due to the exception in my previous email.

    com.webobjects.foundation.NSForwardException for
    java.lang.ExceptionInInitializerError
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:141)
        at
    com.webobjects.foundation._NSUtilities._classWithPartialName(_NSUtilities.ja
    va:307)
        at
    com.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:291)
        at
    com.webobjects.eoaccess.EOModel._setEntityForEntityNameClassName(EOModel.jav
    a:1242)
        at
    com.webobjects.eoaccess.EOModel._addFakeEntityWithPropertyList(EOModel.java:
    1280)
        at
    com.webobjects.eoaccess.EOModel._initWithTableOfContentsPropertyListPathURL(
    EOModel.java:1092)
        at com.webobjects.eoaccess.EOModel.<init>(EOModel.java:802)
        at
    com.webobjects.eoaccess.EOModelGroup.addModelWithPathURL(EOModelGroup.java:4
    98)
        at
    com.webobjects.eoaccess.EOModelGroup.modelGroupForLoadedBundles(EOModelGroup
    .java:790)
        at
    com.webobjects.eoaccess.EOModelGroup.globalModelGroup(EOModelGroup.java:338)
        at
    com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java:370)
        at
    com.webobjects.eoaccess.EOModel$_DefaultModelCreator._classDescriptionNeeded
    (EOModel.java:2002)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
    )
        at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
    .java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
    com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:120)
        at
    com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotific
    ationCenter.java:601)
        at
    com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificati
    onCenter.java:545)
        at
    com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificati
    onCenter.java:559)
        at
    com.webobjects.eocontrol.EOClassDescription.classDescriptionForEntityName(EO
    ClassDescription.java:297)
        at
    com.webobjects.eoaccess.EOUtilities.createAndInsertInstance(EOUtilities.java
    :814)
        at dm.inmega.tests.CompanyTest.testGeneratePinCode(CompanyTest.java:30)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
    )
        at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
    .java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        at er.testrunner.ERXTestCase.runBare(ERXTestCase.java:97)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at
    org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3T
    estReference.java:128)
        at
    org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:3
    8)
        at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRu
    nner.java:460)
        at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRu
    nner.java:673)
        at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.
    java:386)
        at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner
    .java:196)
    Caused by: java.lang.ClassCastException
        at dm.extensions.AbstractUser.<clinit>(AbstractUser.java:42)
        ... 44 more

    on 9/14/06 4:40 PM, Denis Frolov at de..emax.ru wrote:

    > I'm sorry - I was too quick to post the stack trace. This trace was caused by
    > the fact that I've added too many frameworks to my test project since I
    > thought that SQL Generation is missing something on my build path. The trace
    > from the real project (it uses prototypes) is below. Administrator entity has
    > parent entity from DMCoreBusinessLogic model.
    >
    > Administrator:42 is:
    > public static AdministratorClazz clazz =
    > (AdministratorClazz)EOEnterpriseObjectClazz.clazzForEntityNamed("Administrator
    > ");
    > Now that I have the stack trace I will probably debug this myself but will
    > appreciate any hints. Thanks a lot for help!
    >
    > ===== Thursday, September 14, 2006 4:31:12 PM Europe/Moscow =====
    > Loading model: ERMail
    > Loading model: erprototypes
    > Loading model: ERCoreBusinessLogic
    > log4j:WARN No appenders could be found for logger
    > (er.extensions.ERXFrameworkPrincipal).
    > log4j:WARN Please initialize the log4j system properly.
    > Loading model: DMCoreBusinessLogic
    > java.lang.reflect.InvocationTargetException
    > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    > at
    > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccesso
    > rImpl.java:39)
    > at
    > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructo
    > rAccessorImpl.java:27)
    > at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    > at
    > org.objectstyle.wolips.eomodeler.sql.SQLUtils.createEOFSQLGenerator(SQLUtils.j
    > ava:31)
    > at
    > org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog.generateSql(Generat
    > eSQLDialog.java:182)
    > at
    > org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog$GenerateSqlHandler.
    > widgetSelected(GenerateSQLDialog.java:255)
    > at
    > org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
    > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1496)
    > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
    > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1505)
    > at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
    > at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3312)
    > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2941)
    > at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
    > at org.eclipse.jface.window.Window.open(Window.java:796)
    > at
    > org.objectstyle.wolips.eomodeler.actions.GenerateSQLAction.run(GenerateSQLActi
    > on.java:110)
    > at
    > org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:254)
    > at
    > org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:22
    > 9)
    > at
    > org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionCo
    > ntributionItem.java:539)
    > at
    > org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionIte
    > m.java:488)
    > at
    > org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributi
    > onItem.java:441)
    > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1496)
    > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
    > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1505)
    > at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
    > at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3312)
    > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2941)
    > at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
    > at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
    > at
    > org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
    > at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    > at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
    > at
    > org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.ja
    > va:78)
    > at
    > org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ec
    > lipseAppLauncher.java:92)
    > at
    > org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppL
    > auncher.java:68)
    > at
    > org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    > at
    > org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    > at
    > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    > at
    > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j
    > ava:25)
    > at java.lang.reflect.Method.invoke(Method.java:585)
    > at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    > at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    > at org.eclipse.core.launcher.Main.run(Main.java:977)
    > at org.eclipse.core.launcher.Main.main(Main.java:952)
    > Caused by: java.lang.ExceptionInInitializerError
    > at java.lang.Class.forName0(Native Method)
    > at java.lang.Class.forName(Class.java:164)
    > at
    > com.webobjects.foundation._NSUtilities._classWithPartialName(_NSUtilities.java
    > :307)
    > at
    > com.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:291)
    > at
    > com.webobjects.eoaccess.EOModel._setEntityForEntityNameClassName(EOModel.java:
    > 1242)
    > at
    > com.webobjects.eoaccess.EOModel._addFakeEntityWithPropertyList(EOModel.java:12
    > 80)
    > at
    > com.webobjects.eoaccess.EOModel._initWithTableOfContentsPropertyListPathURL(EO
    > Model.java:1092)
    > at com.webobjects.eoaccess.EOModel.<init>(EOModel.java:802)
    > at
    >
    com.webobjects.eoaccess.EOModelGroup.addModelWithPathURL(EOModelGroup.java:498>
    )
    > at
    > org.objectstyle.wolips.eomodeler.sql.EOFSQLGenerator.<init>(EOFSQLGenerator.ja
    > va:114)
    > ... 48 more
    > Caused by: java.lang.ClassCastException: er.extensions.EOEnterpriseObjectClazz
    > at dm.appexdiving.Administrator.<clinit>(Administrator.java:42)
    > ... 58 more
    >
    >
    >
    > on 9/14/06 4:18 PM, Mike Schrag at mschra..dimension.com wrote:
    >
    >> It would appear that you have an EO class (EOUserInterfaceParameters) that
    >> creates a JFrame in a static block?  This is then attempting to start the AWT
    >> stack, which it cannot because it's running inside of SWT in Eclipse. 
    >> Creating a JFrame inside of an EO seems .... suspicious .... at the very
    >> least.  This might be a really hard one to resolve.
    >>
    >> ms
    >>
    >> On Sep 14, 2006, at 8:10 AM, Denis Frolov wrote:
    >>
    >>> Thanks for quick reply! Test project is not using prototypes. Console.log
    >>> indeed has the stack trace (although I was pretty sure that Iนve checked it
    >>> before e-mailing the list...). Here goes the stack trace...
    >>>
    >>> ===== Thursday, September 14, 2006 4:05:42 PM Europe/Moscow =====
    >>> Loading model: MyEOModel
    >>> EOFSQLGenerator.getModelProcessor: Missing model processor
    >>> org.objectstyle.wolips.eomodeler.EOModelProcessor
    >>> [2006-09-14 16:05:50 MSD] <main> Principal class 'EOInitializer' not found
    >>> in bundle JavaEOCocoa
    >>> [2006-09-14 16:05:50 MSD] <main> java.awt.HeadlessException
    >>>     at
    >>> java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
    >>>     at java.awt.Window.<init>(Window.java:317)
    >>>     at java.awt.Frame.<init>(Frame.java:419)
    >>>     at javax.swing.JFrame.<init>(JFrame.java:194)
    >>>     at
    >>>
    com.webobjects.eoapplication.EOUserInterfaceParameters._populateValuesWithDe>>>
    f
    >>> aults(EOUserInterfaceParameters.java:201)
    >>>     at
    >>>
    com.webobjects.eoapplication.EOUserInterfaceParameters.<clinit>(EOUserInterf>>>
    a
    >>> ceParameters.java:157)
    >>>     at com.webobjects.eotool.EOToolFactory.<clinit>(EOToolFactory.java:46)
    >>>     at java.lang.Class.forName0(Native Method)
    >>>     at java.lang.Class.forName(Class.java:164)
    >>>     at
    >>>
    com.webobjects.foundation._NSUtilities._classWithPartialName(_NSUtilities.ja>>>
    v
    >>> a:307)
    >>>     at
    >>> com.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:291)
    >>>     at
    >>> com.webobjects.foundation.NSBundle.initPrincipalClass(NSBundle.java:2553)
    >>>     at
    >>> com.webobjects.foundation.NSBundle.InitPrincipalClasses(NSBundle.java:710)
    >>>     at com.webobjects.foundation.NSBundle.<clinit>(NSBundle.java:368)
    >>>     at
    >>>
    com.webobjects.eoaccess.EOAdaptor.infoDictionaryForAdaptorNamed(EOAdaptor.ja>>>
    v
    >>> a:238)
    >>>     at
    >>> com.webobjects.eoaccess.EOAdaptor.classNameForAdaptorNamed(EOAdaptor.java:25
    >>> 4>> )
    >>>     at
    >>> com.webobjects.eoaccess.EOAdaptor.classForAdaptorNamed(EOAdaptor.java:271)
    >>>     at
    >>> com.webobjects.eoaccess.EOAdaptor.adaptorWithName(EOAdaptor.java:295)
    >>>     at
    >>> com.webobjects.eoaccess.EOAdaptor.adaptorWithModel(EOAdaptor.java:325)
    >>>     at com.webobjects.eoaccess.EODatabase.<init>(EODatabase.java:215)
    >>>     at
    >>>
    org.objectstyle.wolips.eomodeler.sql.EOFSQLGenerator.getSchemaCreationScript>>>
    (
    >>> EOFSQLGenerator.java:265)
    >>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    >>>     at
    >>>
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39>>>
    )
    >>>     at
    >>>
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl>>>
    .
    >>> java:25)
    >>>     at java.lang.reflect.Method.invoke(Method.java:585)
    >>>     at
    >>>
    org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog.generateSql(Gener>>>
    a
    >>> teSQLDialog.java:184)
    >>>     at
    >>>
    org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog$GenerateSqlHandle>>>
    r
    >>> .widgetSelected(GenerateSQLDialog.java:255)
    >>>     at
    >>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
    >>>     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    >>>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1496)
    >>>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
    >>>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1505)
    >>>     at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
    >>>     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3312)
    >>>     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2941)
    >>>     at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
    >>>     at org.eclipse.jface.window.Window.open(Window.java:796)
    >>>     at
    >>>
    org.objectstyle.wolips.eomodeler.actions.GenerateSQLAction.run(GenerateSQLAc>>>
    t
    >>> ion.java:110)
    >>>     at
    >>> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:254)
    >>>     at
    >>>
    org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:>>>
    2
    >>> 29)
    >>>     at
    >>>
    org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Action>>>
    C
    >>> ontributionItem.java:539)
    >>>     at
    >>>
    org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionI>>>
    t
    >>> em.java:488)
    >>>     at
    >>>
    org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContribu>>>
    t
    >>> ionItem.java:441)
    >>>     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    >>>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1496)
    >>>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
    >>>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1505)
    >>>     at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
    >>>     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3312)
    >>>     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2941)
    >>>     at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
    >>>     at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
    >>>     at
    >>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
    >>>     at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    >>>     at
    >>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
    >>>     at
    >>>
    org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.>>>
    j
    >>> ava:78)
    >>>     at
    >>>
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(>>>
    E
    >>> clipseAppLauncher.java:92)
    >>>     at
    >>>
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAp>>>
    p
    >>> Launcher.java:68)
    >>>     at
    >>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    >>>     at
    >>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    >>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    >>>     at
    >>>
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39>>>
    )
    >>>     at
    >>>
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl>>>
    .
    >>> java:25)
    >>>     at java.lang.reflect.Method.invoke(Method.java:585)
    >>>     at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    >>>     at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    >>>     at org.eclipse.core.launcher.Main.run(Main.java:977)
    >>>     at org.eclipse.core.launcher.Main.main(Main.java:952)
    >>>
    >>> java.lang.reflect.InvocationTargetException
    >>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    >>>     at
    >>>
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39>>>
    )
    >>>     at
    >>>
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl>>>
    .
    >>> java:25)
    >>>     at java.lang.reflect.Method.invoke(Method.java:585)
    >>>     at
    >>>
    org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog.generateSql(Gener>>>
    a
    >>> teSQLDialog.java:184)
    >>>     at
    >>>
    org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog$GenerateSqlHandle>>>
    r
    >>> .widgetSelected(GenerateSQLDialog.java:255)
    >>>     at
    >>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
    >>>     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    >>>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1496)
    >>>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
    >>>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1505)
    >>>     at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
    >>>     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3312)
    >>>     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2941)
    >>>     at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
    >>>     at org.eclipse.jface.window.Window.open(Window.java:796)
    >>>     at
    >>>
    org.objectstyle.wolips.eomodeler.actions.GenerateSQLAction.run(GenerateSQLAc>>>
    t
    >>> ion.java:110)
    >>>     at
    >>> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:254)
    >>>     at
    >>>
    org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:>>>
    2
    >>> 29)
    >>>     at
    >>>
    org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Action>>>
    C
    >>> ontributionItem.java:539)
    >>>     at
    >>>
    org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionI>>>
    t
    >>> em.java:488)
    >>>     at
    >>>
    org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContribu>>>
    t
    >>> ionItem.java:441)
    >>>     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    >>>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1496)
    >>>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
    >>>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1505)
    >>>     at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
    >>>     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3312)
    >>>     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2941)
    >>>     at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
    >>>     at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
    >>>     at
    >>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
    >>>     at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    >>>     at
    >>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
    >>>     at
    >>>
    org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.>>>
    j
    >>> ava:78)
    >>>     at
    >>>
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(>>>
    E
    >>> clipseAppLauncher.java:92)
    >>>     at
    >>>
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAp>>>
    p
    >>> Launcher.java:68)
    >>>     at
    >>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    >>>     at
    >>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    >>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    >>>     at
    >>>
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39>>>
    )
    >>>     at
    >>>
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl>>>
    .
    >>> java:25)
    >>>     at java.lang.reflect.Method.invoke(Method.java:585)
    >>>     at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    >>>     at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    >>>     at org.eclipse.core.launcher.Main.run(Main.java:977)
    >>>     at org.eclipse.core.launcher.Main.main(Main.java:952)
    >>> Caused by: java.lang.ExceptionInInitializerError
    >>>     at com.webobjects.eotool.EOToolFactory.<clinit>(EOToolFactory.java:46)
    >>>     at java.lang.Class.forName0(Native Method)
    >>>     at java.lang.Class.forName(Class.java:164)
    >>>     at
    >>>
    com.webobjects.foundation._NSUtilities._classWithPartialName(_NSUtilities.ja>>>
    v
    >>> a:307)
    >>>     at
    >>> com.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:291)
    >>>     at
    >>> com.webobjects.foundation.NSBundle.initPrincipalClass(NSBundle.java:2553)
    >>>     at
    >>> com.webobjects.foundation.NSBundle.InitPrincipalClasses(NSBundle.java:710)
    >>>     at com.webobjects.foundation.NSBundle.<clinit>(NSBundle.java:368)
    >>>     at
    >>>
    com.webobjects.eoaccess.EOAdaptor.infoDictionaryForAdaptorNamed(EOAdaptor.ja>>>
    v
    >>> a:238)
    >>>     at
    >>> com.webobjects.eoaccess.EOAdaptor.classNameForAdaptorNamed(EOAdaptor.java:25
    >>> 4>> )
    >>>     at
    >>> com.webobjects.eoaccess.EOAdaptor.classForAdaptorNamed(EOAdaptor.java:271)
    >>>     at
    >>> com.webobjects.eoaccess.EOAdaptor.adaptorWithName(EOAdaptor.java:295)
    >>>     at
    >>> com.webobjects.eoaccess.EOAdaptor.adaptorWithModel(EOAdaptor.java:325)
    >>>     at com.webobjects.eoaccess.EODatabase.<init>(EODatabase.java:215)
    >>>     at
    >>>
    org.objectstyle.wolips.eomodeler.sql.EOFSQLGenerator.getSchemaCreationScript>>>
    (
    >>> EOFSQLGenerator.java:265)
    >>>     ... 47 more
    >>> Caused by: java.awt.HeadlessException
    >>>     at
    >>> java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
    >>>     at java.awt.Window.<init>(Window.java:317)
    >>>     at java.awt.Frame.<init>(Frame.java:419)
    >>>     at javax.swing.JFrame.<init>(JFrame.java:194)
    >>>     at
    >>>
    com.webobjects.eoapplication.EOUserInterfaceParameters._populateValuesWithDe>>>
    f
    >>> aults(EOUserInterfaceParameters.java:201)
    >>>     at
    >>>
    com.webobjects.eoapplication.EOUserInterfaceParameters.<clinit>(EOUserInterf>>>
    a
    >>> ceParameters.java:157)
    >>>     ... 62 more
    >>>
    >>>
    >>>
    >>> on 9/14/06 3:35 PM, Mike Schrag at mschra..dimension.com wrote:
    >>>
    >>>> Are you using prototypes?  The full stack trace is probably writing  
    >>>> to the console.  I think maybe that writes into the .log file inside  
    >>>> of your workspace/.metadata folder?
    >>>>
    >>>> On Sep 14, 2006, at 7:19 AM, Denis Frolov wrote:
    >>>>
    >>>>> Hi,
    >>>>>
    >>>>> I'm trying to generate SQL for my model with the latest Eclipse/
    >>>>> WOLips and
    >>>>> get a dialog box with " java.lang.ExceptionInInitializerError:  
    >>>>> null" each
    >>>>> time I click on the View SQL button on the SQL Generation panel.
    >>>>>
    >>>>> I've tried a new project with new EOModel and got the same results.  
    >>>>> I've
    >>>>> tried with two adaptors:
    >>>>>
    >>>>> URL = "jdbc:frontbase://127.0.0.1/MyDB"
    >>>>> URL = "jdbc:mysql://127.0.0.1/MyDB"
    >>>>>
    >>>>> (driver/plugin values are null)
    >>>>>
    >>>>> but the result is always the same - error message above. EOModeler  
    >>>>> generates
    >>>>> sql without problems for these models.
    >>>>>
    >>>>> All our developer computers (both mac/pc) have this error for  
    >>>>> different
    >>>>> projects. Obviously, I'm missing something...
    >>>>>
    >>>>> ps. By the way, is there any way to further debug this error  
    >>>>> message? I
    >>>>> cannot see this error in Eclipse Error Log. Is there any other  
    >>>>> source of
    >>>>> additional debug information?
    >>>>>
    >>>>> ---
    >>>>> Denis Frolov
    >>>>> Design Maximum MA
    >>>>>
    >>>>> Tel: +7 863 2648211
    >>>>> Fax: +7 863 2645229
    >>>>> Web: http://www.designmaximum.com
    >>>>>
    >>>>>
    >>>>
    >>>>
    >>>
    >>>
    >>> ---
    >>> Denis Frolov
    >>> Design Maximum MA
    >>>
    >>> Tel: +7 863 2648211
    >>> Fax: +7 863 2645229
    >>> Web: http://www.designmaximum.com
    >>>
    >>>
    >>
    >>
    >
    >
    > ---
    > Denis Frolov
    > Design Maximum MA
    >
    > Tel: +7 863 2648211
    > Fax: +7 863 2645229
    > Web: http://www.designmaximum.com
    >
    >

    ---
    Denis Frolov
    Design Maximum MA
    

    Tel: +7 863 2648211 Fax: +7 863 2645229 Web: http://www.designmaximum.com



    This archive was generated by hypermail 2.0.0 : Thu Sep 14 2006 - 08:58:10 EDT