question

stein-onlinehandel avatar image
0 Likes"
stein-onlinehandel asked

Could not initialize class com.ebay.sdk.SdkAPIInterfaceServiceLocator

I'm using the eBay SDK for Java to make an API-call for returning orders. This has worked in the past, but recently I'm getting the following error:

Exception in thread "Thread-4" java.lang.NoClassDefFoundError: Could not initialize class com.ebay.sdk.SdkAPIInterfaceServiceLocator
at com.ebay.sdk.ApiCall.executeByApiName(Unknown Source)
at com.ebay.sdk.ApiCall.execute(Unknown Source)
at com.ebay.sdk.call.GetOrdersCall.getOrders(GetOrdersCall.java:169)

I'm calling it like this:

GetOrdersCall call = new GetOrdersCall(context);        
    call.setCreateTimeFrom(createTimeFrom);
    
    call.setCreateTimeTo(Calendar.getInstance());
    
    PaginationType pagination = new PaginationType();
    pagination.setEntriesPerPage(pageSize);
    pagination.setPageNumber(pageNumber);
    
    call.setPagination(pagination);     
    
    ordersResult = call.getOrders();

I haven't made any modifications to the code but recently this stopped working. I have JDK Version 16.

getorderscall
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.