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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:32:05+00:00 2026-06-05T17:32:05+00:00

I have implemented a test method with Jersey to run on my Google AppEngine

  • 0

I have implemented a test method with Jersey to run on my Google AppEngine local development server. The method signature is:

@GET
public String sayHello(@QueryParam ("name") String id) 

I input the following url into my web browser to test it:

http://127.0.0.1:8888/sayhello?name=bill

, whereupon the browser receives the intended “Hello, bill” response.

However, when I deploy this appengine app to the cloud, I do not get the intended response. The name echoes back null as “Hello, “. I logged the received QueryParam value, and the logs confirm that the query parameter is not getting passed into the method.

code.rest.impl.Test sayHello: name QueryParam received is:null

If I also assign a @DefaultParam, the declared default parameter replaces the null value, as expected.

Why is the deployed cloud app not receiving URL query parameters, while the local development server receives them correctly? Is there a security configuration I need to modify?

  • 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-05T17:32:07+00:00Added an answer on June 5, 2026 at 5:32 pm

    I determined why this isn’t working. Two reasons, actually, but the main reason is that I was forwarding the requests from a domain that was not a registered Google AppEngine domain. Both requests were received intact, but looking at the logs, they are handled differently.

    forwarded from a Google Apps domain I don’t control, or any regular domain:

    2012-06-04 13:18:48.146 /sayHello 200 443ms 0kb Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0
    
    12.216.181.76 - - [04/Jun/2012:10:18:48 -0700] "GET /program/sayHello?name=bill InfoByID HTTP/1.1" 200 52 "http://somedomain.org/sayHello?name=bill"
    

    from a Google Apps domain I control and is associated with this AppEngine instance (note the difference in how the request is reported/handled):

    2012-06-04 13:18:41.312 /sayHello?name=bill 200 44ms 0kb Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0
    
    12.216.181.76 - - [04/Jun/2012:10:18:41 -0700] "GET /sayHello?name=bill HTTP/1.1" 200 169 - "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0"...
    

    The other (embarrassing) overlaying reason this wasn’t working was that I was making port 443 requests from my browser to test the web service, because I use a Firefox plugin that adds https: automatically, and this is just an http web service.

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

Sidebar

Related Questions

I have a DBUS server implemented in Vala: [DBus (name = com.github.Test)] public class
I have a public method that uses a local private method to get data
I have a unit test method: private bool TestCompatibility(string type1, string type2, bool shouldBeCompatible)
I have the following code: public class Test extends JFrame implements ActionListener{ private static
I have a class for a string-number pair. This class has the method compareTo
I have a class defined by an interface public interface Test { void testMethod();
Following Test-Driven Development that is. I've recently implemented a algorithm (A*) that required a
I implemented the experimental OAuth support for Google App Engine using Python, and have
I'm implementing readability test and have implemented simple algorithm of detecting sylables. Detecting sequences
I am looking to implement a continuous unit test running system, something I have

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.