UnsupportedOperationException Invoking Clientfile.download Method in J2EE Environment (Doc ID 946699.1)

Last updated on NOVEMBER 02, 2016

Applies to:

Oracle Business Process Management Suite - Version 10.3.1 and later
Information in this document applies to any platform.

Symptoms

In an automatic activity within a screenflow, there is an invocation to a BPMObject method which executes a ClientFile.downloadFileFrom as shown in the following code:

c as Fuego.Io.ClientFile = Fuego.Io.ClientFile(arg1)
c.interactive = false
b as String = downloadFileFrom(c, destination : arg2, message : "Downloading file...")

This works fine when executed in Studio but fails when the project is deployed in Enterprise for J2EE with this exception:

A component failed while executing activity '/Test1#Default-1.0/GlobalCreation[Test]' (BP-method Test).
Details: The task could not be successfully executed.
Reason: 'java.lang.UnsupportedOperationException: Cannot perform synchronous invocations on remote components'.
Caused by: Cannot perform synchronous invocations on remote components
fuego.lang.ComponentExecutionException: The task could not be successfully executed.
Reason: 'java.lang.UnsupportedOperationException: Cannot perform synchronous invocations on remote components'.
at fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:1094)
at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:405)
at fuego.server.execution.GlobalTaskExecution.invoke(GlobalTaskExecution.java:146)
at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:513)
at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:697)
at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:657)
at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:154)
at fuego.server.execution.GlobalTaskExecution.executeGlobalCIL(GlobalTaskExecution.java:116)
at fuego.server.execution.microactivity.GlobalCreationMicroActivity.continueCil(GlobalCreationMicroActivity.java:90)
at fuego.server.execution.microactivity.GlobalInteractiveMicroActivity.execute(GlobalInteractiveMicroActivity.java:69)
at fuego.server.AbstractProcessBean$44.execute(AbstractProcessBean.java:2961)
at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
at fuego.server.AbstractProcessBean.runGlobalActivity(AbstractProcessBean.java:2954)
at fuego.ejbengine.EJBProcessControlAdapter.runGlobalActivity(EJBProcessControlAdapter.java:1090)
at fuego.ejbengine.EJBProcessControl_1zamnl_EOImpl.runGlobalActivity(EJBProcessControl_1zamnl_EOImpl.java:779)
at fuego.ejbengine.EJBProcessControl_1zamnl_EOImpl_WLSkel.invoke(UnknownSource)
at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
at fuego.ejbengine.EJBProcessControl_1zamnl_EOImpl_1030_WLStub.runGlobalActivity(Unknown Source)
at fuego.papi.impl.j2ee.EJBProcessControlInterfaceWrapper.runGlobalActivity(EJBProcessControlInterfaceWrapper.java:2065)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at fuego.papi.impl.AbstractProcessControlHandler.invokeInternal(AbstractProcessControlHandler.java:72)
at fuego.papi.impl.j2ee.EJBProcessControlHandler.doInvoke(EJBProcessControlHandler.java:116)
at fuego.papi.impl.j2ee.EJBProcessControlHandler.invoke(EJBProcessControlHandler.java:70)
at $Proxy99.runGlobalActivity(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
at fuego.lang.JavaObject.invoke(JavaObject.java:227)
at fuego.papi.impl.j2ee.EJBExecution.next(EJBExecution.java:189)
at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:177)
at fuego.web.execution.impl.WebInteractiveExecution.process(WebInteractiveExecution.java:54)
at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:223)
at fuego.web.papi.TaskExecutor.processResult(TaskExecutor.java:266)
at fuego.web.papi.TaskExecutor.execute(TaskExecutor.java:101)
at fuego.workspace.servlet.ExecutorServlet.doAction(ExecutorServlet.java:117)
at fuego.workspace.servlet.BaseServlet.doPost(BaseServlet.java:229)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at fuego.workspace.servlet.AuthenticatedServlet.service(AuthenticatedServlet.java:83)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:251)
at fuego.web.execution.servlet.ServletExternalContext.forwardInternal(ServletExternalContext.java:197)
at fuego.web.execution.servlet.ServletExternalContext.finishExecution(ServletExternalContext.java:103)
at fuegoblock.ui.web.FileChooserController.service(FileChooserController.java:38)
at fuego.web.execution.servlet.ServletRedirector$ControllerRedirector.forward(ServletRedirector.java:197)
at fuego.web.execution.servlet.ServletRedirector.redirect(ServletRedirector.java:58)
at fuego.web.papi.TaskExecutor.processRedirect(TaskExecutor.java:224)
at fuego.web.papi.TaskExecutor.execute(TaskExecutor.java:104)
at fuego.workspace.servlet.ExecutorServlet.doAction(ExecutorServlet.java:117)
at fuego.workspace.servlet.BaseServlet.doPost(BaseServlet.java:229)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at fuego.workspace.servlet.AuthenticatedServlet.service(AuthenticatedServlet.java:83)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at fuego.web.filter.SingleThreadPerSessionFilter.doFilter(SingleThreadPerSessionFilter.java:64)
at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at fuego.web.filter.CharsetFilter.doFilter(CharsetFilter.java:48)
at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.UnsupportedOperationException: Cannot perform
synchronous invocations on remote components
at fuego.server.execution.RelayComponent.invokeImpl(RelayComponent.java:109)
at fuego.lang.Invokeable.invokeDynamic(Invokeable.java:188)
at xobject.Module.BPMObject.method1(BPMObject.xcdl:4)
at xobject.Fuego__AutoGen__Screenflows__.__SfTest1.initFileClient(__SfTest1.xcdl:5)
at xobject.Fuego__AutoGen__Screenflows__.__SfTest1.initFileClient_Invocator(__SfTest1.xcdl:7)
at xobject.Fuego__AutoGen__Screenflows__.__SfTest1.icFileChooser_Router(__SfTest1.xcdl:16)
at xobject.Fuego__AutoGen__Screenflows__.__SfTest1.icFileChooser_Router(__SfTest1.xcdl)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:1085)
... 87 more



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms