forcedotcom / EMP-Connector

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

Invalid channel id #78

Open negadmin opened 4 years ago

negadmin commented 4 years ago

Hello,

I am following the Salesforce Trailhead to subscribe to Change Data Capture Event Channel using EMP-Connector. I run the following command in GIT bash but always get the error below. I have tried researching a solution but had not luck. Could anyone provide some direction?

Command run against a Handson Org java -jar target/emp-connector-0.0.1-SNAPSHOT-phat.jar /data/AccountChangeEvent

Error 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. Exception in thread "main" java.lang.IllegalArgumentException: Invalid channel id: C:/tools/Git/data/AccountChangeEvent at org.cometd.bayeux.ChannelId.(ChannelId.java:57) at org.cometd.client.BayeuxClient.newChannelId(BayeuxClient.java:460) at org.cometd.common.AbstractClientSession.getChannel(AbstractClientSession.java:140) at org.cometd.common.AbstractClientSession.getChannel(AbstractClientSession.java:126) at com.salesforce.emp.connector.EmpConnector$SubscriptionImpl.subscribe(EmpConnector.java:87) at com.salesforce.emp.connector.EmpConnector.subscribe(EmpConnector.java:212) at com.salesforce.emp.connector.example.LoginExample.main(LoginExample.java:59)

Thanks for any help, Neil

baslu93 commented 3 years ago

Hi Neil,

Git bash try to prepend the Git folder path, try with another cli tool. I've tried with CMD and it works for me.

Luca