?
Solved

AWS and Java and Rest - newbie question (Is this an authentication issue)

Posted on 2016-10-29
4
Medium Priority
?
110 Views
Last Modified: 2016-10-30
I do not know AWS very well. I think this is an AWS REST Authentication issue.

Can someone confirm that for me who has more experience with AWS and REST?

When trying to make a basic Rest call on AWS

This is not the exact code but it is close.
Code.pdf
 

Is resulting in errors:
Error I"m getting
I am thinking this issue is related to something like this http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html
OR
http://docs.aws.amazon.com/AmazonS3/latest/API/Welcome.html

Can someone confirm that I'm on the right track who knows AWS and rest
0
Comment
Question by:alexmac05
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 25

Accepted Solution

by:
Tomas Helgi Johannsson earned 2000 total points
ID: 41865794
HI!

Are you using Open JDK Java 1.8   ? If so switch to Java 1.7 and try again or switch
to the Oracel JDK 1.8.
There seems to be some issues with SSL and OpenJDK 1.8 that relate to this as I can tell from googling this error.

Regards,
     Tomas Helgi
2
 

Author Comment

by:alexmac05
ID: 41865901
Question: Can one run Oracle java on AWS or does one have to run OpenJDK on AWS?
I wasn't sure if we could run Oracle 1.8 java on AWS. Can we choose between these during the setup?

We will definitely look into changing the versions. This is a great answer and helps a lot. thank you.



Good tips about the versions. The AWS server shows 1.8 openjdk and the errors are SSL related and the dev machine, it is working with oracle.

Server where it is broken:

AWS Java version[ec2-user@machineIP ~]$ java -versionopenjdk version "1.8.0_101"OpenJDK Runtime Environment (build 1.8.0_101-b13)OpenJDK 64-Bit Server VM (build 25.101-b13, mixed mode)
[ec2-user@machineIP ~]$ javac -versionjavac 1.8.0_101


Local Dev machine where it is working:

Local dev machine java versionC:\Users\thomas>java -versionjava version "1.8.0_102"Java(TM) SE Runtime Environment (build 1.8.0_102-b14)Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
C:\Users\thomas>javac -versionjavac 1.8.0_102
0
 
LVL 25

Expert Comment

by:Tomas Helgi Johannsson
ID: 41865979
Hi!

You could download and install the Oracle Java version on your AWS server.
Just follow this guide https://gist.github.com/rtfpessoa/17752cbf7156bdf32c59

Regards,
    Tomas Helgi
0
 

Author Closing Comment

by:alexmac05
ID: 41866021
This was a hard question and I really appreciate this guidance.
0

Featured Post

Need protection from advanced malware attacks?

Look no further than WatchGuard's Total Security Suite, providing defense in depth against today's most headlining attacks like Petya 2.0 and WannaCry. Keep your organization out of the news with protection from known and unknown threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses
Course of the Month13 days, 2 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question