"Exception in thread "main" java.lang.ClassFormatError: org.teiid.adminshell.GroovyAdminShell (unrecognized class file version)" error when trying to run the EDS Adminshell from CRONTAB

Solution Verified - Updated -

Issue

  • I am trying to run EDS Adminshell script in Linux through CRONTAB schedule and getting the below error:
Exception in thread "main" java.lang.ClassFormatError: org.teiid.adminshell.GroovyAdminShell (unrecognized class file version)
   at java.lang.VMClassLoader.defineClass(libgcj.so.7rh)
   at java.lang.ClassLoader.defineClass(libgcj.so.7rh)
   at java.security.SecureClassLoader.defineClass(libgcj.so.7rh)
   at java.net.URLClassLoader.findClass(libgcj.so.7rh)
   at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
   at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
   at gnu.java.lang.MainThread.run(libgcj.so.7rh)

Environment

-JBoss Enterprise Data Services (EDS) 5.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content