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("Administrat
or");
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(NativeConstructorAcces
sorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
org.objectstyle.wolips.eomodeler.sql.SQLUtils.createEOFSQLGenerator(SQLUtils
.java:31)
at
org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog.generateSql(Gener
ateSQLDialog.java:182)
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 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.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
org.objectstyle.wolips.eomodeler.sql.EOFSQLGenerator.<init>(EOFSQLGenerator.
java: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._populateValuesWithDef
>> aults(EOUserInterfaceParameters.java:201)
>> at
>> com.webobjects.eoapplication.EOUserInterfaceParameters.<clinit>(EOUserInterfa
>> 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.jav
>> 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.jav
>> a:238)
>> at
>>
com.webobjects.eoaccess.EOAdaptor.classNameForAdaptorNamed(EOAdaptor.java:254>>
)
>> 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(Genera
>> teSQLDialog.java:184)
>> 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(GenerateSQLAct
>> 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(ActionC
>> ontributionItem.java:539)
>> at
>> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionIt
>> em.java:488)
>> at
>> org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContribut
>> 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(EclipseApp
>> 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(Genera
>> teSQLDialog.java:184)
>> 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(GenerateSQLAct
>> 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(ActionC
>> ontributionItem.java:539)
>> at
>> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionIt
>> em.java:488)
>> at
>> org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContribut
>> 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(EclipseApp
>> 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.jav
>> 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.jav
>> a:238)
>> at
>>
com.webobjects.eoaccess.EOAdaptor.classNameForAdaptorNamed(EOAdaptor.java:254>>
)
>> 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._populateValuesWithDef
>> aults(EOUserInterfaceParameters.java:201)
>> at
>> com.webobjects.eoapplication.EOUserInterfaceParameters.<clinit>(EOUserInterfa
>> 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 MATel: +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:40:18 EDT