i am having problems backing up the jcr on Gatein 3.1 GA.
According to documentation you need to enable backup in the jcr config as this:
<component>
<key>org.exoplatform.services.jcr.ext.backup.BackupManager</key>
<type>org.exoplatform.services.jcr.ext.backup.impl.BackupManagerImpl</type>
<init-params>
<properties-param>
<name>backup-properties</name>
<property name="default-incremental-job-period" value="3600" /> <!-- set default incremental period = 60 minutes -->
<property name="full-backup-type" value="org.exoplatform.services.jcr.ext.backup.impl.fs.FullBackupJob" />
<property name="incremental-backup-type" value="org.exoplatform.services.jcr.ext.backup.impl.fs.IncrementalBackupJob" />
<property name="backup-dir" value="target/backup" />
</properties-param>
</init-params>
</component>
i have done that and can access the backup manager implementation via browser:
http://localhost:8080/rest/jcr-backup/info
that will output information about the above mentioned conf in json format.
Next i have checked out jcr 1.12.5-GA from repository anonsvn.jboss.org and build the backup client according to documentation with:
mvn clean install -P deploy
it builds fine - no errors. But when i run the client like this:
./jcrbackup.sh http://root:gtn@127.0.0.1:8080 info
i get this error:
Exception in thread "main" java.lang.NullPointerException
at org.exoplatform.jcr.backupconsole.ClientTransportImpl.getRealm(ClientTransportImpl.java:101)
at org.exoplatform.jcr.backupconsole.ClientTransportImpl.executeGET(ClientTransportImpl.java:167)
at org.exoplatform.jcr.backupconsole.BackupClientImpl.info(BackupClientImpl.java:306)
at org.exoplatform.jcr.backupconsole.BackupConsole.main(BackupConsole.java:269)
Exception in thread "main" java.lang.NullPointerException
at org.exoplatform.jcr.backupconsole.ClientTransportImpl.getRealm(ClientTransportImpl.java:101)
at org.exoplatform.jcr.backupconsole.ClientTransportImpl.executeGET(ClientTransportImpl.java:167)
at org.exoplatform.jcr.backupconsole.BackupClientImpl.info(BackupClientImpl.java:306)
at org.exoplatform.jcr.backupconsole.BackupConsole.main(BackupConsole.java:269)
does enybody have a clue why it is complaining? - or if have missed out on some configuration. I have tested with Gatein 3.1 GA plain - no changes at all.
Thanks in advance.
Regards
Kåre