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

Problem Generating Grails Wrapper #381

Closed
jeffscottbrown opened this issue Oct 4, 2024 · 8 comments · Fixed by #393
Closed

Problem Generating Grails Wrapper #381

jeffscottbrown opened this issue Oct 4, 2024 · 8 comments · Fixed by #393
Assignees

Comments

@jeffscottbrown
Copy link
Member

brownj@Jeff-Brown-Unity t % sdk use grails 6.2.1

Using grails version 6.2.1 in this shell.
brownj@Jeff-Brown-Unity t % 
brownj@Jeff-Brown-Unity t % grails --version
Grails Version: 6.2.1
JVM Version: 17.0.9
brownj@Jeff-Brown-Unity t % 
brownj@Jeff-Brown-Unity t % 
brownj@Jeff-Brown-Unity t % grails create-app -f grails-wrapper someappname
| Error Resource not found for url: null

The problem does not seem to manifest if I use the CLI from https://github.com/grails/grails-forge/releases/download/v6.2.1/grails-cli-6.2.1.zip.

@jeffscottbrown
Copy link
Member Author

@jamesfredley
Copy link
Contributor

Also not occurring on start.grails.org or using Grails Application Forge in IntelliJ.

@jamesfredley
Copy link
Contributor

@jeffscottbrown Please retest this with the latest snapshot from: https://github.com/grails/grails-forge/actions/runs/11242927885#artifacts

@jamesfredley
Copy link
Contributor

@jeffscottbrown can you re-test this with the latest snapshot?

https://github.com/grails/grails-forge/actions/runs/11275038680/artifacts/2040471171

@jeffscottbrown
Copy link
Member Author

jeffscottbrown commented Oct 10, 2024

Would you expect the darwin amd64 binary to work on Apple Silicon?

'> brownj@Jeff-Brown-Unity t % sdk use java 17.0.7-zulu

Using java version 17.0.7-zulu in this shell.
brownj@Jeff-Brown-Unity t %
brownj@Jeff-Brown-Unity t %
brownj@Jeff-Brown-Unity t % sdk use grails 6.2.1

Using grails version 6.2.1 in this shell.
brownj@Jeff-Brown-Unity t %
brownj@Jeff-Brown-Unity t %
brownj@Jeff-Brown-Unity t % which grails
/Users/brownj/Downloads/grails-darwin-amd64-snapshot/bin/grails
brownj@Jeff-Brown-Unity t %
brownj@Jeff-Brown-Unity t %
brownj@Jeff-Brown-Unity t % grails create-app -f grails-wrapper someappname
| Error Resource not found for url: null

% grails --version
Grails Version: 6.2.2-SNAPSHOT
JVM Version: 11.0.20

@jeffscottbrown
Copy link
Member Author

jeffscottbrown commented Oct 10, 2024

@jamesfredley Does that command working for you?

@jamesfredley
Copy link
Contributor

grails> create-app -f grails-wrapper test --stacktrace
| Error Resource not found for url: null
java.lang.NullPointerException: Resource not found for url: null
        at [email protected]/java.util.Objects.requireNonNull(Objects.java:246)
        at org.grails.forge.template.URLTemplate.<init>(URLTemplate.java:36)
        at org.grails.forge.template.URLTemplate.<init>(URLTemplate.java:31)
        at org.grails.forge.template.BinaryTemplate.<init>(BinaryTemplate.java:23)
        at org.grails.forge.feature.grailsWrapper.GrailsWrapper.apply(GrailsWrapper.java:53)
        at org.grails.forge.application.generator.GeneratorContext.applyFeatures(GeneratorContext.java:257)
        at org.grails.forge.application.generator.DefaultProjectGenerator.generate(DefaultProjectGenerator.java:96)
        at org.grails.forge.application.generator.DefaultProjectGenerator.generate(DefaultProjectGenerator.java:72)
        at org.grails.forge.cli.command.CreateCommand.generate(CreateCommand.java:125)
        at org.grails.forge.cli.command.CreateCommand.call(CreateCommand.java:112)
        at org.grails.forge.cli.command.CreateCommand.call(CreateCommand.java:38)
        at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
        at picocli.CommandLine.access$1500(CommandLine.java:148)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
        at picocli.CommandLine.execute(CommandLine.java:2170)
        at org.grails.forge.cli.Application.execute(Application.java:99)
        at org.grails.forge.cli.InteractiveShell.start(InteractiveShell.java:89)
        at org.grails.forge.cli.Application.main(Application.java:83)

@jamesfredley
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants