Skip to content

Presto under two package names

I just started developing a Presto connector for JSON API. As suggested in many places, I started with the example-http connector and did few changes and deployed the connector as mentioned in the documentation. Then I got following error when starting the server. Then I noticed the package name for Plugin in…

Exception in thread “main” java.util.InputMismatchException error

I believe I wrote all my code correctly but Im getting this error, can someone help me understand: Here is my code: Answer Your code looks OK. An InputMismatchException occurs in a Scanner when a given input doesn’t match the expected input format. Your exception occurs on line 15, where a scanner expec…