forcedotcom / EMP-Connector

A simplified cometd connector for Enterprise Messaging Platform
BSD 3-Clause "New" or "Revised" License
185 stars 243 forks source link

EMP-Connector does not receive notifications #54

Open fpintelandgraf opened 5 years ago

fpintelandgraf commented 5 years ago

Hi,

I followed the steps (described here: https://trailhead.salesforce.com/en/content/learn/modules/change-data-capture/subscribe-to-events) for installing the EMP-Connector. When I try to start the connector, nothing is shown on the console when I change data in my org:

This is the command I use: java -jar target/emp-connector-0.0.1-SNAPSHOT-phat.jar ORGUser ORGPw /data/Employee__ChangeEvent

This is the log output i get: 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. Subscribed: Subscription [/data/Employee__ChangeEvent:-2]

dannyknowlton commented 5 years ago

I have the same issue. Did you figure out the problem?

gorugontula commented 5 years ago

If you use maven just add the following

 <dependency>
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-api</artifactId>
       <version>1.7.5</version>
   </dependency>
   <dependency>
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-log4j12</artifactId>
       <version>1.7.5</version>
   </dependency>

Or

   <dependency>
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-api</artifactId>
       <version>1.7.5</version>
   </dependency>
   <dependency>
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-simple</artifactId>
       <version>1.6.4</version>
   </dependency>
madzskill commented 5 years ago

Hi,

I followed the steps (described here: https://trailhead.salesforce.com/en/content/learn/modules/change-data-capture/subscribe-to-events) for installing the EMP-Connector. When I try to start the connector, nothing is shown on the console when I change data in my org:

This is the command I use: java -jar target/emp-connector-0.0.1-SNAPSHOT-phat.jar ORGUser ORGPw /data/Employee__ChangeEvent

This is the log output i get: 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. Subscribed: Subscription [/data/Employee__ChangeEvent:-2]

@fpintelandgraf Based on your log output console, it's just a warning since you were able to subscribe to the "Employee__ChangeEvent" event. Just try @gorugontula's suggestion, it's perhaps it's a missing JAR library..

Richardtheking commented 4 years ago

Hi,

I followed the steps (described here: https://trailhead.salesforce.com/en/content/learn/modules/change-data-capture/subscribe-to-events) for installing the EMP-Connector. When I try to start the connector, nothing is shown on the console when I change data in my org:

This is the command I use: java -jar target/emp-connector-0.0.1-SNAPSHOT-phat.jar ORGUser ORGPw /data/Employee__ChangeEvent

This is the log output i get: 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. Subscribed: Subscription [/data/Employee__ChangeEvent:-2]

Hi,

May I check with you if you successed to process the Trailhead task?

thefranix commented 4 years ago

If you use maven just add the following

 <dependency>
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-api</artifactId>
       <version>1.7.5</version>
   </dependency>
   <dependency>
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-log4j12</artifactId>
       <version>1.7.5</version>
   </dependency>

Or

   <dependency>
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-api</artifactId>
       <version>1.7.5</version>
   </dependency>
   <dependency>
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-simple</artifactId>
       <version>1.6.4</version>
   </dependency>

Where to add this ? Which directory/file ?

cloopadoop commented 3 years ago

Hi guys! Most likely the error you're seeing isn't the cause of not receiving data. I had to enable streaming for the event I wanted to subscribe to. Go to Setup and then search for Event Manager, then use the dropdown arrow on the right next to the event(s) you want.

knhage commented 3 years ago

For Event Monitoring real-time events, enable streaming for the event first in Event Manager in Setup, as cloopadoop mentioned. For Change Data Capture events, which is the case for /data/Employee__ChangeEvent, enable the object on the Change Data Capture page in Setup.