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

Build produces some of these: 'WARNING: An illegal reflective access operation has occurred' #4225

Closed
Eilon opened this issue Oct 1, 2018 · 2 comments

Comments

@Eilon
Copy link

Eilon commented Oct 1, 2018

E.g. this build: http://aspnetci/viewLog.html?buildId=565722&buildTypeId=Coherence_UpdateRepos&tab=buildLog&_focus=7795

Has these warnings (I have no idea what they mean):

[12:28:34][Step 2/2]   WARNING: An illegal reflective access operation has occurred
[12:28:34][Step 2/2]   WARNING: Illegal reflective access by org.gradle.internal.reflect.JavaMethod (file:/C:/Users/asplab/.gradle/wrapper/dists/gradle-4.9-bin/e9cinqnqvph59rr7g70qubb4t/gradle-4.9/lib/gradle-base-services-4.9.jar) to method java.lang.ClassLoader.getPackages()
[12:28:34][Step 2/2]   WARNING: Please consider reporting this to the maintainers of org.gradle.internal.reflect.JavaMethod
[12:28:34][Step 2/2]   WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
[12:28:34][Step 2/2]   WARNING: All illegal access operations will be denied in a future release

And further down a few more instances:

[12:30:14][Step 2/2] EXEC : warning : An illegal reflective access operation has occurred [D:\b\w\33bdfc1cae7b2a38\.dotnet\buildtools\korebuild\3.0.0-alpha1-20180919.1\KoreBuild.proj]
[12:30:14][Step 2/2] EXEC : warning : Illegal reflective access by org.gradle.internal.reflect.JavaMethod (file:/C:/Users/asplab/.gradle/wrapper/dists/gradle-4.9-bin/e9cinqnqvph59rr7g70qubb4t/gradle-4.9/lib/gradle-base-services-4.9.jar) to method java.lang.ClassLoader.getPackages() [D:\b\w\33bdfc1cae7b2a38\.dotnet\buildtools\korebuild\3.0.0-alpha1-20180919.1\KoreBuild.proj]
[12:30:14][Step 2/2] EXEC : warning : Please consider reporting this to the maintainers of org.gradle.internal.reflect.JavaMethod [D:\b\w\33bdfc1cae7b2a38\.dotnet\buildtools\korebuild\3.0.0-alpha1-20180919.1\KoreBuild.proj]
[12:30:14][Step 2/2] EXEC : warning : Use --illegal-access=warn to enable warnings of further illegal reflective access operations [D:\b\w\33bdfc1cae7b2a38\.dotnet\buildtools\korebuild\3.0.0-alpha1-20180919.1\KoreBuild.proj]
[12:30:14][Step 2/2] EXEC : warning : All illegal access operations will be denied in a future release [D:\b\w\33bdfc1cae7b2a38\.dotnet\buildtools\korebuild\3.0.0-alpha1-20180919.1\KoreBuild.proj]
[12:30:20][Step 2/2]   

...

[12:30:34][Step 2/2]   Packing Java client
[12:30:34][Step 2/2]   > gradlew -PpackageVersion="0.1.0-alpha1-111" -Dorg.gradle.daemon=false createPackage
[12:30:35][Step 2/2] EXEC : warning : An illegal reflective access operation has occurred [D:\b\w\33bdfc1cae7b2a38\.dotnet\buildtools\korebuild\3.0.0-alpha1-20180919.1\KoreBuild.proj]
[12:30:35][Step 2/2] EXEC : warning : Illegal reflective access by org.gradle.internal.reflect.JavaMethod (file:/C:/Users/asplab/.gradle/wrapper/dists/gradle-4.9-bin/e9cinqnqvph59rr7g70qubb4t/gradle-4.9/lib/gradle-base-services-4.9.jar) to method java.lang.ClassLoader.getPackages() [D:\b\w\33bdfc1cae7b2a38\.dotnet\buildtools\korebuild\3.0.0-alpha1-20180919.1\KoreBuild.proj]
[12:30:35][Step 2/2] EXEC : warning : Please consider reporting this to the maintainers of org.gradle.internal.reflect.JavaMethod [D:\b\w\33bdfc1cae7b2a38\.dotnet\buildtools\korebuild\3.0.0-alpha1-20180919.1\KoreBuild.proj]
[12:30:35][Step 2/2] EXEC : warning : Use --illegal-access=warn to enable warnings of further illegal reflective access operations [D:\b\w\33bdfc1cae7b2a38\.dotnet\buildtools\korebuild\3.0.0-alpha1-20180919.1\KoreBuild.proj]
[12:30:35][Step 2/2] EXEC : warning : All illegal access operations will be denied in a future release [D:\b\w\33bdfc1cae7b2a38\.dotnet\buildtools\korebuild\3.0.0-alpha1-20180919.1\KoreBuild.proj]

...

[12:30:44][Step 2/2] EXEC : warning : An illegal reflective access operation has occurred [D:\b\w\33bdfc1cae7b2a38\.dotnet\buildtools\korebuild\3.0.0-alpha1-20180919.1\KoreBuild.proj]
[12:30:44][Step 2/2] EXEC : warning : Illegal reflective access by org.gradle.internal.reflect.JavaMethod (file:/C:/Users/asplab/.gradle/wrapper/dists/gradle-4.9-bin/e9cinqnqvph59rr7g70qubb4t/gradle-4.9/lib/gradle-base-services-4.9.jar) to method java.lang.ClassLoader.getPackages() [D:\b\w\33bdfc1cae7b2a38\.dotnet\buildtools\korebuild\3.0.0-alpha1-20180919.1\KoreBuild.proj]
[12:30:44][Step 2/2] EXEC : warning : Please consider reporting this to the maintainers of org.gradle.internal.reflect.JavaMethod [D:\b\w\33bdfc1cae7b2a38\.dotnet\buildtools\korebuild\3.0.0-alpha1-20180919.1\KoreBuild.proj]
[12:30:44][Step 2/2] EXEC : warning : Use --illegal-access=warn to enable warnings of further illegal reflective access operations [D:\b\w\33bdfc1cae7b2a38\.dotnet\buildtools\korebuild\3.0.0-alpha1-20180919.1\KoreBuild.proj]
[12:30:44][Step 2/2] EXEC : warning : All illegal access operations will be denied in a future release [D:\b\w\33bdfc1cae7b2a38\.dotnet\buildtools\korebuild\3.0.0-alpha1-20180919.1\KoreBuild.proj]
[12:30:44][Step 2/2] D:\b\w\33bdfc1cae7b2a38\.packages\internal.aspnetcore.sdk\3.0.0-alpha1-20180919.1\build\ApiCheck.targets(61,5): warning : No baseline file 'D:\b\w\33bdfc1cae7b2a38\modules\SignalR\src\Microsoft.AspNetCore.SignalR.Specification.Tests\baseline.netcore.json' for netcoreapp2.2 found in Microsoft.AspNetCore.SignalR.Specification.Tests. [D:\b\w\33bdfc1cae7b2a38\modules\SignalR\src\Microsoft.AspNetCore.SignalR.Specification.Tests\Microsoft.AspNetCore.SignalR.Specification.Tests.csproj]
[12:30:44][Step 2/2] D:\b\w\33bdfc1cae7b2a38\.packages\internal.aspnetcore.sdk\3.0.0-alpha1-20180919.1\build\ApiCheck.targets(61,5): warning : No baseline file 'D:\b\w\33bdfc1cae7b2a38\modules\SignalR\src\Microsoft.AspNetCore.SignalR.Specification.Tests\baseline.netframework.json' for net461 found in Microsoft.AspNetCore.SignalR.Specification.Tests. [D:\b\w\33bdfc1cae7b2a38\modules\SignalR\src\Microsoft.AspNetCore.SignalR.Specification.Tests\Microsoft.AspNetCore.SignalR.Specification.Tests.csproj]
[12:30:44][Step 2/2] EXEC : warning : An illegal reflective access operation has occurred [D:\b\w\33bdfc1cae7b2a38\.dotnet\buildtools\korebuild\3.0.0-alpha1-20180919.1\KoreBuild.proj]
[12:30:44][Step 2/2] EXEC : warning : Illegal reflective access by org.gradle.internal.reflect.JavaMethod (file:/C:/Users/asplab/.gradle/wrapper/dists/gradle-4.9-bin/e9cinqnqvph59rr7g70qubb4t/gradle-4.9/lib/gradle-base-services-4.9.jar) to method java.lang.ClassLoader.getPackages() [D:\b\w\33bdfc1cae7b2a38\.dotnet\buildtools\korebuild\3.0.0-alpha1-20180919.1\KoreBuild.proj]
[12:30:44][Step 2/2] EXEC : warning : Please consider reporting this to the maintainers of org.gradle.internal.reflect.JavaMethod [D:\b\w\33bdfc1cae7b2a38\.dotnet\buildtools\korebuild\3.0.0-alpha1-20180919.1\KoreBuild.proj]
[12:30:44][Step 2/2] EXEC : warning : Use --illegal-access=warn to enable warnings of further illegal reflective access operations [D:\b\w\33bdfc1cae7b2a38\.dotnet\buildtools\korebuild\3.0.0-alpha1-20180919.1\KoreBuild.proj]
[12:30:44][Step 2/2] EXEC : warning : All illegal access operations will be denied in a future release [D:\b\w\33bdfc1cae7b2a38\.dotnet\buildtools\korebuild\3.0.0-alpha1-20180919.1\KoreBuild.proj]
[12:30:44][Step 2/2]     12 Warning(s)
[12:30:44][Step 2/2]     0 Error(s)
@Eilon
Copy link
Author

Eilon commented Oct 1, 2018

Oops wrong repo

@Eilon Eilon closed this as completed Oct 1, 2018
@Eilon
Copy link
Author

Eilon commented Oct 1, 2018

Moved to aspnet/SignalR#3036

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant