Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8562535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:45:03+00:00 2026-06-11T16:45:03+00:00

The below code was working perfectly fine on master-slave replication datastore and broke after

  • 0

The below code was working perfectly fine on master-slave replication datastore and broke after we moved to HRD today. The exception I see is just

E 2012-09-19 21:59:13.603
vik.sakshum.sakshumweb.server.common.CommonServiceCode writeToGoogleStore: Exception in finally of execute of writeToGoogleStore
E 2012-09-19 21:59:13.603
vik.sakshum.sakshumweb.server.common.CommonServiceCode writeToGoogleStore: Exception class is :java.io.IOException
E 2012-09-19 21:59:13.603
vik.sakshum.sakshumweb.server.common.CommonServiceCode writeToGoogleStore: Exception is :null

Code

try {

        log.info("Starting google storage");
        // Get the file service
        FileService fileService = FileServiceFactory.getFileService();
        GSFileOptionsBuilder optionsBuilder = new GSFileOptionsBuilder()
                .setBucket(bucketName).setKey(key).setAcl("public-read")
                .setMimeType("text/html");

        // Create your object
        AppEngineFile writableFile = fileService
                .createNewGSFile(optionsBuilder.build());

        // Open a channel for writing
        boolean lockForWrite = true;
        FileWriteChannel writeChannel = fileService.openWriteChannel(
                writableFile, lockForWrite);
        PrintWriter out = new PrintWriter(Channels.newWriter(writeChannel,
                "UTF8"));
        out.println(emailMsgTxt);
        out.close();
        writeChannel.closeFinally();
    } catch (Exception e) {
        e.printStackTrace();
        log.severe("Exception in finally of execute of writeToGoogleStore");
        log.severe("Exception class is :" + e.getClass().getName());
        log.severe("Exception is :" + e.getMessage());
        return "failed";
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T16:45:05+00:00Added an answer on June 11, 2026 at 4:45 pm

    Moving to HR also means you’ve got a new app name and service account name. You’ll probably need to add the new account to the ACL of that storage bucket.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the below code to block the taskbar which is working perfectly.
I am using below code to show jquery dialog, its working perfectly, Sub OpenDialog(ByVal
the below code is working fine if the user enters the USN number that
I have used this below code before and was working perfectly. When I use
I made the simple j2me login application, code is below. It's working perfectly on
the below mentioned code is working perfectly, that when clicking the thumbnail the larger
The below is my code. All my button functions are working perfectly, but if
The below code is working great for handling errors for text fields in my
Can anybody explain me why below code is working on private member variable? public
First, I just wanted to say that the below code is working in reality.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.