Error with MySQL when creating file-nodes
tmseidel Mar 24, 2011 8:05 PMHi all,
I have a problem with the usage of Modeshape in combination with a JPASource and MySQL. If I use the Modeshape-rest-client library to upload files via JSON into a MySQL based repository (exactly the same code like in the documention) I get the following error-message:
javax.jcr.RepositoryException: org.modeshape.graph.connector.RepositorySourceException: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Request is frozen and may not be changed: [CompositeRequest (4)
create in the "testWork" workspace the node "/{}Chrysanthemum.jpg" with properties [{http://www.jcp.org/jcr/1.0}primaryType = {http://www.jcp.org/jcr/nt/1.0}file, {http://www.jcp.org/jcr/1.0}uuid = b3d4fa55-c793-41c8-a7df-631fc7294803, {http://www.modeshape.org/internal/1.0}nodeDefinition = {httpwww.modeshape.org1.0}root//{httpwww.jcp.orgjcrnt1.0}base]
update properties on </{}Chrysanthemum.jpg && [{http://www.modeshape.org/1.0}uuid = b3d4fa55-c793-41c8-a7df-631fc7294803]> in the "testWork" workspace to {{http://www.jcp.org/jcr/1.0}createdBy={http://www.jcp.org/jcr/1.0}createdBy = tomcat, {http://www.jcp.org/jcr/1.0}created={http://www.jcp.org/jcr/1.0}created = 2011-03-25T00:59:10.982+01:00}
create in the "testWork" workspace the node "/{}Chrysanthemum.jpg/{http://www.jcp.org/jcr/1.0}content" with properties [{http://www.jcp.org/jcr/1.0}primaryType = {http://www.jcp.org/jcr/nt/1.0}resource, {http://www.jcp.org/jcr/1.0}uuid = edad003b-bf0a-42f4-bbad-84da3d8b4445, {http://www.modeshape.org/internal/1.0}nodeDefinition = {httpwww.jcp.orgjcrnt1.0}file/{httpwww.jcp.orgjcr1.0}content/{httpwww.jcp.orgjcrnt1.0}base]
update properties on </{}Chrysanthemum.jpg/{http://www.jcp.org/jcr/1.0}content && [{http://www.modeshape.org/1.0}uuid = edad003b-bf0a-42f4-bbad-84da3d8b4445]> in the "testWork" workspace to {{http://www.jcp.org/jcr/1.0}mimeType={http://www.jcp.org/jcr/1.0}mimeType = image/jpeg, {http://www.jcp.org/jcr/1.0}lastModifiedBy={http://www.jcp.org/jcr/1.0}lastModifiedBy = tomcat, {http://www.jcp.org/jcr/1.0}data={http://www.jcp.org/jcr/1.0}data = binary (858,78KB, SHA1=f5f8ad26819a471318d24631fa5055036712a87e), {http://www.jcp.org/jcr/1.0}lastModified={http://www.jcp.org/jcr/1.0}lastModified = 2009-07-14T07:32:31.674+02:00}]
this problem does not occur if the filesize is about 100K and smaller. I've tried the same code with a HSQL database and didn't run into this problems. Do you have an idea what's the reason for this issue?
Thanks in advance,
Tom