<
jayjaybillings@xxxxxxxxx <mailto:
jayjaybillings@gmail.com>> wrote:
    Igor,
    Changing the repository and running mvn clean seems to fix the
    problem with the JPA annotations, but now it produces the second
    error I reported when it tries to run the tests (see below). These
    tests run fine in Eclipse.
    Any thoughts? I've confirmed that this happens with both 0.14 and
    0.15. It doesn't say what class it is trying to launch or anything -
    it just fails as soon as it tries to launch the tests.
    Jay
    !ENTRY org.eclipse.osgi 4 0 2012-06-02 10:06:28.190
    !MESSAGE Application error
    !STACK 1
    org.apache.maven.surefire.
util.
SurefireReflectionException:
    java.lang.reflect.
InvocationTargetException; nested exception is
    java.lang.reflect.
InvocationTargetException: null
    java.lang.reflect.
InvocationTargetException
             at sun.reflect.
NativeMethodAccessorImpl.
invoke0(Native Method)
             at
    sun.reflect.
NativeMethodAccessorImpl.
invoke(
NativeMethodAccessorImpl.java:
57)
             at
    sun.reflect.
DelegatingMethodAccessorImpl.
invoke(
DelegatingMethodAccessorImpl.
java:43)
             at java.lang.reflect.Method.
invoke(Method.java:616)
             at
    org.apache.maven.surefire.
util.ReflectionUtils.
invokeMethodWithArray(
ReflectionUtils.java:164)
             at
    org.apache.maven.surefire.
booter.ProviderFactory$
ProviderProxy.invoke(
ProviderFactory.java:110)
             at
    org.apache.maven.surefire.
booter.SurefireStarter.
invokeProvider(
SurefireStarter.java:175)
             at
    org.apache.maven.surefire.
booter.SurefireStarter.
runSuitesInProcess(
SurefireStarter.java:123)
             at
    org.eclipse.tycho.surefire.
osgibooter.OsgiSurefireBooter.
run(OsgiSurefireBooter.java:
84)
             at
    org.eclipse.tycho.surefire.
osgibooter.
HeadlessTestApplication.run(
HeadlessTestApplication.java:
21)
             at sun.reflect.
NativeMethodAccessorImpl.
invoke0(Native Method)
             at
    sun.reflect.
NativeMethodAccessorImpl.
invoke(
NativeMethodAccessorImpl.java:
57)
             at
    sun.reflect.
DelegatingMethodAccessorImpl.
invoke(
DelegatingMethodAccessorImpl.
java:43)
             at java.lang.reflect.Method.
invoke(Method.java:616)
             at
    org.eclipse.equinox.internal.
app.EclipseAppContainer.
callMethodWithException(
EclipseAppContainer.java:587)
             at
    org.eclipse.equinox.internal.
app.EclipseAppHandle.run(
EclipseAppHandle.java:198)
             at
    org.eclipse.core.runtime.
internal.adaptor.
EclipseAppLauncher.
runApplication(
EclipseAppLauncher.java:110)
             at
    org.eclipse.core.runtime.
internal.adaptor.
EclipseAppLauncher.start(
EclipseAppLauncher.java:79)
             at
    org.eclipse.core.runtime.
adaptor.EclipseStarter.run(
EclipseStarter.java:353)
             at
    org.eclipse.core.runtime.
adaptor.EclipseStarter.run(
EclipseStarter.java:180)
             at sun.reflect.
NativeMethodAccessorImpl.
invoke0(Native Method)
             at
    sun.reflect.
NativeMethodAccessorImpl.
invoke(
NativeMethodAccessorImpl.java:
57)
             at
    sun.reflect.
DelegatingMethodAccessorImpl.
invoke(
DelegatingMethodAccessorImpl.
java:43)
             at java.lang.reflect.Method.
invoke(Method.java:616)
             at
    org.eclipse.equinox.launcher.
Main.invokeFramework(Main.
java:622)
             at org.eclipse.equinox.launcher.
Main.basicRun(Main.java:577)
             at org.eclipse.equinox.launcher.
Main.run(Main.java:1410)
             at org.eclipse.equinox.launcher.
Main.main(Main.java:1386)
    Caused by: java.lang.NullPointerException
             at java.lang.Class.getAnnotation(
Class.java:3048)
             at
    org.apache.maven.surefire.
common.junit4.
JUnit4TestChecker.
isValidJUnit4Test(
JUnit4TestChecker.java:63)
             at
    org.apache.maven.surefire.
common.junit4.
JUnit4TestChecker.accept(
JUnit4TestChecker.java:52)
             at
    org.apache.maven.surefire.
util.DefaultDirectoryScanner.
locateTestClasses(
DefaultDirectoryScanner.java:
80)
             at
    org.apache.maven.surefire.
junit4.JUnit4Provider.
scanClassPath(JUnit4Provider.
java:174)
             at
    org.apache.maven.surefire.
junit4.JUnit4Provider.invoke(
JUnit4Provider.java:83)
             ... 28 more
    On Fri, Jun 1, 2012 at 8:09 PM, Jay Jay Billings