question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NPE when using GWT SDK 2.8.0.beta1

See original GitHub issue

When using GWT SDK 2.8.0.beta1 the following error message appears in the Error Log:

Could not compare ‘2.8.0.beta1’ to ‘2.8.0.beta1’, ignoring this version

Stacktrace:

java.lang.NumberFormatException: For input string: "beta1" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at com.google.gdt.eclipse.core.sdk.SdkUtils.parseVersionComponent(SdkUtils.java:250) at com.google.gdt.eclipse.core.sdk.SdkUtils.compareVersionStrings(SdkUtils.java:160) at com.google.gdt.eclipse.core.sdk.SdkUtils$MaxSdkVersionComputer.computeMaxSdkVersion(SdkUtils.java:57) at com.google.gdt.eclipse.suite.ext.GdtExtPlugin$2.checkSiteXMLForUpdates(GdtExtPlugin.java:207) at com.google.gdt.eclipse.core.update.internal.core.FeatureUpdateChecker.checkForUpdates(FeatureUpdateChecker.java:242) at com.google.gdt.eclipse.suite.ext.update.CompositeArtifactsDowloadJobChangeListener$2.done(CompositeArtifactsDowloadJobChangeListener.java:251) at org.eclipse.core.internal.jobs.JobListeners$3.notify(JobListeners.java:42) at org.eclipse.core.internal.jobs.JobListeners.doNotify(JobListeners.java:113) at org.eclipse.core.internal.jobs.JobListeners.done(JobListeners.java:151) at org.eclipse.core.internal.jobs.JobManager.endJob(JobManager.java:694) at org.eclipse.core.internal.jobs.WorkerPool.endJob(WorkerPool.java:105) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:72)

The reason for this is, that ‘beta’ is not a valid version suffix. Method ‘parseVersionComponent()’ in class ‘com.google.gdt.eclipse.core.sdk.SdkUtils’ only supports ‘rc’ and ‘ms’.

See: Code

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
branflake2267commented, Aug 10, 2016

Well, there is a possibility of that.

1reaction
branflake2267commented, Feb 8, 2016

I know what you’re referring too. I’ve marked this a high priority fix. I’ll aim to work on this sometime this week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GWT Release Notes
This enables storing JsonValues in the HTTP session on the server. Release Notes for 2.8.0 (Beta1). Highlights. Java 8 syntax supported. JsInterop has...
Read more >
Error building project after migrating to 2.8 #9476 - GitHub
I've migrated my project from GWT 2.7 to 2.8 and since then it compiles randomly (not very often). In most cases I get...
Read more >
Maven Compile GWT & OpenJDK 11 - java - Stack Overflow
1 Answer 1 · I added the dependencyManagement section into the pom, but that did not resolve the issue. · So after some...
Read more >
Maven dependency management being ignored at test time ...
Coding example for the question Maven dependency management being ignored at test time (works at runtime)-Java.
Read more >
Java. This vulnerability - CVE - Search Results
CVE-2022-31159, The AWS SDK for Java enables Java developers to work with ... CVE-2020-28923, An issue was discovered in Play Framework 2.8.0 through...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found