java.text.ParseException: Unparseable date: ""

Coderanch | JayaSiji Gopal | 9 years ago
  1. 0

    java.text.ParseException: Unparseable date: ""

    Coderanch | 9 years ago | JayaSiji Gopal
    java.text.ParseException: Unparseable date: ""
  2. 0

    The following stack trace appearead when sonar was collecting blame information for a git project in our hudson machine: {code} [ERROR] skip ParseException: Unparseable date: "" during parsing date with pattern yyyy-MM-dd HH:mm:ss Z with Locale en java.text.ParseException: Unparseable date: "" at java.text.DateFormat.parse(DateFormat.java:335) at org.apache.maven.scm.util.AbstractConsumer.parseDate(AbstractConsumer.java:112) at org.apache.maven.scm.util.AbstractConsumer.parseDate(AbstractConsumer.java:68) at org.apache.maven.scm.provider.git.gitexe.command.blame.GitBlameConsumer.consumeLine(GitBlameConsumer.java:51) at org.sonar.plugins.scmactivity.plexus.util.cli.StreamPumper.consumeLine(StreamPumper.java:195) at org.sonar.plugins.scmactivity.plexus.util.cli.StreamPumper.run(StreamPumper.java:144) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Can not execute Sonar [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Can not execute Sonar at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Can not execute Sonar at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:103) at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:79) at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:88) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) ... 16 more Caused by: java.lang.NullPointerException at java.util.Calendar.setTime(Calendar.java:1037) at java.text.SimpleDateFormat.format(SimpleDateFormat.java:803) at java.text.SimpleDateFormat.format(SimpleDateFormat.java:796) at java.text.DateFormat.format(DateFormat.java:314) at org.sonar.plugins.scmactivity.BlameSensor.formatLastActivity(BlameSensor.java:112) at org.sonar.plugins.scmactivity.BlameSensor.analyseBlame(BlameSensor.java:83) at org.sonar.plugins.scmactivity.BlameSensor.analyse(BlameSensor.java:56) at org.sonar.plugins.scmactivity.ScmActivitySensor.analyse(ScmActivitySensor.java:77) at org.sonar.batch.SensorsExecutor.execute(SensorsExecutor.java:58) at org.sonar.batch.ProjectBatch.execute(ProjectBatch.java:53) at org.sonar.batch.Batch.analyzeProject(Batch.java:112) at org.sonar.batch.Batch.analyzeProject(Batch.java:109) at org.sonar.batch.Batch.analyzeProject(Batch.java:109) at org.sonar.batch.Batch.analyzeProjects(Batch.java:81) at org.sonar.batch.Batch.execute(Batch.java:57) at org.sonar.maven.SonarMojo.executeBatch(SonarMojo.java:142) at org.sonar.maven.SonarMojo.execute(SonarMojo.java:133) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:98) ... 20 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 minutes 57 seconds [INFO] Finished at: Thu Dec 09 16:25:55 BRST 2010 [INFO] Final Memory: 110M/526M [INFO] ------------------------------------------------------------------------ Finished: FAILURE {code}

    SonarSource JIRA | 6 years ago | Rodrigo Vieira Couto
    java.text.ParseException: Unparseable date: ""
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Unparseable date error in 10.3.4.1

    Oracle Community | 7 years ago | Neeraj Goel-Oracle
    java.text.ParseException: Unparseable date: ""
  5. 0

    date parse error

    GitHub | 4 years ago | anhalter42
    java.text.ParseException: Unparseable date: ""

  1. DoktorDoener666 1 times, last 2 weeks ago
  2. Alexandru Popa 1 times, last 2 weeks ago
  3. maxxi 8 times, last 3 days ago
  4. iridic 5 times, last 1 month ago
  5. ivotje50 33 times, last 1 month ago
23 more registered users
10 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.text.ParseException

    Unparseable date: ""

    at java.text.DateFormat.parse()
  2. Java RT
    DateFormat.parse
    1. java.text.DateFormat.parse(DateFormat.java:335)
    1 frame
  3. com.gs.fw
    EmailProfileServlet.doPost
    1. com.gs.fw.sox404.emailutility.util.impl.TemplateUtil.parseDate(TemplateUtil.java:138)
    2. com.gs.fw.sox404.emailutility.util.impl.TemplateUtil.fillFormData(TemplateUtil.java:102)
    3. com.gs.fw.sox404.emailutility.servlet.EmailProfileServlet.doPost(EmailProfileServlet.java:102)
    3 frames
  4. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    2 frames
  5. Glassfish Core
    ContainerBase.invoke
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    4. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    5. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    6. org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    7. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    8. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    9. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    10. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    11. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    12. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    13. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    14. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    15. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    16. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    17. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    18. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    18 frames
  6. org.apache.coyote
    CoyoteAdapter.service
    1. org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    1 frame
  7. Grizzly HTTP
    TcpWorkerThread.runIt
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    3. org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    3 frames
  8. Tomcat Util
    ThreadPool$ControlRunnable.run
    1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    1 frame