dev@glassfish.java.net

Re: Glassfish v3 + Metro issue

From: Munaf Sahaf <munaf.sahaf_at_gmail.com>
Date: Wed, 5 Dec 2012 12:06:55 -0500

Created Bug for this: http://java.net/jira/browse/GRIZZLY-1375


On Mon, Dec 3, 2012 at 6:21 PM, Munaf Sahaf <munaf.sahaf_at_gmail.com> wrote:

> Glassfish 3.1.2.2 with bundled version of Grizzly (1.9.46)
>
> Thanks!
>
>
> On Mon, Dec 3, 2012 at 5:03 PM, Ryan Lubke <ryan.lubke_at_oracle.com> wrote:
>
>> Can you please provide the specific version of GlassFish 3 you're using.
>> Also, what version of the Grizzly code were you referencing below?
>>
>> Munaf Sahaf <munaf.sahaf_at_gmail.com>
>> December 3, 2012 1:35 PM
>> Pretty sure this is issue with Grizzly...
>>
>> Grizzly Dev Team, My code changes highlighted in red, is that the issue??
>>
>> @Override
>> final public void service(Request req, Response res) throws Exception {
>> ..
>> ..
>> GrizzlyRequest request = (GrizzlyRequest) req.getNote(ADAPTER_NOTES);
>> GrizzlyResponse response = (GrizzlyResponse) res.getNote(ADAPTER_NOTES);
>>
>> if (request == null) {
>> // Create objects
>> request = new GrizzlyRequest();
>> request.setRequest(req);
>> response = new GrizzlyResponse(chunkingDisabled, false);
>> response.setResponse(res);
>>
>> // Link objects
>> request.setResponse(response);
>> response.setRequest(request);
>>
>> // Set as notes
>> req.setNote(ADAPTER_NOTES, request);
>> res.setNote(ADAPTER_NOTES, response);
>> }
>> //If req was HTTPS, request should be set as Secure.
>> if (! req.scheme().isNull()) {
>> // use processor specified scheme to determine secure state
>> request.setSecure(req.scheme().equals("https"));
>> }
>>
>>
>>
>