title: Firebase Admin SDk not working from backend Java
body: <p>I am trying to push message in firebase real time database through            firebase admin sdk java, but my problem is that the same code works 
             fine on my local system and I am able to push message successfully 
             in database but its not working in testing environment and testing 
             environment is AWS server with ubuntu installed in 
             it, on researching it on google I am not able to find solution for 
             this?</p>
  
  <pre><code>public static class User {
  
      public String date_of_birth;
      public String full_name;
      public String nickname;
  
      public User(String date_of_birth, String full_name) {
          // ...
      }
  
      public User(String date_of_birth, String full_name, String nickname) {
          // ...
      }
  
  }
  
  Map&lt;String, User&gt; users = new HashMap&lt;&gt;();
  users.put("alanisawesome", new User("June 23, 1912", "Alan Turing"));
  users.put("gracehop", new User("December 9, 1906", "Grace Hopper"));
  </code></pre>
  
  <p>Code for making connection is.....</p>
  
  <pre><code>  FileInputStream serviceAccount;
    FirebaseOptions options;
    try {
          serviceAccount = new FileInputStream("/********.json");
                  options = new FirebaseOptions.Builder()
                             .setDatabaseUrl("https://myDatabaseUrl")                           
         .setCredentials(GoogleCredentials.fromStream(serviceAccount))
                            .build();
                  FirebaseApp.initializeApp(options);
  
                  flagForConnectionWithFirebase=true;
                  LOGGER.info("Options are:: "+options);
              } catch (Exception e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
              }                                                         
      final FirebaseDatabase database = 
                             FirebaseDatabase.getInstance();
      DatabaseReference ref = database.getReference(url);
      String key=ref.push().getKey();
      ref.child(key).setValueAsync(users);
  </code></pre>