Skip to content

Instantly share code, notes, and snippets.

View gregjan's full-sized avatar

Gregory Jansen gregjan

View GitHub Profile
@gregjan
gregjan / catalina.out.snip
Created March 6, 2014 21:23
authz prefix not registered on cluster node
ERROR 15:44:15.400 (RepositoryCache) Error updating the query indexes: Error converting "authz:rbaclAssignable" from String to a Name
org.modeshape.jcr.value.ValueFormatException: Error converting "authz:rbaclAssignable" from String to a Name
at org.modeshape.jcr.value.basic.NameValueFactory.create(NameValueFactory.java:148) ~[modeshape-jcr-3.7.1.Final.jar:3.7.1.Final]
at org.modeshape.jcr.value.basic.NameValueFactory.create(NameValueFactory.java:56) ~[modeshape-jcr-3.7.1.Final.jar:3.7.1.Final]
at org.modeshape.jcr.cache.document.DocumentTranslator.childReferenceFrom(DocumentTranslator.java:986) ~[modeshape-jcr-3.7.1.Final.jar:3.7.1.Final]
at org.modeshape.jcr.cache.document.DocumentTranslator.childReferencesListFromArray(DocumentTranslator.java:931) ~[modeshape-jcr-3.7.1.Final.jar:3.7.1.Final]
at org.modeshape.jcr.cache.document.DocumentTranslator.getChildReferences(DocumentTranslator.java:882) ~[modeshape-jcr-3.7.1.Final.jar:3.7.1.Final]
at org.modeshape.jcr.c
#!/bin/bash
CLUSTER_PREFIX=Fedora4-
INSTALL_DIR=/data
# clean local project
killall java
sleep 20
cd $INSTALL_DIR/fcrepo-test-profiles
mvn clean
mvn -U package
@gregjan
gregjan / fedora.sh
Last active December 29, 2015 11:09
startup scripts for configuration file sets
WEBAPP_HOME=/data/tests/fcrepo4/fcrepo-webapp
STORE=/data/tests/stores
MVN_SETTINGS=/data/tests/m2/settings.xml
if [ $# -lt 1 ] ;
then
echo "usage: $(basename $0) <config dir>"
exit 1
fi
CONFIG=$(readlink -f "$1")
java.lang.NullPointerException: null
at org.modeshape.jcr.cache.document.LazyCachedNode.getPrimaryType(LazyCachedNode.java:291) ~[modeshape-jcr-3.6.0.Final.jar:3.6.0.Final]
at org.modeshape.jcr.JcrSession.node(JcrSession.java:525) ~[fcrepo-kernel-4.0.0-alpha-3-SNAPSHOT.jar:na]
at org.modeshape.jcr.JcrSession.node(JcrSession.java:484) ~[fcrepo-kernel-4.0.0-alpha-3-SNAPSHOT.jar:na]
at org.modeshape.jcr.JcrSession.node(JcrSession.java:462) ~[fcrepo-kernel-4.0.0-alpha-3-SNAPSHOT.jar:na]
at org.modeshape.jcr.JcrQueryManager$SessionQueryContext.getNode(JcrQueryManager.java:278) ~[fcrepo-kernel-4.0.0-alpha-3-SNAPSHOT.jar:na]
at org.modeshape.jcr.query.JcrQueryResult$SingleSelectorQueryResultRowIterator.getNextRow(JcrQueryResult.java:434) ~[modeshape-jcr-3.6.0.Final.jar:3.6.0.Final]
at org.modeshape.jcr.query.JcrQueryResult$QueryResultRowIterator.hasNext(JcrQueryResult.java:341) ~[modeshape-jcr-3.6.0.Final.jar:3.6.0.Final]
at org.fcrepo.kernel.utils.FedoraTypesUtils.getRepositorySize(FedoraTypesUtils.java:416
@gregjan
gregjan / gist:7647595
Created November 25, 2013 19:47
Setting storage locations for ispn/mode
STORE=/data/tests/stores
FEDORA_OPTS="\
-Dfcrepo.modeshape.configuration=classpath:/config/minimal/repository.json \
-Dcom.arjuna.ats.arjuna.common.ObjectStoreEnvironmentBean.default.objectStoreDir=$STORE/arjuna.default.objectstore \
-Dcom.arjuna.ats.arjuna.objectstore.objectStoreDir=$STORE/arjuna.objectstore \
-Dfcrepo.ispn.CacheDirPath=$STORE/ispn \
-Dfcrepo.ispn.binary.CacheDirPath=$STORE/ispn.binary \
-Dfcrepo.modeshape.index.location=$STORE/modeshape.index \
-Dfcrepo.ispn.alternative.CacheDirPath=$STORE/ispn.alternative \
@gregjan
gregjan / object rdf.n3
Created October 24, 2013 14:24
RDF graph for fedora object with an ACL
@prefix dc: <http://purl.org/dc/terms/> .
@prefix nt: <http://www.jcp.org/jcr/nt/1.0> .
@prefix fcrepo: <http://fedora.info/definitions/v4/repository#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix test: <info:fedora/test/> .
@prefix xs: <http://www.w3.org/2001/XMLSchema> .
@prefix image: <http://www.modeshape.org/images/1.0> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix fedorarelsext: <http://fedora.info/definitions/v4/rels-ext#> .
@prefix xmlns: <http://www.w3.org/2000/xmlns/> .
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<!-- Context that supports the actual ModeShape JCR itself -->
@gregjan
gregjan / workbench
Created September 10, 2012 20:22
Lauch script for Curator's Workbench MacOSX and Java 7
#!/bin/sh
#
# edit the INSTALL_PATH below to reflect your install location
INSTALL_PATH=/Users/count0/Desktop
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_06.jdk/Contents/Home
LAUNCHER_JAR=$INSTALL_PATH/curators-workbench/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
java \
-showversion \
-XX:MaxPermSize=256m \
@gregjan
gregjan / gist:1270834
Created October 7, 2011 17:20
ant tasks for posting Cw downloads/repo
<tasks>
<if>
<contains
string="${project.version}"
substring="-SNAPSHOT" />
<then>
<sshexec
host="${cw.deploy.host}"
username="${cw.deploy.username}"
passphrase="${cw.deploy.passphrase}"
@gregjan
gregjan / cw_project_tree.txt
Created September 26, 2011 21:00
A brainstorm for the Curator's Workbench Project Tree
XYZ Lab Collection <-- the project
- Originals
+ XYZ Thumb Drive
- XYZ Newspaper Drive
- Scanned Images
* akk1001.tif [captured staged]
* akk1002.tif [captured queued]
* akk1003.tif
...
- OCR files