java.lang.ClassCastException
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2017 12:29 AM
Hi,
We have created a Scoped Application in which our table is inherited from the task table. Now when we are trying to save the record in the table it is giving us the following error:
JavaScript evaluation error on: action.setRedirectURL(current); current.update(); if (! current.isActionAborted()) action.setRedirectURL(current);Root cause of JavaScriptException: java.lang.ClassCastException : java.lang.ClassCastException: |
java.lang.ClassCastException: org.mozilla.javascript.JavaScriptException: java.lang.ClassCastException: org.mozilla.javascript.JavaScriptException.wrapException(JavaScriptException.java:94)
org.mozilla.javascript.FunctionObject.call(FunctionObject.java:509)
org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1227)
org.mozilla.javascript.gen.c71445.call(<refname>:2)
org.mozilla.javascript.gen.c71445.exec(<refname>)
com.glide.script.ScriptEvaluator.execute(ScriptEvaluator.java:233)
com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:105)
com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:72)
com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:63)
com.glide.script.Evaluator.evaluateString(Evaluator.java:91)
com.glide.script.GlideRhinoHelper.evaluateAsString(GlideRhinoHelper.java:130)
com.glide.script.ActionScript.conditionalEval(ActionScript.java:83)
com.glide.script.ActionScript.execute(ActionScript.java:69)
com.glide.script.ActionScriptProcessor.processScript(ActionScriptProcessor.java:139)
com.glide.script.Action.process(Action.java:115)
com.glide.ui.RedirectTransaction.invokeAction(RedirectTransaction.java:421)
com.glide.ui.RedirectTransaction.handleActions(RedirectTransaction.java:388)
com.glide.ui.RedirectTransaction.inboundActions(RedirectTransaction.java:224)
com.glide.ui.RedirectTransaction.process(RedirectTransaction.java:93)
com.glide.ui.GlideServletUITransaction.process(GlideServletUITransaction.java:73)
com.glide.processors.AProcessor.runProcessor(AProcessor.java:409)
com.glide.processors.AProcessor.processTransaction(AProcessor.java:183)
com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:165)
com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:32)
com.glide.sys.ServletTransaction.run(ServletTransaction.java:34)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)
Has anyone experienced a similar issue before?
Please provide your suggestions .
Thanks
Anuneeti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2017 12:49 AM
Hi Anuneeti,
Please refer the Link Implications of Extending a Table in a Scoped Application
It can be helpful
Thanks,
Apurva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2017 01:47 AM
Hi Apurva,
Thanks for the response.
But i am unable to find anything related to the error we are getting.
Scenario - When we are trying to create a record in the table, it is giving the above error.
Please provide your suggestions.
Thanks
Anuneeti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2019 10:52 PM
The ClassCastException thrown to indicate that your code has attempted to cast an object to a subclass of which it is not an instance. Casting only works when the casted object follows an is a relationship to the type you are trying to cast to.
When will be ClassCastException is thrown:
- When you try to cast an object of Parent class to its Child class type, this exception will be thrown.
- When you try to cast an object of one class into another class type that has not extended the other class or they don't have any relationship between them.