swpalmer opened a new issue, #4923:
URL: https://github.com/apache/netbeans/issues/4923

   ### Apache NetBeans version
   
   Apache NetBeans 16 release candidate
   
   ### What happened
   
   Project loads, but still NetBeans complains that it cannot load the project. 
 The message simply states:
   
   boolean 
org.gradle.api.internal.provider.ValueSupplier$ExecutionTimeVaue.isFixedValue()
   
   Gradle is configured to use a fixed path to my Gradle installation of Gradle 
7.6 RC-1
   
   In the same NB session I changed the settings to use Gradle 7.5.1 and 
checked the box to use the gradle wrapper.
   The automatically triggered a reload which also failed.  this time with the 
following exception:
   
   java.lang.IllegalArgumentException: object is not an instance of declaring 
class
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at 
org.netbeans.modules.gradle.loaders.LegacyProjectLoader.getLocation(LegacyProjectLoader.java:374)
        at 
org.netbeans.modules.gradle.loaders.LegacyProjectLoader.createReport(LegacyProjectLoader.java:417)
        at 
org.netbeans.modules.gradle.loaders.LegacyProjectLoader.exceptionsToProblems(LegacyProjectLoader.java:356)
        at 
org.netbeans.modules.gradle.loaders.LegacyProjectLoader.loadGradleProject(LegacyProjectLoader.java:285)
        at 
org.netbeans.modules.gradle.loaders.LegacyProjectLoader.access$200(LegacyProjectLoader.java:92)
   [catch] at 
org.netbeans.modules.gradle.loaders.LegacyProjectLoader$ProjectLoaderTask.call(LegacyProjectLoader.java:623)
        at 
org.netbeans.modules.gradle.loaders.LegacyProjectLoader$ProjectLoaderTask.call(LegacyProjectLoader.java:592)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at 
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
        at 
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
        at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
        at 
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
   
   Attached messages.log (with 
-J-Dorg.netbeans.modules.gradle.loaders.LegacyProjectLoader.level=400)
   
   [messages.log](https://github.com/apache/netbeans/files/9944626/messages.log)
   
   
   ### How to reproduce
   
   1. Install a local copy of Gradle 7.6RC-1
   
   2. Configure Gradle in NetBeans to always use the Gradle at the location 
where Gradle 7.6.RC-1 is installed.
     - OR -
     Check the "Prefer to  use Gradle Wrapper..." box
   
   3. Load the attached Gradle project (NetBeansGradleTest.zip)
   
   4. Build or Run the project. Note that it does build and run, but NB still 
complains.
   
   Loading strictly with Gradle 7.5.1 and no wrapper works.
   
[NetBeansGradleTest.zip](https://github.com/apache/netbeans/files/9944663/NetBeansGradleTest.zip)
   
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   macOS 12.6.1
   
   ### JDK
   
   Zulu 17.0.5 with JavaFX
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   I just updated my Gradle install to 7.6. RC-1.  My project is building and 
running on JDK 19 via Gradle's Java Toolchain mechanism.  Previously my Gradle 
install was 7.5.1.
   
   
   
   ### Are you willing to submit a pull request?
   
   Yes
   
   ### Code of Conduct
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to