Problem while storing object into JobDataMap

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem while storing object into JobDataMap

popianovka
Hi,
Following error arises while trying to store objects in jobdatamap.

[b]Couldn't store job: JobDataMap values must be Strings when the 'useProperties' property is set.  Key of offending value: jobName [See nested exception: java.io.IOException: JobDataMap values must be Strings when the 'useProperties' property is set.  Key of offending value: jobName][/b]

I also tried, setting the 'org.quartz.jobStore.useProperties' in quartz.properties as 'false', but still the problem arises.

Can anybody help me?
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=39638&messageID=78564#78564

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Problem while storing object into JobDataMap

popianovka
hi,
sry, the problem is not storing the object. it is because the object is null. now the problem is solved. thanks.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=39638&messageID=78570#78570

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Problem while storing object into JobDataMap

popianovka
In reply to this post by popianovka
hi
 i am also having this problem. pls hep me

this is my error message

SEVERE: Error scheduling job
org.quartz.JobPersistenceException: Couldn't store job: Unable to serialize JobD
ataMap for insertion into database because the value of property 'configuration'
 is not serializable: com.opensymphony.workflow.config.SpringConfiguration [See
nested exception: java.io.NotSerializableException: Unable to serialize JobDataM
ap for insertion into database because the value of property 'configuration' is
not serializable
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=39638&messageID=358317#358317


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Problem while storing object into JobDataMap

Amie
This post has NOT been accepted by the mailing list yet.
In reply to this post by popianovka
Hi,

I'm having problem while running a job in job scheduler.. can any1 plz help..
Stack Trace..

org.quartz.JobPersistenceException: Couldn't store job: JobDataMap values must be Strings when the 'useProperties' property is set.  Key of offending value: Membership [See nested exception: java.io.IOException: JobDataMap values must be Strings when the 'useProperties' property is set.  Key of offending value: Membership]
        at org.quartz.impl.jdbcjobstore.JobStoreSupport.storeJob(JobStoreSupport.java:854)
        at org.quartz.impl.jdbcjobstore.JobStoreTX.storeJob(JobStoreTX.java:210)
        at org.quartz.core.QuartzScheduler.addJob(QuartzScheduler.java:687)
        at org.quartz.impl.StdScheduler.addJob(StdScheduler.java:261)
        at net.unicon.sakora.impl.jobs.ResultMapCopyingJobListener.copyResult(ResultMapCopyingJobListener.java:82)
        at net.unicon.sakora.impl.jobs.ResultMapCopyingJobListener.jobWasExecuted(ResultMapCopyingJobListener.java:56)
        at org.quartz.core.QuartzScheduler.notifyJobListenersWasExecuted(QuartzScheduler.java:1659)
        at org.quartz.core.JobRunShell.notifyJobListenersComplete(JobRunShell.java:352)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:227)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
* Nested Exception (Underlying Cause) ---------------
java.io.IOException: JobDataMap values must be Strings when the 'useProperties' property is set.  Key of offending value: Membership
        at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.convertToProperty(StdJDBCDelegate.java:3837)
        at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.serializeProperties(StdJDBCDelegate.java:3799)
        at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.serializeJobData(StdJDBCDelegate.java:3782)