EMP-Connector icon indicating copy to clipboard operation
EMP-Connector copied to clipboard

EMP-Connector does not receive notifications

Open fpintelandgraf opened this issue 6 years ago • 7 comments

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 avatar Jan 16 '19 09:01 fpintelandgraf

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

dannyknowlton avatar Feb 05 '19 03:02 dannyknowlton

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>

gorugontula avatar Mar 12 '19 20:03 gorugontula

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..

madzskill avatar Oct 08 '19 05:10 madzskill

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?

Richardtheking avatar Apr 16 '20 01:04 Richardtheking

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 ?

thefranix avatar Jun 29 '20 04:06 thefranix

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.

cloopadoop avatar Nov 12 '20 20:11 cloopadoop

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.

knhage avatar Nov 16 '20 17:11 knhage