maheshwarirohit87 / typica

Automatically exported from code.google.com/p/typica
Apache License 2.0
0 stars 0 forks source link

Is this typica bug? #106

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
> I ran the following code.

Jec2 ec2 = new Jec2(ManageConstants.accessKey, ManageConstants.secretKey);
try {
    List<String> params = new ArrayList<String>();
    List<ReservationDescription> instances = ec2.describeInstances(params);
} catch (Exception e) {
     System.err.println(e.getMessage());
     e.printStackTrace();
}

What is the expected output? What do you see instead?

> I expected to get instances when I called ec2.describeInstances(params). 
However, I see the following exception.

com.xerox.amazonws.ec2.EC2Exception: hostname in certificate didn't match: 
<72.21.206.77> != <ec2.us-east-1.amazonaws.com>
        at com.xerox.amazonws.ec2.Jec2.makeRequestInt(Jec2.java:2367)
        at com.xerox.amazonws.ec2.Jec2.describeInstances(Jec2.java:826)
.....

What version of the product are you using? On what operating system?

>1.7.2, Linux and Windows server 2007

Please provide any additional information below.

> If I use the old version, for example typica1.3, it's working without 
exception.

Original issue reported on code.google.com by mildw...@gmail.com on 13 Sep 2010 at 6:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
getting the same exception with typica 1.7.2, works fine with 1.4.1 when run 
the following code on windows xp

QueueService queueService = SQSUtils.getQueueService(
                    Constants.getAccessKey(), 
                    Constants.getSecretAccessKey(),
                    null);
MessageQueue messageQueue = queueService.getOrCreateMessageQueue(queue);

Original comment by vedpatel...@gmail.com on 17 Sep 2010 at 4:58

GoogleCodeExporter commented 9 years ago
hey....I get this. this is not typica issue it's an issue with httpClient 4.0.2 
only
see this https://issues.apache.org/jira/browse/HTTPCLIENT-996

Original comment by vedpatel...@gmail.com on 17 Sep 2010 at 2:10

GoogleCodeExporter commented 9 years ago
I'm using Typica 1.7.1:

HttpClient 4.1.1 - works fine
HttpClient 4.1.2 - throws 

Exception in thread "main" com.xerox.amazonws.sqs2.SQSException: hostname in 
certificate didn't match: <queue.amazonaws.com/72.21.214.140> != 
<queue.amazonaws.com> OR <queue.amazonaws.com> OR <sqs.us-east-1.amazonaws.com>

Original comment by vasily.v...@gmail.com on 30 Aug 2011 at 10:24

GoogleCodeExporter commented 9 years ago
I had the same experience as vasily: Downgrading from 4.1.2 to 4.1.1 solved the 
problem.

Original comment by noah.mer...@gmail.com on 20 Oct 2011 at 9:47

GoogleCodeExporter commented 9 years ago
Looks like this has recently been reported as a problem in 4.1.2: 
https://issues.apache.org/jira/browse/HTTPCLIENT-1138

Original comment by noah.mer...@gmail.com on 20 Oct 2011 at 9:58