I have an eventhub and I am sending data to it. Now I need to recieve that data. So I followed the tutorial in the eventhub page
https://azure.microsoft.com/en-us/documentation/articles/event-hubs-java-ephjava-getstarted/
"Receive messages with EventProcessorHost in Java"
In all the classes it is not letting me
@Override. It gives me the following error.
Multiple markers at this line
- implements com.microsoft.azure.eventprocessorhost.IEventProcessor.onOpen
- The method onOpen(PartitionContext) of type EventProcessor must override a superclass
<dependencies>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-eventhubs</artifactId>
<version>0.7.2</version>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-eventhubs-eph</artifactId>
<version>0.7.2</version>
</dependency>
</dependencies>
Change your project references to point to jdk1.8.
This is a very common error when you are trying to compile Java projects with jdk1.5.
@Override
annotations' specification changed in jdk1.5 to jdk1.6.
HTH!