sul-dlss-labs / ld4p-tracer-bullet-scripts

Symphony scripts that use and run the sul-dlss/ld4p-tracer-bullets
Other
0 stars 1 forks source link

Debug Symphony Auth-db error when running MarcToXML on laptop #9

Closed dazza-codes closed 7 years ago

dazza-codes commented 7 years ago

An example of the error, using the common-configure branch on my laptop:

$ LD4P_SIRSI=/data/src/dlss/ld4l/ld4p-data \
   LD4P_RDF=/data/src/dlss/ld4l/ld4p-rdf \
   ./generate_marcxml_with_auth_uris.sh 

Searching for MARC files: /data/src/dlss/ld4l/ld4p-data/Dataload/LD4P/Marc
ERROR: Conversion failed
Exception in thread "main" java.lang.NullPointerException
    at org.stanford.AuthDBConnection.open(AuthDBConnection.java:21)
    at org.stanford.MarcToXML.conn(MarcToXML.java:91)
    at org.stanford.MarcToXML.main(MarcToXML.java:46)
jgreben commented 7 years ago

Is the server.conf file in the src/main/resources folder in your project? Line 21 is trying to get that properties file to find out the connection details.

dazza-codes commented 7 years ago

Yes, it seems to be there, both the development working checkout and in the packaged JAR, i.e.

$  jar tf /data/src/dlss/ld4l/ld4p-data/bin/ld4p_converter.jar  | grep server.conf
main/resources/server.conf
dazza-codes commented 7 years ago

This was resolved by removing a custom <resources> clause from the converter POM.