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

Even when not used "args" binding is stored as Serializable #77

Open
fviale opened this issue Dec 14, 2015 · 0 comments
Open

Even when not used "args" binding is stored as Serializable #77

fviale opened this issue Dec 14, 2015 · 0 comments

Comments

@fviale
Copy link
Member

fviale commented Dec 14, 2015

"args" binding, i.e. script parameters used to be stored as a String[], now the binding store a Serializable[]

This occurs in a Cron Loop job, on second iteration (it strangely does not occur during the first iteration).

[[email protected];09:00:00] java.lang.ClassCastException: [Ljava.io.Serializable; cannot be cast to [Ljava.lang.String; 
[[email protected];09:00:00] at org.ow2.parengine.PAREngine.assignArguments(PAREngine.java:115) 
[[email protected];09:00:00] at org.ow2.parengine.PAREngine.prepareExecution(PAREngine.java:233) 
[[email protected];09:00:00] at org.ow2.parserve.PARServeEngine.eval(PARServeEngine.java:240) 
[[email protected];09:00:00] at org.ow2.parserve.PARServeEngine.eval(PARServeEngine.java:363) 
[[email protected];09:00:00] at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249) 
[[email protected];09:00:00] at org.ow2.proactive.scripting.Script.execute(Script.java:318) 
[[email protected];09:00:00] at org.ow2.proactive.scripting.ScriptHandler.handle(ScriptHandler.java:76) 
[[email protected];09:00:00] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:337) 
[[email protected];09:00:00] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:112) 
[[email protected];09:00:00] at org.ow2.proactive.scheduler.task.TaskLauncher.doTask(TaskLauncher.java:172) 
[[email protected];09:00:00] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
[[email protected];09:00:00] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
[[email protected];09:00:00] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
[[email protected];09:00:00] at java.lang.reflect.Method.invoke(Method.java:497) 
[[email protected];09:00:00] at org.objectweb.proactive.core.mop.MethodCall.execute(MethodCall.java:353) 
[[email protected];09:00:00] at org.objectweb.proactive.core.body.request.RequestImpl.serveInternal(RequestImpl.java:214) 
[[email protected];09:00:00] at org.objectweb.proactive.core.body.request.RequestImpl.serve(RequestImpl.java:160) 
[[email protected];09:00:00] at org.objectweb.proactive.core.body.BodyImpl$ActiveLocalBodyStrategy.serveInternal(BodyImpl.java:552) 
[[email protected];09:00:00] at org.objectweb.proactive.core.body.BodyImpl$ActiveLocalBodyStrategy.serve(BodyImpl.java:485) 
[[email protected];09:00:00] at org.objectweb.proactive.core.body.AbstractBody.serve(AbstractBody.java:426) 
[[email protected];09:00:00] at org.objectweb.proactive.Service.blockingServeOldest(Service.java:206) 
[[email protected];09:00:00] at org.objectweb.proactive.Service.blockingServeOldest(Service.java:181) 
[[email protected];09:00:00] at org.objectweb.proactive.Service.fifoServing(Service.java:146) 
[[email protected];09:00:00] at org.objectweb.proactive.core.body.ActiveBody$FIFORunActive.runActivity(ActiveBody.java:337) 
[[email protected];09:00:00] at org.objectweb.proactive.core.body.ActiveBody.run(ActiveBody.java:175) 
[[email protected];09:00:00] at java.lang.Thread.run(Thread.java:745) 
[[email protected];09:00:00] Failed to execute task: [Ljava.io.Serializable; cannot be cast to [Ljava.lang.String; 
[[email protected];09:00:00] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:341) 
[[email protected];09:00:00] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:112) 
[[email protected];09:00:00] at org.ow2.proactive.scheduler.task.TaskLauncher.doTask(TaskLauncher.java:172) 
[[email protected];09:00:00] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
[[email protected];09:00:00] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
[[email protected];09:00:00] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
[[email protected];09:00:00] at java.lang.reflect.Method.invoke(Method.java:497) 
[[email protected];09:00:00] at org.objectweb.proactive.core.mop.MethodCall.execute(MethodCall.java:353) 
[[email protected];09:00:00] at org.objectweb.proactive.core.body.request.RequestImpl.serveInternal(RequestImpl.java:214) 
[[email protected];09:00:00] at org.objectweb.proactive.core.body.request.RequestImpl.serve(RequestImpl.java:160) 
[[email protected];09:00:00] at org.objectweb.proactive.core.body.BodyImpl$ActiveLocalBodyStrategy.serveInternal(BodyImpl.java:552) 
[[email protected];09:00:00] at org.objectweb.proactive.core.body.BodyImpl$ActiveLocalBodyStrategy.serve(BodyImpl.java:485) 
[[email protected];09:00:00] at org.objectweb.proactive.core.body.AbstractBody.serve(AbstractBody.java:426) 
[[email protected];09:00:00] at org.objectweb.proactive.Service.blockingServeOldest(Service.java:206) 
[[email protected];09:00:00] at org.objectweb.proactive.Service.blockingServeOldest(Service.java:181) 
[[email protected];09:00:00] at org.objectweb.proactive.Service.fifoServing(Service.java:146) 
[[email protected];09:00:00] at org.objectweb.proactive.core.body.ActiveBody$FIFORunActive.runActivity(ActiveBody.java:337) 
[[email protected];09:00:00] at org.objectweb.proactive.core.body.ActiveBody.run(ActiveBody.java:175) 
[[email protected];09:00:00] at java.lang.Thread.run(Thread.java:745) 
[[email protected];09:00:00] Caused by: org.ow2.proactive.scripting.ScriptException: [Ljava.io.Serializable; cannot be cast to [Ljava.lang.String; 
[[email protected];09:00:00] at org.ow2.parserve.PARServeEngine.eval(PARServeEngine.java:282) 
[[email protected];09:00:00] at org.ow2.parserve.PARServeEngine.eval(PARServeEngine.java:363) 
[[email protected];09:00:00] at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249) 
[[email protected];09:00:00] at org.ow2.proactive.scripting.Script.execute(Script.java:318) 
[[email protected];09:00:00] at org.ow2.proactive.scripting.ScriptHandler.handle(ScriptHandler.java:76) 
[[email protected];09:00:00] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:337) 
[[email protected];09:00:00] ... 18 more 
mbenguig added a commit to mbenguig/connector-r that referenced this issue Nov 20, 2017
mbenguig added a commit to mbenguig/connector-r that referenced this issue Nov 20, 2017
mbenguig added a commit that referenced this issue Nov 22, 2017
Fix issue #77 when iterating with a R task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants