Skip to content

Instantly share code, notes, and snippets.

View awoods's full-sized avatar

Andrew Woods awoods

  • Harvard University
View GitHub Profile
@awoods
awoods / gist:5765496
Created June 12, 2013 13:56
fcrepo-copy-federation pom error
awoods@red:~/programming/java/apps/fedora/futures/fcrepo-copy-federation$ mvn -U clean verify
[INFO] Scanning for projects...
Downloading: http://maven.fcrepo.org/nexus/content/repositories/snapshots/org/modeshape/bom/modeshape-bom-embedded/3.4-SNAPSHOT/maven-metadata.xml
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/modeshape/bom/modeshape-bom-embedded/3.4-SNAPSHOT/maven-metadata.xml
Downloading: http://maven.fcrepo.org/nexus/content/repositories/snapshots/org/modeshape/bom/modeshape-bom-embedded/3.4-SNAPSHOT/modeshape-bom-embedded-3.4-SNAPSHOT.pom
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/modeshape/bom/modeshape-bom-embedded/3.4-SNAPSHOT/modeshape-bom-embedded-3.4-SNAPSHOT.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.fcrepo:fcrepo-copy-federation:4.0-SNAPSHOT (/home/awoods/programming/java/apps/fedora/futures/fcrepo-copy-federation/pom.xml) has 4 errors
[ERROR] Non-resolvable import POM: Could no
Add to fcrepo-webapp/pom.xml
<dependency>
<groupId>org.sonatype.oss</groupId>
<artifactId>fcrepo-filesystem-modeshape-federation-connector</artifactId>
<version>7</version>
<exclusions>
<exclusion>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.fcrepo:fcrepo-example-models:jar:4.0.0-alpha-3-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.codehaus.cargo:cargo-maven2-plugin is missing. @ line 98, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
@awoods
awoods / gist:7787892
Created December 4, 2013 14:04
fcrepo-transform error
Running org.fcrepo.integration.JQLConverterIT
Tests run: 16, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.398 sec <<< FAILURE! - in org.fcrepo.integration.JQLConverterIT
testIt(org.fcrepo.integration.JQLConverterIT) Time elapsed: 0.162 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<...ource_subject].[ns00[1:bb3652744n] AS object FROM [fedora:resource] AS [fedoraResource_subject] WHERE ((([fedoraResource_subject].[ns001:bb2765355h] = 'bf2765355h' AND [fedoraResource_subject].[ns001:bb3652744n] IS NOT NULL) AND [fedoraResource_subject].[ns001:bb3652744n] LIKE 'r') AND (([fedoraResource_subject].[ns001:bb3652744n] >= 'abc' AND [fedoraResource_subject].[ns001:bb3652744n] < 'efg') OR NOT ([fedoraResource_subject].[ns001:bb3652744n] = 'efg'))) ORDER BY [fedoraResource_subject].[jcr:path] DESC, [fedoraResource_subject].[ns001]:bb3652744n] ASC LIM...> but was:<...ource_subject].[ns00[3:bb3652744n] AS object FROM [fedora:resource] AS [fedoraResource_subject] WHERE ((([fedoraResource_subject].[ns003:b
Include this around line: 41, and remove "principalProviderSet" defined at line: 27.
https://github.com/ksclarke/fcrepo4/blob/ContainerRolesPrincipalProvider-69444656/fcrepo-webapp/src/auth/webapp/WEB-INF/classes/spring/auth-repo.xml
<util:set id="principalProviderSet">
<ref bean="containerRolesProvider"/>
<ref bean="headerProvider"/>
</util:set>
Script started on Tue 28 Oct 2014 05:48:51 PM EDT
~awoods@red:~$ TMPOBJ=http://localhost:8080/rest/$RANDOM
~awoods@red:~$ # Create resource
~awoods@red:~$ curl -v -X PUT $TMPOBJ && echo
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8080 (#0)
> PUT /rest/12586 HTTP/1.1
> User-Agent: curl/7.35.0
@awoods
awoods / gist:643068077b4edae7708b
Created November 10, 2014 21:28
fcrepo-camel IT failures
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Camel Fedora Component 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ fcrepo-camel ---
[INFO] Deleting /home/awoods/programming/java/apps/fedora/futures/fcrepo-camel/target
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ fcrepo-camel ---
Script started on Thu 14 May 2015 04:14:33 PM EDT
]0;awoods@black: /opt/karaf/apache-karaf-3.0.3
awoods@black:/opt/karaf/apache-karaf-3.0.3$ rm -rf data/*
awoods@black:/opt/karaf/apache-karaf-3.0.3$ ./bin/karaf
 __ __ ____ 
 / //_/____ __________ _/ __/ 
 / ,< / __ `/ ___/ __ `/ /_ 
[INFO] Reactor Summary:
[INFO]
[INFO] Fedora Commons 4 .................................. SUCCESS [0.805s]
[INFO] Fedora Repository BOM ............................. SUCCESS [0.028s]
[INFO] Fedora Repository JCR BOM ......................... SUCCESS [0.013s]
[INFO] Fedora Repository BOMs ............................ SUCCESS [0.017s]
[INFO] Fedora Repository Kernel API ...................... SUCCESS [3.885s]
[INFO] Fedora Repository Metrics Module .................. SUCCESS [1.559s]
[INFO] Fedora Repository Minter Module ................... SUCCESS [2.450s]
[INFO] Fedora Repository Configurations Module ........... SUCCESS [0.020s]
@awoods
awoods / gist:aee217a5929bd2c81de0
Created June 18, 2015 20:02
bad sparql request
HTTP/1.1 500 Internal Server Error
Content-Length: 4982
Content-Type: text/plain
Server: Jetty(8.1.16.v20140903)
java.lang.IllegalArgumentException: Invalid SPARQL UPDATE statement:DELETE WHERE { <> <http://purl.org/dc/elements/1.1/title> ?o };
DELETE WHERE { <> <http://example.org/> ?o };
INSERT {
<> <http://purl.org/dc/elements/1.1/title> "Rally Round the Flag" .
<> <http://example.org/> "5" .