This week's book giveaway is in the Jobs Discussion forum. We're giving away four copies of The Career Toolkit and have Mark Herschberg on-line! See this thread for details.
I'm not sure in what forum to post...
I'm trying to help an other poster here on the forum, I managed to figure out what is going wrong, he has a textfile containing jsonobjects, each of those objects contains a date.
When trying to read the file I get this error:
In my search what could cause the error I saw a remark of someone that he got the error because he didn't deserialize the date in the jsonObject.
When I remove the date, the error is gone, so in this case that's most likely also the prob.
I've never deserialized anything, how would you do that?
It's good to be able to use someting, it's better to understand how it works.
www.goanation.net
That doesn't look like a legal JSON stream anyway. More valid would be:
Otherwise you have a collection of JSON snippets that are valid at the unit level but not valid as a JSON stream.
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.
OK. I missed that. But we need your latest stacktrace. The only one we have is where it choked on not quoting the date strings. Which, alas, I forgot to add to my own example.
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.
Maybe I should post a new question cause I maded some changes a and now the subjectline dosn't really cover my question anymore?!
I removed the LocalDate from my PlayerClass and save it now as a string.
but it seems that my jsonObject isn't bindded corectly to the javaObject, cause I'm getting nullpointers.
I'll post the whole code to make it a bit easier for you guys to help.
PlayerClass:
MenuController:
AddController:
ShowController:
Stacktrace:
It's good to be able to use someting, it's better to understand how it works.
www.goanation.net
Lol weird as hell... Before, cause it was ment as an quick example, aal the code was in my sample.Controller.
I knew if I would have posted it that way here, surely someone would a remark about it, so I sperated my code a bit.
I ran it again to see if the rest still worked and now everything works!? At least allmost, no errors anymore, but the nameColumn isn't filled yet
It's good to be able to use someting, it's better to understand how it works.
www.goanation.net
I also managed to figure that out, in my object I was referring to userName, but the instance variable is name, so I changed the instance variable and adjusted the propertyValueFactory and tada
It's good to be able to use someting, it's better to understand how it works.
www.goanation.net
please buy my thing and then I'll have more money:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop