-
Notifications
You must be signed in to change notification settings - Fork 29
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
Error parsing dates #8
Comments
So, Resque running on JRuby is formatting dates like "yyyy/MM/dd HH:mm:ss zzz"? It is no big deal to have another date format but could you see if there is a setting on your side to make it format the dates like Resque normally does? |
After re-reading your statement again, I realized I'm not quite sure I understand completely. Is the exception being thrown in Jesque? Jesque-Web? Or is it in the JRuby Resque gem? Thanks! |
@spatzle Can you clarify what you meant here? If I don't hear back, I'll just close this bug. |
Hi @gresrun, sorry forgot to check messages, this is being thrown by jesque-web, I am deploying the the war, when I go to the failed job page, I see the above message |
Here are more info on the error at net.greghaines.jesque.utils.PoolUtils.doWorkInPoolNicely(PoolUtils.java:70) |
Ok, I'll look at this today. |
It has to do with the fact that this class isn't very well written (in jackson-databind jar) |
I'm working on fixing this. Basically I have to write a custom CompositeDateFormatter and use that for de-/serializing Dates in Jesque. |
Actually, I am using resque rather than jesque w/ jruby, and I see that they use another format Time.now.rfc2822 item['retried_at'] = Time.now.strftime("%Y/%m/%d %H:%M:%S") Thanks for this update, I don't think it's really your library causing the issue |
This should now be fixed if you build the latest Jesque snapshot from master and use that in your Jesque-Web POM. Can you test this and see if it fixes the problem for you? |
I've put the jesque jar into Jesque-web's pom net.greghaines jesque 1.3.2 system ${project.basedir}/lib/jesque-1.3.2-SNAPSHOT.jarbut I got this error |
I'm able to compile and run here without any errors. How did you install the new Jesque snapshot? Either you can checkout the Jesque project and run mvn install:install-file -Dfile=/path/to/jesque-1.3.2-SNAPSHOT.jar \
-DgroupId=net.greghaines -DartifactId=jesque \
-Dversion=1.3.2-SNAPSHOT -Dpackaging=jar \
-DpomFile=/path/to/jesque-1.3.2-SNAPSHOT.pom |
Any luck getting this working? |
Poke. |
sorry, sorry, I'll be working on that today, thanks :) On Wednesday, March 13, 2013, Greg Haines wrote:
|
Closing this. Feel free to reopen if it is not resolved. Let me know if you need a new release for this and I'll cut one for you. |
Hi,
Looking at http://localhost:8080/resque/failed
I get this error message
Can not construct instance of java.util.Date from String value '2012/11/20 15:03:52 CET': not a valid representation (error: Can not parse date "2012/11/20 15:03:52 CET": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"))
I am running jruby-rack-worker with resque gem in tomcat
The text was updated successfully, but these errors were encountered: