Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [glassfish-dev] GlassFish Fails with Arquillian
  • From: Reza Rahman <reza_rahman@xxxxxxxx>
  • Date: Tue, 25 Mar 2025 14:58:01 -0400
  • Delivered-to: glassfish-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/glassfish-dev/>
  • List-help: <mailto:glassfish-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/glassfish-dev>, <mailto:glassfish-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/glassfish-dev>, <mailto:glassfish-dev-request@eclipse.org?subject=unsubscribe>
  • Ui-outboundreport: notjunk:1;M01:P0:Pyh7zL580ag=;sCO4eZixgsFRKxsQ4woumU6nG4V qvku4AB2BEbQcIDaE2QDDujaio6EMvyVd9mdzGKfXsZ1qRPOz2s388+SBzZsQmstvPsLoLI18 pqKSpLVruwf+mcxfYMippUvF18eFdESnXbNH8BVk3vIsHfwGvoxbLibk4/ArsfFByBWsQoyFN j+idWOF7F+gvuQEkAQ3MBVhraOhzLXg24QGpJEufAsQTFGgpQz1yD6edo/sWbCMqCGgWWO2RU FrWKpoW6Yzsu5M3cSJ2xJ1urRh4Q75SWy6MfaLdsZIGS8DXJVmvi/yQJIMvztv+1x1AqGbH3+ 3es+G/jj1tZWgvuS/neHnPELZOs5Vze1pAnLwLObAF3BtnTBboJTuKVp5BocRx0fKjwl1CDXX 1WHRKh4oH5Cid6t/AcvO/2yo/h6CLbNTK08tM1KEP2/l4MpE/yotBISyVCpsDkeCJPTCE06Yh 3c9vzejWX9hilS521WGHVJUFMKist8Y1nHQHjHtVZTxn58/lKc2Cb1F/9lYaU9YgOz8VABfuk Xv0h3P3tz7VtN4KE6OADUS5UDdG0vJLsb56+ypEkkNFzqr+0hqJgPEO3R+RkZmevfFnBzXq9O S3O5TrH5E6+2iF2Cf+s+59hxiEvNzeH63HcP6s4x31NaxZEEqsOyIFGUCfphhA3R+KeWvNTYv nJWcxyfeJ6h2c0tpoJMY9gK/8ZXqmfqehinA9TH4RP/786VH08zZUhBXoEeLoHlSNMmsHDvB+ r2tzfKwn9rgKeWkVjvwmXr5xB3k96VoUdZ8du9J6LDQf8Zp8YxUxN77JTrCL7OI1sqGvRF+iN 1Ufb/vnrtx4JGL9ecLrR/php+B5826aK/JztSFRI+G1OSKZyP8/lD4RiNzJA1/vVgmzQxY94C Z3sQoE4CM3GUT+NRZQ4q5ehrbeA9KuAezHFpZg3cclemt6ptntR19vEBmMWIUpz8ZcASwuJZZ oC+j9EUQWdp1x8m/RRbr/lKoierf5PFZ7pluTuu0ZT90cQ31e99pXr1FSo3UOqZEDKyKcs5JW CE2Sbi2x+bmOsG2fRs7hiLesKbmb5u/0v63N7f7xBsk3tnzOPfhZkMXFsl/pycIgdKEGQUbCh 8URIEFZSc1TlptXPrsr+XBELt6q286i1mZyVCLFhhfXCIZz9pnGF+DdEavY58srpkXFoglGcD OHFRz19o55GjZc4iIEQwKM1Zg8JnjlacM+n+pa+leIiND6wWBgBJ6FQFiqBPuNC9i9MDtXJfA rMEMbdAd9tqT5PYpY+n0zGrMMix7pqMArWEzEYNy9vZxZYymGGl7Z0rbQmLZ8S1eOOyrkFzzY o4/fMAkkDoA8m97Uxaff9nXu5Pd64t2AMGiNDde2TbyBdh4sgJB3uLa210X5ZRDFNclv2hCcB jbDZquKTRpqtpNwXigMVH+uo9OwxpLs3yQGVFRamQj0wObqSsBiri6v9LBHfKrREay2pDPWIX zPC+4pQDqvhGvj8TtB0Eirjj71D1++uA1vBmMyn7NHtn2u7ywYgfL2AdVwnxHym7U7JOEHg==
  • User-agent: Mozilla Thunderbird

I have now tried everything that I can think of and the problem persists. I must have done close to a hundred runs at this point.

* I have tried different GlassFish versions. While newer versions seem to make thing worse, older versions still intermittently cause this issue.

* I have tried different Arquillian timeout and retry settings. None seem to have an effect.

* I have tried different JDKs, versions, and JDK locations without spaces. This does not seem to be the issue.

I am happy to try further suggestions. If there are none, I am going to document this as a known issue for the Cargo Tracker project. If I receive too may user complaints, I'll remove GlassFish support from Cargo Tracker for now.

On 3/25/2025 9:38 AM, Reza Rahman wrote:

This is simply bizarre. I am out of time this morning but I will validate this observation in the evening.

This entire problem started with an attempted upgrade to 7.0.22 (looks like by someone who did not test on Windows). It's worse with 7.0.23. It seems to not be a problem in 7.0.21.

On 3/25/2025 7:27 AM, Reza Rahman wrote:
This is 7.0.22. I can try an upgrade today.
 

From: David Matějček <david.matejcek@xxxxxxxxxxx>
Sent: Tuesday, March 25, 2025 3:20 AM
To: glassfish developer discussions <glassfish-dev@xxxxxxxxxxx>
Cc: Reza Rahman <reza_rahman@xxxxxxxx>; cargotracker developer discussions <cargotracker-dev@xxxxxxxxxxx>
Subject: Re: [glassfish-dev] GlassFish Fails with Arquillian
 
Quick question, which gf version do you use?
We fixed many these issues for 7.0.23.

Dne út 25. 3. 2025 0:20 uživatel Reza Rahman via glassfish-dev <glassfish-dev@xxxxxxxxxxx> napsal:

So by sheer amount of random trial and error I was able to reduce the instances of this happening: https://github.com/eclipse-ee4j/cargotracker/commit/733884ef435290113a70958fd7922d34a2b83362. It is still happening intermittently. It looks like some kind of low level file locking and/or permissions issue. I'll keep trying but honestly I could use some real help.

I would still be very keen on moving to GlassFish Embedded in a way that's proper for an Eclipse Foundation project if that's possible instead. This problem can be someone else's headache to solve.

On 3/24/2025 11:08 AM, Reza Rahman wrote:

Also tried the following, it works fine:

& "C:\Program Files\Eclipse Adoptium\jdk-17.0.8.101-hotspot\bin\java.exe" -jar "C:\GitHub\cargotracker\target\glassfish7\glassfish\modules\admin-cli.jar" start-domain -t

I did notice that if GlassFish was not shut down completely, I get this:

Waiting finished after 60,001 ms.
No response from the Domain Administration Server (domain1) after 60 seconds.
The command is either taking too long to complete or the server has failed.
Please see the server log files for command status.
Please start with the --verbose option in order to see early messages. No response from the Domain Administration Server (domain1) after 60 seconds.
The command is either taking too long to complete or the server has failed.
Please see the server log files for command status.
Please start with the --verbose option in order to see early messages.

I'll try to pin down under what exact conditions this happens. It's not easy to reproduce. This is easier to reproduce manually:

There is a process already using the admin port 4,848 -- it probably is another instance of a GlassFish server.

On 3/24/2025 10:44 AM, Reza Rahman wrote:

This is what I did:

C:\GitHub\cargotracker> cd "C:\Program Files\Eclipse Adoptium\jdk-17.0.8.101-hotspot\bin\"

C:\Program Files\Eclipse Adoptium\jdk-17.0.8.101-hotspot\bin> java.exe -jar "C:\GitHub\cargotracker\target\glassfish7\glassfish\modules\admin-cli.jar" start-domain -t

This is the output I get:

Waiting finished after 48,817 ms.
Successfully started the domain : domain1
domain  Location: C:\GitHub\cargotracker\target\glassfish7\glassfish\domains\domain1
Log File: C:\GitHub\cargotracker\target\glassfish7\glassfish\domains\domain1\logs\server.log
Admin Port: 4,848

This still could be an issue, but at least the above works.

On 3/24/2025 6:17 AM, Arjan Tijms via glassfish-dev wrote:
Hi,

It looks like a rather basic thing:

"org.jboss.arquillian.container.spi.client.container.LifecycleException: Unable to execute [C:\Program Files\Eclipse Adoptium\jdk-17.0.8.101-hotspot\bin\java.exe, -jar, C:\GitHub\cargotracker\target\glassfish7\glassfish\modules\admin-cli.jar, start-domain, -t]"

Can you double check if the JDK is indeed at that location?

Kind regards,
Arjan Tijms




On Mon, 24 Mar 2025 at 09:22, Ondro Mihályi via glassfish-dev <glassfish-dev@xxxxxxxxxxx> wrote:
Can you try if it also happens on Linux/Mac? When I run the BookingServiceTest test with "maven test -Pglassfish" on master branch on Linux, it works.

I suspect that the problem is only on Windows, can you confirm it, Reza?

Ondro

On Mon, Mar 24, 2025 at 12:05 AM Reza Rahman via glassfish-dev <glassfish-dev@xxxxxxxxxxx> wrote:

When I try with the OmniFish plugin, I get a slightly different error with the same overall symptoms. The stack trace is attached.

On 3/23/2025 6:36 PM, Reza Rahman wrote:
Thanks very much for taking a look. I can try the OmniFish plugin as a test.

However, I cannot use it in the project in relation to GlassFish. I must use something in the GlassFish or Arquillian domain instead. I’ve already checked with the EMO on this. My hope would be that either the Arquillian plugin is properly maintained or a plugin is created within the GlassFish project. Alternatively, I would not mind adding support for an OmniFish branded runtime. That’s also something that the EMO has suggested.


From: Arjan Tijms <arjan.tijms@xxxxxxxxxxx>
Sent: Sunday, March 23, 2025 6:10 PM
To: glassfish developer discussions <glassfish-dev@xxxxxxxxxxx>
Cc: Reza Rahman <reza_rahman@xxxxxxxx>; cargotracker developer discussions <cargotracker-dev@xxxxxxxxxxx>
Subject: Re: [glassfish-dev] GlassFish Fails with Arquillian
 
Hi,

I haven't tried anything yet, but from a cursory glance at master the first thing that stands out is that for GlassFish an alpha version of the unmaintained JBoss Arquillian connector is used, that was only suited for GlassFish 6:

 <dependency>
          <groupId>org.jboss.arquillian.container</groupId>
          <artifactId>arquillian-glassfish-managed-6</artifactId>
          <version>1.0.0.Alpha1</version>
          <scope>test</scope>
</dependency>

Maybe that could explain some?

You could try with:

<dependency>
            <groupId>org.omnifaces.arquillian</groupId>
            <artifactId>arquillian-glassfish-server-managed</artifactId>
            <version>1.7</version>
            <scope>test</scope>
</dependency>

Kind regards,
Arjan Tijms



On Sun, 23 Mar 2025 at 20:47, Reza Rahman via glassfish-dev <glassfish-dev@xxxxxxxxxxx> wrote:
Hello,

The Cargo Tracker project (https://github.com/eclipse-ee4j/cargotracker)
has tried to support GlassFish but once again I am running into seeming
stability issues. While running tests with Arquillian, the attached
issue now suddenly crops up. I have absolutely no idea what is going on.
Honestly, this sort of thing never happens with Payara or Liberty, which
are the two other runtimes Cargo Tracker supports.

Is there someone here that can help? Otherwise I will remove GlassFish
support from Cargo Tracker for now.

Thanks,

Reza
_______________________________________________
glassfish-dev mailing list
glassfish-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/glassfish-dev
_______________________________________________
glassfish-dev mailing list
glassfish-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/glassfish-dev
_______________________________________________
glassfish-dev mailing list
glassfish-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/glassfish-dev

_______________________________________________ glassfish-dev mailing list glassfish-dev@xxxxxxxxxxx To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/glassfish-dev
_______________________________________________
glassfish-dev mailing list
glassfish-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/glassfish-dev

Back to the top