You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "liuyanyan (JIRA)" <ji...@apache.org> on 2011/08/22 08:48:29 UTC
[jira] [Created] (CMIS-421) Length Required exception when execute
folder.create(params)
Length Required exception when execute folder.create(params)
------------------------------------------------------------
Key: CMIS-421
URL: https://issues.apache.org/jira/browse/CMIS-421
Project: Chemistry
Issue Type: Bug
Components: opencmis-client
Affects Versions: 0.2.0-incubating
Reporter: liuyanyan
I execute the folder.create(params). When in verision 0.1.0, it works fine. But when I change the chemistry opencmis version from 0.1.0 to 0.2.0, there will be a Length Required exception.
Here is the stack trace:
org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Length Required
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:409)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:497)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.createFolder(ObjectServiceImpl.java:151)
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createFolder(SessionImpl.java:676)
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createFolder(FolderImpl.java:128)
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createFolder(FolderImpl.java:411)
at org.bonitasoft.connectors.cmisclient.CreateSubfolder.createSubFolderByPath(CreateSubfolder.java:79)
at org.bonitasoft.connectors.cmisclient.CreateSubfolder.executeConnector(CreateSubfolder.java:46)
at org.ow2.bonita.connector.core.Connector.execute(Connector.java:218)
at org.bonitasoft.connectors.cmisclient.CreateSubfolderTest.testCreateSubfolder(CreateSubfolderTest.java:32)
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 junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CMIS-421) Length Required exception when
execute folder.create(params)
Posted by "liuyanyan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CMIS-421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13089293#comment-13089293 ]
liuyanyan commented on CMIS-421:
--------------------------------
Hi,
Thanks for your quick reply. I changed to another server for test. And create folder can worked well. Then we will test other operations that refered to create just in case. Thank you very much!
> Length Required exception when execute folder.create(params)
> ------------------------------------------------------------
>
> Key: CMIS-421
> URL: https://issues.apache.org/jira/browse/CMIS-421
> Project: Chemistry
> Issue Type: Bug
> Components: opencmis-client
> Affects Versions: 0.2.0-incubating
> Reporter: liuyanyan
>
> I execute the folder.create(params). When in verision 0.1.0, it works fine. But when I change the chemistry opencmis version from 0.1.0 to 0.2.0, there will be a Length Required exception.
> Here is the stack trace:
> org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Length Required
> at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:409)
> at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:497)
> at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.createFolder(ObjectServiceImpl.java:151)
> at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createFolder(SessionImpl.java:676)
> at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createFolder(FolderImpl.java:128)
> at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createFolder(FolderImpl.java:411)
> at org.bonitasoft.connectors.cmisclient.CreateSubfolder.createSubFolderByPath(CreateSubfolder.java:79)
> at org.bonitasoft.connectors.cmisclient.CreateSubfolder.executeConnector(CreateSubfolder.java:46)
> at org.ow2.bonita.connector.core.Connector.execute(Connector.java:218)
> at org.bonitasoft.connectors.cmisclient.CreateSubfolderTest.testCreateSubfolder(CreateSubfolderTest.java:32)
> 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 junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
> at junit.framework.TestSuite.run(TestSuite.java:203)
> at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CMIS-421) Length Required exception when
execute folder.create(params)
Posted by "Florian Müller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CMIS-421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13088633#comment-13088633 ]
Florian Müller commented on CMIS-421:
-------------------------------------
The client library sends POST requests in chunks since OpenCMIS 0.2 in order to deal with huge documents. That is, the Content-Length header is not set.
A HTTP 1.1 server should be able to handle that.
This is a server issue, not an OpenCMIS client issue.
> Length Required exception when execute folder.create(params)
> ------------------------------------------------------------
>
> Key: CMIS-421
> URL: https://issues.apache.org/jira/browse/CMIS-421
> Project: Chemistry
> Issue Type: Bug
> Components: opencmis-client
> Affects Versions: 0.2.0-incubating
> Reporter: liuyanyan
>
> I execute the folder.create(params). When in verision 0.1.0, it works fine. But when I change the chemistry opencmis version from 0.1.0 to 0.2.0, there will be a Length Required exception.
> Here is the stack trace:
> org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Length Required
> at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:409)
> at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:497)
> at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.createFolder(ObjectServiceImpl.java:151)
> at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createFolder(SessionImpl.java:676)
> at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createFolder(FolderImpl.java:128)
> at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createFolder(FolderImpl.java:411)
> at org.bonitasoft.connectors.cmisclient.CreateSubfolder.createSubFolderByPath(CreateSubfolder.java:79)
> at org.bonitasoft.connectors.cmisclient.CreateSubfolder.executeConnector(CreateSubfolder.java:46)
> at org.ow2.bonita.connector.core.Connector.execute(Connector.java:218)
> at org.bonitasoft.connectors.cmisclient.CreateSubfolderTest.testCreateSubfolder(CreateSubfolderTest.java:32)
> 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 junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
> at junit.framework.TestSuite.run(TestSuite.java:203)
> at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CMIS-421) Length Required exception when execute
folder.create(params)
Posted by "Florian Müller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CMIS-421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Florian Müller resolved CMIS-421.
---------------------------------
Resolution: Not A Problem
> Length Required exception when execute folder.create(params)
> ------------------------------------------------------------
>
> Key: CMIS-421
> URL: https://issues.apache.org/jira/browse/CMIS-421
> Project: Chemistry
> Issue Type: Bug
> Components: opencmis-client
> Affects Versions: 0.2.0-incubating
> Reporter: liuyanyan
>
> I execute the folder.create(params). When in verision 0.1.0, it works fine. But when I change the chemistry opencmis version from 0.1.0 to 0.2.0, there will be a Length Required exception.
> Here is the stack trace:
> org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Length Required
> at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:409)
> at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:497)
> at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.createFolder(ObjectServiceImpl.java:151)
> at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createFolder(SessionImpl.java:676)
> at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createFolder(FolderImpl.java:128)
> at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createFolder(FolderImpl.java:411)
> at org.bonitasoft.connectors.cmisclient.CreateSubfolder.createSubFolderByPath(CreateSubfolder.java:79)
> at org.bonitasoft.connectors.cmisclient.CreateSubfolder.executeConnector(CreateSubfolder.java:46)
> at org.ow2.bonita.connector.core.Connector.execute(Connector.java:218)
> at org.bonitasoft.connectors.cmisclient.CreateSubfolderTest.testCreateSubfolder(CreateSubfolderTest.java:32)
> 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 junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
> at junit.framework.TestSuite.run(TestSuite.java:203)
> at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CMIS-421) Length Required exception when
execute folder.create(params)
Posted by "liuyanyan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CMIS-421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13088553#comment-13088553 ]
liuyanyan commented on CMIS-421:
--------------------------------
By the way, folder.delete(true) works fine in both chemistry opencmis version. But all operations that refered to create will cause Length Required exception. Event I tried the chemistry-opencmis-client-bindings-0.3.0.jar, the problem still exists.
I have searched on the internet, but no result. Few similar problem as this. Any body knows please help me out. Thanks!
> Length Required exception when execute folder.create(params)
> ------------------------------------------------------------
>
> Key: CMIS-421
> URL: https://issues.apache.org/jira/browse/CMIS-421
> Project: Chemistry
> Issue Type: Bug
> Components: opencmis-client
> Affects Versions: 0.2.0-incubating
> Reporter: liuyanyan
>
> I execute the folder.create(params). When in verision 0.1.0, it works fine. But when I change the chemistry opencmis version from 0.1.0 to 0.2.0, there will be a Length Required exception.
> Here is the stack trace:
> org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Length Required
> at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:409)
> at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:497)
> at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.createFolder(ObjectServiceImpl.java:151)
> at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createFolder(SessionImpl.java:676)
> at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createFolder(FolderImpl.java:128)
> at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createFolder(FolderImpl.java:411)
> at org.bonitasoft.connectors.cmisclient.CreateSubfolder.createSubFolderByPath(CreateSubfolder.java:79)
> at org.bonitasoft.connectors.cmisclient.CreateSubfolder.executeConnector(CreateSubfolder.java:46)
> at org.ow2.bonita.connector.core.Connector.execute(Connector.java:218)
> at org.bonitasoft.connectors.cmisclient.CreateSubfolderTest.testCreateSubfolder(CreateSubfolderTest.java:32)
> 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 junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
> at junit.framework.TestSuite.run(TestSuite.java:203)
> at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira