My Oracle Support Banner

Error "ClassNotFoundException: javax.management.j2ee.statistics.Stats" Encountered when Running ODI SDK Script (Doc ID 2450018.1)

Last updated on SEPTEMBER 27, 2018

Applies to:

Oracle Data Integrator - Version 12.2.1.2.6 and later
Information in this document applies to any platform.

Symptoms

An automated smart export / import script was built following Note 1463366.1.
When running this java program several errors are thrown like below:

java.lang.reflect.InvocationTargetException
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at oracle.as.jmx.framework.PortableMBeanFactory.initializeSPI(PortableMBeanFactory.java:2110)
  at oracle.as.jmx.framework.PortableMBeanFactory.initializePlatformSPI(PortableMBeanFactory.java:2066)
  at oracle.as.jmx.framework.PortableMBeanFactory.init(PortableMBeanFactory.java:2046)
  at oracle.as.jmx.framework.PortableMBeanFactory.(PortableMBeanFactory.java:250)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  at java.lang.Class.newInstance(Class.java:442)
  at oracle.jdbc.driver.OracleDriver.registerMBeans(OracleDriver.java:309)
  at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:203)
  at java.security.AccessController.doPrivileged(Native Method)
  at oracle.jdbc.driver.OracleDriver.(OracleDriver.java:199)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:348)
  at oracle.odi.core.OdiInstance.createDataSourceDefinition(OdiInstance.java:428)
  at oracle.odi.core.OdiInstance.(OdiInstance.java:844)
  at oracle.odi.core.OdiInstance.createInstance(OdiInstance.java:719)
  at oracle.odi.core.OdiInstance.createInstance(OdiInstance.java:667)
  at oracle.odi.core.OdiInstance.createInstance(OdiInstance.java:646)
  at oracle.odi.publicapi.samples.SimpleOdiInstanceHandle.create(SimpleOdiInstanceHandle.java:40)
  at oracle.odi.publicapi.samples.SimpleOdiInstanceHandle.create(SimpleOdiInstanceHandle.java:27)
  at MySmartImport.main(MySmartImport.java:48)
Caused by: java.lang.NoClassDefFoundError: javax/management/j2ee/statistics/Stats
  at oracle.as.jmx.framework.standardmbeans.spi.CoreJMXFrameworkProviderImpl.createMBean(CoreJMXFrameworkProviderImpl.java:62)
  at oracle.as.jmx.framework.PortableMBeanFactory.createMBean(PortableMBeanFactory.java:279)
  at oracle.as.jmx.framework.config.session.ConfigurationSessionManager.registerSessionManagerMBean(ConfigurationSessionManager.java:134)
  at oracle.as.jmx.framework.config.session.ConfigurationSessionManager.(ConfigurationSessionManager.java:129)
  at oracle.as.jmx.framework.generic.spi.CoreJMXFrameworkProviderImpl.initConfigSessionInfrastructure(CoreJMXFrameworkProviderImpl.java:323)
  at oracle.as.jmx.framework.generic.spi.CoreJMXFrameworkProviderImpl.init(CoreJMXFrameworkProviderImpl.java:276)
  at oracle.as.jmx.framework.generic.spi.CoreJMXFrameworkProviderImpl.init(CoreJMXFrameworkProviderImpl.java:140)
  at oracle.as.jmx.framework.standardmbeans.spi.JMXFrameworkProviderImpl.init(JMXFrameworkProviderImpl.java:77)
  ... 27 more
Caused by: java.lang.ClassNotFoundException: javax.management.j2ee.statistics.Stats

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.