dev@grizzly.java.net

Re: Possible Grizzly issue?

From: Ryan Lubke <ryan.lubke_at_oracle.com>
Date: Tue, 15 May 2012 16:41:49 -0700

On 5/15/12 3:22 PM, Tim Quinn wrote:
> Hi, folks.
>
> I have built GlassFish 4.0 (trunk). When I try to launch an app client using Java Web Start, the launch fails when Java Web Start tries to download one particular JAR file: the orb-iiop.jar from the GlassFish modules directory. It gives basically a JAR format error message.
>
> So I tried to download the same file using curl (Mac OS X), and something seems to go wrong:
>
> tjquinn-mac:archive tjquinn$ curl -o thejar.jar http://localhost:8080/___JWSappclient/___system/s1as/glassfish/modules/orb-iiop.jar % Total % Received % Xferd Average Speed Time Time Time Current
> Dload Upload Total Spent Left Speed
> 93 88013 93 81920 0 0 2654 0 0:00:33 0:00:30 0:00:03 0
> curl: (18) transfer closed with 6093 bytes remaining to read
>
> It seems fine at the beginning for about 5 seconds or so and then it stalls. I assume the server has thought it has sent the whole file but the client disagrees.
>
> There are no errors in the server log.
>
>
> When I try downloading another JAR it works fine and fast:
>
> curl -o gf-client-module-temp.jar http://localhost:8080/___JWSappclient/___system/s1as/glassfish/modules/gf-client-module.jar
> % Total % Received % Xferd Average Speed Time Time Time Current
> Dload Upload Total Spent Left Speed
> 100 745k 100 745k 0 0 140M 0 --:--:-- --:--:-- --:--:-- 242M
>
> I also copied the offending JAR to the docroot for the server and then used curl to download it from there:
>
> tjquinn-mac:archive tjquinn$ curl -o thejar.jar http://localhost:8080/orb-iiop.jar
> % Total % Received % Xferd Average Speed Time Time Time Current
> Dload Upload Total Spent Left Speed
> 100 82169 100 82169 0 0 29.6M 0 --:--:-- --:--:-- --:--:-- 78.3M
>
> which worked fine.
>
> Could there be something about my Grizzly adapter that is not right? I have never seen any problems like this before and I have made no changes to the Grizzly adapter.
I tested locally with a build that was several days old (used the same
version of Grizzly though) without issue.

I'm working on getting my environment updated.

Do you have a pointer to your handler code?
>
> How do I diagnose this?
>
> Thanks.
>
> - Tim
>
>