{"action":"created","issue":{"url":"https://api.github.com/repos/groupon/DotCi/issues/109","labels_url":"https://api.github.com/repos/groupon/DotCi/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/groupon/DotCi/issues/109/comments","events_url":"https://api.github.com/repos/groupon/DotCi/issues/109/events","html_url":"https://github.com/groupon/DotCi/issues/109","id":56099001,"number":109,"title":"Exception trying to run with parameters","user":{"login":"mikerowehl","id":133081,"avatar_url":"https://avatars.githubusercontent.com/u/133081?v=3","gravatar_id":"","url":"https://api.github.com/users/mikerowehl","html_url":"https://github.com/mikerowehl","followers_url":"https://api.github.com/users/mikerowehl/followers","following_url":"https://api.github.com/users/mikerowehl/following{/other_user}","gists_url":"https://api.github.com/users/mikerowehl/gists{/gist_id}","starred_url":"https://api.github.com/users/mikerowehl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikerowehl/subscriptions","organizations_url":"https://api.github.com/users/mikerowehl/orgs","repos_url":"https://api.github.com/users/mikerowehl/repos","events_url":"https://api.github.com/users/mikerowehl/events{/privacy}","received_events_url":"https://api.github.com/users/mikerowehl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-30T23:26:37Z","updated_at":"2015-01-31T17:32:38Z","closed_at":null,"body":"I'm running a sytem with Jenkins 1.598 and dotCI 2.5.4. I can login to github, configure a job, entries are showing up in mongo, looks good. But when I try to kick off a manual build using build with parameters (this is actually running in a VM on my laptop, so using a webhook for now isn't practical) I get an exception spit out in jenkins.log and the job doesn't seem to run. The exception is pasted below.\r\n\r\nI see some mention in the 1.597 release notes for Jenkins that builds are keyed off number instead of date now, so I figured it might be related. Has anyone else hit this? Should I just downgrade Jenkins to 1.596 to test?\r\n\r\n======== Exception from jenkins.log\r\n\r\nJan 30, 2015 10:56:44 PM hudson.ExpressionFactory2$JexlExpression evaluate\r\nWARNING: Caught exception evaluating: it.resolve(job) in /job/collectivehealth/job/json_server/. Reason: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException\r\njava.lang.RuntimeException: java.lang.reflect.InvocationTargetException\r\n\tat org.mongodb.morphia.mapping.MappedClass.callLifecycleMethods(MappedClass.java:425)\r\n\tat org.mongodb.morphia.mapping.Mapper.fromDb(Mapper.java:597)\r\n\tat org.mongodb.morphia.mapping.Mapper.fromDBObject(Mapper.java:296)\r\n\tat com.groupon.jenkins.mongo.JenkinsMapper.fromDBObject(JenkinsMapper.java:79)\r\n\tat org.mongodb.morphia.query.MorphiaIterator.convertItem(MorphiaIterator.java:78)\r\n\tat org.mongodb.morphia.query.MorphiaIterator.processItem(MorphiaIterator.java:65)\r\n\tat org.mongodb.morphia.query.MorphiaIterator.next(MorphiaIterator.java:60)\r\n\tat org.mongodb.morphia.query.QueryImpl.get(QueryImpl.java:415)\r\n\tat com.groupon.jenkins.dynamic.build.repository.DynamicBuildRepository.getLastBuild(DynamicBuildRepository.java:299)\r\n\tat com.groupon.jenkins.dynamic.build.DbBackedProject.getLastBuild(DbBackedProject.java:188)\r\n\tat com.groupon.jenkins.dynamic.build.DynamicProject.getLastBuild(DynamicProject.java:296)\r\n\tat com.groupon.jenkins.dynamic.build.DynamicProject.getLastBuild(DynamicProject.java:65)\r\n\tat jenkins.model.PeepholePermalink.resolve(PeepholePermalink.java:116)\r\n\tat sun.reflect.GeneratedMethodAccessor141.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:258)\r\n\tat org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104)\r\n\tat org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)\r\n\tat org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57)\r\n\tat org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51)\r\n\tat org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)\r\n\tat hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:74)\r\n\tat org.apache.commons.jelly.tags.core.CoreTagLibrary$3.run(CoreTagLibrary.java:134)\r\n\tat org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)\r\n\tat org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)\r\n\tat org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:95)\r\n\tat org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:147)\r\n\tat org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)\r\n\tat org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)\r\n\tat org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150)\r\n\tat org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)\r\n\tat org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)\r\n\tat org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)\r\n\tat org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)\r\n\tat org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)\r\n\tat org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:95)\r\n\tat org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:147)\r\n\tat org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)\r\n\tat org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)\r\n\tat org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)\r\n\tat org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)\r\n\tat org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)\r\n\tat org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)\r\n\tat org.apache.commons.jelly.tags.core.CoreTagLibrary$1.run(CoreTagLibrary.java:98)\r\n\tat org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)\r\n\tat org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)\r\n\tat org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120)\r\n\tat org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)\r\n\tat org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)\r\n\tat org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)\r\n\tat org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)\r\n\tat org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)\r\n\tat org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)\r\n\tat org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)\r\n\tat org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)\r\n\tat org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)\r\n\tat org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)\r\n\tat org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)\r\n\tat org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)\r\n\tat org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)\r\n\tat org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)\r\n\tat org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)\r\n\tat org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)\r\n\tat org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120)\r\n\tat org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)\r\n\tat org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:95)\r\n\tat org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63)\r\n\tat org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53)\r\n\tat org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:112)\r\n\tat org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:127)\r\n\tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:735)\r\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)\r\n\tat org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249)\r\n\tat org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)\r\n\tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)\r\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)\r\n\tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:813)\r\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)\r\n\tat org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249)\r\n\tat org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)\r\n\tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)\r\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)\r\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)\r\n\tat org.kohsuke.stapler.Stapler.service(Stapler.java:238)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:848)\r\n\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)\r\n\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:123)\r\n\tat hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:114)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)\r\n\tat hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)\r\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)\r\n\tat hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)\r\n\tat hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)\r\n\tat org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)\r\n\tat hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)\r\n\tat org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)\r\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)\r\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)\r\n\tat org.eclipse.jetty.server.Server.handle(Server.java:370)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:949)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1011)\r\n\tat org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)\r\n\tat org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)\r\n\tat org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)\r\n\tat org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)\r\n\tat org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)\r\n\tat winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.lang.reflect.InvocationTargetException\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat org.mongodb.morphia.mapping.MappedClass.callLifecycleMethods(MappedClass.java:405)\r\n\t... 125 more\r\nCaused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.util.Date\r\n\tat com.groupon.jenkins.dynamic.build.DbBackedBuild.restoreTimestamp(DbBackedBuild.java:96)\r\n\t... 130 more"},"comment":{"url":"https://api.github.com/repos/groupon/DotCi/issues/comments/72327216","html_url":"https://github.com/groupon/DotCi/issues/109#issuecomment-72327216","issue_url":"https://api.github.com/repos/groupon/DotCi/issues/109","id":72327216,"user":{"login":"suryagaddipati","id":64078,"avatar_url":"https://avatars.githubusercontent.com/u/64078?v=3","gravatar_id":"","url":"https://api.github.com/users/suryagaddipati","html_url":"https://github.com/suryagaddipati","followers_url":"https://api.github.com/users/suryagaddipati/followers","following_url":"https://api.github.com/users/suryagaddipati/following{/other_user}","gists_url":"https://api.github.com/users/suryagaddipati/gists{/gist_id}","starred_url":"https://api.github.com/users/suryagaddipati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suryagaddipati/subscriptions","organizations_url":"https://api.github.com/users/suryagaddipati/orgs","repos_url":"https://api.github.com/users/suryagaddipati/repos","events_url":"https://api.github.com/users/suryagaddipati/events{/privacy}","received_events_url":"https://api.github.com/users/suryagaddipati/received_events","type":"User","site_admin":false},"created_at":"2015-01-31T17:32:38Z","updated_at":"2015-01-31T17:32:38Z","body":"@gblikegroupon any clues on why this might be happening. \r\n\r\n@mikerowehl I've tested it with `1.596` and I didn't see this exception, so that might be workaround for now."}}