Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » model reference at runtime.
model reference at runtime. [message #395679] Mon, 19 September 2005 13:11 Go to next message
Rashmy A is currently offline Rashmy AFriend
Messages: 149
Registered: July 2009
Senior Member
Hi,

I have created two EMF Projects GSConnection and GSUtil and generated its
model and edit code. Next I created a 3rd EMF project called GSBod that
references GSConnection and GSUtil. I was successful in generating the
model, edit and editor code for GSBod with all references resolved but when
I test GSBod Editor in my runtime workbench, I get the following error..
java.lang.ExceptionInInitializerError
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at
sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unsa feFieldAccessorF
actory.java:25)
at
sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFac tory.java:122)
at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
at java.lang.reflect.Field.get(Field.java:357)
at
org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescript or.getEPackage(R
egistryReader.java:167)
at
org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistry
Impl.java:107)
at
com.teamcenter.gside.model.connection.impl.GSConnectionPacka geImpl.init(GSCo
nnectionPackageImpl.java:118)
at
com.teamcenter.gside.model.bod.impl.GSBodPackageImpl.init(GS BodPackageImpl.j
ava:215)
at
com.teamcenter.gside.model.bod.GSBodPackage.<clinit>(GSBodPackage.java:62)
at
com.teamcenter.gside.model.bod.presentation.GSBodModelWizard . <init>(GSBodMod
elWizard.java:108)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAcces
sorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstruc
torAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:162)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:142)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:129)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutab
leExtension(ConfigurationElementHandle.java:48)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:240)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java
:236)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExten
sion(WorkbenchWizardElement.java:118)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(Workbenc
hWizardElement.java:276)
at
org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNew
Page.java:724)

Looks like the GSConnection and GSUtil are not found in the registry. Could
you please let me know what runtime references are required for GSBod Editor
to work in the runtime workbench.
Thanks,
Rashmy
Re: model reference at runtime. [message #395680 is a reply to message #395679] Mon, 19 September 2005 13:20 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Rashmy,

It sounds like there was an exception initializing the package, but you
are only showing the stack where the exception is caught and rethrown.
The information about what caused the exception is where the interesting
information is hiding and you've not shown that.

You didn't fiddle with classpaths to make your example compile, did you?


Rashmy wrote:

>Hi,
>
>I have created two EMF Projects GSConnection and GSUtil and generated its
>model and edit code. Next I created a 3rd EMF project called GSBod that
>references GSConnection and GSUtil. I was successful in generating the
>model, edit and editor code for GSBod with all references resolved but when
>I test GSBod Editor in my runtime workbench, I get the following error..
>java.lang.ExceptionInInitializerError
> at sun.misc.Unsafe.ensureClassInitialized(Native Method)
> at
> sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unsa feFieldAccessorF
>actory.java:25)
> at
> sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFac tory.java:122)
> at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
> at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
> at java.lang.reflect.Field.get(Field.java:357)
> at
> org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescript or.getEPackage(R
>egistryReader.java:167)
> at
> org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistry
>Impl.java:107)
> at
> com.teamcenter.gside.model.connection.impl.GSConnectionPacka geImpl.init(GSCo
>nnectionPackageImpl.java:118)
> at
> com.teamcenter.gside.model.bod.impl.GSBodPackageImpl.init(GS BodPackageImpl.j
>ava:215)
> at
>com.teamcenter.gside.model.bod.GSBodPackage.<clinit>(GSBodPackage.java:62)
> at
> com.teamcenter.gside.model.bod.presentation.GSBodModelWizard . <init>(GSBodMod
>elWizard.java:108)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAcces
>sorImpl.java:39)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstruc
>torAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
> at java.lang.Class.newInstance0(Class.java:350)
> at java.lang.Class.newInstance(Class.java:303)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
>nsion(ConfigurationElement.java:162)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
>nsion(ConfigurationElement.java:142)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
>nsion(ConfigurationElement.java:129)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutab
>leExtension(ConfigurationElementHandle.java:48)
> at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:240)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java
>:236)
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExten
>sion(WorkbenchWizardElement.java:118)
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(Workbenc
>hWizardElement.java:276)
> at
> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNew
>Page.java:724)
>
>Looks like the GSConnection and GSUtil are not found in the registry. Could
>you please let me know what runtime references are required for GSBod Editor
>to work in the runtime workbench.
>Thanks,
>Rashmy
>
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: model reference at runtime. [message #395682 is a reply to message #395680] Mon, 19 September 2005 13:39 Go to previous messageGo to next message
Rashmy A is currently offline Rashmy AFriend
Messages: 149
Registered: July 2009
Senior Member
Ed,
I did not make any changes to the classpath. While creating GSBod Project I
referenced GSConnection.genmodel and GSUtil.genmodel in the 'Referenced
generator models' area. There were absolutely no problems in generating the
model,edit or editor code for GSBod. When I create the model in the runtime
workbench I just the error -'Selected wizard could not be started' and in
the details pannel I see the error -
'java.lang.ExceptionInInitializerError'. The console does not have any error
message... Let me know how I should go about debugging this problem.

Here is the complete output from the log file -
java.lang.ExceptionInInitializerError
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at
sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unsa feFieldAccessorF
actory.java:25)
at
sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFac tory.java:122)
at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
at java.lang.reflect.Field.get(Field.java:357)
at
org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescript or.getEPackage(R
egistryReader.java:167)
at
org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistry
Impl.java:107)
at
com.teamcenter.gside.model.connection.impl.GSConnectionPacka geImpl.init(GSCo
nnectionPackageImpl.java:118)
at
com.teamcenter.gside.model.bod.impl.GSBodPackageImpl.init(GS BodPackageImpl.j
ava:215)
at
com.teamcenter.gside.model.bod.GSBodPackage.<clinit>(GSBodPackage.java:62)
at
com.teamcenter.gside.model.bod.presentation.GSBodModelWizard . <init>(GSBodMod
elWizard.java:108)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAcces
sorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstruc
torAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:162)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:142)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:129)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutab
leExtension(ConfigurationElementHandle.java:48)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:240)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java
:236)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExten
sion(WorkbenchWizardElement.java:118)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(Workbenc
hWizardElement.java:276)
at
org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNew
Page.java:724)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNod
e.java:145)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNod
e.java:128)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizar
dNode.java:125)
at
org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage
..java:101)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(Wor
kbenchWizardSelectionPage.java:99)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:747)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:345)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:556)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:809 )
at org.eclipse.jface.window.Window.open(Window.java:787)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(Action
ContributionItem.java:538)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionI
tem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContribu
tionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
..java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Caused by: org.eclipse.emf.common.util.WrappedException:
com.teamcenter.gside.model.util.UtilPackage
at
org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescript or.getEPackage(R
egistryReader.java:172)
at
org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistry
Impl.java:107)
at
com.teamcenter.gside.model.util.impl.GSUtilPackageImpl.init( GSUtilPackageImp
l.java:106)
at
com.teamcenter.gside.model.connection.impl.GSConnectionPacka geImpl.init(GSCo
nnectionPackageImpl.java:123)
at
com.teamcenter.gside.model.connection.GSConnectionPackage.<clinit >(GSConnect
ionPackage.java:60)
Thanks,
Rashmy

"Ed Merks" <merks@ca.ibm.com> wrote in message
news:dgmdt4$801$1@news.eclipse.org...
> Rashmy,
>
> It sounds like there was an exception initializing the package, but you
> are only showing the stack where the exception is caught and rethrown.
> The information about what caused the exception is where the interesting
> information is hiding and you've not shown that.
>
> You didn't fiddle with classpaths to make your example compile, did you?
>
>
> Rashmy wrote:
>
> >Hi,
> >
> >I have created two EMF Projects GSConnection and GSUtil and generated its
> >model and edit code. Next I created a 3rd EMF project called GSBod that
> >references GSConnection and GSUtil. I was successful in generating the
> >model, edit and editor code for GSBod with all references resolved but
when
> >I test GSBod Editor in my runtime workbench, I get the following error..
> >java.lang.ExceptionInInitializerError
> > at sun.misc.Unsafe.ensureClassInitialized(Native Method)
> > at
>
> sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unsa feFieldAccessor
F
> >actory.java:25)
> > at
>
> sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFac tory.java:122)
> > at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
> > at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
> > at java.lang.reflect.Field.get(Field.java:357)
> > at
>
> org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescript or.getEPackage(
R
> >egistryReader.java:167)
> > at
>
> org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistr
y
> >Impl.java:107)
> > at
>
> com.teamcenter.gside.model.connection.impl.GSConnectionPacka geImpl.init(GSC
o
> >nnectionPackageImpl.java:118)
> > at
>
> com.teamcenter.gside.model.bod.impl.GSBodPackageImpl.init(GS BodPackageImpl.
j
> >ava:215)
> > at
>
>com.teamcenter.gside.model.bod.GSBodPackage.<clinit>(GSBodPackage.java:62)
> > at
>
> com.teamcenter.gside.model.bod.presentation.GSBodModelWizard . <init>(GSBodMo
d
> >elWizard.java:108)
> > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
> > at
>
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAcce
s
> >sorImpl.java:39)
> > at
>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstru
c
> >torAccessorImpl.java:27)
> > at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
> > at java.lang.Class.newInstance0(Class.java:350)
> > at java.lang.Class.newInstance(Class.java:303)
> > at
>
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExt
e
> >nsion(ConfigurationElement.java:162)
> > at
>
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExt
e
> >nsion(ConfigurationElement.java:142)
> > at
>
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExt
e
> >nsion(ConfigurationElement.java:129)
> > at
>
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecuta
b
> >leExtension(ConfigurationElementHandle.java:48)
> > at
org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:240)
> > at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> > at
>
> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.jav
a
> >:236)
> > at
>
> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExte
n
> >sion(WorkbenchWizardElement.java:118)
> > at
>
> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(Workben
c
> >hWizardElement.java:276)
> > at
>
> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNe
w
> >Page.java:724)
> >
> >Looks like the GSConnection and GSUtil are not found in the registry.
Could
> >you please let me know what runtime references are required for GSBod
Editor
> >to work in the runtime workbench.
> >Thanks,
> >Rashmy
> >
> >
> >
> >
Re: model reference at runtime. [message #395684 is a reply to message #395682] Mon, 19 September 2005 13:52 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000203020908020401020900
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Rashmy,

The trace still looks truncated to me. I still can't tell what is the
ultimate cause here is. Can you try clearing your .log and ensuring
that you capture all the information produced when running into this
problem?


Rashmy wrote:

>Ed,
>I did not make any changes to the classpath. While creating GSBod Project I
>referenced GSConnection.genmodel and GSUtil.genmodel in the 'Referenced
>generator models' area. There were absolutely no problems in generating the
>model,edit or editor code for GSBod. When I create the model in the runtime
>workbench I just the error -'Selected wizard could not be started' and in
>the details pannel I see the error -
>'java.lang.ExceptionInInitializerError'. The console does not have any error
>message... Let me know how I should go about debugging this problem.
>
>Here is the complete output from the log file -
>java.lang.ExceptionInInitializerError
> at sun.misc.Unsafe.ensureClassInitialized(Native Method)
> at
> sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unsa feFieldAccessorF
>actory.java:25)
> at
> sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFac tory.java:122)
> at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
> at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
> at java.lang.reflect.Field.get(Field.java:357)
> at
> org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescript or.getEPackage(R
>egistryReader.java:167)
> at
> org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistry
>Impl.java:107)
> at
> com.teamcenter.gside.model.connection.impl.GSConnectionPacka geImpl.init(GSCo
>nnectionPackageImpl.java:118)
> at
> com.teamcenter.gside.model.bod.impl.GSBodPackageImpl.init(GS BodPackageImpl.j
>ava:215)
> at
>com.teamcenter.gside.model.bod.GSBodPackage.<clinit>(GSBodPackage.java:62)
> at
> com.teamcenter.gside.model.bod.presentation.GSBodModelWizard . <init>(GSBodMod
>elWizard.java:108)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAcces
>sorImpl.java:39)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstruc
>torAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
> at java.lang.Class.newInstance0(Class.java:350)
> at java.lang.Class.newInstance(Class.java:303)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
>nsion(ConfigurationElement.java:162)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
>nsion(ConfigurationElement.java:142)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
>nsion(ConfigurationElement.java:129)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutab
>leExtension(ConfigurationElementHandle.java:48)
> at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:240)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java
>:236)
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExten
>sion(WorkbenchWizardElement.java:118)
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(Workbenc
>hWizardElement.java:276)
> at
> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNew
>Page.java:724)
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNod
>e.java:145)
> at
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
>:1044)
> at org.eclipse.core.runtime.Platform.run(Platform.java:783)
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNod
>e.java:128)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizar
>dNode.java:125)
> at
> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage
>.java:101)
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(Wor
>kbenchWizardSelectionPage.java:99)
> at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:747)
> at
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:345)
> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:556)
> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:809 )
> at org.eclipse.jface.window.Window.open(Window.java:787)
> at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:996 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(Action
>ContributionItem.java:538)
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionI
>tem.java:488)
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContribu
>tionItem.java:400)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
>java:226)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
>)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
>.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
> at org.eclipse.core.launcher.Main.run(Main.java:973)
> at org.eclipse.core.launcher.Main.main(Main.java:948)
>Caused by: org.eclipse.emf.common.util.WrappedException:
>com.teamcenter.gside.model.util.UtilPackage
> at
> org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescript or.getEPackage(R
>egistryReader.java:172)
> at
> org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistry
>Impl.java:107)
> at
> com.teamcenter.gside.model.util.impl.GSUtilPackageImpl.init( GSUtilPackageImp
>l.java:106)
> at
> com.teamcenter.gside.model.connection.impl.GSConnectionPacka geImpl.init(GSCo
>nnectionPackageImpl.java:123)
> at
>com.teamcenter.gside.model.connection.GSConnectionPackage.<clinit >(GSConnect
>ionPackage.java:60)
>Thanks,
>Rashmy
>
>"Ed Merks" <merks@ca.ibm.com> wrote in message
>news:dgmdt4$801$1@news.eclipse.org...
>
>
>>Rashmy,
>>
>>It sounds like there was an exception initializing the package, but you
>>are only showing the stack where the exception is caught and rethrown.
>>The information about what caused the exception is where the interesting
>>information is hiding and you've not shown that.
>>
>>You didn't fiddle with classpaths to make your example compile, did you?
>>
>>
>>Rashmy wrote:
>>
>>
>>
>>>Hi,
>>>
>>>I have created two EMF Projects GSConnection and GSUtil and generated its
>>>model and edit code. Next I created a 3rd EMF project called GSBod that
>>>references GSConnection and GSUtil. I was successful in generating the
>>>model, edit and editor code for GSBod with all references resolved but
>>>
>>>
>when
>
>
>>>I test GSBod Editor in my runtime workbench, I get the following error..
>>>java.lang.ExceptionInInitializerError
>>>at sun.misc.Unsafe.ensureClassInitialized(Native Method)
>>>at
>>>
>>>
>> sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unsa feFieldAccessor
>>
>>
>F
>
>
>>>actory.java:25)
>>>at
>>>
>>>
>> sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFac tory.java:122)
>>
>>
>>>at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
>>>at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
>>>at java.lang.reflect.Field.get(Field.java:357)
>>>at
>>>
>>>
>> org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescript or.getEPackage(
>>
>>
>R
>
>
>>>egistryReader.java:167)
>>>at
>>>
>>>
>> org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistr
>>
>>
>y
>
>
>>>Impl.java:107)
>>>at
>>>
>>>
>> com.teamcenter.gside.model.connection.impl.GSConnectionPacka geImpl.init(GSC
>>
>>
>o
>
>
>>>nnectionPackageImpl.java:118)
>>>at
>>>
>>>
>> com.teamcenter.gside.model.bod.impl.GSBodPackageImpl.init(GS BodPackageImpl.
>>
>>
>j
>
>
>>>ava:215)
>>>at
>>>
>>>
>>com.teamcenter.gside.model.bod.GSBodPackage.<clinit>(GSBodPackage.java:62)
>>
>>
>>>at
>>>
>>>
>> com.teamcenter.gside.model.bod.presentation.GSBodModelWizard . <init>(GSBodMo
>>
>>
>d
>
>
>>>elWizard.java:108)
>>>at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
>>>at
>>>
>>>
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAcce
>>
>>
>s
>
>
>>>sorImpl.java:39)
>>>at
>>>
>>>
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstru
>>
>>
>c
>
>
>>>torAccessorImpl.java:27)
>>>at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
>>>at java.lang.Class.newInstance0(Class.java:350)
>>>at java.lang.Class.newInstance(Class.java:303)
>>>at
>>>
>>>
>> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExt
>>
>>
>e
>
>
>>>nsion(ConfigurationElement.java:162)
>>>at
>>>
>>>
>> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExt
>>
>>
>e
>
>
>>>nsion(ConfigurationElement.java:142)
>>>at
>>>
>>>
>> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExt
>>
>>
>e
>
>
>>>nsion(ConfigurationElement.java:129)
>>>at
>>>
>>>
>> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecuta
>>
>>
>b
>
>
>>>leExtension(ConfigurationElementHandle.java:48)
>>>at
>>>
>>>
> org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:240)
>
>
>>>at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
>>>at
>>>
>>>
>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.jav
>>
>>
>a
>
>
>>>:236)
>>>at
>>>
>>>
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExte
>>
>>
>n
>
>
>>>sion(WorkbenchWizardElement.java:118)
>>>at
>>>
>>>
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(Workben
>>
>>
>c
>
>
>>>hWizardElement.java:276)
>>>at
>>>
>>>
>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNe
>>
>>
>w
>
>
>>>Page.java:724)
>>>
>>>Looks like the GSConnection and GSUtil are not found in the registry.
>>>
>>>
>Could
>
>
>>>you please let me know what runtime references are required for GSBod
>>>
>>>
>Editor
>
>
>>>to work in the runtime workbench.
>>>Thanks,
>>>Rashmy
>>>
>>>
>>>
>>>
>>>
>>>
>
>
>
>


--------------000203020908020401020900
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Rashmy,<br>
<br>
The trace still looks truncated to me.&nbsp; I still can't tell what is the
ultimate cause here is.&nbsp; Can you try clearing your .log and ensuring
that you capture all the information produced when running into this
problem?<br>
<br>
<br>
Rashmy wrote:
<blockquote cite="middgmf1s$9nv$1@news.eclipse.org" type="cite">
<pre wrap="">Ed,
I did not make any changes to the classpath. While creating GSBod Project I
referenced GSConnection.genmodel and GSUtil.genmodel in the 'Referenced
generator models' area. There were absolutely no problems in generating the
model,edit or editor code for GSBod. When I create the model in the runtime
workbench I just the error -'Selected wizard could not be started' and in
the details pannel I see the error -
'java.lang.ExceptionInInitializerError'. The console does not have any error
message... Let me know how I should go about debugging this problem.

Here is the complete output from the log file -
java.lang.ExceptionInInitializerError
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at
sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unsa feFieldAccessorF
actory.java:25)
at
sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFac tory.java:122)
at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
at java.lang.reflect.Field.get(Field.java:357)
at
org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescript or.getEPackage(R
egistryReader.java:167)
at
org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistry
Impl.java:107)
at
com.teamcenter.gside.model.connection.impl.GSConnectionPacka geImpl.init(GSCo
nnectionPackageImpl.java:118)
at
com.teamcenter.gside.model.bod.impl.GSBodPackageImpl.init(GS BodPackageImpl.j
ava:215)
at
com.teamcenter.gside.model.bod.GSBodPackage.&lt;clinit&a mp;gt;(GSBodPackage.java:62)
at
com.teamcenter.gside.model.bod.presentation.GSBodModelWizard .&lt;init&gt;(GSBodMod
elWizard.java:108)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAcces
sorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstruc
torAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:162)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:142)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:129)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutab
leExtension(ConfigurationElementHandle.java:48)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:240)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java
:236)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExten
sion(WorkbenchWizardElement.java:118)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(Workbenc
hWizardElement.java:276)
at
org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNew
Page.java:724)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNod
e.java:145)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNod
e.java:128)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizar
dNode.java:125)
at
org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage
..java:101)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(Wor
kbenchWizardSelectionPage.java:99)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:747)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:345)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:556)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:809 )
at org.eclipse.jface.window.Window.open(Window.java:787)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(Action
ContributionItem.java:538)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionI
tem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContribu
tionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
<a class="moz-txt-link-freetext" href="java:226">java:226</a>)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
..java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Caused by: org.eclipse.emf.common.util.WrappedException:
com.teamcenter.gside.model.util.UtilPackage
at
org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescript or.getEPackage(R
egistryReader.java:172)
at
org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistry
Impl.java:107)
at
com.teamcenter.gside.model.util.impl.GSUtilPackageImpl.init( GSUtilPackageImp
l.java:106)
at
com.teamcenter.gside.model.connection.impl.GSConnectionPacka geImpl.init(GSCo
nnectionPackageImpl.java:123)
at
com.teamcenter.gside.model.connection.GSConnectionPackage.&a mp;lt;clinit&gt;(GSConnect
ionPackage.java:60)
Thanks,
Rashmy

"Ed Merks" <a class="moz-txt-link-rfc2396E" href="mailto:merks@ca.ibm.com">&lt;merks@ca.ibm.com&gt;</a> wrote in message
<a class="moz-txt-link-freetext" href="news:dgmdt4$801$1@news.eclipse.org">news:dgmdt4$801$1@news.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Rashmy,

It sounds like there was an exception initializing the package, but you
are only showing the stack where the exception is caught and rethrown.
The information about what caused the exception is where the interesting
information is hiding and you've not shown that.

You didn't fiddle with classpaths to make your example compile, did you?


Rashmy wrote:

</pre>
<blockquote type="cite">
<pre wrap="">Hi,

I have created two EMF Projects GSConnection and GSUtil and generated its
model and edit code. Next I created a 3rd EMF project called GSBod that
references GSConnection and GSUtil. I was successful in generating the
model, edit and editor code for GSBod with all references resolved but
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->when
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">I test GSBod Editor in my runtime workbench, I get the following error..
java.lang.ExceptionInInitializerError
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at
</pre>
</blockquote>
<pre wrap=""> sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unsa feFieldAccessor
</pre>
</blockquote>
<pre wrap=""><!---->F
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">actory.java:25)
at
</pre>
</blockquote>
<pre wrap=""> sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFac tory.java:122)
</pre>
<blockquote type="cite">
<pre wrap="">at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
at java.lang.reflect.Field.get(Field.java:357)
at
</pre>
</blockquote>
<pre wrap=""> org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescript or.getEPackage(
</pre>
</blockquote>
<pre wrap=""><!---->R
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">egistryReader.java:167)
at
</pre>
</blockquote>
<pre wrap=""> org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistr
</pre>
</blockquote>
<pre wrap=""><!---->y
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">Impl.java:107)
at
</pre>
</blockquote>
<pre wrap=""> com.teamcenter.gside.model.connection.impl.GSConnectionPacka geImpl.init(GSC
</pre>
</blockquote>
<pre wrap=""><!---->o
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">nnectionPackageImpl.java:118)
at
</pre>
</blockquote>
<pre wrap=""> com.teamcenter.gside.model.bod.impl.GSBodPackageImpl.init(GS BodPackageImpl.
</pre>
</blockquote>
<pre wrap=""><!---->j
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">ava:215)
at
</pre>
</blockquote>
<pre wrap=""> com.teamcenter.gside.model.bod.GSBodPackage.&lt;clinit&a mp;gt;(GSBodPackage.java:62)
</pre>
<blockquote type="cite">
<pre wrap="">at
</pre>
</blockquote>
<pre wrap=""> com.teamcenter.gside.model.bod.presentation.GSBodModelWizard .&lt;init&gt;(GSBodMo
</pre>
</blockquote>
<pre wrap=""><!---->d
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">elWizard.java:108)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at
</pre>
</blockquote>
<pre wrap=""> sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAcce
</pre>
</blockquote>
<pre wrap=""><!---->s
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">sorImpl.java:39)
at
</pre>
</blockquote>
<pre wrap=""> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstru
</pre>
</blockquote>
<pre wrap=""><!---->c
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">torAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at
</pre>
</blockquote>
<pre wrap=""> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExt
</pre>
</blockquote>
<pre wrap=""><!---->e
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">nsion(ConfigurationElement.java:162)
at
</pre>
</blockquote>
<pre wrap=""> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExt
</pre>
</blockquote>
<pre wrap=""><!---->e
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">nsion(ConfigurationElement.java:142)
at
</pre>
</blockquote>
<pre wrap=""> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExt
</pre>
</blockquote>
<pre wrap=""><!---->e
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">nsion(ConfigurationElement.java:129)
at
</pre>
</blockquote>
<pre wrap=""> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecuta
</pre>
</blockquote>
<pre wrap=""><!---->b
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">leExtension(ConfigurationElementHandle.java:48)
at
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!----> org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:240)
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
</pre>
</blockquote>
<pre wrap=""> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.jav
</pre>
</blockquote>
<pre wrap=""><!---->a
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">:236)
at
</pre>
</blockquote>
<pre wrap=""> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExte
</pre>
</blockquote>
<pre wrap=""><!---->n
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">sion(WorkbenchWizardElement.java:118)
at
</pre>
</blockquote>
<pre wrap=""> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(Workben
</pre>
</blockquote>
<pre wrap=""><!---->c
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">hWizardElement.java:276)
at
</pre>
</blockquote>
<pre wrap=""> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNe
</pre>
</blockquote>
<pre wrap=""><!---->w
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">Page.java:724)

Looks like the GSConnection and GSUtil are not found in the registry.
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->Could
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">you please let me know what runtime references are required for GSBod
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->Editor
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">to work in the runtime workbench.
Thanks,
Rashmy




</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->

</pre>
</blockquote>
<br>
</body>
</html>

--------------000203020908020401020900--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: model reference at runtime. [message #395685 is a reply to message #395680] Mon, 19 September 2005 14:14 Go to previous message
Rashmy A is currently offline Rashmy AFriend
Messages: 149
Registered: July 2009
Senior Member
Ed,
I created a shortcut solution. I decided to combine both GSConnection and
GSUtil into one project and then referenced it in GSBod and it works like a
charm now!

Thanks,
Rashmy

"Ed Merks" <merks@ca.ibm.com> wrote in message
news:dgmdt4$801$1@news.eclipse.org...
> Rashmy,
>
> It sounds like there was an exception initializing the package, but you
> are only showing the stack where the exception is caught and rethrown.
> The information about what caused the exception is where the interesting
> information is hiding and you've not shown that.
>
> You didn't fiddle with classpaths to make your example compile, did you?
>
>
> Rashmy wrote:
>
> >Hi,
> >
> >I have created two EMF Projects GSConnection and GSUtil and generated its
> >model and edit code. Next I created a 3rd EMF project called GSBod that
> >references GSConnection and GSUtil. I was successful in generating the
> >model, edit and editor code for GSBod with all references resolved but
when
> >I test GSBod Editor in my runtime workbench, I get the following error..
> >java.lang.ExceptionInInitializerError
> > at sun.misc.Unsafe.ensureClassInitialized(Native Method)
> > at
>
> sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unsa feFieldAccessor
F
> >actory.java:25)
> > at
>
> sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFac tory.java:122)
> > at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
> > at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
> > at java.lang.reflect.Field.get(Field.java:357)
> > at
>
> org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescript or.getEPackage(
R
> >egistryReader.java:167)
> > at
>
> org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistr
y
> >Impl.java:107)
> > at
>
> com.teamcenter.gside.model.connection.impl.GSConnectionPacka geImpl.init(GSC
o
> >nnectionPackageImpl.java:118)
> > at
>
> com.teamcenter.gside.model.bod.impl.GSBodPackageImpl.init(GS BodPackageImpl.
j
> >ava:215)
> > at
>
>com.teamcenter.gside.model.bod.GSBodPackage.<clinit>(GSBodPackage.java:62)
> > at
>
> com.teamcenter.gside.model.bod.presentation.GSBodModelWizard . <init>(GSBodMo
d
> >elWizard.java:108)
> > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
> > at
>
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAcce
s
> >sorImpl.java:39)
> > at
>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstru
c
> >torAccessorImpl.java:27)
> > at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
> > at java.lang.Class.newInstance0(Class.java:350)
> > at java.lang.Class.newInstance(Class.java:303)
> > at
>
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExt
e
> >nsion(ConfigurationElement.java:162)
> > at
>
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExt
e
> >nsion(ConfigurationElement.java:142)
> > at
>
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExt
e
> >nsion(ConfigurationElement.java:129)
> > at
>
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecuta
b
> >leExtension(ConfigurationElementHandle.java:48)
> > at
org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:240)
> > at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> > at
>
> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.jav
a
> >:236)
> > at
>
> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExte
n
> >sion(WorkbenchWizardElement.java:118)
> > at
>
> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(Workben
c
> >hWizardElement.java:276)
> > at
>
> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNe
w
> >Page.java:724)
> >
> >Looks like the GSConnection and GSUtil are not found in the registry.
Could
> >you please let me know what runtime references are required for GSBod
Editor
> >to work in the runtime workbench.
> >Thanks,
> >Rashmy
> >
> >
> >
> >
Previous Topic:schemaLocation in <import>
Next Topic:headless-batch processing of: genmodel.reload and genmodel.generate
Goto Forum:
  


Current Time: Tue Apr 16 13:43:44 GMT 2024

Powered by FUDForum. Page generated in 1.06739 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top