porter icon indicating copy to clipboard operation
porter copied to clipboard

编译yporter-boot 启动时报错,怎么解决

Open shyding opened this issue 6 years ago • 1 comments

ava.lang.Error: Unresolved compilation problems: The import org.apache.kafka cannot be ava.lang.Error: Unresolved compilation problems: The import org.apache.kafka cannot be resolved The import org.apache.kafka cannot be resolved The import org.apache.kafka cannot be resolved The import org.apache.kafka cannot be resolved The import org.apache.kafka cannot be resolved The import org.apache.kafka cannot be resolved The import org.apache.kafka cannot be resolved Producer cannot be resolved to a type PartitionInfo cannot be resolved to a type ProducerConfig cannot be resolved to a variable ProducerConfig cannot be resolved to a variable ProducerConfig cannot be resolved to a variable StringSerializer cannot be resolved to a type ProducerConfig cannot be resolved to a variable StringSerializer cannot be resolved to a type ProducerConfig cannot be resolved to a variable ProducerConfig cannot be resolved to a variable Producer cannot be resolved to a type KafkaProducer cannot be resolved to a type PartitionInfo cannot be resolved to a type Producer cannot be resolved to a type Producer cannot be resolved to a type Producer cannot be resolved to a type Producer cannot be resolved to a type Producer cannot be resolved to a type ProducerRecord cannot be resolved to a type ProducerRecord cannot be resolved to a type ProducerRecord cannot be resolved to a type ProducerRecord cannot be resolved to a type ProducerRecord cannot be resolved to a type ProducerRecord cannot be resolved to a type ProducerRecord cannot be resolved to a type ProducerRecord cannot be resolved to a type ProducerRecord cannot be resolved to a type Producer cannot be resolved to a type RecordMetadata cannot be resolved to a type ProducerRecord cannot be resolved to a type Producer cannot be resolved to a type RecordMetadata cannot be resolved to a type Producer cannot be resolved to a type Producer cannot be resolved to a type PartitionInfo cannot be resolved to a type PartitionInfo cannot be resolved to a type

at cn.vbill.middleware.porter.common.client.impl.KafkaProduceClient.<init>(KafkaProduceClient.java:30)
at cn.vbill.middleware.porter.common.client.AbstractClient.getClient(AbstractClient.java:165)
at cn.vbill.middleware.porter.common.cluster.impl.zookeeper.ZookeeperClusterProvider.initClient(ZookeeperClusterProvider.java:73)
at cn.vbill.middleware.porter.common.cluster.impl.AbstractClusterProvider.initialize(AbstractClusterProvider.java:237)
at cn.vbill.middleware.porter.common.cluster.impl.AbstractClusterProvider.start(AbstractClusterProvider.java:205)
at cn.vbill.middleware.porter.common.cluster.ClusterProviderProxy.initialize(ClusterProviderProxy.java:56)
at cn.vbill.middleware.porter.boot.NodeBootApplication.main(NodeBootApplication.java:112)

2019-05-26 14:32:00.216 INFO 4236 --- [Thread-4] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'resolved The import org.apache.kafka cannot be resolved The import org.apache.kafka cannot be resolved The import org.apache.kafka cannot be resolved The import org.apache.kafka cannot be resolved The import org.apache.kafka cannot be resolved The import org.apache.kafka cannot be resolved Producer cannot be resolved to a type PartitionInfo cannot be resolved to a type ProducerConfig cannot be resolved to a variable ProducerConfig cannot be resolved to a variable ProducerConfig cannot be resolved to a variable StringSerializer cannot be resolved to a type ProducerConfig cannot be resolved to a variable StringSerializer cannot be resolved to a type ProducerConfig cannot be resolved to a variable ProducerConfig cannot be resolved to a variable Producer cannot be resolved to a type KafkaProducer cannot be resolved to a type PartitionInfo cannot be resolved to a type Producer cannot be resolved to a type Producer cannot be resolved to a type Producer cannot be resolved to a type Producer cannot be resolved to a type Producer cannot be resolved to a type ProducerRecord cannot be resolved to a type ProducerRecord cannot be resolved to a type ProducerRecord cannot be resolved to a type ProducerRecord cannot be resolved to a type ProducerRecord cannot be resolved to a type ProducerRecord cannot be resolved to a type ProducerRecord cannot be resolved to a type ProducerRecord cannot be resolved to a type ProducerRecord cannot be resolved to a type Producer cannot be resolved to a type RecordMetadata cannot be resolved to a type ProducerRecord cannot be resolved to a type Producer cannot be resolved to a type RecordMetadata cannot be resolved to a type Producer cannot be resolved to a type Producer cannot be resolved to a type PartitionInfo cannot be resolved to a type PartitionInfo cannot be resolved to a type

at cn.vbill.middleware.porter.common.client.impl.KafkaProduceClient.<init>(KafkaProduceClient.java:30)
at cn.vbill.middleware.porter.common.client.AbstractClient.getClient(AbstractClient.java:165)
at cn.vbill.middleware.porter.common.cluster.impl.zookeeper.ZookeeperClusterProvider.initClient(ZookeeperClusterProvider.java:73)
at cn.vbill.middleware.porter.common.cluster.impl.AbstractClusterProvider.initialize(AbstractClusterProvider.java:237)
at cn.vbill.middleware.porter.common.cluster.impl.AbstractClusterProvider.start(AbstractClusterProvider.java:205)
at cn.vbill.middleware.porter.common.cluster.ClusterProviderProxy.initialize(ClusterProviderProxy.java:56)
at cn.vbill.middleware.porter.boot.NodeBootApplication.main(NodeBootApplication.java:112)

2019-05-26 14:32:00.216 INFO 4236 --- [Thread-4] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'

shyding avatar May 26 '19 06:05 shyding

检查你的IDE导入项目后的模块依赖是否正常

zhangkewei avatar May 27 '19 03:05 zhangkewei