|
|
After upgrading to Grails 4.0.2, on an existing project, I get an error:
grails clean --stacktrace --verbose
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/home/mzimmermann/software/java-based/grails/lib/org.codehaus.groov y/groovy/jars/groovy-2.5.6.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
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
| Error Error occurred running Grails CLI: null
java.lang.NullPointerException
at org.grails.cli.GrailsCli.initializeProfile(GrailsCli.groovy:515)
at org.grails.cli.GrailsCli.initializeApplication(GrailsCli.groovy:306)
at org.grails.cli.GrailsCli.execute(GrailsCli.groovy:269)
at org.grails.cli.GrailsCli.main(GrailsCli.groovy:159)
| Error Error occurred running Grails CLI: null
I tried multiple things with no luck. I am tracing this issue by looking at Grails sources:
this.profile = profileRepository.getProfile(profileName)
and from there to
createMavenProfileRepository()
where it looks like
def profileRepos = getSetting(BuildSettings.PROFILE_REPOSITORIES, Map.class, Collections.emptyMap())
is getting a null profileRepos. But I am not sure what to do; there was no issue in the previous version of Grails: 2.2.0
Anyone has any pointers?
Thanks
--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/83a0886c-4fa3-443d-b4b7-b6b6387fc4a1%40googlegroups.com.
|
|
Are you using Java 7?
Grails 4 is not compatible with Java 7.
Jeff
On 24 Mar 2020, at 21:34, Milan Zimmermann wrote:
After upgrading to Grails 4.0.2, on an existing project, I get an error:
grails clean --stacktrace --verbose
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/home/mzimmermann/software/java-based/grails/lib/org.codehaus.groov y/groovy/jars/groovy-2.5.6.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
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
| Error Error occurred running Grails CLI: null
java.lang.NullPointerException
at org.grails.cli.GrailsCli.initializeProfile(GrailsCli.groovy:515)
at org.grails.cli.GrailsCli.initializeApplication(GrailsCli.groovy:306)
at org.grails.cli.GrailsCli.execute(GrailsCli.groovy:269)
at org.grails.cli.GrailsCli.main(GrailsCli.groovy:159)
| Error Error occurred running Grails CLI: null
I tried multiple things with no luck. I am tracing this issue by looking at Grails sources:
this.profile = profileRepository.getProfile(profileName)
and from there to
createMavenProfileRepository()
where it looks like
def profileRepos = getSetting(BuildSettings.PROFILE_REPOSITORIES, Map.class, Collections.emptyMap())
is getting a null profileRepos. But I am not sure what to do; there was no issue in the previous version of Grails: 2.2.0
Anyone has any pointers?
Thanks
--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/83a0886c-4fa3-443d-b4b7-b6b6387fc4a1%40googlegroups.com.
--
Jeff Scott Brown
Partner and Practice Lead, Grails and Micronaut
Disruptive solutions for a connected world.™
http://objectcomputing.com
Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/
--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/E9418962-D914-4F10-9D62-30A99D3A77F6%40objectcomputing.com.
|
|
Thanks for getting back! I am using Java 11. Only Java 11 present on my system. Java, Groovy and Grails configured manually using GROOVY_HOME and GRAILS_HOME. I am quite confident that part of the configuration is correct.
I should also say that on a freshly created app 'grails create-app' the 'grails clean' works. The problem is on an existing project (rather large) that I am trying to migrate. That was using Java 7 and I assume the reference to /home/mzimmermann/software/java-based/grails/lib/org.codehaus.gro ovy/groovy/jars/groovy-2.5.6.jar is from an pre-existing plugin.
Thanks On Wednesday, 25 March 2020 10:03:46 UTC-5, Jeff Scott Brown wrote:
Are you using Java 7?
Grails 4 is not compatible with Java 7.
Jeff
On 24 Mar 2020, at 21:34, Milan Zimmermann wrote:
After upgrading to Grails 4.0.2, on an existing project, I get an error:
grails clean --stacktrace --verbose
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/home/mzimmermann/software/java-based/grails/lib/org.codehaus.groov y/groovy/jars/groovy-2.5.6.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
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
| Error Error occurred running Grails CLI: null
java.lang.NullPointerException
at org.grails.cli.GrailsCli.initializeProfile(GrailsCli.groovy:515)
at org.grails.cli.GrailsCli.initializeApplication(GrailsCli.groovy:306)
at org.grails.cli.GrailsCli.execute(GrailsCli.groovy:269)
at org.grails.cli.GrailsCli.main(GrailsCli.groovy:159)
| Error Error occurred running Grails CLI: null
I tried multiple things with no luck. I am tracing this issue by looking at Grails sources:
this.profile = profileRepository.getProfile(profileName)
and from there to
createMavenProfileRepository()
where it looks like
def profileRepos = getSetting(BuildSettings.PROFILE_REPOSITORIES, Map.class, Collections.emptyMap())
is getting a null profileRepos. But I am not sure what to do; there was no issue in the previous version of Grails: 2.2.0
Anyone has any pointers?
Thanks
--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="x5wQwFCtAgAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">grails-dev-discuss+unsubscribe@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/grails-dev-discuss/83a0886c-4fa3-443d-b4b7-b6b6387fc4a1%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/msgid/grails-dev-discuss/83a0886c-4fa3-443d-b4b7-b6b6387fc4a1%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter';return true;" onclick="this.href='https://groups.google.com/d/msgid/grails-dev-discuss/83a0886c-4fa3-443d-b4b7-b6b6387fc4a1%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter';return true;">https://groups.google.com/d/msgid/grails-dev-discuss/83a0886c-4fa3-443d-b4b7-b6b6387fc4a1%40googlegroups.com.
--
Jeff Scott Brown
Partner and Practice Lead, Grails and Micronaut
Disruptive solutions for a connected world.™
<a href="http://objectcomputing.com" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fobjectcomputing.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4l-VVLHJqOYP3KlZd-oxBJe6n3Q';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fobjectcomputing.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4l-VVLHJqOYP3KlZd-oxBJe6n3Q';return true;">http://objectcomputing.com
Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
<a href="http://www.autismspeaks.org/" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ';return true;">http://www.autismspeaks.org/
--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/fd0d217f-39cb-45c9-8086-3e5550d4edfc%40googlegroups.com.
|
|
I wanted to say, I just managed to solve the 'grails clean' exception by creating a project with the same name, and gradually copying over some elements of the project.
I still am having a huge amount of compile issues, but at least a step ahead.
To ask for help, what venue would you recommend? Slack? StackOverflow?
Thanks again for getting back to me. On Wednesday, 25 March 2020 11:31:45 UTC-5, Milan Zimmermann wrote: Thanks for getting back! I am using Java 11. Only Java 11 present on my system. Java, Groovy and Grails configured manually using GROOVY_HOME and GRAILS_HOME. I am quite confident that part of the configuration is correct.
I should also say that on a freshly created app 'grails create-app' the 'grails clean' works. The problem is on an existing project (rather large) that I am trying to migrate. That was using Java 7 and I assume the reference to /home/mzimmermann/software/java-based/grails/lib/org.codehaus.gro ovy/groovy/jars/groovy-2.5.6.jar is from an pre-existing plugin.
Thanks On Wednesday, 25 March 2020 10:03:46 UTC-5, Jeff Scott Brown wrote:
Are you using Java 7?
Grails 4 is not compatible with Java 7.
Jeff
On 24 Mar 2020, at 21:34, Milan Zimmermann wrote:
After upgrading to Grails 4.0.2, on an existing project, I get an error:
grails clean --stacktrace --verbose
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/home/mzimmermann/software/java-based/grails/lib/org.codehaus.groov y/groovy/jars/groovy-2.5.6.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
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
| Error Error occurred running Grails CLI: null
java.lang.NullPointerException
at org.grails.cli.GrailsCli.initializeProfile(GrailsCli.groovy:515)
at org.grails.cli.GrailsCli.initializeApplication(GrailsCli.groovy:306)
at org.grails.cli.GrailsCli.execute(GrailsCli.groovy:269)
at org.grails.cli.GrailsCli.main(GrailsCli.groovy:159)
| Error Error occurred running Grails CLI: null
I tried multiple things with no luck. I am tracing this issue by looking at Grails sources:
this.profile = profileRepository.getProfile(profileName)
and from there to
createMavenProfileRepository()
where it looks like
def profileRepos = getSetting(BuildSettings.PROFILE_REPOSITORIES, Map.class, Collections.emptyMap())
is getting a null profileRepos. But I am not sure what to do; there was no issue in the previous version of Grails: 2.2.0
Anyone has any pointers?
Thanks
--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-discuss+[hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/grails-dev-discuss/83a0886c-4fa3-443d-b4b7-b6b6387fc4a1%40googlegroups.com?utm_medium=email&utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/grails-dev-discuss/83a0886c-4fa3-443d-b4b7-b6b6387fc4a1%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter';return true;" onclick="this.href='https://groups.google.com/d/msgid/grails-dev-discuss/83a0886c-4fa3-443d-b4b7-b6b6387fc4a1%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter';return true;">https://groups.google.com/d/msgid/grails-dev-discuss/83a0886c-4fa3-443d-b4b7-b6b6387fc4a1%40googlegroups.com.
--
Jeff Scott Brown
Partner and Practice Lead, Grails and Micronaut
Disruptive solutions for a connected world.™
<a href="http://objectcomputing.com" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fobjectcomputing.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4l-VVLHJqOYP3KlZd-oxBJe6n3Q';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fobjectcomputing.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4l-VVLHJqOYP3KlZd-oxBJe6n3Q';return true;">http://objectcomputing.com
Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
<a href="http://www.autismspeaks.org/" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ';return true;">http://www.autismspeaks.org/
--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/8bd9f795-42d7-415c-925d-8e8d4f54e77b%40googlegroups.com.
|
|
On 25 Mar 2020, at 13:05, Milan Zimmermann wrote:
> I wanted to say, I just managed to solve the 'grails clean' exception
> by
> creating a project with the same name, and gradually copying over some
> elements of the project.
We have done many many upgrades and in general, that is the approach
that I advocate for. Having done it a bunch, it really isn’t as
tedious as it might sound at first. That usually goes quite smoothly.
I am glad you got it worked out.
>
> I still am having a huge amount of compile issues, but at least a step
> ahead.
>
> To ask for help, what venue would you recommend? Slack? StackOverflow?
>
There won’t be a general answer to how to fix compilation issues. The
resolutions will depend on what the errors are.
You can ask questions about how to address those here on the mailing
list, or in Slack, or on StackOverflow. Most folks have migrated away
from the mailing list in favor of the other 2, Slack for conversational
questions and StackOverflow for specific questions that have a specific
answer (not likely to require a discussion).
I hope that helps.
JSB
--
Jeff Scott Brown
Partner and Practice Lead, Grails and Micronaut
Disruptive solutions for a connected world.™
http://objectcomputing.comAutism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/B9E321B9-8807-436D-83FD-BBB67C814CC1%40objectcomputing.com.
|
|
Thanks James. I will follow up on slack or stackoverflow - while making steps ahead, still having an overwheliming amount of issues and uncertainties. The differences between Grails 2.2 and 4 (well, 3 really) as huge on the size of app we have here.
Appreciate your help!
Milan On Wednesday, 25 March 2020 13:41:51 UTC-5, Jeff Scott Brown wrote: On 25 Mar 2020, at 13:05, Milan Zimmermann wrote:
> I wanted to say, I just managed to solve the 'grails clean' exception
> by
> creating a project with the same name, and gradually copying over some
> elements of the project.
We have done many many upgrades and in general, that is the approach
that I advocate for. Having done it a bunch, it really isn’t as
tedious as it might sound at first. That usually goes quite smoothly.
I am glad you got it worked out.
>
> I still am having a huge amount of compile issues, but at least a step
> ahead.
>
> To ask for help, what venue would you recommend? Slack? StackOverflow?
>
There won’t be a general answer to how to fix compilation issues. The
resolutions will depend on what the errors are.
You can ask questions about how to address those here on the mailing
list, or in Slack, or on StackOverflow. Most folks have migrated away
from the mailing list in favor of the other 2, Slack for conversational
questions and StackOverflow for specific questions that have a specific
answer (not likely to require a discussion).
I hope that helps.
JSB
--
Jeff Scott Brown
Partner and Practice Lead, Grails and Micronaut
Disruptive solutions for a connected world.™
<a href="http://objectcomputing.com" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fobjectcomputing.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4l-VVLHJqOYP3KlZd-oxBJe6n3Q';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fobjectcomputing.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4l-VVLHJqOYP3KlZd-oxBJe6n3Q';return true;">http://objectcomputing.com
Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
<a href="http://www.autismspeaks.org/" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ';return true;">http://www.autismspeaks.org/
--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/e1fee73c-c00e-40bf-a4e4-2c1323fc2b7d%40googlegroups.com.
|
|
On 26 Mar 2020, at 23:18, Milan Zimmermann wrote:
> Thanks James. I will follow up on slack or stackoverflow - while
> making
> steps ahead, still having an overwheliming amount of issues and
> uncertainties. The differences between Grails 2.2 and 4 (well, 3
> really) as
> huge on the size of app we have here.
>
> Appreciate your help!
>
We have updated scores of apps from Grails 2 to Grails 3 and more
recently Grails 4. If there is anything we can do to help, never
hesitate to reach out. We are happy to help.
JSB
--
Jeff Scott Brown
Partner and Practice Lead, Grails and Micronaut
Disruptive solutions for a connected world.™
http://objectcomputing.comAutism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/649CEFC5-3D6F-46AB-87B3-EA00F91BA22C%40objectcomputing.com.
|
|
Thank you, will do that. I still feel I am able to move along for now. Not sure the direction is right, just making a step-by-step to get rid of errors as they show up. On Friday, 27 March 2020 13:02:09 UTC-5, Jeff Scott Brown wrote: On 26 Mar 2020, at 23:18, Milan Zimmermann wrote:
> Thanks James. I will follow up on slack or stackoverflow - while
> making
> steps ahead, still having an overwheliming amount of issues and
> uncertainties. The differences between Grails 2.2 and 4 (well, 3
> really) as
> huge on the size of app we have here.
>
> Appreciate your help!
>
We have updated scores of apps from Grails 2 to Grails 3 and more
recently Grails 4. If there is anything we can do to help, never
hesitate to reach out. We are happy to help.
JSB
--
Jeff Scott Brown
Partner and Practice Lead, Grails and Micronaut
Disruptive solutions for a connected world.™
<a href="http://objectcomputing.com" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fobjectcomputing.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4l-VVLHJqOYP3KlZd-oxBJe6n3Q';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fobjectcomputing.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4l-VVLHJqOYP3KlZd-oxBJe6n3Q';return true;">http://objectcomputing.com
Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
<a href="http://www.autismspeaks.org/" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ';return true;">http://www.autismspeaks.org/
--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/296e8d85-bcbf-47b8-8a01-f7fdb420f886%40googlegroups.com.
|
|