javax.servlet.ServletException: java.lang.ClassCastException: net.sf.json.JSONNull cannot be cast to net.sf.json.JSONObject

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

When you have no build parameters, uncheck 'This build is parameterized'

Solutions on the web

via Google Groups by stop...@google.com (JIRA), 1 year ago
java.lang.ClassCastException: net.sf.json.JSONNull cannot be cast to net.sf.json.JSONObject
via Jenkins JIRA by Serhiy Topchiy, 1 year ago
java.lang.ClassCastException: net.sf.json.JSONNull cannot be cast to net.sf.json.JSONObject
via Jenkins JIRA by Hector Santana, 1 year ago
java.lang.Error: Failed to instantiate class hudson.scm.browsers.FishEyeSVN from {"url":"${FISHEYE_SERVER_BASE}/Test/","rootModule":"branches/alpha","stapler-class":"hudson.scm.browsers.FishEyeSVN","$class":"hudson.scm.browsers.FishEyeSVN"}
via Google Groups by Eddard, 1 year ago
java.lang.Error: Failed to instantiate class com.dabsquared.gitlabjenkins.GitLabPushTrigger from {"triggerOnPush":true,"triggerOnMergeRequest":true,"triggerOpenMergeRequestOnPush":"never","triggerOnNoteRequest":true,"noteRegex":"Jenkins please retry
via GitHub by Normo
, 1 year ago
java.lang.Error: Failed to instantiate class com.dabsquared.gitlabjenkins.GitLabPushTrigger from {"triggerOnPush":true,"triggerOnMergeRequest":true,"triggerOpenMergeRequestOnPush":"both","triggerOnNoteRequest":false,"noteRegex":"","ciSkip":true
via Google Groups by clec...@cloudbees.com (JIRA), 11 months ago
java.lang.IllegalArgumentException: Failed to instantiate interface com.cloudbees.plugins.credentials.Credentials from {"scope":"GLOBAL","keyStoreSource":{"value":"1","uploadedKeystore
java.lang.ClassCastException: net.sf.json.JSONNull cannot be cast to net.sf.json.JSONObject
at hudson.model.ParametersDefinitionProperty._doBuild(ParametersDefinitionProperty.java:148)
at jenkins.model.ParameterizedJobMixIn.doBuild(ParameterizedJobMixIn.java:191)
at hudson.model.AbstractProject.doBuild(AbstractProject.java:1745)
at hudson.model.AbstractProject.doBuild(AbstractProject.java:1751)
at sun.reflect.GeneratedMethodAccessor1252.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:320)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:163)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:124)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)

Users with the same issue

Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.