[JAVA-469] java.net.NetworkInterface.getNetworkInterfaces may fail with IBM JVM, which prevents from using driver Created: 10/Nov/11  Updated: 18/Jun/12  Resolved: 13/Feb/12

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.8.0

Type: Bug Priority: Major - P3
Reporter: Antoine Girbal Assignee: Antoine Girbal
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

java.lang.Error: IP Helper Library GetIfTable function failed
at java.net.NetworkInterface.getAll(Native Method)
at java.net.NetworkInterface.getNetworkInterfaces(NetworkInterface.java:292)
at org.bson.types.ObjectId.<clinit>(ObjectId.java:340)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at com.mongodb.Bytes.<clinit>(Bytes.java:139)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at com.mongodb.MongoOptions.reset(MongoOptions.java:33)
at com.mongodb.MongoOptions.<init>(MongoOptions.java:29)
at com.mongodb.Mongo.<init>(Mongo.java:214)
at com.ebay.mongodriver.jdbc.MongoConnection.<init>(MongoConnection.java:47)



 Comments   
Comment by Jeffrey Yemin [ 18/Jun/12 ]

Closing for 2.8.0 release.

Comment by auto [ 09/Feb/12 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: JAVA-469: need to catch Throwable cause Error is thrown
Branch: release-2.7.x
https://github.com/mongodb/mongo-java-driver/commit/5d0ec580cf09eab5ba88e4fcca5aa41b5beae0b8

Comment by Jeffrey Yemin [ 09/Feb/12 ]

Re-opening because the complete fix was not included in 2.7.2 or 2.7.3.

Comment by auto [ 15/Nov/11 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: JAVA-469: need to catch Throwable cause Error is thrown
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/71fc9aefcddbf34befc87a6af00a44b52bbece4b

Comment by Antoine Girbal [ 10/Nov/11 ]

quick fix is to use a random value for that portion of the id, in case the information from interfaces cannot be obtained.

Comment by auto [ 10/Nov/11 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: JAVA-469: java.net.NetworkInterface.getNetworkInterfaces may fail with IBM JVM, which prevents from using driver
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/1d6ba32b1b067eb1f8faa5a23b1152c216d2ee3f

Generated at Thu Feb 08 08:52:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.