Azure / Azure/azure-functions-core-tools

WARNING {JavaFunctionBroker.addJavaAnnotationLibrary}: Customer is not providing java annotation files, they may not use the latest version of java library and maven plugin.

Open
#3,129 5 comments 0 reactions 0 assignees View on GitHub
investigate
Dominant language
C#
Stars
1.5k
Forks
498
Avg merge
4d 20h
Merged PRs (30d)
14

Description

this error pops during startup of a basic Java project that is reading an Reading an Event Hub

func tools mvn version
```
11
1.19.0
2.0.1
```

image

Full repro here: https://github.com/cicorias/azfunct-java-eventhubs

Using "func core tools version: `4.0.4704`

# java version
```
openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment Microsoft-25199 (build 11.0.12+7)
OpenJDK 64-Bit Server VM Microsoft-25199 (build 11.0.12+7, mixed mode)
```
## maven version
```
Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
Maven home: C:\g\bin\apache-maven-3.8.1-bin\apache-maven-3.8.1\bin\..
Java version: 11.0.13, vendor: Microsoft, runtime: C:\Program Files\Microsoft\jdk-11.0.13.8-hotspot
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
```

## Log file
```
For detailed output, run func with --verbose flag.
[2022-08-17T18:25:11.335Z] Host lock lease acquired by instance ID '00000000000000000000000040E3700A'.
[2022-08-17T18:25:11.525Z] Worker process started and initialized.
[2022-08-17T18:25:11.552Z] [WARNING] {JavaFunctionBroker.addJavaAnnotationLibrary}: Customer is not providing java annotation files, they may not use the latest version of java library and maven plugin.
[2022-08-17T18:25:11.555Z] [WARNING] {JavaFunctionBroker.addJavaAnnotationLibrary}: Customer is not providing java annotation files, they may not use the latest version of java library and maven plugin.
[2022-08-17T18:26:39.147Z] Executing 'Functions.EventHubReceiver' (Reason='(null)', Id=4c3e8a26-decc-40cc-9276-96a2b4c48d33)
[2022-08-17T18:26:39.151Z] Trigger Details: PartionId: 1, Offset: 0-0, EnqueueTimeUtc: 2022-08-17T18:26:38.4320000+00:00-2022-08-17T18:26:38.4320000+00:00, SequenceNumber: 0-0, Count: 1
[2022-08-17T18:26:58.351Z] got a message
[2022-08-17T18:27:00.733Z] Function "EventHubReceiver" (Id: 4c3e8a26-decc-40cc-9276-96a2b4c48d33) invoked by Java Worker
[2022-08-17T18:27:00.789Z] Executed 'Functions.EventHubReceiver' (Succeeded, Id=4c3e8a26-decc-40cc-9276-96a2b4c48d33, Duration=21677ms)
[2022-08-17T18:27:04.975Z] Executing 'Functions.EventHubReceiver' (Reason='(null)', Id=60e7b992-39d4-4d58-ac0f-e112df299dbe)
[2022-08-17T18:27:04.981Z] Trigger Details: PartionId: 0, Offset: 0-0, EnqueueTimeUtc: 2022-08-17T18:27:04.3240000+00:00-2022-08-17T18:27:04.3240000+00:00, SequenceNumber: 0-0, Count: 1
[2022-08-17T18:27:09.151Z] got a message
[2022-08-17T18:27:09.157Z] Function "EventHubReceiver" (Id: 60e7b992-39d4-4d58-ac0f-e112df299dbe) invoked by Java Worker
[2022-08-17T18:27:09.160Z] Executed 'Functions.EventHubReceiver' (Succeeded, Id=60e7b992-39d4-4d58-ac0f-e112df299dbe, Duration=4186ms)
[2022-08-17T18:27:23.598Z] Listening for transport dt_socket at address: 5005
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the startup warning with the linked azfunct-java-eventhubs project and the reported Java, Maven, Core Tools, and Azure Functions library versions. Start at the JavaFunctionBroker.addJavaAnnotationLibrary entry point shown in the log; done means determining why the warning appears for this working Event Hub project and confirming the corrected startup behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, java
Domain
backend, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.