dev@grizzly.java.net

Re: Possible Grizzly issue?

From: Tim Quinn <tim.quinn_at_oracle.com>
Date: Wed, 16 May 2012 07:49:37 -0500

A correction about this...

Downloads from the long URL (.../__JWSappclient/...) actually use files in the domain's java-web-start/... directory tree. These are signed versions of the original files from the modules directory (or, in a few cases, other directories).

In fact, when I try to use the jar command to list the contents of the signed orb-iiop.jar file, the jar command fails with an "error opening zip file" exception.

So this seems not to be a Grizzly problem at all.

I apologize for the false alarm. I need to find out why the signed JAR is incorrect.

- Tim

On May 15, 2012, at 5: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.
>
> How do I diagnose this?
>
> Thanks.
>
> - Tim
>
>