java.lang.IllegalArgumentException: Invalid format: "2005-07-13" is too short

Sonatype JIRA | Robert Brown | 1 month ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Nexus 3.2 is not able to serve the gem `barcode v2.0` via a rubygems proxy repo. It looks like it is having issue parsing a date. {noformat} gem install barcode -v 0.2 ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) bad response Server Error 500 (http://localhost:8083/nexus/repository/rubygems-all/gems/barcode-0.2.gem) {noformat} {noformat} 2017-02-10 13:21:37,231+0000 WARN [qtp40668963-374] *UNKNOWN org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Service failure java.lang.IllegalArgumentException: Invalid format: "2005-07-13" is too short at org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.java:899) [na:na] at org.joda.time.DateTime.parse(DateTime.java:160) [na:na] at org.sonatype.nexus.repository.rubygems.marshal.RubyTime.from(RubyTime.java:121) [na:na] {noformat} actual barcode-0.2 gemspec: {noformat} ########################### --- !ruby/object:Gem::Specification rubygems_version: 0.8.10 specification_version: 1 name: barcode version: !ruby/object:Gem::Version version: "0.2" date: 2005-07-13 summary: Barcode classes. require_paths: - lib email: crnixon@gmail.com homepage: rubyforge_project: description: Simple classes for creating barcodes. autorequire: default_executable: bindir: bin has_rdoc: true required_ruby_version: !ruby/object:Gem::Version::Requirement requirements: - - ">" - !ruby/object:Gem::Version version: 0.0.0 version: platform: ruby authors: - Clinton R. Nixon files: - lib/barcode/code39.rb test_files: [] rdoc_options: [] extra_rdoc_files: [] executables: [] extensions: [] requirements: [] dependencies: [] #################### {noformat} This same request works in Nexus 2.14.2. {noformat} gem install barcode -v 0.2 Fetching: barcode-0.2.gem (100%) Successfully installed barcode-0.2 Parsing documentation for barcode-0.2 Installing ri documentation for barcode-0.2 Done installing documentation for barcode after 0 seconds 1 gem installed {noformat}

    Sonatype JIRA | 1 month ago | Robert Brown
    java.lang.IllegalArgumentException: Invalid format: "2005-07-13" is too short
  2. 0

    GitHub comment 220#152235505

    GitHub | 1 year ago | joakim-ribier
    java.lang.IllegalArgumentException: Invalid format: "2015-10-20 14:43:45.602" is too short
  3. 0

    Joda Time invalid format expiration date facebook access token Java

    Stack Overflow | 2 years ago | user3780814
    java.lang.IllegalArgumentException: Invalid format: "Tue Jan 06 14:15:21 OEZ 2015"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Joda DateTime parsing full date name

    Stack Overflow | 2 years ago
    java.lang.IllegalArgumentException: Invalid format: "Apr 10 18:31:45 +0000 2015"
  6. 0

    How to sort date of different formats

    Stack Overflow | 1 year ago | blue-sky
    java.lang.IllegalArgumentException: Invalid format: "1/5/2015" is too short

  1. aldrinleal 1 times, last 1 month ago
  2. Nikolay Rybak 4 times, last 4 months ago
  3. wendellpereira 20 times, last 6 months ago
  4. regisso 472 times, last 8 months ago
  5. sriharshakiran 1 times, last 11 months ago
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.lang.IllegalArgumentException

    Invalid format: "2005-07-13" is too short

    at org.joda.time.format.DateTimeFormatter.parseDateTime()
  2. Joda-Time
    DateTime.parse
    1. org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.java:899)[na:na]
    2. org.joda.time.DateTime.parse(DateTime.java:160)[na:na]
    2 frames
  3. org.sonatype.nexus
    RubyTime.from
    1. org.sonatype.nexus.repository.rubygems.marshal.RubyTime.from(RubyTime.java:121)[na:na]
    1 frame