Kevin, do we have full support for -noEMF in M2 ?
Does this have anything to do with the issue ?
  http://www.mail-archive.com/[email protected]/msg10894.html

--
Luciano Resende
http://people.apache.org/~lresende

On 1/23/07, Sam Su <[EMAIL PROTECTED]> wrote:

but if I add '-noEMF' argument to XSD2JavaGenerator command to generate
static data object code,
SDOUtil.registerStaticTypes(LibraryFactory.class)
will occur an exception:

java.lang.ExceptionInInitializerError
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unknown Source)
at sun.reflect.ReflectionFactory.newFieldAccessor(Unknown Source)
at java.lang.reflect.Field.acquireFieldAccessor(Unknown Source)
at java.lang.reflect.Field.getFieldAccessor(Unknown Source)
at java.lang.reflect.Field.get(Unknown Source)
at org.apache.tuscany.sdo.util.SDOUtil.registerStaticTypes(SDOUtil.java
:578)
at example.junit.UserTest.setUp(UserTest.java:43)
at junit.framework.TestCase.runBare(TestCase.java:125)
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 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
RemoteTestRunner.java:478)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
RemoteTestRunner.java:344)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
RemoteTestRunner.java:196)
Caused by: java.lang.ClassCastException:
org.eclipse.example.library.impl.LibraryFactoryImpl
at org.eclipse.example.library.impl.LibraryPackageImpl.<init>(
LibraryPackageImpl.java:204)
at org.eclipse.example.library.impl.LibraryPackageImpl.init(
LibraryPackageImpl.java:241)
at org.eclipse.example.library.impl.LibraryPackageImpl.<clinit>(
LibraryPackageImpl.java:70)
... 16 more

Must the factory class for generating static data object be the subclass
of
EFactory?


Reply via email to