You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As we are planning to use snapshot version as 5.0.0-SNAPSHOT instead of 5.0.0.BUILD-SNAPSHOT, So Grails 5 application throws java.lang.NumberFormatException: For input string: "0-SNAPSHOT" when we update grailsVersion to 5.0.0-SNAPSHOT.
Task List
Steps to reproduce provided
Stacktrace (if present) provided
Example that reproduces the problem uploaded to Github
Full description of the issue provided (see below)
Steps to Reproduce
Create a new Grails 5 web application.
Update property grailsVersion to 5.0.0-SNAPSHOT
Run the application
Expected Behaviour
The application should be running on localhost:8080
Actual Behaviour
The application throws following exception:
java.lang.NumberFormatException: For input string: "0-SNAPSHOT"
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.base/java.lang.Integer.parseInt(Integer.java:652)
at java.base/java.lang.Integer.valueOf(Integer.java:983)
at org.codehaus.groovy.runtime.StringGroovyMethods.toInteger(StringGroovyMethods.java:3120)
at org.grails.datastore.mapping.core.grailsversion.GrailsVersion.<init>(GrailsVersion.groovy:58)
at org.grails.datastore.mapping.core.grailsversion.GrailsVersion.getCurrent(GrailsVersion.groovy:142)
at org.grails.datastore.mapping.core.grailsversion.GrailsVersion.isAtLeastMajorMinor(GrailsVersion.groovy:72)
at org.grails.orm.hibernate.support.HibernateDatastoreConnectionSourcesRegistrar.postProcessBeanDefinitionRegistry(HibernateDatastoreConnectionSourcesRegistrar.groovy:40)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:311)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:142)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:746)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:564)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:438)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:337)
at grails.boot.GrailsApp.run(GrailsApp.groovy:99)
at grails.boot.GrailsApp.run(GrailsApp.groovy:485)
at grails.boot.GrailsApp.run(GrailsApp.groovy:472)
at com.example.Application.main(Application.groovy:11)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
Environment Information
Operating System: macOS
GORM Version: 7.1.0.BUILD-SNAPSHOT (7.1.0.M5)
Grails Version (if using Grails): TODO
JDK Version: 1.8
The text was updated successfully, but these errors were encountered:
As we are planning to use snapshot version as
5.0.0-SNAPSHOT
instead of5.0.0.BUILD-SNAPSHOT
, So Grails 5 application throwsjava.lang.NumberFormatException: For input string: "0-SNAPSHOT"
when we updategrailsVersion
to5.0.0-SNAPSHOT
.Task List
Steps to Reproduce
grailsVersion
to5.0.0-SNAPSHOT
Expected Behaviour
The application should be running on localhost:8080
Actual Behaviour
The application throws following exception:
Environment Information
The text was updated successfully, but these errors were encountered: