pgaval / xcmis

Automatically exported from code.google.com/p/xcmis
0 stars 0 forks source link

GateIn CR1 xCMIS won't start, a NullPointerException is thrown #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I'm using GateIn CR1
2. I downloaded, compiled xCMIS as explained on the Wiki, 
3. I also configurer the various XML cmis file 
4. I added the lib in Gatein/lib folder as told on the wiki

When I start the application, the following NullPointerException is thrown:

What is the expected output? What do you see instead?
26 f?vr. 2010 13:57:26
org.exoplatform.services.jcr.impl.RepositoryServiceImpl start
GRAVE: Error start repository service
java.lang.NullPointerException
    at
org.exoplatform.services.jcr.impl.RepositoryServiceImpl$ManagerStartChanges.regi
sterListeners(RepositoryServiceImpl.java:463)
    at
org.exoplatform.services.jcr.impl.RepositoryServiceImpl.createRepository(Reposit
oryServiceImpl.java:153)
    at
org.exoplatform.services.jcr.impl.RepositoryServiceImpl.init(RepositoryServiceIm
pl.java:341)
    at
org.exoplatform.services.jcr.impl.RepositoryServiceImpl.start(RepositoryServiceI
mpl.java:256)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.picocontainer.defaults.LifecycleVisitor.traverse(LifecycleVisitor.java:75)
    at
org.picocontainer.defaults.LifecycleVisitor.start(LifecycleVisitor.java:113)
    at
org.picocontainer.defaults.DefaultPicoContainer.start(DefaultPicoContainer.java:
369)
    at org.exoplatform.container.PortalContainer.start(PortalContainer.java:537)
    at
org.exoplatform.container.RootContainer.createPortalContainer(RootContainer.java
:333)
    at
org.exoplatform.container.RootContainer.registerPortalContainer(RootContainer.ja
va:206)
    at
org.exoplatform.portal.application.PortalController.afterInit(PortalController.j
ava:114)
    at
org.exoplatform.container.web.AbstractHttpServlet.init(AbstractHttpServlet.java:
72)
[...]

What version of the product are you using? On what operating system?
- Mac OS 
- Java 6

Please provide any additional information below.
- When RepositoryServiceImpl iterates the list of RepositoryEntry in the
init method, it gets a Null value for one of the RepositoryEntry. Thus I
assume I have an issue somewhere in the configuration files. 

I attached my configured files : 
- $GATEIN/webapp/portal/WEB-INF/conf/cmis-configuration.xml
- $GATEIN/webapp/portal/WEB-INF/conf/configuration.xml
- $GATEIN/webapp/portal/WEB-INF/jcr/repository-configuration.xml

Thanks

Original issue reported on code.google.com by nmartign...@gmail.com on 26 Feb 2010 at 1:09

Attachments:

GoogleCodeExporter commented 9 years ago
Hello,
The problem is if have started gatein at least one time then configuration is 
persisted in JCR and is not readed from file any more. It happens because you 
have 
configured 
"org.exoplatform.services.jcr.impl.config.JDBCConfigurationPersister". Probably 
it 
was not configured in trunk of gatein (wiki describes trunk version). You need 
remove 
folder ${GATEIN_HOME}/gatein/data (if you use hqsl). NOTE: All data will be 
lost.
All you can use other existed workspace (there is article about that). In next 
release we will add one more web-application that will be able to configure 
repository in already existed JCR infrastructure.
Thanks for feedback.
Andrey.

Original comment by andrew...@gmail.com on 2 Mar 2010 at 2:27

GoogleCodeExporter commented 9 years ago

Original comment by alexey.zavizionov on 17 May 2010 at 9:40