Title: java.lang.NoSuchMethodError: java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer · Issue #966 · apache/arrow-java · GitHub
Open Graph Title: java.lang.NoSuchMethodError: java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer · Issue #966 · apache/arrow-java
X Title: java.lang.NoSuchMethodError: java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer · Issue #966 · apache/arrow-java
Description: Describe the bug, including details regarding any error messages, version, and platform. We are experiencing a compatibility issue when using the arrow-java 17.0.0 library in a Spark application deployed on a Java 1.8 runtime environment...
Open Graph Description: Describe the bug, including details regarding any error messages, version, and platform. We are experiencing a compatibility issue when using the arrow-java 17.0.0 library in a Spark application de...
X Description: Describe the bug, including details regarding any error messages, version, and platform. We are experiencing a compatibility issue when using the arrow-java 17.0.0 library in a Spark application de...
Opengraph URL: https://github.com/apache/arrow-java/issues/966
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"java.lang.NoSuchMethodError: java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer","articleBody":"### Describe the bug, including details regarding any error messages, version, and platform.\n\n\nWe are experiencing a compatibility issue when using the arrow-java 17.0.0 library in a Spark application deployed on a Java 1.8 runtime environment.\n\njava.lang.NoSuchMethodError: java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer;\n\u003cul\u003eat org.apache.arrow.memory.ArrowBuf.setBytes(ArrowBuf.java:847)\nat org.apache.arrow.memory.ArrowBuf.setBytes(ArrowBuf.java:899)\nat org.apache.arrow.vector.BaseVariableWidthVector.setSafe(BaseVariableWidthVector.java:1193)\nat org.apache.spark.sql.execution.arrow.StringWriter.setValue(ArrowWriter.scala:256)\nat org.apache.spark.sql.execution.arrow.ArrowFieldWriter.write(ArrowWriter.scala:135)\nat org.apache.spark.sql.execution.arrow.ArrowWriter.write(ArrowWriter.scala:100)\u003c/ul\u003e\n\n\nThe error indicates that the arrow-java JAR file contains bytecode that references the ByteBuffer.position(int) \nmethod with a return type of Ljava/nio/ByteBuffer. \n\nThis specific method signature was introduced in JDK 9 as part of the covariance changes in ByteBuffer. \n\nIn JDK 8, the same method returns Ljava/nio/Buffer.\n\nSeems library being compiled with a newer JDK (9 or above) \nwithout specifying the correct cross-compilation flags (-release or -bootclasspath). \nWithout these flags, the compiler uses its own (newer) API signatures, \nmaking the resulting bytecode incompatible with older JVMs.\n\nIt is possible comple library with proper flags and put it to maven repository?","author":{"url":"https://github.com/imhy","@type":"Person","name":"imhy"},"datePublished":"2026-01-16T12:52:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/966/arrow-java/issues/966"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2ba35c20-e758-55c0-8a25-b3ab80f42dd7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E7EE:281D19:12563FB:179904A:69919715 |
| html-safe-nonce | e47880a1d1954fd880eece1722ca7c363fece90bad7a52e4c4a6a6c0609e7464 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0VFOjI4MUQxOToxMjU2M0ZCOjE3OTkwNEE6Njk5MTk3MTUiLCJ2aXNpdG9yX2lkIjoiODE0OTYxNDkyMDI0NzM4MzgyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ccb62f0af8f22a4fab8100669b9e36a461d734f5dd6b84cc22a740357b7326a9 |
| hovercard-subject-tag | issue:3821914297 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/arrow-java/966/issue_layout |
| twitter:image | https://opengraph.githubassets.com/773bf7762a4b353900ebbe5bff89787e4312793c047a4de7108c2906292ce8d1/apache/arrow-java/issues/966 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/773bf7762a4b353900ebbe5bff89787e4312793c047a4de7108c2906292ce8d1/apache/arrow-java/issues/966 |
| og:image:alt | Describe the bug, including details regarding any error messages, version, and platform. We are experiencing a compatibility issue when using the arrow-java 17.0.0 library in a Spark application de... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | imhy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/arrow-java git https://github.com/apache/arrow-java.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 893682219 |
| octolytics-dimension-repository_nwo | apache/arrow-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 893682219 |
| octolytics-dimension-repository_network_root_nwo | apache/arrow-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width