When using the airbyte SDK I get an error when I c...
# ask-ai
j
When using the airbyte SDK I get an error when I call the function that returns a list of workspaces. Function:
Copy code
sdk.workspaces().listWorkspaces().call()
Error:
Copy code
Exception in thread "main" java.lang.NoClassDefFoundError: org/openapitools/jackson/nullable/JsonNullable
	at com.airbyte.api.utils.Utils.resolveOptionals(Utils.java:517)
	at com.airbyte.api.utils.Security.parseBasicAuthScheme(Security.java:153)
	at com.airbyte.api.utils.Security.parseSecurityScheme(Security.java:76)
	at com.airbyte.api.utils.Security.configureSecurity(Security.java:42)
	at com.airbyte.api.utils.Utils.configureSecurity(Utils.java:274)
	at com.airbyte.api.Workspaces.listWorkspaces(Workspaces.java:484)
	at com.airbyte.api.models.operations.ListWorkspacesRequestBuilder.call(ListWorkspacesRequestBuilder.java:37)
u
Based on the error message you've provided, it appears you're encountering a
NoClassDefFoundError
when trying to use the Airbyte SDK to list workspaces. This error suggests that a required dependency is missing from your classpath. Specifically, the error is related to the
org.openapitools.jackson.nullable.JsonNullable
class not being found. Unfortunately, the knowledge sources provided don't contain specific information about this particular error or how to resolve it when using the Airbyte SDK. However, I can offer some general advice based on the error message: 1. Make sure you have all the necessary dependencies for the Airbyte SDK in your project. The error suggests that you might be missing a Jackson library dependency. 2. Check your project's build file (e.g., pom.xml for Maven or build.gradle for Gradle) to ensure that all required dependencies are correctly specified. 3. If you're using a dependency management tool, try refreshing or updating your project's dependencies. 4. Verify that you're using a compatible version of the Airbyte SDK with your other dependencies. If the issue persists after checking these points, you may need to reach out to Airbyte's support channels or consult their documentation for more specific troubleshooting steps related to SDK usage and dependency management. I apologize that I don't have more specific information from the provided knowledge sources to directly address your SDK error. If you need further assistance, you might want to check Airbyte's official documentation or their GitHub repository for any known issues or updates related to the SDK.