jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ignasi Barrera (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCLOUDS-1038) java.lang.IllegalArgumentException: Error parsing data at 19
Date Sat, 21 Nov 2015 07:56:11 GMT

    [ https://issues.apache.org/jira/browse/JCLOUDS-1038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15020314#comment-15020314
] 

Ignasi Barrera commented on JCLOUDS-1038:
-----------------------------------------

Thanks for reporting and for the details [~s3bb0]. I've just created a pull request to better
parse dates in EC2 apis: https://github.com/jclouds/jclouds/pull/882
Would you be able to build that branch and test it? I verified that it keeps working with
AWS, but I don't have an OpenNebula account, so it would be great if you could provide some
feedback before we merge it.

> java.lang.IllegalArgumentException: Error parsing data at 19
> ------------------------------------------------------------
>
>                 Key: JCLOUDS-1038
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1038
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-core
>    Affects Versions: 1.9.1
>         Environment: OSX 10.11, Eclipse Mars, 
>            Reporter: s3bb0
>            Priority: Critical
>              Labels: easyfix, newbie
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message