Forum Stats

  • 3,827,912 Users
  • 2,260,838 Discussions
  • 7,897,404 Comments

Discussions

Uploading Files with ALBPM

657968
657968 Member Posts: 8
Please,

I need help to upload files with jsp, in the ALBPM, someone would have some code example

Thanks.
Tagged:

Best Answer

  • 653501
    653501 Member Posts: 7
    Answer ✓
    Modify the file *"workspace.properties"* located on C:\bea\albpm6.0\enterprise\webapps\workspace\WEB-INF

    and add the following property

    fuego.workspace.servlet.Attachment.MAX_ATTACHMENT_SIZE=900000

    or the file size required

Answers

  • 651848
    651848 Member Posts: 34
    Code JSP:


    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <%@ taglib uri="http://fuego.com/jsp/ftl" prefix="f" %>



    <meta http-equiv="Content-Type" contentType="text/html;charset=ISO-8859-1"/>

    <div xmlns="http://www.w3.org/1999/xhtml">
    <link rel="stylesheet" type="text/css" media="screen" href="<f:webResources relativePath='css/bpmworkspace.css'/>">

    <form id="fileForm" method="post" enctype="multipart/form-data" name="fileForm" action="<f:postResults />">
    <table class="bpmWorkspaceAttachmentsDetail">
    <tbody>
    <tr>
    <td class="bpmWorkspaceLeftSideButton">
    <span id="uploadFormInstanceDetail:newAttachmentAttachEditor">
    <div xmlns="http://www.w3.org/1999/xhtml">
    <span id="uploadFormInstanceDetail_errorMessagesInstanceDetail_Container">
    <div id="uploadFormInstanceDetail_errorMessagesInstanceDetail">
    </div>
    </span>
    </div>
    <span id="uploadFormInstanceDetail:newAttachmentLabel" class="bpmWorkspaceAttachmentsMainHeader">Anexar Novo Arquivo
    </span>
    <table class="bpmWorkspaceTextArea">
    <tbody>
    <tr>
    <td>
    <span class="bpmWorkspaceNormalText">Select the Archiving</span>
    </td>
    <td>
    <span id="uploadFormInstanceDetail:uploadPanel">
    <input id="attachment" size="42" type="file" <f:fieldName att="BPMOBJECT.bynari"/> value="">
    </span>
    </td>
    </tr>
    <input type="hidden" id="Nome" <f:field att="BPMOBJECT.name"/>
    <tr>
    <td>
    <span class="bpmWorkspaceNormalText">Desciption</span>
    </td>
    <td>
    <textarea id="Descricao" style="WIDTH: 279px; HEIGHT: 38px" <f:fieldName att="BPMOBJECT.description"/> <f:fieldValue att="BPMOBJECT.description"/>></textarea>
    </td>
    </tr>
    </tbody>
    </table>
    <input type="button" name="Attach" value="Attach" onClick="javascript:attach();">
    <input type="button" name="Back" value="Back" onClick="javascript:close();"></td>
    <input type="hidden" id="button" <f:field att="BPMOBJECT.button/>>
    </span>
    </td>
    </tr>
    </tbody>
    </table>

    </form>

    <form id="emptyForm" name="emptyForm" method="post" action="<f:postResults/>">
    <input type="hidden" name="none" value="">
    </form>
    </div>



    Code in BPM in scrrenflow:


    Fuego.Lib.Attachment attach;

    attach.create(contents : BPMOBJECT.bynari, name : BPMOBJECT.name,
    description : BPMOBJECT.description, remarks : "");
    651848
  • 657968
    657968 Member Posts: 8
    Your code work fine, when file size is less than 100Kb, in other case i have this error

    Activity '/Postulacion#Default-1.0/GlobalCreation[ContinuarBorrador]' task 'Documentos_Router' could not execute successfully.
    Detail:Method: 'Documentos_Router', Exception: 'The method 'Documentos_Router' from class 'xobject.Fuego__AutoGen__Screenflows__.__ModificaciónFichaPostulación' could not be successfully executed.'

    Debido a: The method 'Documentos_Router' from class 'xobject.Fuego__AutoGen__Screenflows__.__ModificaciónFichaPostulación' could not be successfully executed.
    Debido a: java.lang.NullPointerException
    fuego.papi.exception.ActivityFailedException: Activity '/Postulacion#Default-1.0/GlobalCreation[ContinuarBorrador]' task 'Documentos_Router' could not execute successfully.
    Detail:Method: 'Documentos_Router', Exception: 'The method 'Documentos_Router' from class 'xobject.Fuego__AutoGen__Screenflows__.__ModificaciónFichaPostulación' could not be successfully executed.'

    at fuego.papi.exception.ActivityFailedException.create(ActivityFailedException.java:66)
    at fuego.server.AbstractProcessBean.createActivityFailedException(AbstractProcessBean.java:3308)
    at fuego.fengine.FEngineProcessBean.createActivityFailedException(FEngineProcessBean.java:346)
    at fuego.server.AbstractProcessBean.runGlobalActivity(AbstractProcessBean.java:2724)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
    at fuego.lang.JavaObject.invoke(JavaObject.java:227)
    at fuego.component.Message.process(Message.java:587)
    at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:772)
    at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:747)
    at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:143)
    at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:135)
    at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:248)
    at fuego.component.ExecutionThread.work(ExecutionThread.java:831)
    at fuego.component.ExecutionThread.run(ExecutionThread.java:409)
    at fuego.component.CustomExecution.next(CustomExecution.java:176)
    at fuego.papi.impl.rmi.RMIExecution.next(RMIExecution.java:109)
    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:228)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at fuego.workspace.servlet.AuthenticatedServlet.service(AuthenticatedServlet.java:61)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
    at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:66)
    at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:81)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:293)
    at fuego.web.execution.servlet.ServletExternalContext.forwardInternal(ServletExternalContext.java:197)
    at fuego.web.execution.servlet.ServletExternalContext.finishExecution(ServletExternalContext.java:103)
    at fuegoblock.net.web.NewJspController.service(NewJspController.java:77)
    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:228)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at fuego.workspace.servlet.AuthenticatedServlet.service(AuthenticatedServlet.java:61)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
    at fuego.web.filter.SingleThreadPerSessionFilter.doFilter(SingleThreadPerSessionFilter.java:64)
    at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
    at sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
    at fuego.web.filter.CharsetFilter.doFilter(CharsetFilter.java:48)
    at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
    at sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Unknown Source)
    Caused by: fuego.lang.ComponentExecutionException: The method 'Documentos_Router' from class 'xobject.Fuego__AutoGen__Screenflows__.__ModificaciónFichaPostulación' could not be successfully executed.
    at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:506)
    at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:260)
    at fuego.fengine.FEEngineExecutionContext.invokeMethodAsCil(FEEngineExecutionContext.java:215)
    at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:432)
    at fuego.server.execution.GlobalTaskExecution.invoke(GlobalTaskExecution.java:146)
    at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:553)
    at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:737)
    at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:697)
    at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:178)
    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$41.execute(AbstractProcessBean.java:2715)
    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:2708)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
    at fuego.lang.JavaObject.invoke(JavaObject.java:227)
    at fuego.component.Message.process(Message.java:587)
    at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:772)
    at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:747)
    at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:143)
    at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:135)
    at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:248)
    at fuego.component.ExecutionThread.work(ExecutionThread.java:831)
    at fuego.component.ExecutionThread.run(ExecutionThread.java:409)
    Caused by: java.lang.NullPointerException
    at xobject.Fuego__AutoGen__Screenflows__.__ModificaciónFichaPostulación.DocumentosToAgregarDocumento(__ModificaciónFichaPostulación.xcdl:1)
    at xobject.Fuego__AutoGen__Screenflows__.__ModificaciónFichaPostulación.Documentos_Router(__ModificaciónFichaPostulación.xcdl:21)
    at xobject.Fuego__AutoGen__Screenflows__.__ModificaciónFichaPostulación.Documentos_Router(__ModificaciónFichaPostulación.xcdl)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:499)
    ... 33 more

    Any ideas??
  • 651848
    651848 Member Posts: 34
    change in properties UpLoad File size.
    651848
  • 657968
    657968 Member Posts: 8
    Is the propertie inside portal.properties or is in other file?
  • 653501
    653501 Member Posts: 7
    Answer ✓
    Modify the file *"workspace.properties"* located on C:\bea\albpm6.0\enterprise\webapps\workspace\WEB-INF

    and add the following property

    fuego.workspace.servlet.Attachment.MAX_ATTACHMENT_SIZE=900000

    or the file size required
  • 657968
    657968 Member Posts: 8
    Thx for your help :), work perfectly
  • 658565
    658565 Member Posts: 19
    hi,

    i have tried with the code provided and its working fine. But i am facing issue with the size of the file.

    have tried setting the value for fuego.workspace.servlet.Attachment.MAX_ATTACHMENT_SIZE in workspace.properties file. but some how its not picking this value instead throwing the following error.
    (i.e, its reading 2MB as the size from somewhere. can someone suggest some solution to this issue.)

    Process execution engine execution error.
    Caused by: Max instance size exceeded.
    Current size is 16667, whereas the maximum size is 16384. This occurs with instance 'MainFlow1' at activity 'StartExecution[assigningDesc]' of process '/MainFlow#Default-1.0'
    fuego.papi.impl.EngineExecutionException: Process execution engine execution error.
    at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:139)
    at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
    at fuego.server.AbstractProcessBean.runTask(AbstractProcessBean.java:2942)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
    at fuego.lang.JavaObject.invoke(JavaObject.java:227)
    at fuego.component.Message.process(Message.java:587)
    at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:772)
    at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:747)
    at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:143)
    at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:135)
    at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:248)
    at fuego.component.ExecutionThread.work(ExecutionThread.java:831)
    at fuego.component.ExecutionThread.run(ExecutionThread.java:409)
    at fuego.component.CustomExecution.next(CustomExecution.java:176)
    at fuego.papi.impl.rmi.RMIExecution.next(RMIExecution.java:109)
    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:228)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at fuego.workspace.servlet.AuthenticatedServlet.service(AuthenticatedServlet.java:58)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at sun.reflect.GeneratedMethodAccessor97.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
    at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:66)
    at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:81)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:293)
    at fuego.web.execution.servlet.ServletExternalContext.forwardInternal(ServletExternalContext.java:197)
    at fuego.web.execution.servlet.ServletExternalContext.finishExecution(ServletExternalContext.java:103)
    at fuegoblock.net.web.NewJspController.service(NewJspController.java:77)
    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:228)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at fuego.workspace.servlet.AuthenticatedServlet.service(AuthenticatedServlet.java:58)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at sun.reflect.GeneratedMethodAccessor97.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
    at fuego.web.filter.SingleThreadPerSessionFilter.doFilter(SingleThreadPerSessionFilter.java:64)
    at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
    at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
    at fuego.web.filter.CharsetFilter.doFilter(CharsetFilter.java:48)
    at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
    at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Unknown Source)
    Caused by: fuego.server.exception.MaxInstanceSizeRuntimeException: Max instance size exceeded.
    Current size is 16667, whereas the maximum size is 16384. This occurs with instance 'MainFlow1' at activity 'StartExecution[assigningDesc]' of process '/MainFlow#Default-1.0'
    at fuego.server.ProcInst.getComponentData(ProcInst.java:791)
    at fuego.server.ProcInst.mustStoreComponent(ProcInst.java:2782)


    Thanks.
  • 658565
    658565 Member Posts: 19
    hi,

    we could solve this issue by increasing the size of the instance as part of the engine preferences :).

    now the issue is with the name of the file. for testing purpose i have hard coded the file name (as a defalut value of the attribute of the BPMObject). but how to get the file name dynamically when we select any file that is to be attached. do we need to write some code for this or do we have any inbuilt method. Pls post the code if some have already handled this.


    thanks.
This discussion has been closed.