I have tried to trace the fault in ant's failure to build on Solaris 10
and Oracle 10. Below is what seems to be the fatal error and the code
from build.xml that is failing. dublin-core-types.xml,
sword-metadata.xml, and bitstreams-formats.xml are all in
/dspace/config/registries where they belong. Please help.
Marvin Weaver
load_registries:
[java] 2010-09-02 16:28:18,446 INFO
org.dspace.core.ConfigurationManager @ Loading system provided config
property (-Ddspace.configuration):
/dspacehome/dspace-1.6.2-src-release/dspace/config/dspace.cfg
[java] 2010-09-02 16:28:18,512 INFO
org.dspace.core.ConfigurationManager @ Using default log4j provided
log configuration,if uninitended, check your dspace.cfg for
(log.init.config)
[java] 2010-09-02 16:28:20,528 FATAL
org.dspace.administer.RegistryLoader @
anonymous::error_loading_registries:
[java] java.lang.NullPointerException
[java] at
org.dspace.storage.rdbms.TableRow.canonicalize(TableRow.java:674)
[java] at
org.dspace.storage.rdbms.TableRow.hasColumn(TableRow.java:110)
[java] at
org.dspace.storage.rdbms.TableRow.setColumn(TableRow.java:507)
[java] at
org.dspace.storage.rdbms.DatabaseManager.insert(DatabaseManager.java:713)
[java] at
org.dspace.storage.rdbms.DatabaseManager.create(DatabaseManager.java:490)
[java] at
org.dspace.content.BitstreamFormat.create(BitstreamFormat.java:419)
[java] at
org.dspace.administer.RegistryLoader.loadFormat(RegistryLoader.java
[java] :202)
[java] at
org.dspace.administer.RegistryLoader.loadBitstreamFormats(RegistryLoader.java:168)
[java] at
org.dspace.administer.RegistryLoader.main(RegistryLoader.java:105)
[java] Error:
[java] - null
BUILD FAILED
/dspacehome/dspace-1.6.2-src-release/dspace/target/dspace-1.6.2-build.dir/build.xml:663:
Java returned: 1
Which seems to be being caused by this part of build.xml:
<!-- ============================================================= -->
<!-- Load the initial contents of the registries into the database -->
<!-- ============================================================= -->
<!-- Loads bitstream format and Dublin Core type registries -->
<target name="load_registries" description="Load initial contents
of registries">
<!-- first import the bitstream registry -->
<java classname="org.dspace.administer.RegistryLoader"
classpathref="class.path" fork="yes" failone
rror="yes">
<sysproperty key="log4j.configuration"
value="file:config/log4j-console.properties" />
<sysproperty key="dspace.log.init.disable" value="true" />
<sysproperty key="dspace.configuration" value="${config}" />
<arg value="-bitstream" />
<arg
value="${dspace.dir}/config/registries/bitstream-formats.xml" />
</java>
<!-- finally import the metadata elements -->
<java classname="org.dspace.administer.MetadataImporter"
classpathref="class.path" fork="yes" failo
nerror="yes">
<sysproperty key="log4j.configuration"
value="file:config/log4j-console.properties" />
<sysproperty key="dspace.log.init.disable" value="true" />
<sysproperty key="dspace.configuration" value="${config}" />
<arg line="-f
'${dspace.dir}/config/registries/dublin-core-types.xml'" />
</java>
<!-- FIXME: this should be more modular -->
<!-- import the SWORD required metadata -->
<java classname="org.dspace.administer.MetadataImporter"
classpathref="class.path" fork="yes" failo
nerror="yes">
<sysproperty key="log4j.configuration"
value="file:config/log4j-console.properties" />
<sysproperty key="dspace.log.init.disable" value="true" />
<sysproperty key="dspace.configuration" value="${config}" />
<arg line="-f
'${dspace.dir}/config/registries/sword-metadata.xml'" />
</java>
</target>
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech