[jboss-user] [Clustering/JBoss] - org.jboss.serial.exception.SerializationException in JBoss4

skymic do-not-reply at jboss.com
Thu May 24 10:01:58 EDT 2007


Hi,

Im am running a JBoss4.0.5 cluster with two nodes.

After some time of inactivity I keep having the following exception

2007-05-24 15:58:12,810 ERROR [STDERR] java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: org.jboss.serial.exception.SerializationException: Could not create instance of oracle.jdbc.driver.T2CConnection - oracle.jdbc.driver.T2CConnection
2007-05-24 15:58:12,811 ERROR [STDERR]  at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5526)
2007-05-24 15:58:12,811 ERROR [STDERR]  at org.jboss.cache.TreeCache.evict(TreeCache.java:3716)
2007-05-24 15:58:12,811 ERROR [STDERR]  at org.jboss.cache.eviction.BaseEvictionPolicy.evict(BaseEvictionPolicy.java:34)
2007-05-24 15:58:12,811 ERROR [STDERR]  at org.jboss.cache.eviction.BaseEvictionAlgorithm.evictCacheNode(BaseEvictionAlgorithm.java:210)
2007-05-24 15:58:12,811 ERROR [STDERR]  at org.jboss.cache.eviction.BaseEvictionAlgorithm.emptyRecycleQueue(BaseEvictionAlgorithm.java:461)
2007-05-24 15:58:12,811 ERROR [STDERR]  at org.jboss.cache.eviction.BaseEvictionAlgorithm.process(BaseEvictionAlgorithm.java:97)
2007-05-24 15:58:12,811 ERROR [STDERR]  at org.jboss.cache.eviction.EvictionTimerTask.run(EvictionTimerTask.java:80)
2007-05-24 15:58:12,811 ERROR [STDERR]  at java.util.TimerThread.mainLoop(Timer.java:512)
2007-05-24 15:58:12,811 ERROR [STDERR]  at java.util.TimerThread.run(Timer.java:462)
2007-05-24 15:58:12,811 ERROR [STDERR] Caused by: java.lang.RuntimeException: java.lang.RuntimeException: org.jboss.serial.exception.SerializationException: Could not create instance of oracle.jdbc.driver.T2CConnection - oracle.jdbc.driver.T2CConnection
2007-05-24 15:58:12,811 ERROR [STDERR]  at org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.prePassivate(LifecycleInterceptorHandler.java:169)
2007-05-24 15:58:12,811 ERROR [STDERR]  at org.jboss.ejb3.stateful.StatefulContainer.invokePrePassivate(StatefulContainer.java:382)
2007-05-24 15:58:12,811 ERROR [STDERR]  at org.jboss.ejb3.stateful.StatefulBeanContext.prePassivate(StatefulBeanContext.java:178)
2007-05-24 15:58:12,811 ERROR [STDERR]  at org.jboss.ejb3.cache.tree.StatefulTreeCache$ClusteredStatefulCacheListener.nodePassivate(StatefulTreeCache.java:288)
2007-05-24 15:58:12,811 ERROR [STDERR]  at org.jboss.cache.TreeCache.notifyNodePassivate(TreeCache.java:5739)
2007-05-24 15:58:12,812 ERROR [STDERR]  at org.jboss.cache.interceptors.PassivationInterceptor.invoke(PassivationInterceptor.java:62)
2007-05-24 15:58:12,812 ERROR [STDERR]  at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
2007-05-24 15:58:12,812 ERROR [STDERR]  at org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:345)
2007-05-24 15:58:12,812 ERROR [STDERR]  at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:156)
2007-05-24 15:58:12,812 ERROR [STDERR]  at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
2007-05-24 15:58:12,812 ERROR [STDERR]  at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:179)
2007-05-24 15:58:12,812 ERROR [STDERR]  at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5520)
2007-05-24 15:58:12,812 ERROR [STDERR]  ... 8 more
2007-05-24 15:58:12,812 ERROR [STDERR] Caused by: java.lang.RuntimeException: org.jboss.serial.exception.SerializationException: Could not create instance of oracle.jdbc.driver.T2CConnection - oracle.jdbc.driver.T2CConnection
2007-05-24 15:58:12,812 ERROR [STDERR]  at org.jboss.ejb3.stateful.StatefulBeanContext.extractBeanAndInterceptors(StatefulBeanContext.java:367)
2007-05-24 15:58:12,812 ERROR [STDERR]  at org.jboss.ejb3.stateful.StatefulBeanContext.getInterceptorInstances(StatefulBeanContext.java:333)
2007-05-24 15:58:12,812 ERROR [STDERR]  at org.jboss.ejb3.interceptor.LifecycleInvocationContextImpl.getLifecycleInvocationContext(LifecycleInvocationContextImpl.java:65)
2007-05-24 15:58:12,812 ERROR [STDERR]  at org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.prePassivate(LifecycleInterceptorHandler.java:160)
2007-05-24 15:58:12,812 ERROR [STDERR]  ... 19 more
2007-05-24 15:58:12,812 ERROR [STDERR] Caused by: org.jboss.serial.exception.SerializationException: Could not create instance of oracle.jdbc.driver.T2CConnection - oracle.jdbc.driver.T2CConnection
2007-05-24 15:58:12,812 ERROR [STDERR]  at org.jboss.serial.classmetamodel.ClassMetaData.newInstance(ClassMetaData.java:342)
2007-05-24 15:58:12,813 ERROR [STDERR]  at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:239)
2007-05-24 15:58:12,813 ERROR [STDERR]  at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:412)
2007-05-24 15:58:12,813 ERROR [STDERR]  at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)
2007-05-24 15:58:12,813 ERROR [STDERR]  at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:643)
2007-05-24 15:58:12,813 ERROR [STDERR]  at org.jboss.serial.persister.RegularObjectPersister.readSlotWithFields(RegularObjectPersister.java:353)
2007-05-24 15:58:12,813 ERROR [STDERR]  at org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:273)
2007-05-24 15:58:12,813 ERROR [STDERR]  at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:241)
2007-05-24 15:58:12,813 ERROR [STDERR]  at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:412)
2007-05-24 15:58:12,813 ERROR [STDERR]  at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)
2007-05-24 15:58:12,813 ERROR [STDERR]  at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:643)
2007-05-24 15:58:12,813 ERROR [STDERR]  at org.jboss.serial.persister.ArrayPersister.readObjectArray(ArrayPersister.java:196)
2007-05-24 15:58:12,813 ERROR [STDERR]  at org.jboss.serial.persister.ArrayPersister.readData(ArrayPersister.java:172)
2007-05-24 15:58:12,813 ERROR [STDERR]  at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:412)
2007-05-24 15:58:12,813 ERROR [STDERR]  at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)
2007-05-24 15:58:12,813 ERROR [STDERR]  at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:643)
2007-05-24 15:58:12,813 ERROR [STDERR]  at org.jboss.serial.io.JBossObjectInputStream.readObjectOverride(JBossObjectInputStream.java:163)
2007-05-24 15:58:12,814 ERROR [STDERR]  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:345)
2007-05-24 15:58:12,814 ERROR [STDERR]  at org.jboss.serial.io.MarshalledObject.get(MarshalledObject.java:68)
2007-05-24 15:58:12,814 ERROR [STDERR]  at org.jboss.ejb3.stateful.StatefulBeanContext.extractBeanAndInterceptors(StatefulBeanContext.java:342)
2007-05-24 15:58:12,814 ERROR [STDERR]  ... 22 more
2007-05-24 15:58:12,814 ERROR [STDERR] Caused by: java.lang.InstantiationException: oracle.jdbc.driver.T2CConnection
2007-05-24 15:58:12,814 ERROR [STDERR]  at java.lang.Class.newInstance0(Class.java:340)
2007-05-24 15:58:12,814 ERROR [STDERR]  at java.lang.Class.newInstance(Class.java:308)
2007-05-24 15:58:12,814 ERROR [STDERR]  at org.jboss.serial.classmetamodel.ClassMetaData.newInstance(ClassMetaData.java:334)
2007-05-24 15:58:12,814 ERROR [STDERR]  ... 41 more

I have an oracle datasource defined on both nodes:


  <local-tx-datasource>
    <jndi-name>idmDS</jndi-name>
    <connection-url>jdbc:oracle:oci:@zhig1t20</connection-url>
        <!--

                Here are a couple of the possible OCI configurations.
                For more information, see http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/java.920/a96654/toc.htm

        <connection-url>jdbc:oracle:oci:@youroracle-tns-name</connection-url>
                or
        <connection-url>jdbc:oracle:oci:@(description=(address=(host=youroraclehost)(protocol=tcp)(port=1521))(connect_data=(SERVICE_NAME=yourservicename)))</connection-url>

                Clearly, its better to have TNS set up properly.
         -->
    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
        <!-- <user-name>IDM16W</user-name> -->
    <user-name>XXXX</user-name>
    YYYY
    <min-pool-size>1</min-pool-size>
    <max-pool-size>10</max-pool-size>
    <idle-timeout-minutes>40</idle-timeout-minutes>
    <!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool -->
    <!--valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name-->
    <!-- Checks the Oracle error codes and messages for fatal errors -->
    <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
        <!-- sql to call when connection is created
        <new-connection-sql>some arbitrary sql</new-connection-sql>
        -->

        <!-- sql to call on an existing pooled connection when it is obtained from pool - the OracleValidConnectionChecker is prefered
        <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
        -->

      <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
      
         <type-mapping>Oracle10i</type-mapping>
      
  </local-tx-datasource>




Any idea what this exception means?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048315#4048315

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048315



More information about the jboss-user mailing list