Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArgumentNullException on job completion #180

Closed
sjwoodard opened this issue Aug 21, 2014 · 2 comments
Closed

ArgumentNullException on job completion #180

sjwoodard opened this issue Aug 21, 2014 · 2 comments
Labels
Milestone

Comments

@sjwoodard
Copy link

I just got a copy of the 1.0.2 source on Aug. 19, and now I keep getting the following error after a job completes successfully. I haven't had a chance to debug it yet.

System.ArgumentNullException: String reference not set to an instance of a String.
Parameter name: s
   at System.Text.Encoding.GetBytes(String s)
   at ServiceStack.Redis.RedisClient.SetRangeInHash(String hashId, IEnumerable`1 keyValuePairs)
   at Hangfire.Redis.RedisWriteOnlyTransaction.SetJobState(String jobId, IState state)
   at Hangfire.States.StateChangeProcess.ApplyState(ApplyStateContext context, IEnumerable`1 filters)
   at Hangfire.States.StateChangeProcess.ChangeState(StateContext context, IState toState, String oldStateName)

I'm using multiple storage instances on the same machine, and I'm creating the job like this new BackgroundJobClient(HangfireStorage.Default).Enqueue<ServiceActivator>(x => x.Execute(id, name));

@sjwoodard
Copy link
Author

Just got the 1.1.0-alpha1 version and its doing the same thing.

@odinserj odinserj added this to the 1.1.0 milestone Aug 21, 2014
@odinserj odinserj added the bug label Aug 21, 2014
@odinserj
Copy link
Member

This exception was fixed in 1.1.0-alpha2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants