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

PubSub Java Publisher error #40

Open
VamshiGitHu opened this issue Sep 7, 2023 · 0 comments
Open

PubSub Java Publisher error #40

VamshiGitHu opened this issue Sep 7, 2023 · 0 comments

Comments

@VamshiGitHu
Copy link

I am getting a null pointer exception when publishing a message to Salesforce event

2023-09-07 11:42:04,227 [main] java.lang.Class - Using grpcHost api.pubsub.salesforce.com and grpcPort 7443
2023-09-07 11:42:27,543 [main] java.lang.Class - Error During PublishStream
2023-09-07 11:42:27,552 [main] java.lang.Class -  === Exception ===
java.lang.NullPointerException: null
	at org.apache.avro.generic.GenericRecordBuilder.set(GenericRecordBuilder.java:124)
	at org.apache.avro.generic.GenericRecordBuilder.set(GenericRecordBuilder.java:113)
	at utility.CommonContext.createCarMaintenanceRecord(CommonContext.java:198)
	at genericpubsub.PublishStream.generateProducerEvent(PublishStream.java:123)
	at genericpubsub.PublishStream.generatePublishRequest(PublishStream.java:143)
	at genericpubsub.PublishStream.publishStream(PublishStream.java:68)
	at genericpubsub.PublishStream.main(PublishStream.java:203)

Anyone faced this issue before? any guidance here is helpful. I am following steps from Salesforce documentation.

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

No branches or pull requests

1 participant