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

net.sf.json.JSONException: null object #30

Open
cdgraff opened this issue Nov 7, 2013 · 2 comments
Open

net.sf.json.JSONException: null object #30

cdgraff opened this issue Nov 7, 2013 · 2 comments

Comments

@cdgraff
Copy link

cdgraff commented Nov 7, 2013

Hi guys, some idea why is not logging correctly and every exception have this error into the stacktrace,log?

2013-11-07 15:55:03,583 [http-apr-8080-exec-9] ERROR StackTrace - Full Stack Trace:
net.sf.json.JSONException: null object
at net.sf.json.JSONObject.verifyIsNull(JSONObject.java:2897)
at net.sf.json.JSONObject.get(JSONObject.java:2110)
at net.sf.json.JSONObject.get(JSONObject.java:2097)
at com.site.UserController.formatJSONAvatarDTO(UserController.groovy:250)
at com.site.UserController.saveUser(UserController.groovy:196)
at com.googlecode.psiprobe.Tomcat70AgentValve.invoke(Tomcat70AgentValve.java:38)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)

Thanks for any advice

@lusis
Copy link
Contributor

lusis commented Jan 27, 2014

I don't think I've ever seen anything like this. I've done some tomcat tests recently to demo the appender and haven't run in to that. It sounds like MAYBE the json lib isn't handling a conversion properly though.

@shevie-bls
Copy link

When you try to serialize an JSONObject that has a property with a null value this happens

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

No branches or pull requests

3 participants