|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Quartz is giving NotSerializableException on startupHi All,
I am using the mule 2.2.2 version. when I try to use the Quartz to generate events,while storing the jobs in database. I am getting the following Exception, *ErrorCode*:MULE_ERROR-60042 Root Exception stack trace: *java.io.NotSerializableException*: Unable to serialize JobDataMap for insertion into database because the value of property 'jobConfig' is not serializable: org.mule.DefaultMuleContext .... for further log and configuration please refer attachments. Any help would be appreciated... I have already seen this type of posts on the net but not getting the solutions. Please help me to trace the root cause and is there any work around for this..? Thanks Ravi Kumar <?xml version="1.0" encoding="UTF-8"?> <mule xmlns="http://www.mulesource.org/schema/mule/core/2.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:file="http://www.mulesource.org/schema/mule/file/2.2" xmlns:ftp="http://www.mulesource.org/schema/mule/ee/ftp/2.2" xmlns:jdbc="http://www.mulesource.org/schema/mule/ee/jdbc/2.2" xmlns:quartz="http://www.mulesource.org/schema/mule/quartz/2.2" xmlns:stdio="http://www.mulesource.org/schema/mule/stdio/2.2" xmlns:vm="http://www.mulesource.org/schema/mule/vm/2.2" xsi:schemaLocation=" http://www.mulesource.org/schema/mule/file/2.2 http://www.mulesource.org/schema/mule/file/2.2/mule-file.xsd http://www.mulesource.org/schema/mule/ee/ftp/2.2 http://www.mulesource.org/schema/mule/ee/ftp/2.2/mule-ftp-ee.xsd http://www.mulesource.org/schema/mule/ee/jdbc/2.2 http://www.mulesource.org/schema/mule/ee/jdbc/2.2/mule-jdbc-ee.xsd http://www.mulesource.org/schema/mule/quartz/2.2 http://www.mulesource.org/schema/mule/quartz/2.2/mule-quartz.xsd http://www.mulesource.org/schema/mule/core/2.2 http://www.mulesource.org/schema/mule/core/2.2/mule.xsd http://www.mulesource.org/schema/mule/stdio/2.2 http://www.mulesource.org/schema/mule/stdio/2.2/mule-stdio.xsd http://www.mulesource.org/schema/mule/vm/2.2 http://www.mulesource.org/schema/mule/vm/2.2/mule-vm.xsd"> <quartz:connector name="quartzConnector"> <quartz:factory-property key="org.quartz.scheduler.instanceName" value="MyClusteredScheduler"/> <quartz:factory-property key="org.quartz.scheduler.instanceId" value="AUTO"/> <quartz:factory-property key="org.quartz.threadPool.class" value="org.quartz.simpl.SimpleThreadPool"/> <quartz:factory-property key="org.quartz.threadPool.threadCount" value="25"/> <quartz:factory-property key="org.quartz.threadPool.threadPriority" value="5"/> <quartz:factory-property key="org.quartz.jobStore.misfireThreshold" value="60000"/> <quartz:factory-property key="org.quartz.jobStore.class" value="org.quartz.impl.jdbcjobstore.JobStoreTX"/> <quartz:factory-property key="org.quartz.jobStore.driverDelegateClass" value="org.quartz.impl.jdbcjobstore.oracle.OracleDelegate"/> <quartz:factory-property key="org.quartz.jobStore.dataSource" value="myDS"/> <quartz:factory-property key="org.quartz.jobStore.tablePrefix" value="QRTZ_"/> <quartz:factory-property key="org.quartz.jobStore.isClustered" value="true"/> <quartz:factory-property key="org.quartz.jobStore.clusterCheckinInterval" value="20000"/> <quartz:factory-property key="org.quartz.dataSource.myDS.driver" value="oracle.jdbc.driver.OracleDriver"/> <quartz:factory-property key="org.quartz.dataSource.myDS.URL" value="jdbc:oracle:thin:@localhost:1521:orcdb"/> <quartz:factory-property key="org.quartz.dataSource.myDS.user" value="user"/> <quartz:factory-property key="org.quartz.dataSource.myDS.password" value="password"/> </quartz:connector> <model> <service name="QuartzFtpToDB"> <inbound> <quartz:inbound-endpoint name="CreateRecords" connector-ref="quartzConnector" repeatInterval="10000" jobName="FtpToDBJob"> <quartz:event-generator-job/> </quartz:inbound-endpoint> </inbound> <outbound> <pass-through-router> <stdio:outbound-endpoint system="OUT"/> </pass-through-router> </outbound> </service> </model> </mule> ERROR 2009-09-29 14:17:04,886 [main] org.mule.MuleServer: ******************************************************************************** Message : Failed to start Quartz receiver Type : org.mule.api.endpoint.EndpointException Code : MULE_ERROR-60042 JavaDoc : http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/endpoint/EndpointException.html ******************************************************************************** Exception stack is: 1. Unable to serialize JobDataMap for insertion into database because the value of property 'jobConfig' is not serializable: org.mule.DefaultMuleContext (java.io.NotSerializableException) org.quartz.impl.jdbcjobstore.StdJDBCDelegate:3354 (null) 2. Couldn't store job: Unable to serialize JobDataMap for insertion into database because the value of property 'jobConfig' is not serializable: org.mule.DefaultMuleContext (org.quartz.JobPersistenceException) org.quartz.impl.jdbcjobstore.JobStoreSupport:1041 (null) 3. Failed to start Quartz receiver (org.mule.api.endpoint.EndpointException) org.mule.transport.quartz.QuartzMessageReceiver:174 (http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/endpoint/EndpointException.html) ******************************************************************************** Root Exception stack trace: java.io.NotSerializableException: Unable to serialize JobDataMap for insertion into database because the value of property 'jobConfig' is not serializable: org.mule.DefaultMuleContext at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.serializeJobData(StdJDBCDelegate.java:3354) at org.quartz.impl.jdbcjobstore.oracle.OracleDelegate.insertJobDetail(OracleDelegate.java:173) at org.quartz.impl.jdbcjobstore.JobStoreSupport.storeJob(JobStoreSupport.java:1038) at org.quartz.impl.jdbcjobstore.JobStoreSupport$3.execute(JobStoreSupport.java:983) at org.quartz.impl.jdbcjobstore.JobStoreSupport$39.execute(JobStoreSupport.java:3590) at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3662) at org.quartz.impl.jdbcjobstore.JobStoreTX.executeInLock(JobStoreTX.java:93) at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInLock(JobStoreSupport.java:3586) at org.quartz.impl.jdbcjobstore.JobStoreSupport.storeJobAndTrigger(JobStoreSupport.java:971) at org.quartz.core.QuartzScheduler.scheduleJob(QuartzScheduler.java:703) at org.quartz.impl.StdScheduler.scheduleJob(StdScheduler.java:255) at org.mule.transport.quartz.QuartzMessageReceiver.doStart(QuartzMessageReceiver.java:162) at org.mule.transport.AbstractConnectable.start(AbstractConnectable.java:280) at org.mule.service.AbstractService.startListeners(AbstractService.java:644) at org.mule.service.AbstractService.start(AbstractService.java:343) at org.mule.service.AbstractService.start(AbstractService.java:293) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.mule.lifecycle.DefaultLifecyclePhase.applyLifecycle(DefaultLifecyclePhase.java:272) at org.mule.lifecycle.DefaultLifecyclePhase.applyLifecycle(DefaultLifecyclePhase.java:128) at org.mule.lifecycle.GenericLifecycleManager.firePhase(GenericLifecycleManager.java:84) at org.mule.DefaultMuleContext.start(DefaultMuleContext.java:175) at org.mule.MuleServer.run(MuleServer.java:257) at org.mule.MuleServer.start(MuleServer.java:242) at org.mule.MuleServer.main(MuleServer.java:121) ******************************************************************************** ERROR 2009-09-29 14:17:04,886 [main] org.mule.MuleServer: ******************************************************************************** * A Fatal error has occurred while the server was running: * * Unable to serialize JobDataMap for insertion into database because the * * value of property 'jobConfig' is not serializable: * * org.mule.DefaultMuleContext (java.io.NotSerializableException) * * * * The error is fatal, the system must shutdown * ******************************************************************************** INFO 2009-09-29 14:17:04,886 [main] org.mule.config.spring.MuleApplicationContext: Closing org.mule.config.spring.MuleApplicationContext@1bd0dd4: display name [org.mule.config.spring.MuleApplicationContext@1bd0dd4]; startup date [Tue Sep 29 14:17:02 GMT+05:30 2009]; root of context hierarchy INFO 2009-09-29 14:17:04,886 [main] org.mule.transport.quartz.QuartzConnector: Removing listener on endpointUri: quartz://CadburyFtpToDBJob INFO 2009-09-29 14:17:04,886 [main] org.mule.transport.quartz.QuartzMessageReceiver: Disconnected: QuartzMessageReceiver{this=2a987d, receiverKey=quartz://CadburyFtpToDBJob, endpoint=quartz://CadburyFtpToDBJob} INFO 2009-09-29 14:17:04,979 [main] org.mule.component.simple.PassThroughComponent: Stopping: org.mule.component.simple.PassThroughComponent component for: SedaService{CadburyQuartzFtpToDB} INFO 2009-09-29 14:17:04,979 [main] org.mule.model.seda.SedaService: Mule Service CadburyQuartzFtpToDB has been stopped successfully INFO 2009-09-29 14:17:04,979 [main] org.mule.transport.quartz.QuartzConnector: Disposing: QuartzConnector{this=cf710e, started=true, initialised=true, name='quartzConnector', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[quartz], serviceOverrides=null} INFO 2009-09-29 14:17:04,979 [main] org.mule.transport.quartz.QuartzConnector: Stopping: QuartzConnector{this=cf710e, started=true, initialised=true, name='quartzConnector', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[quartz], serviceOverrides=null} INFO 2009-09-29 14:17:04,979 [main] org.quartz.core.QuartzScheduler: Scheduler MyClusteredScheduler_$_dis2235011254214023823 shutting down. INFO 2009-09-29 14:17:04,979 [main] org.quartz.core.QuartzScheduler: Scheduler MyClusteredScheduler_$_dis2235011254214023823 paused. INFO 2009-09-29 14:17:04,995 [main] org.quartz.core.QuartzScheduler: Scheduler MyClusteredScheduler_$_dis2235011254214023823 shutdown complete. INFO 2009-09-29 14:17:04,995 [main] org.mule.transport.quartz.QuartzConnector: Disconnected: QuartzConnector{this=cf710e, started=false, initialised=true, name='quartzConnector', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=false, supportedProtocols=[quartz], serviceOverrides=null} INFO 2009-09-29 14:17:04,995 [main] org.mule.transport.quartz.QuartzConnector: Stopped: QuartzConnector{this=cf710e, started=false, initialised=true, name='quartzConnector', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=false, supportedProtocols=[quartz], serviceOverrides=null} INFO 2009-09-29 14:17:04,995 [main] org.mule.transport.quartz.QuartzConnector: Disposed: QuartzConnector{this=cf710e, started=false, initialised=false, name='quartzConnector', disposed=true, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=false, supportedProtocols=[quartz], serviceOverrides=null} INFO 2009-09-29 14:17:04,995 [main] org.mule.transport.stdio.PromptStdioConnector: Disposing: PromptStdioConnector{this=aa0877, started=true, initialised=true, name='connector.stdio.0', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[stdio], serviceOverrides=null} INFO 2009-09-29 14:17:04,995 [main] org.mule.transport.stdio.PromptStdioConnector: Stopping: PromptStdioConnector{this=aa0877, started=true, initialised=true, name='connector.stdio.0', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[stdio], serviceOverrides=null} INFO 2009-09-29 14:17:04,995 [main] org.mule.transport.stdio.PromptStdioConnector: Disconnected: PromptStdioConnector{this=aa0877, started=false, initialised=true, name='connector.stdio.0', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=false, supportedProtocols=[stdio], serviceOverrides=null} INFO 2009-09-29 14:17:04,995 [main] org.mule.transport.stdio.PromptStdioConnector: Stopped: PromptStdioConnector{this=aa0877, started=false, initialised=true, name='connector.stdio.0', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=false, supportedProtocols=[stdio], serviceOverrides=null} INFO 2009-09-29 14:17:04,995 [main] org.mule.transport.stdio.PromptStdioConnector: Disposed: PromptStdioConnector{this=aa0877, started=false, initialised=false, name='connector.stdio.0', disposed=true, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=false, supportedProtocols=[stdio], serviceOverrides=null} INFO 2009-09-29 14:17:05,198 [main] org.mule.DefaultMuleContext: ********************************************************************** * Mule shut down normally on: 9/29/09 2:17 PM * * Server was up for: 0 days, 0 hours, 0 mins, 1.124 sec * ********************************************************************** --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Quartz is giving NotSerializableException on startupMike,
Take a look at this post: http://www.nabble.com/Unable-to-Cluster-Quartz-with-JDBC-store-in-Mule-2.2.1-td24261675.html#a24289835. Basically in order to get this to work you need to modify the mule-transport-quartz to set the MuleEventContext to null before it persists the job. This is what I have done, and have been successful with. I have the modified jar for 2.2.1 if you need it although I see you are on 2.2.2. -Rob
|
|
|
Re: Quartz is giving NotSerializableException on startupRavi Kumar wrote:
> Hi All, > > I am using the mule 2.2.2 version. when I try to use the Quartz to > generate events,while storing the jobs in database. > > I am getting the following Exception, > > *ErrorCode*:MULE_ERROR-60042 > > Root Exception stack trace: *java.io.NotSerializableException*: > Unable to serialize JobDataMap for insertion into database because > the value of property 'jobConfig' is not serializable: > org.mule.DefaultMuleContext .... I had to work on this a few days ago. The only change I had to make to get it to work was to make AbstractJobConfig's muleContext instance variable transient. Of course this change is already in 3.x ... HTH, -dirk --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |