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

Database read error on update #9

Open
baph-omet opened this issue Jun 18, 2014 · 8 comments
Open

Database read error on update #9

baph-omet opened this issue Jun 18, 2014 · 8 comments
Labels

Comments

@baph-omet
Copy link

I updated to the latest version on the plugin while on 1.7.9 and found that the plugin is unable to read the shop items table in my server's MySQL database. When attempting to run "/shop browse" while in a shop, the plugin returns "Browse cancelled due to DB error." The console gives this line: "Couldn't get shop info list: java.lang.NullPointerException"
I'm also running the latest version of Vault, if that makes a difference.

@aeheathc
Copy link
Owner

Could you post the full stack trace that comes with the NullPointerException

@aeheathc aeheathc added the bug label Jun 21, 2014
@lazeriux
Copy link

lazeriux commented Jul 2, 2014

I'm getting the same error.

@baph-omet
Copy link
Author

I have no idea what a stack trace is or where I might find it, since the console only prints that one line even with debug mode enabled for the plugin, however I was able to fix the issue by enabling custom items. This seems like it has something to do with how the plugin is handling items in shops. I suppose it's also worth noting that only some shops experienced the DB error, while others were completely unscathed. Hope this helps!

@aeheathc
Copy link
Owner

The stack trace is what shows up in the log file when you see exceptions on the console.
Can you identify an item that was only in shops that had the problem? That might help too

@lazeriux
Copy link

In the shop there wasn't a lot items, if I remember good it was
sugar cane,wheat,bread,iron ingot,diamond,cobblestone,steak.
And after server restart I get the error.

2014-07-15 5:30 GMT+03:00 Anthony Heathcoat [email protected]:

The stack trace is what shows up in the log file when you see exceptions
on the console.
Can you identify an item that was only in shops that had the problem? That
might help too


Reply to this email directly or view it on GitHub
#9 (comment).

@lazeriux
Copy link

By the way, thank you for the response and for care of plugin. :)

Regards,
Lazeriuxxx (noob developer)

2014-07-15 18:34 GMT+03:00 Gediminas Giačas [email protected]:

In the shop there wasn't a lot items, if I remember good it was
sugar cane,wheat,bread,iron ingot,diamond,cobblestone,steak.
And after server restart I get the error.

2014-07-15 5:30 GMT+03:00 Anthony Heathcoat [email protected]:

The stack trace is what shows up in the log file when you see exceptions

on the console.
Can you identify an item that was only in shops that had the problem?
That might help too


Reply to this email directly or view it on GitHub
#9 (comment)
.

@RealSmileyguy
Copy link

I get the same error, but custom items to true didnt work for me.

@RealSmileyguy
Copy link

By the way, I'm using a MySQL DB if that makes any difference.

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

No branches or pull requests

4 participants