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

[Bug] Build info semver parsing fails on -SNAPSHOTs #514

Closed
andrewazores opened this issue Oct 17, 2024 · 0 comments · Fixed by #515
Closed

[Bug] Build info semver parsing fails on -SNAPSHOTs #514

andrewazores opened this issue Oct 17, 2024 · 0 comments · Fixed by #515
Assignees
Labels
bug Something isn't working

Comments

@andrewazores
Copy link
Member

          I'm getting an error upon agent startup after this change:
Exception in thread "cryostat-agent-main" Exception in thread "cryostat-agent-main" java.lang.NumberFormatException: For input string: "0-SNAPSHOT"
	at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
	at java.base/java.lang.Integer.parseInt(Integer.java:668)
	at java.base/java.lang.Integer.parseInt(Integer.java:786)
	at io.cryostat.agent.VersionInfo$Semver.fromString(VersionInfo.java:109)
	at io.cryostat.agent.VersionInfo.load(VersionInfo.java:50)
	at io.cryostat.agent.Agent.accept(Agent.java:210)
	at io.cryostat.agent.Agent.lambda$agentmain$0(Agent.java:160)
	at java.base/java.lang.Thread.run(Thread.java:840)
java.lang.NumberFormatException: For input string: "0-SNAPSHOT"
	at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
	at java.base/java.lang.Integer.parseInt(Integer.java:668)
	at java.base/java.lang.Integer.parseInt(Integer.java:786)
	at io.cryostat.agent.VersionInfo$Semver.fromString(VersionInfo.java:109)
	at io.cryostat.agent.VersionInfo.load(VersionInfo.java:50)
	at io.cryostat.agent.Agent.accept(Agent.java:210)
	at io.cryostat.agent.Agent.lambda$agentmain$0(Agent.java:160)
	at java.base/java.lang.Thread.run(Thread.java:840)

Originally posted by @ebaron in #508 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
1 participant