java.lang.NoClassDefFoundError: oracle.jdbc.oracore.OracleTypeADT in KernelBundleClassLoader: [bundle=org.springframework.data.jdbc.oracle_1.0.0.EP01]

Spring JIRA | Stefan Reuter | 5 years ago
  1. 0

    spring-data-oracle makes use of reflection und thus needs some explicit Import-Package entries in its manifest that are not automatically added by bundlor. When using AQ in an OSGi environment you get the following errors: {code}[2011-10-06 10:23:03.706] MessageListenerContainer#0-1 o.s.data.jdbc.config.oracle.AqJmsFactoryBeanFactory Using Proxied JDBC Connection [oracle.jdbc.driver .LogicalConnection@4381c7e9] [2011-10-06 10:23:04.136] MessageListenerContainer#0-1 org.springframework.jms.listener.DefaultMessageListenerContainer Initiating transaction rollback on listener exception java.lang.NoClassDefFoundError: oracle.jdbc.oracore.OracleTypeADT in KernelBundleClassLoader: [bundle=org.springframework.data.jdbc.oracle_1.0.0.EP01] at $Proxy270.<clinit>(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:588) at org.springframework.data.jdbc.config.oracle.AqJmsFactoryBeanFactory.getCloseSuppressingConnectionProxy(AqJmsFactoryBeanFactory.java:172) at org.springframework.data.jdbc.config.oracle.AqJmsFactoryBeanFactory$TransactionAwareDataSource.getConnection(AqJmsFactoryBeanFactory.java:145) at oracle.jms.AQjmsDBConnMgr.getConnection(AQjmsDBConnMgr.java:566) at oracle.jms.AQjmsDBConnMgr.<init>(AQjmsDBConnMgr.java:399) at oracle.jms.AQjmsConnection.<init>(AQjmsConnection.java:249) at oracle.jms.AQjmsConnectionFactory.createConnection(AQjmsConnectionFactory.java:513) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy193.createConnection(Unknown Source) at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184) at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.access$0(AbstractPollingMessageListenerContainer.java:1) at org.springframework.jms.listener.AbstractPollingMessageListenerContainer$MessageListenerContainerResourceFactory.createConnection(AbstractPollingMessageListenerContainer.java:525) at org.springframework.jms.connection.ConnectionFactoryUtils.doGetTransactionalSession(ConnectionFactoryUtils.java:297) at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:288) at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:243) at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1058) at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1050) at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:947) at java.lang.Thread.run(Thread.java:662) [2011-10-06 10:31:17.874] MessageListenerContainer#0-1 org.springframework.jms.listener.DefaultMessageListenerContainer Initiating transaction rollback on listener excep tion java.lang.NoClassDefFoundError: oracle.jdbc.aq.AQDequeueOptions in KernelBundleClassLoader: [bundle=org.springframework.data.jdbc.oracle_1.0.0.EP01] [2011-10-06 10:38:40.303] MessageListenerContainer#0-1 org.springframework.jms.listener.DefaultMessageListenerContainer Initiating transaction rollback on listener excep tion java.lang.NoClassDefFoundError: oracle.jdbc.dcn.DatabaseChangeRegistration in KernelBundleClassLoader: [bundle=org.springframework.data.jdbc.oracle_1.0.0.EP01]{code} This can be fixed by explicitly importing the packages in {{template.mf}}: {code}Import-Package: sun.reflect;version="0";resolution:=optional, oracle.jdbc.oracore;version="[10.2.0, 12.0.0)", oracle.jdbc.aq;version="[10.2.0, 12.0.0)", oracle.jdbc.dcn;version="[10.2.0, 12.0.0)"{code}

    Spring JIRA | 5 years ago | Stefan Reuter
    java.lang.NoClassDefFoundError: oracle.jdbc.oracore.OracleTypeADT in KernelBundleClassLoader: [bundle=org.springframework.data.jdbc.oracle_1.0.0.EP01]
  2. 0

    spring-data-oracle makes use of reflection und thus needs some explicit Import-Package entries in its manifest that are not automatically added by bundlor. When using AQ in an OSGi environment you get the following errors: {code}[2011-10-06 10:23:03.706] MessageListenerContainer#0-1 o.s.data.jdbc.config.oracle.AqJmsFactoryBeanFactory Using Proxied JDBC Connection [oracle.jdbc.driver .LogicalConnection@4381c7e9] [2011-10-06 10:23:04.136] MessageListenerContainer#0-1 org.springframework.jms.listener.DefaultMessageListenerContainer Initiating transaction rollback on listener exception java.lang.NoClassDefFoundError: oracle.jdbc.oracore.OracleTypeADT in KernelBundleClassLoader: [bundle=org.springframework.data.jdbc.oracle_1.0.0.EP01] at $Proxy270.<clinit>(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:588) at org.springframework.data.jdbc.config.oracle.AqJmsFactoryBeanFactory.getCloseSuppressingConnectionProxy(AqJmsFactoryBeanFactory.java:172) at org.springframework.data.jdbc.config.oracle.AqJmsFactoryBeanFactory$TransactionAwareDataSource.getConnection(AqJmsFactoryBeanFactory.java:145) at oracle.jms.AQjmsDBConnMgr.getConnection(AQjmsDBConnMgr.java:566) at oracle.jms.AQjmsDBConnMgr.<init>(AQjmsDBConnMgr.java:399) at oracle.jms.AQjmsConnection.<init>(AQjmsConnection.java:249) at oracle.jms.AQjmsConnectionFactory.createConnection(AQjmsConnectionFactory.java:513) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy193.createConnection(Unknown Source) at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184) at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.access$0(AbstractPollingMessageListenerContainer.java:1) at org.springframework.jms.listener.AbstractPollingMessageListenerContainer$MessageListenerContainerResourceFactory.createConnection(AbstractPollingMessageListenerContainer.java:525) at org.springframework.jms.connection.ConnectionFactoryUtils.doGetTransactionalSession(ConnectionFactoryUtils.java:297) at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:288) at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:243) at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1058) at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1050) at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:947) at java.lang.Thread.run(Thread.java:662) [2011-10-06 10:31:17.874] MessageListenerContainer#0-1 org.springframework.jms.listener.DefaultMessageListenerContainer Initiating transaction rollback on listener excep tion java.lang.NoClassDefFoundError: oracle.jdbc.aq.AQDequeueOptions in KernelBundleClassLoader: [bundle=org.springframework.data.jdbc.oracle_1.0.0.EP01] [2011-10-06 10:38:40.303] MessageListenerContainer#0-1 org.springframework.jms.listener.DefaultMessageListenerContainer Initiating transaction rollback on listener excep tion java.lang.NoClassDefFoundError: oracle.jdbc.dcn.DatabaseChangeRegistration in KernelBundleClassLoader: [bundle=org.springframework.data.jdbc.oracle_1.0.0.EP01]{code} This can be fixed by explicitly importing the packages in {{template.mf}}: {code}Import-Package: sun.reflect;version="0";resolution:=optional, oracle.jdbc.oracore;version="[10.2.0, 12.0.0)", oracle.jdbc.aq;version="[10.2.0, 12.0.0)", oracle.jdbc.dcn;version="[10.2.0, 12.0.0)"{code}

    Spring JIRA | 5 years ago | Stefan Reuter
    java.lang.NoClassDefFoundError: oracle.jdbc.oracore.OracleTypeADT in KernelBundleClassLoader: [bundle=org.springframework.data.jdbc.oracle_1.0.0.EP01]
  3. 0
    Try to restart Play
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Please add the jar file of spring as dependency for that JavaFX Project.
  6. 0
    org.apache.http.config.Lookup class is in httpcore-4.3.jar not in httpclient-4.3.1.jar

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      oracle.jdbc.oracore.OracleTypeADT in KernelBundleClassLoader: [bundle=org.springframework.data.jdbc.oracle_1.0.0.EP01]

      at $Proxy270.<clinit>()
    2. Unknown
      $Proxy270.<clinit>
      1. $Proxy270.<clinit>(Unknown Source)
      1 frame
    3. Java RT
      Proxy.newProxyInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      5. java.lang.reflect.Proxy.newProxyInstance(Proxy.java:588)
      5 frames
    4. Spring Data JDBC Extensions Oracle
      AqJmsFactoryBeanFactory$TransactionAwareDataSource.getConnection
      1. org.springframework.data.jdbc.config.oracle.AqJmsFactoryBeanFactory.getCloseSuppressingConnectionProxy(AqJmsFactoryBeanFactory.java:172)
      2. org.springframework.data.jdbc.config.oracle.AqJmsFactoryBeanFactory$TransactionAwareDataSource.getConnection(AqJmsFactoryBeanFactory.java:145)
      2 frames
    5. oracle.jms
      AQjmsConnectionFactory.createConnection
      1. oracle.jms.AQjmsDBConnMgr.getConnection(AQjmsDBConnMgr.java:566)
      2. oracle.jms.AQjmsDBConnMgr.<init>(AQjmsDBConnMgr.java:399)
      3. oracle.jms.AQjmsConnection.<init>(AQjmsConnection.java:249)
      4. oracle.jms.AQjmsConnectionFactory.createConnection(AQjmsConnectionFactory.java:513)
      4 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    7. Spring AOP
      AopUtils.invokeJoinpointUsingReflection
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
      1 frame
    8. Spring OSGi Core
      ServiceInvoker.invoke
      1. org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
      2. org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
      2 frames
    9. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      2. org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
      3. org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
      4. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      4 frames
    10. Spring OSGi Core
      LocalBundleContextAdvice.invoke
      1. org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
      1 frame
    11. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      2. org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
      3. org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
      4. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      5. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      5 frames
    12. Unknown
      $Proxy193.createConnection
      1. $Proxy193.createConnection(Unknown Source)
      1 frame
    13. Spring Framework
      DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run
      1. org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184)
      2. org.springframework.jms.listener.AbstractPollingMessageListenerContainer.access$0(AbstractPollingMessageListenerContainer.java:1)
      3. org.springframework.jms.listener.AbstractPollingMessageListenerContainer$MessageListenerContainerResourceFactory.createConnection(AbstractPollingMessageListenerContainer.java:525)
      4. org.springframework.jms.connection.ConnectionFactoryUtils.doGetTransactionalSession(ConnectionFactoryUtils.java:297)
      5. org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:288)
      6. org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:243)
      7. org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1058)
      8. org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1050)
      9. org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:947)
      9 frames
    14. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)
      1 frame