Replace null values with "N/A" to avoid write failure In Constructor OSVendorDetails caused by Oshi version not supporting MacOs version

Description

The exception is
[manager][1/12310] 2021-02-14 19:01:06,474 REST WARNING [org.openspaces.admin.internal.discovery.DiscoveryService] - Failed to add GSC [com.gigaspaces.grid.gsc.GSCProxy[DynamicSmartStub [ImplObjClass: com.gigaspaces.grid.gsc.GSCImpl, ConnectionURL: NIO://yonatans-MacBook-Pro.local:59965/pid[12308]/37638830220598_2_729166982385958595_details[class com.gigaspaces.grid.gsc.GSCImpl], MaxConnPool: 1024 ]]], ServiceID [130bb36a-2618-4da0-a23f-75f1e5c4b954]; Caused by: com.gigaspaces.lrmi.nio.MarshallingException: Failed to marsh: [ReplyPacket: result = com.gigaspaces.internal.os.OSDetails@792d9bbc]
[manager][1/12310] at com.gigaspaces.lrmi.nio.Writer.writePacket(Writer.java:210)
[manager][1/12310] at com.gigaspaces.lrmi.nio.Writer.writeReply(Writer.java:166)
[manager][1/12310] at com.gigaspaces.lrmi.nio.ChannelEntry.writeReply(ChannelEntry.java:203)
[manager][1/12310] at com.gigaspaces.lrmi.nio.Pivot.sendResponse(Pivot.java:650)
[manager][1/12310] at com.gigaspaces.lrmi.nio.Pivot.handleRequest(Pivot.java:601)
[manager][1/12310] at com.gigaspaces.lrmi.nio.Pivot$ChannelEntryTask.run(Pivot.java:187)
[manager][1/12310] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[manager][1/12310] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[manager][1/12310] at java.lang.Thread.run(Thread.java:748)
[manager][1/12310] Caused by: java.lang.NullPointerException
[manager][1/12310] at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength(ObjectOutputStream.java:2136)
[manager][1/12310] at java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:2007)
[manager][1/12310] at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:869)
[manager][1/12310] at com.gigaspaces.internal.os.OSDetails$OSVendorDetails.writeExternal(OSDetails.java:375)
[manager][1/12310] at com.gigaspaces.internal.os.OSDetails.writeExternal(OSDetails.java:170)
[manager][1/12310] at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1459)
[manager][1/12310] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1430)
[manager][1/12310] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
[manager][1/12310] at java.io.ObjectOutputStream.writeUnshared(ObjectOutputStream.java:415)
[manager][1/12310] at com.gigaspaces.lrmi.nio.ReplyPacket.writeExternal(ReplyPacket.java:102)
[manager][1/12310] at com.gigaspaces.lrmi.nio.Writer.writePacket(Writer.java:205)
[manager][1/12310] ... 8 more

Fixed

Assignee

Yonatan Becker

Reporter

Yonatan Becker

Priority

Medium

SalesForce Case ID

None

Fix versions

Commitment Version/s

None

Due date

None

Product

None

Edition

Open Source

Platform

All