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

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

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

    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
    faults(EOUserInterfaceParameters.java:201)
        at
    com.webobjects.eoapplication.EOUserInterfaceParameters.<clinit>(EOUserInterf
    aceParameters.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
    va: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
    va: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
    ateSQLDialog.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
    tion.java:110)
        at
    org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:254)
        at
    org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:
    229)
        at
    org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Action
    ContributionItem.java:539)
        at
    org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionI
    tem.java:488)
        at
    org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContribu
    tionItem.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.
    java:78)
        at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
    EclipseAppLauncher.java:92)
        at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAp
    pLauncher.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
    ateSQLDialog.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
    tion.java:110)
        at
    org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:254)
        at
    org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:
    229)
        at
    org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Action
    ContributionItem.java:539)
        at
    org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionI
    tem.java:488)
        at
    org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContribu
    tionItem.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.
    java:78)
        at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
    EclipseAppLauncher.java:92)
        at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAp
    pLauncher.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
    va: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
    va: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
    faults(EOUserInterfaceParameters.java:201)
        at
    com.webobjects.eoapplication.EOUserInterfaceParameters.<clinit>(EOUserInterf
    aceParameters.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



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