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

!go 123 fails with "Can't find resource for bundle java.util.PropertyResourceBundle" #205

Closed
snuyanzin opened this issue Nov 16, 2018 · 2 comments

Comments

@snuyanzin
Copy link
Collaborator

!go to non-existent connection id fails with

sqlline> !go 2
java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key invalid-connection
        at java.base/java.util.ResourceBundle.getObject(Unknown Source)
        at java.base/java.util.ResourceBundle.getString(Unknown Source)
        at sqlline.SqlLine.locStatic(SqlLine.java:171)
        at sqlline.SqlLine.loc(SqlLine.java:165)
        at sqlline.Commands.go(Commands.java:1332)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
        at sqlline.SqlLine.dispatch(SqlLine.java:714)
        at sqlline.SqlLine.begin(SqlLine.java:539)
        at sqlline.SqlLine.start(SqlLine.java:264)
        at sqlline.SqlLine.main(SqlLine.java:195)

and
!go invlaid fails with

java.lang.NumberFormatException: For input string: "invalid"
        at java.base/java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.base/java.lang.Integer.parseInt(Unknown Source)
        at java.base/java.lang.Integer.parseInt(Unknown Source)
        at sqlline.Commands.go(Commands.java:1330)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
        at sqlline.SqlLine.dispatch(SqlLine.java:714)
        at sqlline.SqlLine.begin(SqlLine.java:539)
        at sqlline.SqlLine.start(SqlLine.java:264)
        at sqlline.SqlLine.main(SqlLine.java:195)
@julianhyde
Copy link
Owner

Fixed in 6fd9fd4, PR #206. Thanks @snuyanzin!

@julianhyde
Copy link
Owner

I force-pushed e4fc807, to fix #207 and PR #208.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants