Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid cast exception #1018

Merged
merged 1 commit into from
Jan 3, 2024
Merged

Avoid cast exception #1018

merged 1 commit into from
Jan 3, 2024

Conversation

stheppi
Copy link
Contributor

@stheppi stheppi commented Jan 2, 2024

CREDENTIALS property was set as STRING and is read as a PASSWORD. This creates a runtime exception. The change moves the connector configuration to be a password.

java.lang.ClassCastException: class java.lang.String cannot be cast to class org.apache.kafka.common.config.types.Password (java.lang.String is in module java.base of loader 'bootstrap'; org.apache.kafka.common.config.types.Password is in unnamed module of loader 'app')
	at org.apache.kafka.common.config.AbstractConfig.getPassword(AbstractConfig.java:216)
	at io.lenses.streamreactor.connect.gcp.storage.config.AuthModeSettings.$anonfun$getAuthMode$3(AuthModeSettings.scala:99)
	at scala.util.Try$.apply(Try.scala:210)

CREDENTIALS property was set as STRING and is read as a PASSWORD. This creates a runtime exception. The change moves the connector configuration to be a password.
@davidsloan davidsloan force-pushed the fix/invalid_gcp_configuration branch from e9aa02d to fc0e1e8 Compare January 3, 2024 13:30
@davidsloan davidsloan enabled auto-merge (squash) January 3, 2024 13:31
@davidsloan davidsloan merged commit 0197253 into master Jan 3, 2024
131 checks passed
@davidsloan davidsloan deleted the fix/invalid_gcp_configuration branch January 3, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants