[Clustering/JBoss] - org.jboss.serial.exception.SerializationException in JBoss4
by skymic
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.92...
<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
18 years, 11 months
[JBoss Seam] - Feature-Request: @CreateProcessAndStartTask
by tnfink
Hi,
I had now twice the need for a new feature, thus I would like to utter a feature request. I am not sure if this is the right place, but it is worth a try.
>From looking at the examples, the Seam-way to work with processes is to
1. Create a process (@CreateProcess)
2. Show a list with the tasks
3. Start working with a task by selecting one in the list (@StartTask)
This is really convenient.
But what I need is one step to
- create a process and
- start working an the first task in a long running conversation with associated business process context.
In short, something such as @CreateProcessAndStartTask.
What I did in the current project to achieve the same effect, is this:
| @Begin
| public String initialize() {
| businessProcess.createProcess(PROCESS_NAME);
| final Long processId = businessProcess.getProcessId();
| final ProcessInstance processInstance = jbpmContext.getProcessInstance(processId);
|
| final Collection taskInstances = processInstance.getTaskMgmtInstance().getTaskInstances();
| final TaskInstance task = (TaskInstance) taskInstances.iterator().next();
|
| businessProcess.setTaskId(task.getId());
| businessProcess.startTask();
|
| return "createNewOffer";
| }
|
The new annotation needs at least two properties:
- name of the process
- name of the task
Does this request makes sense?
-- Torsten
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048314#4048314
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048314
18 years, 11 months