Announcement Announcement Module
Collapse
No announcement yet.
Failed to generate spring batch jars Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Failed to generate spring batch jars

    Hi,

    I have updated the spring batch source code to support Oracle Times Ten database.
    But while generating the jars im getting errors..
    Pls help me in resolving the same.

    Error Generated is as follows;


    -------------------------------------------------------
    T E S T S
    -------------------------------------------------------
    org.apache.maven.surefire.util.SurefireReflectionE xception: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.maven.surefire.util.ReflectionUtils.inv okeMethodWithArray(ReflectionUtils.java:189)
    at org.apache.maven.surefire.booter.ProviderFactory$P roviderProxy.invoke(ProviderFactory.java:165)
    at org.apache.maven.surefire.booter.ProviderFactory.i nvokeProvider(ProviderFactory.java:85)
    at org.apache.maven.surefire.booter.ForkedBooter.runS uitesInProcess(ForkedBooter.java:115)
    at org.apache.maven.surefire.booter.ForkedBooter.main (ForkedBooter.java:75)
    Caused by: java.lang.ClassFormatError: Truncated class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java :621)
    at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader .java:260)
    at java.net.URLClassLoader.access$000(URLClassLoader. java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 52)
    at org.apache.maven.surefire.util.DefaultScanResult.l oadClass(DefaultScanResult.java:131)
    at org.apache.maven.surefire.util.DefaultScanResult.a pplyFilter(DefaultScanResult.java:95)
    at org.apache.maven.surefire.junit4.JUnit4Provider.sc anClassPath(JUnit4Provider.java:194)
    at org.apache.maven.surefire.junit4.JUnit4Provider.in voke(JUnit4Provider.java:92)
    ... 9 more

    Results :

    Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO]
    [INFO] Spring Batch Parent ............................... SUCCESS [0.097s]
    [INFO] Infrastructure .................................... FAILURE [53.698s]
    [INFO] Core .............................................. SKIPPED
    [INFO] Test .............................................. SKIPPED
    [INFO] Spring Batch ...................................... SKIPPED
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 54.269s
    [INFO] Finished at: Wed Sep 26 19:13:28 IST 2012
    [INFO] Final Memory: 7M/85M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.3:test (default-test) on project spring-batch-infrastructure: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.12.3:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ? -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/d...utionException
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR] mvn <goals> -rf :spring-batch-infrastructure

    Regards,
    Ravi

  • #2
    Suggestions:
    Run a Maven build while skipping the unit-tests to verify everything can fire up.
    Don't fork the JVM while running the unit tests? Is forking really necessary? Check surefire settings.

    Jeff

    Comment


    • #3
      Thanks Jeff,
      Yes i have run maven build by skipping unit tests and its working fine.

      ~ Ravi Shanker

      Comment

      Working...
      X