Thanks Bill (everyone) for the information.

For clarification, SDG primarily builds on Apache Geode GA versions (e.g. 
1.13.2). This is true for 3rd party libs as well. We rarely, if ever, use 
milestones or release candidates, much less snapshots, for any non-controlled 
dependency, in the mainline. This is necessary to always keep SD[G] in a 
releasable state when/if needed (e.g. critical CVE).

As an exception, we additionally build SDG (master-next) on the most recent 
1.14 snapshots (i.e. mainline version +1, e.g. main is set to 1.13 [1] and 
master-next is set to 1.14 [2], even if an Apache Geode 1.15 branch were cut) 
to prepare SDG for the next version when it becomes GA so we are ready to 
upgrade to that version and get it into a release ASAP.

All of this is to say, any changes to support JDK 16 or above, would need to be 
either in a Geode 1.13.3+ release and/or 1.14 when available for SDG to be 
fully JDK 16+ compatible.

Thx,
-j


[1] 
https://github.com/spring-projects/spring-data-geode/blob/main/spring-data-geode/pom.xml#L23
[2] 
https://github.com/spring-projects/spring-data-geode/blob/master-next/spring-data-geode/pom.xml#L23

________________________________
From: Bill Burcham <bill.burc...@gmail.com>
Sent: Monday, May 10, 2021 10:54 AM
To: dev@geode.apache.org <dev@geode.apache.org>
Cc: u...@geode.apache.org <u...@geode.apache.org>
Subject: Re: JDK 16 Support?

John, this doesn't speak to the general question of JDK version support. But 
the particular stack trace you showed makes me wonder if the fix for GEODE-9081 
(landed on 3/30/21 on the develop branch) might get you a little bit further. 
That commit 7ac9d7e4f0d04c99298067ca0611d9326e96d9cf eliminated the reflective 
field access in favor of some simpler down-casting.

On Wed, May 5, 2021 at 9:06 AM John Blum 
<jb...@vmware.com<mailto:jb...@vmware.com>> wrote:
Hi Anthony-

Thank you for the quick reply.

The Spring Data Team is currently looking ahead towards Java 16 when building 
and running Spring Data examples to get a sense for what works and what 
doesn't, now that Java 16 is GA along with anticipation for users with 
questions or problems.

Spring Framework itself aligns and is based on LTS Java versions only, 
currently Java 8 with Spring Framework 5.  Spring Framework 6 will likely move 
the baseline to Java 11 or possibly even Java 17, we are not sure which yet.

Just want to share our findings and give advanced notice.

Thanks,
John

________________________________
From: Anthony Baker <bak...@vmware.com<mailto:bak...@vmware.com>>
Sent: Wednesday, May 5, 2021 8:14 AM
To: u...@geode.apache.org<mailto:u...@geode.apache.org> 
<u...@geode.apache.org<mailto:u...@geode.apache.org>>
Cc: geode <dev@geode.apache.org<mailto:dev@geode.apache.org>>
Subject: Re: JDK 16 Support?

Thanks for reporting this John.  The next LTS version of Java (17) is due later 
this year.  I think Geode needs to at least support every LTS version of Java 
and clearly we would need to fix errors like this. Do you see a need to support 
Java 16 now?

Anthony


On May 5, 2021, at 7:57 AM, John Blum 
<jb...@vmware.com<mailto:jb...@vmware.com><mailto:jb...@vmware.com<mailto:jb...@vmware.com>>>
 wrote:

What is the plan to support Java 16 for Apache Geode?  Timeframe?

Running Apache Geode on a Java 16 Runtime produces errors like the following:


- org.apache.geode.InternalGemFireException: unable to retrieve underlying byte 
buffer
-  at 
org.apache.geode.internal.net<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Forg.apache.geode.internal.net%2F&data=04%7C01%7Cjblum%40vmware.com%7C13ab03b743c34ea809cf08d913dcae47%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637562660832129959%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=0s0zAIHOunv9GSNPbfu%2BelBHAGU6vpaYpC864A9%2FjNA%3D&reserved=0>.BufferPool.getPoolableBuffer(BufferPool.java:346)
-  at 
org.apache.geode.internal.net<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Forg.apache.geode.internal.net%2F&data=04%7C01%7Cjblum%40vmware.com%7C13ab03b743c34ea809cf08d913dcae47%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637562660832139960%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Mmudm8ZO%2BkpGzK0lnhzeI%2BNBsOgZEpINeNiAF5MeWx4%3D&reserved=0>.BufferPool.releaseBuffer(BufferPool.java:310)
-  at 
org.apache.geode.internal.net<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Forg.apache.geode.internal.net%2F&data=04%7C01%7Cjblum%40vmware.com%7C13ab03b743c34ea809cf08d913dcae47%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637562660832139960%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Mmudm8ZO%2BkpGzK0lnhzeI%2BNBsOgZEpINeNiAF5MeWx4%3D&reserved=0>.BufferPool.releaseSenderBuffer(BufferPool.java:213)
-  at org.apache.geode.internal.tcp.MsgStreamer.release(MsgStreamer.java:100)
-  at 
org.apache.geode.internal.tcp.MsgStreamer.writeMessage(MsgStreamer.java:256)
-  at 
org.apache.geode.distributed.internal.direct.DirectChannel.sendToMany(DirectChannel.java:306)
-  at 
org.apache.geode.distributed.internal.direct.DirectChannel.sendToOne(DirectChannel.java:182)
-  at 
org.apache.geode.distributed.internal.direct.DirectChannel.send(DirectChannel.java:511)
-  at 
org.apache.geode.distributed.internal.DistributionImpl.directChannelSend(DistributionImpl.java:346)
-  at 
org.apache.geode.distributed.internal.DistributionImpl.send(DistributionImpl.java:291)
-  at 
org.apache.geode.distributed.internal.ClusterDistributionManager.sendViaMembershipManager(ClusterDistributionManager.java:2050)
-  at 
org.apache.geode.distributed.internal.ClusterDistributionManager.sendOutgoing(ClusterDistributionManager.java:1978)
-  at 
org.apache.geode.distributed.internal.ClusterDistributionManager.sendMessage(ClusterDistributionManager.java:2015)
-  at 
org.apache.geode.distributed.internal.ClusterDistributionManager.putOutgoing(ClusterDistributionManager.java:1083)
-  at 
org.apache.geode.distributed.internal.StartupMessage.process(StartupMessage.java:279)
-  at 
org.apache.geode.distributed.internal.DistributionMessage.scheduleAction(DistributionMessage.java:376)
-  at 
org.apache.geode.distributed.internal.DistributionMessage$1.run(DistributionMessage.java:441)
-  at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
-  at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
-  at 
org.apache.geode.distributed.internal.ClusterOperationExecutors.runUntilShutdown(ClusterOperationExecutors.java:441)
-  at 
org.apache.geode.distributed.internal.ClusterOperationExecutors.doWaitingThread(ClusterOperationExecutors.java:410)
-  at 
org.apache.geode.logging.internal.executors.LoggingThreadFactory.lambda$newThread$0(LoggingThreadFactory.java:119)
-  at java.base/java.lang.Thread.run(Thread.java:831)
- Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make 
public java.lang.Object java.nio.DirectByteBuffer.attachment() accessible: 
module java.base does not "opens java.nio" to unnamed module @40f9161a
-  at 
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
-  at 
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
-  at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
-  at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
-  at 
org.apache.geode.internal.net<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Forg.apache.geode.internal.net%2F&data=04%7C01%7Cjblum%40vmware.com%7C13ab03b743c34ea809cf08d913dcae47%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637562660832139960%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Mmudm8ZO%2BkpGzK0lnhzeI%2BNBsOgZEpINeNiAF5MeWx4%3D&reserved=0>.BufferPool.getPoolableBuffer(BufferPool.java:343)
-  ... 22 common frames omitted
- 2021-04-30 14:57:13,638  INFO ributed.internal.membership.gms.Services: 606 - 
received leave request from 
10.99.199.28(CacheNotUsingSharedConfigurationIntegrationTest:29149)<v1>:41001 
for 
10.99.199.28(CacheNotUsingSharedConfigurationIntegrationTest:29149)<v1>:41001
- 2021-04-30 14:57:13,640  INFO ributed.internal.membership.gms.Services: 617 - 
JoinLeave.processMessage(LeaveRequestMessage) invoked.  isCoordinator=true; 
isStopping=false; cancelInProgress=false
- 2021-04-30 14:57:13,647 ERROR xecutors.LoggingUncaughtExceptionHandler:  92 - 
Uncaught exception in thread Thread[P2P message reader for 
10.99.199.28(CacheNotUsingSharedConfigurationIntegrationTest:29149)<v1>:41001 
shared unordered uid=1 local port=53039 remote port=64063,10,main]
- org.apache.geode.InternalGemFireException: unable to retrieve underlying byte 
buffer
-  at 
org.apache.geode.internal.net<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Forg.apache.geode.internal.net%2F&data=04%7C01%7Cjblum%40vmware.com%7C13ab03b743c34ea809cf08d913dcae47%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637562660832149956%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=eYimCxl4z7Wr5BLrfcMpvB0EgViCT8UiJwVVIQX7RRc%3D&reserved=0>.BufferPool.getPoolableBuffer(BufferPool.java:346)
-  at 
org.apache.geode.internal.net<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Forg.apache.geode.internal.net%2F&data=04%7C01%7Cjblum%40vmware.com%7C13ab03b743c34ea809cf08d913dcae47%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637562660832149956%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=eYimCxl4z7Wr5BLrfcMpvB0EgViCT8UiJwVVIQX7RRc%3D&reserved=0>.BufferPool.releaseBuffer(BufferPool.java:310)
-  at 
org.apache.geode.internal.net<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Forg.apache.geode.internal.net%2F&data=04%7C01%7Cjblum%40vmware.com%7C13ab03b743c34ea809cf08d913dcae47%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637562660832159946%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=2hyjwsM5AAex96je9i3iNR%2BPTBibAKzxiNaPKfhAqPA%3D&reserved=0>.BufferPool.releaseReceiveBuffer(BufferPool.java:217)
-  at 
org.apache.geode.internal.tcp.Connection.releaseInputBuffer(Connection.java:1512)
-  at org.apache.geode.internal.tcp.Connection.run(Connection.java:1495)
-  at java.base/java.lang.Thread.run(Thread.java:831)
- Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make 
public java.lang.Object java.nio.DirectByteBuffer.attachment() accessible: 
module java.base does not "opens java.nio" to unnamed module @40f9161a
-  at 
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
-  at 
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
-  at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
-  at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
-  at 
org.apache.geode.internal.net<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Forg.apache.geode.internal.net%2F&data=04%7C01%7Cjblum%40vmware.com%7C13ab03b743c34ea809cf08d913dcae47%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637562660832159946%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=2hyjwsM5AAex96je9i3iNR%2BPTBibAKzxiNaPKfhAqPA%3D&reserved=0>.BufferPool.getPoolableBuffer(BufferPool.java:343)
-  ... 5 common frames omitted
- 2021-04-30 14:57:13,651 ERROR xecutors.LoggingUncaughtExceptionHandler:  92 - 
Uncaught exception in thread Thread[P2P handshake reader@53e57a03-1,5,main]
- org.apache.geode.InternalGemFireException: unable to retrieve underlying byte 
buffer
-  at 
org.apache.geode.internal.net<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Forg.apache.geode.internal.net%2F&data=04%7C01%7Cjblum%40vmware.com%7C13ab03b743c34ea809cf08d913dcae47%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637562660832169936%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=JiYeCAqy2U2lNAmHhmKX3uMIYAD6kKl%2FuAtdOyuKfZA%3D&reserved=0>.BufferPool.getPoolableBuffer(BufferPool.java:346)
-  at 
org.apache.geode.internal.net<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Forg.apache.geode.internal.net%2F&data=04%7C01%7Cjblum%40vmware.com%7C13ab03b743c34ea809cf08d913dcae47%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637562660832169936%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=JiYeCAqy2U2lNAmHhmKX3uMIYAD6kKl%2FuAtdOyuKfZA%3D&reserved=0>.BufferPool.releaseBuffer(BufferPool.java:310)
-  at 
org.apache.geode.internal.net<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Forg.apache.geode.internal.net%2F&data=04%7C01%7Cjblum%40vmware.com%7C13ab03b743c34ea809cf08d913dcae47%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637562660832179936%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=FGHSpBfUOL5HYCTVerW%2B8d2GJ0kmu3rMYavtDxAadeA%3D&reserved=0>.BufferPool.releaseReceiveBuffer(BufferPool.java:217)
-  at 
org.apache.geode.internal.tcp.Connection.releaseInputBuffer(Connection.java:1512)
-  at org.apache.geode.internal.tcp.Connection.run(Connection.java:1495)
-  at java.base/java.lang.Thread.run(Thread.java:831)
- Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make 
public java.lang.Object java.nio.DirectByteBuffer.attachment() accessible: 
module java.base does not "opens java.nio" to unnamed module @40f9161a
-  at 
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
-  at 
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
-  at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
-  at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
-  at 
org.apache.geode.internal.net<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Forg.apache.geode.internal.net%2F&data=04%7C01%7Cjblum%40vmware.com%7C13ab03b743c34ea809cf08d913dcae47%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637562660832179936%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=FGHSpBfUOL5HYCTVerW%2B8d2GJ0kmu3rMYavtDxAadeA%3D&reserved=0>.BufferPool.getPoolableBuffer(BufferPool.java:343)
-  ... 5 common frames omitted

Regards,

-John

Reply via email to