AnsweredAssumed Answered

Activiti Explorer Issues in Weblogic 12c, Java 6 & Oracle DB

Question asked by rojans on Aug 23, 2012
I have deployed both the activiti explorer and activiti rest webapp (activiti version 5.10) in oracle weblogic server 12c (java 1.6) pointing to the oracle 10g db. Encountered the following issues.. Please help in providing a solution.. Thnx

1) On clicking the "Manage" tab in explorer threw "ORA-00942: table or view does not exist" exception. Since the source fetched the "ACTION_TABLE" table from oracle db but does not really exist in the schema. Managed to fix this issue by adding the below piece of code in org.activiti.engine.impl.persistence.entity.TableDataManager.java - getTablesPresentInDatabase()..

if ("oracle".equals(getDbSqlSession().getDbSqlSessionFactory().getDatabaseType())) {
            tableNameFilter = databaseTablePrefix+"ACT\\_%";
        }

This piece of code stopped throwing the exception, but the table objects were not listed out in explorer..


2) The Deployments - Upload New function in explorer throws OutOfMemoryError even if i try to upload a few KB file.. Have increased the memory, but no luck… problem could be with VAADIN..

<Aug 23, 2012 1:40:08 PM SGT> <Error> <HTTP> <BEA-101017> <[ServletContext@30625452[app:_auto_generated_ear_ module:activiti-custom-explorer path:null spec-version:3.0], request: weblogic.servlet.internal.ServletRequestImpl@5eb2e3[
POST /activiti-custom-explorer/APP/UPLOAD/PID542/action/f1b8e0b1-b78f-42a9-a2c2-bedd1d4a4404 HTTP/1.1
Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, */*
Referer: http://localhost:7001/activiti-custom-explorer
Accept-Language: en-us
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2; MS-RTC LM 8; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Content-Type: multipart/form-data; boundary=—————————7dcea1ec0646
Accept-Encoding: gzip, deflate
Content-Length: 138212
Connection: Keep-Alive
Cache-Control: no-cache

]] Root cause of ServletException.
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(Arrays.java:2786)
   at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:71)
   at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.readLine(AbstractCommunicationManager.java:376)
   at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleSimpleMultipartFileUpload(AbstractCommunicationManager.java:417)
   at com.vaadin.terminal.gwt.server.CommunicationManager.handleFileUpload(CommunicationManager.java:257)
   Truncated. see log file for complete stacktrace

Outcomes