Skip to main content
Question

Error after upgrading Box SDK from 3.3.0 to 4.0.1

  • May 23, 2025
  • 1 reply
  • 15 views

Forum|alt.badge.img

Hello Team,

Would you please help me to identify the reason behind the below error, I got this error after upgrading Box SDK to 4.0.1 

java.lang.IllegalAccessError: Class com/box/sdk/BoxAPIConnection illegally accessing "package private" member of class okhttp3/OkHttpClient$Builder

    at com.box.sdk.BoxAPIConnection.buildHttpClients(BoxAPIConnection.java:240)
    at com.box.sdk.BoxAPIConnection.<init>(BoxAPIConnection.java:166)
    at com.box.sdk.BoxAPIConnection.<init>(BoxAPIConnection.java:137)
    at com.ibm.lighthouse.microservices.content.services.ContentServiceTest.test_downloadCustomImage_BoxAPIException(ContentServiceTest.java:3358)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)

1 reply

Forum|alt.badge.img

Hello,

can you give more details on how to reproduce that? Can you tell us more about your project or create a sample one when we can reproduce this? You can create a bug here https://github.com/box/box-java-sdk/issues/new/choose

and select Bug. This is the easiest way of reaching out to SDK team.