Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1038

java.lang.IllegalArgumentException: Error parsing data at 19

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.9.1
    • Fix Version/s: 2.0.0
    • Component/s: jclouds-core
    • Labels:
    • Environment:
      OSX 10.11, Eclipse Mars,
    • Flags:
      Important

      Description

      CloudProvier = opennebula

      if i use /
      ComputeService computeService = client.getContext().getComputeService();
      Set<? extends ComputeMetadata> allInstances = computeService.listNodes();

      than it comes to an :

      Exception in thread "main" java.lang.IllegalArgumentException: Error parsing data at 19
      at org.jclouds.date.internal.SimpleDateFormatDateService.iso8601DateParse(SimpleDateFormatDateService.java:146)
      at org.jclouds.date.internal.DateServiceDateCodecFactory$DateServiceIso8601Codec.toDate(DateServiceDateCodecFactory.java:114)
      at org.jclouds.ec2.xml.BaseReservationHandler.endElement(BaseReservationHandler.java:144)
      at org.jclouds.ec2.xml.DescribeInstancesResponseHandler.endElement(DescribeInstancesResponseHandler.java:84)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2973)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:649)
      at org.jclouds.http.functions.ParseSax.doParse(ParseSax.java:140)
      at org.jclouds.http.functions.ParseSax.parse(ParseSax.java:129)
      at org.jclouds.http.functions.ParseSax.apply(ParseSax.java:83)
      at org.jclouds.http.functions.ParseSax.apply(ParseSax.java:51)
      at org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:90)
      at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:73)
      at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:44)
      at org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
      at com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:87)
      at com.sun.proxy.$Proxy55.describeInstancesInRegion(Unknown Source)
      at org.jclouds.ec2.compute.strategy.EC2GetNodeMetadataStrategy.getRunningInstanceInRegion(EC2GetNodeMetadataStrategy.java:64)
      at org.jclouds.ec2.compute.strategy.EC2GetNodeMetadataStrategy.getNode(EC2GetNodeMetadataStrategy.java:56)
      at org.jclouds.compute.internal.BaseComputeService.getNodeMetadata(BaseComputeService.java:402)
      at stdEC2Api.describeInstances(stdEC2Api.java:65)
      at main.main(main.java:88)
      Caused by: java.text.ParseException: Unparseable date: "2015-11-16T11:49:12+0100"
      at java.text.DateFormat.parse(DateFormat.java:366)
      at org.jclouds.date.internal.SimpleDateFormatDateService.iso8601DateParse(SimpleDateFormatDateService.java:144)
      ... 28 more

      can someone please help me to fix this?

      i also found this: http://mail-archives.apache.org/mod_mbox/jclouds-dev/201308.mbox/%3Cjclouds/jclouds/pull/105/c22456847@github.com%3E

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              s3bb0 s3bb0
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified