chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Okri (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (CMIS-360) OpenCMIS Local Binding - Factory cannot be created
Date Wed, 27 Apr 2011 11:46:03 GMT

    [ https://issues.apache.org/jira/browse/CMIS-360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025746#comment-13025746
] 

Andrew Okri edited comment on CMIS-360 at 4/27/11 11:44 AM:
------------------------------------------------------------

Florian, l hope the following is more to your expectation. I think my parameters are not right
for some reason. I have also listed the parameters for your inspection. Thanks for your patience
so far.:-

//PARAMETERS//
{org.apache.chemistry.opencmis.binding.spi.type=local, org.apache.chemistry.opencmis.binding.local.classname=org.apache.chemistry.opencmis.jcr.JcrServiceFactory,
org.apache.chemistry.opencmis.user=admin, 
jcr.org.apache.jackrabbit.repository.home=D:\JavaPrograms\JackRabbit\jackrabbit, org.apache.chemistry.opencmis.session.repository.id=D:\JavaPrograms\JackRabbit\jackrabbit,
org.apache.chemistry.opencmis.password=admin}

//ERROR STACKTRACE//
log4j:WARN No appenders could be found for logger (org.apache.chemistry.opencmis.client.bindings.spi.local.CmisLocalSpi).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Error = org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Factory
cannot be created!
	at org.apache.chemistry.opencmis.client.bindings.spi.local.CmisLocalSpi.getSpiInstance(CmisLocalSpi.java:96)
	at org.apache.chemistry.opencmis.client.bindings.impl.CmisBindingsHelper.getSPI(CmisBindingsHelper.java:81)
	at org.apache.chemistry.opencmis.client.bindings.impl.CmisBindingImpl.clearAllCaches(CmisBindingImpl.java:172)
	at org.apache.chemistry.opencmis.client.bindings.impl.CmisBindingImpl.<init>(CmisBindingImpl.java:95)
	at org.apache.chemistry.opencmis.client.bindings.CmisBindingFactory.createCmisLocalBinding(CmisBindingFactory.java:154)
	at org.apache.chemistry.opencmis.client.runtime.CmisBindingHelper.createLocalBinding(CmisBindingHelper.java:96)
	at org.apache.chemistry.opencmis.client.runtime.CmisBindingHelper.createBinding(CmisBindingHelper.java:53)
	at org.apache.chemistry.opencmis.client.runtime.SessionImpl.connect(SessionImpl.java:573)
	at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.createSession(SessionFactoryImpl.java:61)
	at com.roecastle.dms.test.documentServiceTest.testjcrCreateFolder(documentServiceTest.java:123)
	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:597)
	at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:552)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:411)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:785)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:114)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: No JCR
repository factory for configured parameters
	at org.apache.chemistry.opencmis.jcr.JcrServiceFactory.acquireJcrRepository(JcrServiceFactory.java:114)
	at org.apache.chemistry.opencmis.jcr.JcrServiceFactory.init(JcrServiceFactory.java:66)
	at org.apache.chemistry.opencmis.client.bindings.spi.local.CmisLocalSpi.getSpiInstance(CmisLocalSpi.java:94)
	... 20 more

      was (Author: aokri):
    Florian, l hope the following is more to your expectation. I think my parameters are not
right for some reason. I have also listed the parameters for your inspection. Thanks for your
patience so far.:-

{org.apache.chemistry.opencmis.binding.spi.type=local, org.apache.chemistry.opencmis.binding.local.classname=org.apache.chemistry.opencmis.jcr.JcrServiceFactory,
org.apache.chemistry.opencmis.user=admin, jcr.org.apache.jackrabbit.repository.home=D:\JavaPrograms\JackRabbit\jackrabbit,
org.apache.chemistry.opencmis.session.repository.id=D:\JavaPrograms\JackRabbit\jackrabbit,
org.apache.chemistry.opencmis.password=admin}
log4j:WARN No appenders could be found for logger (org.apache.chemistry.opencmis.client.bindings.spi.local.CmisLocalSpi).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Error = org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Factory
cannot be created!
	at org.apache.chemistry.opencmis.client.bindings.spi.local.CmisLocalSpi.getSpiInstance(CmisLocalSpi.java:96)
	at org.apache.chemistry.opencmis.client.bindings.impl.CmisBindingsHelper.getSPI(CmisBindingsHelper.java:81)
	at org.apache.chemistry.opencmis.client.bindings.impl.CmisBindingImpl.clearAllCaches(CmisBindingImpl.java:172)
	at org.apache.chemistry.opencmis.client.bindings.impl.CmisBindingImpl.<init>(CmisBindingImpl.java:95)
	at org.apache.chemistry.opencmis.client.bindings.CmisBindingFactory.createCmisLocalBinding(CmisBindingFactory.java:154)
	at org.apache.chemistry.opencmis.client.runtime.CmisBindingHelper.createLocalBinding(CmisBindingHelper.java:96)
	at org.apache.chemistry.opencmis.client.runtime.CmisBindingHelper.createBinding(CmisBindingHelper.java:53)
	at org.apache.chemistry.opencmis.client.runtime.SessionImpl.connect(SessionImpl.java:573)
	at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.createSession(SessionFactoryImpl.java:61)
	at com.roecastle.dms.test.documentServiceTest.testjcrCreateFolder(documentServiceTest.java:123)
	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:597)
	at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:552)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:411)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:785)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:114)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: No JCR
repository factory for configured parameters
	at org.apache.chemistry.opencmis.jcr.JcrServiceFactory.acquireJcrRepository(JcrServiceFactory.java:114)
	at org.apache.chemistry.opencmis.jcr.JcrServiceFactory.init(JcrServiceFactory.java:66)
	at org.apache.chemistry.opencmis.client.bindings.spi.local.CmisLocalSpi.getSpiInstance(CmisLocalSpi.java:94)
	... 20 more
  
> OpenCMIS Local Binding - Factory cannot be created
> --------------------------------------------------
>
>                 Key: CMIS-360
>                 URL: https://issues.apache.org/jira/browse/CMIS-360
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-server-jcr
>    Affects Versions: OpenCMIS 0.3.0
>         Environment: Windows7 jdk 1.6, Maven 3.0.3
>            Reporter: Andrew Okri
>
> I have configured the repository.properties file to include "jcr.org.apache.jackrabbir.repository.home=D:/javaprograms/jackrabbit/repository".
I have compiled and referenced the opencmis-sever-jcr jar but l still get "Factory cannot
be created" from the cmisLocalSPI.jar. I have also set the parameter "params.put(SessionParameter.LOCAL_FACTORY,
'org.apache.chemistry.opencmis.jcr.JcrServiceFactory')". What am l not doing?
> org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Factory cannot
be created!
> 	at org.apache.chemistry.opencmis.client.bindings.spi.local.CmisLocalSpi.getSpiInstance(CmisLocalSpi.java:96)
> 	at org.apache.chemistry.opencmis.client.bindings.impl.CmisBindingsHelper.getSPI(CmisBindingsHelper.java:81)
> 	at org.apache.chemistry.opencmis.client.bindings.impl.CmisBindingImpl.clearAllCaches(CmisBindingImpl.java:172)
> 	at org.apache.chemistry.opencmis.client.bindings.impl.CmisBindingImpl.<init>(CmisBindingImpl.java:95)
> 	at org.apache.chemistry.opencmis.client.bindings.CmisBindingFactory.createCmisLocalBinding(CmisBindingFactory.java:154)
> 	at org.apache.chemistry.opencmis.client.runtime.CmisBindingHelper.createLocalBinding(CmisBindingHelper.java:96)
> 	at org.apache.chemistry.opencmis.client.runtime.CmisBindingHelper.createBinding(CmisBindingHelper.java:53)
> 	at org.apache.chemistry.opencmis.client.runtime.SessionImpl.connect(SessionImpl.java:573)
> 	at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.createSession(SessionFactoryImpl.java:61)
> 	at com.roecastle.dms.test.documentServiceTest.testjcrCreateFolder(documentServiceTest.java:125)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message