Quantcast
Viewing all articles
Browse latest Browse all 16689

Publishing Large Metadata

My metadata model is greater than 10 MB and I encounter this error message when I try to publish:

Code:

ERROR [GetContent] an exception occurred
org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (17756706) exceeds the configured maximum (10000000)
at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:914)
at org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:331)
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:349)
at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)
at org.pentaho.platform.web.servlet.RepositoryFilePublisher.getFileItems(RepositoryFilePublisher.java:118)
at org.pentaho.platform.web.servlet.RepositoryFilePublisher.doGet(RepositoryFilePublisher.java:97)
at org.pentaho.platform.web.servlet.RepositoryFilePublisher.doPost(RepositoryFilePublisher.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.pentaho.platform.web.http.filters.PentahoWebContextFilter.doFilter(PentahoWebContextFilter.java:92)

A similar thread had this exact error back in 2012. They reported that the workaround is to scp the metadata model to the bi-server. They also implied that a bug was already filed about this issue. However, I've been googling for the bug number and I can't find one in the system. Is there already a bug number filed for this issue? Or should I open a new bug?

Note - This issue is not related to the mysql max_allowed_packet. Many of the existing bugs in the issue tracker deal with users who have max_allowed_packet set too low. The problem in this issue comes from lines 114-9 in org.pentaho.platform.web.servlet.RepositoryFilePublisher which has the following code:

Code:

protected List<FileItem> getFileItems(final HttpServletRequest request) throws FileUploadException {
115    ServletFileUpload fu = new ServletFileUpload(new DiskFileItemFactory());
116    // If file size exceeds, a FileUploadException will be thrown
117    fu.setSizeMax(10000000);
118    return fu.parseRequest(request);
119  }

Source: http://grepcode.com/file/repository....Publisher.java

The fu.setSizeMax sets a maximum limit of 10 MB for any metadata file that is published via the metadata editor. This value should be increased or configurable via a property file or a gui.

Viewing all articles
Browse latest Browse all 16689

Trending Articles