With the example given in the link: Trailhead - Subscribe to Events, I was able to successfullt connect to my DEV org and listen to the change events for both custom and standard objects.
However when I try the same for my sandbox, I get a message saying that the subscription is successful, however the output JSON is not being displayed.
I use the below command to connect to my sandbox:
$ java -classpath target/emp-connector-0.0.1-SNAPSHOT-phat.jar com.salesforce.emp.connector.example.DevLoginExample <login_URL> <username> <password> <channel>
and the output I get is:
> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. [2019-09-25 06:32:04.475] Success:[/meta/handshake] {ext={replay=true, payload.format=true}, minimumVersion=1.0, clientId=yax3praacplr5nhx, supportedConnectionTypes=[Ljava.lang.Object;@348872, channel=/meta/handshake, id=1, version=1.0, successful=true} <<<< > Subscribed: Subscription [/data/ContactChangeEvent:-2] [2019-09-25 06:32:05.116] Success:[/meta/subscribe] {clientId=yax3praacplr5nhx, channel=/meta/subscribe, id=2, subscription=/data/ContactChangeEvent, successful=true} <<<< > [2019-09-25 06:32:08.795] Success:[/meta/connect] {clientId=yax3praacplr5nhx, advice={reconnect=retry, interval=0, timeout=110000}, channel=/meta/connect, id=3, successful=true} <<<<
I can see that the subscription seems to be successful, but when I change any Contact, I do not see the JSON response as I was expecting.
Change Data Capture
withAccount (Account)
. All logs show I successfully subscribed to/data/AccountChangeEvent
. Permissions should be ok - the User used to log in is an Admin user and can see and edit accounts. When I edit the name of an account I expect a CDC event. My CometD does not show any event activity for my subscription.