Skip to content

Instantly share code, notes, and snippets.

View hardyoyo's full-sized avatar
🕺
husslin'

Hardy Pottinger hardyoyo

🕺
husslin'
View GitHub Profile
@hardyoyo
hardyoyo / mvn release:prepare -DdryRun=true 2012-10-23:15:46
Created October 23, 2012 20:46
dry run of maven release for dspace 3.0-rc2
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] DSpace Parent Project ............................. SUCCESS [30.945s]
[INFO] DSpace Services Framework :: API and Implementation SUCCESS [2:22.779s]
[INFO] DSpace Kernel :: API and Implementation ........... SUCCESS [1:36.378s]
[INFO] DSpace XML-UI (Manakin) ........................... SUCCESS [34.561s]
[INFO] DSpace Addon Modules .............................. SUCCESS [0.715s]
[INFO] DSpace XML-UI (Manakin) :: Local Customizations ... SUCCESS [18.627s]
[INFO] DSpace LNI ........................................ SUCCESS [15.510s]
@hardyoyo
hardyoyo / gist:3995330
Created November 1, 2012 17:47
dspace-api-lang mvn release:prepare output 2012-11-01 -- attempt 2, in Linux environment
[pottingerhj@lso-test2 dspace-api-lang]$ mvn release:prepare -Dresume=false
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building DSpace I18N :: Language Packs 3.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-release-plugin:2.3.2:prepare (default-cli) @ dspace-api-lang ---
[INFO] Verifying that there are no local modifications...
[INFO] ignoring changes on: **/pom.xml.backup, **/release.properties, **/pom.xml.branch, **/pom.xml.next, **/pom.xml.releaseBackup, **/pom.xml.tag
@hardyoyo
hardyoyo / 20121128-no-such-column-community-id
Created November 28, 2012 19:49
seeing this error when attempting to load JSPUI on a newly-upgraded from 1.8 to 3.0 db, running dspace_master
2012-11-28 13:44:41,362 INFO org.dspace.app.webui.servlet.CommunityListServlet @ anonymous:session_id=3E2425494A9B5F2F557672E9B7E2A4FD:ip_addr=128.206.162.198:view_community_list:
2012-11-28 13:44:41,369 ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/dev1-jspui].[community-list] @ Servlet.service() for servlet community-list threw exception
java.lang.IllegalArgumentException: No such column 'community_id'
at org.dspace.storage.rdbms.TableRow.canonicalizeAndCheck(TableRow.java:585)
at org.dspace.storage.rdbms.TableRow.setColumn(TableRow.java:437)
at org.dspace.storage.rdbms.DatabaseManager.process(DatabaseManager.java:1111)
at org.dspace.storage.rdbms.TableRowIterator.next(TableRowIterator.java:151)
at org.dspace.content.Community.findAllTop(Community.java:319)
at org.dspace.app.webui.servlet.CommunityListServlet.doDSGet(CommunityListServlet.java:51)
at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:11
@hardyoyo
hardyoyo / gist:4356290
Created December 21, 2012 22:29
DS-1435 Oracle bug hunt - partial stack trace of NPE
load_registries:
[java] 2012-12-20 16:15:21,901 INFO org.dspace.core.ConfigurationManager @ Loading system provided config property (-Ddspace.configuration): config/dspace.cfg
[java] 2012-12-20 16:15:21,907 INFO org.dspace.core.ConfigurationManager @ Using default log4j provided log configuration,if unintended, check your dspace.cfg for (log.init.config)
[java] Error:
[java] - null
[java] 2012-12-20 16:15:22,993 FATAL org.dspace.administer.RegistryLoader @ anonymous::error_loading_registries:
[java] java.lang.NullPointerException
[java] at org.dspace.storage.rdbms.ColumnInfo.canonicalize(ColumnInfo.java:154) #### return column.toLowerCase(); #### OK, for this to NPE, column needs to be null... why would column be null?
[java] at org.dspace.storage.rdbms.TableRow.canonicalizeAndCheck(TableRow.java:579) #### String canonicalized = ColumnInfo.canonicalize(column);
[java] at org.dspace.storage.rdbms.TableRow.setColumn(TableRow.java:437) ###
@hardyoyo
hardyoyo / build.xml
Created January 10, 2013 21:28
turned on debugging for load_registries
<?xml version="1.0"?>
<!--
The contents of this file are subject to the license and copyright
detailed in the LICENSE and NOTICE files at the root of the source
tree and available online at
http://www.dspace.org/license/
-->
@hardyoyo
hardyoyo / build.xml
Created January 10, 2013 21:29
turned on debugging for load_registries
<?xml version="1.0"?>
<!--
The contents of this file are subject to the license and copyright
detailed in the LICENSE and NOTICE files at the root of the source
tree and available online at
http://www.dspace.org/license/
-->
@hardyoyo
hardyoyo / build.xml
Created January 10, 2013 21:36
added debug to load_registries target
<?xml version="1.0"?>
<!--
The contents of this file are subject to the license and copyright
detailed in the LICENSE and NOTICE files at the root of the source
tree and available online at
http://www.dspace.org/license/
-->
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (default) on project dspace-lni-client: An Ant BuildException has occured: Error while running org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask: org.dspace.app.dav.LNISoapServlet -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :dspace-lni-client
@hardyoyo
hardyoyo / dspace32-release-dry-run-failure2
Created July 23, 2013 22:27
At tdonohue's suggestion, I tried replacing the class name at https://github.com/DSpace/DSpace/blob/master/dspace-lni/dspace-lni-client/pom.xml#L42 with the proper class name: "org.dspace.app.dav.LNISoapServlet".... should read "org.dspace.app.dav.client.LNISoapServlet". However, the same error as before is still reported. (see https://gist.gith…
[INFO] ------------------------------------------------------------------------
[INFO] Building DSpace LNI :: CLI Client Application 3.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ dspace-lni-client ---
[INFO] Deleting /var2/devspace/pottingerhj/dspace3_release/dspace-lni/dspace-lni-client/target
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ dspace-lni-client ---
[INFO]
[INFO] --- maven-antrun-plugin:1.3:run (default) @ dspace-lni-client ---
@hardyoyo
hardyoyo / gist:6082511
Created July 25, 2013 18:36
this php function is throwing syntax errors, I'm trying to figure out why
function getDomainOptions() {
$opt = <<< HERE
<option value="@foo.bar">foo.bar</option>
HERE;
return $opt;
}