You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by bu...@apache.org on 2006/01/23 07:42:46 UTC

DO NOT REPLY [Bug 38353] New: - Unable to post large(>2GB) files using Slide API

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38353>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38353

           Summary: Unable to post large(>2GB) files using Slide API
           Product: Slide
           Version: 2.0
          Platform: All
        OS/Version: Windows 2000
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Stores
        AssignedTo: slide-dev@jakarta.apache.org
        ReportedBy: anupamav@aztec.soft.net


We are not able to store large files > 2GB when we use File Content Storage
(TxFileContentStore Storage).
Any file less then 2GB we are able to store into file system successfully.

When storing >2GB, we encounter the below pasted exception:

org.apache.slide.common.ServiceAccessException: Service TxFileStore at E:/Textup
loadtest/slide/store/content  working on E:/Textuploadtest/slide/work/content ac
cess error : Thread-19-1137482059804-60: Failed to undo change / create of '/113
7481500664.54_1.0' (ERR_SYSTEM)org.apache.slide.common.ServiceAccessException: S
ervice TxFileStore at E:/Textuploadtest/slide/store/content  working on E:/Textu
ploadtest/slide/work/content access error : Thread-19-1137482059804-60: Failed t
o undo change / create of '/1137481500664.54_1.0' (ERR_SYSTEM)
        at org.apache.slide.store.txfile.AbstractTxFileStoreService.throwInterna
lError(AbstractTxFileStoreService.java:433)
        at org.apache.slide.store.txfile.TxFileContentStore.storeRevisionContent
(TxFileContentStore.java:127)
        at org.apache.slide.store.txfile.TxFileContentStore.createRevisionConten
t(TxFileContentStore.java:85)
        at org.apache.slide.store.AbstractStore.createRevisionContent(Unknown So
urce)
        at org.apache.slide.store.ExtendedStore.createRevisionContent(Unknown So
urce)
        at org.apache.slide.store.BindingStore.createRevisionContent(BindingStor
e.java:556)
        at org.apache.slide.store.BindingStore.createRevisionContent(BindingStor
e.java:561)
        at org.apache.slide.content.ContentImpl.create(ContentImpl.java:538)
        at com.hyperion.eie.common.cms.WebdavPutMethod.putNewResource(Unknown So
urce)
        at com.hyperion.eie.common.cms.WebdavPutMethod.run(Unknown Source)
        at com.hyperion.eie.common.cms.WebdavPutMethod.executeMethod(Unknown Sou
rce)
        at com.sample.fileContent.Repository.uploadFile(Repository.java)

When debugging the slide code for the same we came to know the exception are 
thrown in the below code for the condition (if (contentLength != -1 && 
contentBytes != contentLength)), basically the contentLenght & contentBytes are 
not matching which should be same to store the file.

/*
In TxFileContentStore.java there are two parameters:
long contentBytes = FileHelper.copy(is, os);
long contentLength = revisionDescriptor.getContentLength();
And a condition:
if (contentLength != -1 && contentBytes != contentLength) 
{
   rm.deleteResource(getActiveTxId(), revisionUri);
   throwInternalError("Content length does not match expected");
}    
*/

When the above condition(contentLength and contentBytes) fails, the flow will 
go to delete the resource(rm.deleteResource) which is not yet stored in 
repository and the exception what we pasted above is thrown from 
rm.deleteResource() which is not actually the real cause to store large files. 
So the actuall cause what we found is value of the contentLength and 
contentBytes are not matching.

Please let us know if any one has already faced/fixed this issue in Slide2.0.
We are also trying to fix this, but it would help us if any one has already 
solution for this.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38353] - Unable to post large(>2GB) files using Slide API

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38353>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38353





------- Additional Comments From sven.pfeiffer@innoface.de  2006-01-23 08:00 -------
I envountered this problem almost one and a half year ago. One reason was that
the content-length was read as int (which overflows at 2147483647 byte, almost 2GB).
But after patching all Slide sources to use long the problem remained, so I
guess this is a bug in Tomcat (which I was using).

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38353] - Unable to post large(>2GB) files using Slide API

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38353>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38353





------- Additional Comments From anupamav@aztec.soft.net  2006-01-25 13:38 -------
The Problem we are facing is because InputStraem.available() returns a maximum 
value of 2147483647.And for 2.5GB it crosses this.
Do we have any alternative for calculating the number of bytes for the 
InputStream.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38353] - Unable to post large(>2GB) files using Slide API

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38353>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38353





------- Additional Comments From jaddressbook@gmail.com  2006-04-07 08:42 -------
java.lang.reflect.UndeclaredThrowableException
        at $Proxy0.getContentLength(Unknown Source)
        at org.apache.slide.webdav.method.PutMethod.executeRequest
(PutMethod.java:300)
        at org.apache.slide.webdav.method.AbstractWebdavMethod.run
(AbstractWebdavMethod.java:405)
        at org.apache.slide.webdav.WebdavServlet.service
(WebdavServlet.java:155)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at rogatkin.web.WebAppServlet$SimpleFilterChain.doFilter
(WebAppServlet.java:1045)
        at org.apache.slide.webdav.filter.LogFilter.doFilter
(LogFilter.java:141)
        at rogatkin.web.WebAppServlet$SimpleFilterChain.doFilter
(WebAppServlet.java:1042)
        at rogatkin.web.WebAppServlet$WebAppContextFilter.doFilter
(WebAppServlet.java:942)
        at rogatkin.web.WebAppServlet$SimpleFilterChain.doFilter
(WebAppServlet.java:1042)
        at rogatkin.web.WebAppServlet.service(WebAppServlet.java:402)
        at Acme.Serve.Serve$ServeConnection.runServlet(Serve.java:2011)
        at Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:1989)
        at Acme.Serve.Serve$ServeConnection.run(Serve.java:1827)
        at java.lang.Thread.run(Thread.java:620)
Caused by: java.lang.reflect.InvocationTargetException
        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:589)
        at rogatkin.web.WebAppServlet$WebAppContextFilter$1.invoke
(WebAppServlet.java:990)
        ... 15 more
Caused by: java.lang.NumberFormatException: For input string: "3447844432"
        at java.lang.NumberFormatException.forInputString
(NumberFormatException.java:48)
        at java.lang.Integer.parseInt(Integer.java:459)
        at java.lang.Integer.parseInt(Integer.java:497)
        at Acme.Serve.Serve$ServeConnection.getIntHeader(Serve.java:2499)
        at Acme.Serve.Serve$ServeConnection.getContentLength(Serve.java:2178)
        ... 20 more

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38353] - Unable to post large(>2GB) files using Slide API

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38353>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38353





------- Additional Comments From anupamav@aztec.soft.net  2006-01-23 07:51 -------
When we commented the below code in In TxFileContentStore.java of method 
storeRevisionContent():

if (contentLength != -1 && contentBytes != contentLength) 
{
   rm.deleteResource(getActiveTxId(), revisionUri);
   throwInternalError("Content length does not match expected");
}    

We were able to store on to the file system above 6 GB.
Does commenting this part of the code affect the normal functioning of the 
Slide2.0.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org