Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illegal reflective access #1291

Closed
EwanNoble opened this issue Jul 24, 2020 · 5 comments
Closed

Illegal reflective access #1291

EwanNoble opened this issue Jul 24, 2020 · 5 comments
Assignees

Comments

@EwanNoble
Copy link
Member

Expected behavior

No warnings when running mvn package (using azure-functions-maven-plugin:1.6.0 which depends on applicationinsights-core:2.6.1)

Actual behavior

WARNING: Illegal reflective access by com.microsoft.applicationinsights.core.dependencies.xstream.core.util.Fields (file:/C:/Users/me/.m2/repository/com/microsoft/azure/applicationinsights-core/2.6.1/applicationinsights-core-2.6.1.jar) to field java.util.TreeMap.comparator
WARNING: Please consider reporting this to the maintainers of com.microsoft.applicationinsights.core.dependencies.xstream.core.util.Fields
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

To Reproduce

Run mvn package with azure-functions-maven-plugin:1.6.0

System information

Please provide the following information:

  • SDK Version: applicationinsights-core:2.6.1
  • OS type and version: Windows 10.0.19559 Build 19559
@MS-jgol
Copy link

MS-jgol commented Jul 24, 2020

@EwanNoble
Can you please try the new Java 3.0 agent - https://docs.microsoft.com/en-us/azure/azure-monitor/app/java-in-process-agent
Just a few simple steps to enable.

Configuration options are here:
https://docs.microsoft.com/en-us/azure/azure-monitor/app/java-standalone-config

@MS-jgol MS-jgol self-assigned this Jul 24, 2020
@MS-jgol MS-jgol closed this as completed Sep 11, 2020
trask pushed a commit that referenced this issue Oct 17, 2020
@noce2
Copy link

noce2 commented Dec 20, 2020

Hello @MS-jgol , the steps you linked don't seem to solve the problem. I am using azure-functions-maven-plugin:1.9.0 and despite downloading the jar etc, I still get these warnings.

@trask
Copy link
Member

trask commented Jan 14, 2021

hi @noce2, can you post a small repro of the issue that we can use to see exactly what's going on?

@pkunk
Copy link

pkunk commented Jan 19, 2021

Created a new issue with link to a repro example: #1446

@trask
Copy link
Member

trask commented Jan 19, 2021

@pkunk thanks! will check out that issue/repro

@ghost ghost locked as resolved and limited conversation to collaborators Jul 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants