Troubleshooting
If you encounter issues while enabling Kafka, use the troubleshooting tips explained in this topic.
EDI BP executes slowly
BP takes long time to execute when you enable Kafka Visibility on the system and execute EDI X12 or EDIFACT enveloping/de-enveloping operations.
Workaround/Solution: If Kafka Visibility is enabled, check if the brokers configured are accessible, which means the Kafka cluster is up.
If Kafka cluster is down, then the following message is displayed in Kafka logger file
(kafkaviz.log).
logs (kafkaviz.log). Async API is enable
ERROR [KafkaMessageCallback] Timeout has occcured while sending message to kafka. Check the setting buffer.memory or max.block.ms
ERROR [KafkaMessageCallback] Exception occured with Response :
ERROR [1578564921604] Expiring 17 record(s) for {toicname} :120000 ms has passed since batch creation
ERRORDTL [1578564921604]org.apache.kafka.common.errors.TimeoutException: Expiring 17 record(s) for {toicname}-0:120000 ms has passed since batch creation
ERROR 000000000000 GLOBAL_SCOPE [KafkaMessageCallback] Exception occured with Response :
org.apache.kafka.common.errors.TimeoutException: Expiring 17 record(s) for {toicname}-0:120000 ms has passed since batch creation
EDI events not seen in Kafka Topic
No events appear in Kafka Topic when you enable Kafka Visibility on the system and execute EDI X12 or EDIFACT enveloping/de-enveloping operations.
Workaround/Solution: If Kafka Visibility is enabled, check the following configuration:
- Topic name is configured correctly in the
eventsnosql.properties
file. - Configured Topic exists in Kafka
- Configured brokers are accessible, which means the Kafka cluster is up
If Kafka cluster is down, then the following message is displayed in Kafka logger file
(kafkaviz.log).
Async API is enabled in B2BI eventsnosql.properties
ERROR [KafkaMessageCallback] Timeout has occcured while sending message to kafka. Check the setting buffer.memory or max.block.ms
ERROR [KafkaMessageCallback] Exception occured with Response :
ERROR [1578564921604] Expiring 17 record(s) for {toicname} :120000 ms has passed since batch creation
ERRORDTL [1578564921604]org.apache.kafka.common.errors.TimeoutException: Expiring 17 record(s) for {topicname}-0:120000 ms has passed since batch creation
ERROR 000000000000 GLOBAL_SCOPE [KafkaMessageCallback] Exception occured with Response :
org.apache.kafka.common.errors.TimeoutException: Expiring 17 record(s) for {toicname}-0:120000 ms has passed since batch creation
Sync API is enabled in B2BI eventsnosql.properties
org.apache.kafka.common.errors.TimeoutException: Topic {toicname} not present in metadata after 300 ms.
java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.TimeoutException: Topic {toicname} not present in metadata after 300 ms.