satellite-of-love / elm-rugs

Programs to develop Elm programs at a higher level
6 stars 1 forks source link

java/sql/SQLException when running rug install #3

Open mbylstra opened 7 years ago

mbylstra commented 7 years ago

Hi, I'm getting this error when running rug install. It downloaded a whole lot of stuff, but then threw this error at the end. I get the same error if I run it again:

rug install -X
Resolving dependencies for jessitron:elm-rugs (2.0.5·local) completed

java.lang.NoClassDefFoundError: java/sql/SQLException
    at com.atomist.rug.cli.command.AbstractAnnotationBasedCommand.annotatedMethodWith(AbstractAnnotationBasedCommand.java:41)
    at com.atomist.rug.cli.command.AbstractAnnotationBasedCommand.validate(AbstractAnnotationBasedCommand.java:198)
    at com.atomist.rug.cli.command.AbstractCommand.run(AbstractCommand.java:35)
    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:564)
    at com.atomist.rug.cli.command.ReflectiveCommandRunMethodRunner.invokeCommand(ReflectiveCommandRunMethodRunner.java:17)
    at com.atomist.rug.cli.command.ReflectiveCommandRunner.invokeReflectiveCommand(ReflectiveCommandRunner.java:93)
    at com.atomist.rug.cli.command.ReflectiveCommandRunner.invokeCommand(ReflectiveCommandRunner.java:262)
    at com.atomist.rug.cli.command.ReflectiveCommandRunner.runCommand(ReflectiveCommandRunner.java:60)
    at com.atomist.rug.cli.Runner.runCommand(Runner.java:93)
    at com.atomist.rug.cli.Runner.run(Runner.java:40)
    at com.atomist.rug.cli.Main.invokeRunner(Main.java:34)
    at com.atomist.rug.cli.Main.main(Main.java:25)
Caused by: java.lang.ClassNotFoundException: java.sql.SQLException
    at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:563)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
    at com.atomist.rug.cli.classloading.DelegatingUrlClassLoader.loadClass(DelegatingUrlClassLoader.java:46)
    ... 15 more
java -version
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)
rug generate jessitron:elm-rugs:StaticPage happy-new-project-name -R
Resolving dependencies for jessitron:elm-rugs (latest·zip) failed

Configured repositories from ~/.atomist/cli.yml:
  central (http://repo.maven.apache.org/maven2/)
  rugs (https://atomist.jfrog.io/atomist/rugs)

Unable to resolve requested archive jessitron:elm-rugs (latest).
Please verify that specified archive exists in at least one of your configured repositories.

Let me know if there's any more info I can provide. Thanks!

jessitron commented 7 years ago

It seems you've just enabled the issue triaging. I'm just scraping all issues from your repository and will give you some more information about this in a few minutes or so.

Because of the rate limit we can't scrape all information (including all comments and authors) right now - our system is already set up to scrape this in the next days over which the predictions will become more precise every day.

Sit tight!

jessitron commented 7 years ago

The label prediction failed because there are not enough labels. Three labels must have been set on at least three issues each.

The contributor prediction failed because there are not enough contributors. Three contributors must have authored comments on at least three issues each.

Possible duplicate or related issues are:

IvoNet commented 6 years ago

UPDATE: moved this issue to the rug-cli project...

I have the same problem but with just about any rug command:

I tried:

All of them end in:

Resolving dependencies for com.atomist:rug (1.0.0-m.5·jar) completed

java/sql/SQLException

I've tried a complete uninstall / brew update + upgrade / new command-line install (xcode) / installed gcc and after all that a new install install of rug-cli from the atomist/tap but no dice. I still get the above message.

If I can help in any way please let me know...

Kind regards,

@ivonet