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

Salesforce : Impossible to custom fields for Platform events #3067

Closed
zbendhiba opened this issue Sep 5, 2021 · 0 comments · Fixed by #3111
Closed

Salesforce : Impossible to custom fields for Platform events #3067

zbendhiba opened this issue Sep 5, 2021 · 0 comments · Fixed by #3111
Assignees
Milestone

Comments

@zbendhiba
Copy link
Contributor

I tried to add an integration tests, that uses a Platform event with custom fields. While running on native mode, I get the following error.
Test_Field__c is the custom field.

2021-09-05 19:14:37,242 INFO  [org.com.bay.cli.ClientSession] (SalesforceHttpClient@298295d0-12) Exception while invoking listener org.apache.camel.component.salesforce.internal.streaming.SubscriptionHelper$6@567e576d: java.lang.IllegalArgumentException: Unrecognized field "Test_Field__c" (class org.apache.camel.component.salesforce.api.dto.PlatformEvent), not marked as ignorable (2 known properties: "CreatedById", "CreatedDate"])
 at [Source: UNKNOWN; line: -1, column: -1] (through reference chain: org.apache.camel.component.salesforce.api.dto.PlatformEvent["Test_Field__c"])
	at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:4314)
	at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:4245)
	at org.apache.camel.component.salesforce.SalesforceConsumer.createPlatformEventMessage(SalesforceConsumer.java:221)
	at org.apache.camel.component.salesforce.SalesforceConsumer.processMessage(SalesforceConsumer.java:153)
	at org.apache.camel.component.salesforce.internal.streaming.SubscriptionHelper$6.onMessage(SubscriptionHelper.java:442)
	at org.cometd.common.AbstractClientSession$AbstractSessionChannel.notifyOnMessage(AbstractClientSession.java:583)
	at org.cometd.common.AbstractClientSession$AbstractSessionChannel.notifyMessageListeners(AbstractClientSession.java:574)
	at org.cometd.common.AbstractClientSession.notifyListeners(AbstractClientSession.java:308)
	at org.cometd.common.AbstractClientSession.lambda$receive$4(AbstractClientSession.java:269)
	at org.cometd.bayeux.Promise$2.succeed(Promise.java:103)
	at org.cometd.common.AsyncFoldLeft$AbstractLoop.run(AsyncFoldLeft.java:199)
	at org.cometd.common.AsyncFoldLeft.run(AsyncFoldLeft.java:93)
	at org.cometd.common.AbstractClientSession.extendIncoming(AbstractClientSession.java:103)
	at org.cometd.common.AbstractClientSession.receive(AbstractClientSession.java:263)
	at org.cometd.client.BayeuxClient.processMessage(BayeuxClient.java:798)
	at org.cometd.client.BayeuxClient.processMessages(BayeuxClient.java:621)
	at org.cometd.client.BayeuxClient.access$2000(BayeuxClient.java:101)
	at org.cometd.client.BayeuxClient$MessageTransportListener.onMessages(BayeuxClient.java:1260)
	at org.cometd.client.transport.LongPollingTransport$2.onComplete(LongPollingTransport.java:240)
	at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:218)
	at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:210)
	at org.eclipse.jetty.client.HttpReceiver.terminateResponse(HttpReceiver.java:481)
	at org.eclipse.jetty.client.HttpReceiver.terminateResponse(HttpReceiver.java:461)
	at org.eclipse.jetty.client.HttpReceiver.responseSuccess(HttpReceiver.java:424)
	at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.messageComplete(HttpReceiverOverHTTP.java:365)
	at org.eclipse.jetty.http.HttpParser.handleContentMessage(HttpParser.java:591)
	at org.eclipse.jetty.http.HttpParser.parseContent(HttpParser.java:1716)
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:1545)
	at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.parse(HttpReceiverOverHTTP.java:204)
	at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.process(HttpReceiverOverHTTP.java:144)
	at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.receive(HttpReceiverOverHTTP.java:79)
	at org.eclipse.jetty.client.http.HttpChannelOverHTTP.receive(HttpChannelOverHTTP.java:131)
	at org.eclipse.jetty.client.http.HttpConnectionOverHTTP.onFillable(HttpConnectionOverHTTP.java:172)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
	at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:555)
	at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:410)
	at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:164)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
	at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:383)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:882)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1036)
	at java.lang.Thread.run(Thread.java:829)
	at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:553)
	at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:192)
@zbendhiba zbendhiba self-assigned this Sep 17, 2021
zbendhiba added a commit to zbendhiba/camel-quarkus that referenced this issue Sep 17, 2021
zbendhiba added a commit to zbendhiba/camel-quarkus that referenced this issue Sep 17, 2021
@zbendhiba zbendhiba added this to the 2.3.0 milestone Sep 17, 2021
ppalaga pushed a commit to ppalaga/camel-quarkus that referenced this issue Sep 19, 2021
ppalaga pushed a commit to ppalaga/camel-quarkus that referenced this issue Sep 19, 2021
ppalaga pushed a commit to ppalaga/camel-quarkus that referenced this issue Sep 19, 2021
ppalaga pushed a commit to jboss-fuse/camel-quarkus that referenced this issue Sep 20, 2021
VratislavHais pushed a commit to VratislavHais/camel-quarkus that referenced this issue Sep 21, 2021
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 a pull request may close this issue.

1 participant