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 550043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:14:51+00:00 2026-05-13T11:14:51+00:00

I tried sending an ArrayList to an RPC service in GWT but keeps on

  • 0

I tried sending an ArrayList to an RPC service in GWT but keeps on failing.
Here is my code fragment

                greetingService.addNewQuestion(questionnaireKey, questionText, qcList, new AsyncCallback<Boolean>(){
                @Override
                public void onFailure(Throwable caught) {
                    Window.alert("Something went wrong!\n"+caught.getMessage());

                }
                @Override
                public void onSuccess(Boolean result) {
                    Window.alert("Question Added!");
                }

            });

QuestionChoice is a simple object with no method, and qcList is an ArrayList of QuestionChoice

public class QuestionChoice implements IsSerializable{
/**
 * 
 */
private static final long serialVersionUID = 5668640935838672293L;
public String text;
public boolean isCorrect;

public QuestionChoice(){

}
public QuestionChoice(String text, boolean isCorrect){
    this.text = text;
    this.isCorrect = isCorrect;
}

}

Has anyone tried sending an ArrayList as a parameter in GWT-RPC?
If you do, please try to post your sample code here.
Thank you.

  • 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-05-13T11:14:52+00:00Added an answer on May 13, 2026 at 11:14 am

    Yes, It is possible to send an ArrayList as a parameter in GWT-RPC call. When developing the GWT-RPC code, a lot of times you may encounter errors when a request in GWT-RPC is invoked, this is due to a change in GWT-RPC service that may have not been corresponds to the clients compiled GWT-RPC definition. To solve this issue you have to restart your development server whenever you changed your codes in the server side classes, or in the GWT-RPC service defintion(ie GreetingService, GreetingServiceAsync and in GreetingServiceImpl)

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

Sidebar

Related Questions

Following this link I tried sending a XML file to my web service using
I tried sending mail in telnet in linux as telnet smtp.gmail.com 587 but it
GWT doesn't serialize Java Date properly. When I tried sending Date created in Javascript
I've tried sending mail with python from gmail and it works fine. But the
Has anyone ever tried sending emails using 1&1 smtp host? I tried the following?
I've been playing around with Python's imaplib and email module recently. I tried sending
okay....i'm sending some variables over forms...i tried with borh session and cookie, i'm getting
Tried to map it from Preferences -> Settings -> Keyboard, but the key combo
Tried following the instructions here: How to use Google app engine with my own
Tried a bunch of things but I can't get it to work consistently amid

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.