Errors when including a file when publishing

  • leo_holmberg

    leo_holmberg - 2006-05-11


    First some details.

    We have a Mandrake 2006 system (kernel 2.6.12-12mdksmp) running Fez 1.2 Beta,
    Fedora 2.1.1, and Java 1.4.2_04.

    When we attempt to publish a document, and we include a file to be
    uploaded we get the following error, identical to that described in
    the "Cannot create record in Fez 1.2 Beta" thread....

    ERROR: Array ( [0] => Array ( [faultcode] => soapenv:Server.userException
    [faultstring] => fedora.server.errors.GeneralException: Error with :
    Error getting [detail] => Array ( [hostname] => testmatdl ) ) [1] =>

    This is followed by a lot of debgging information that is identical to the
    debugging info in the "Cannot create record in Fez 1.2 Beta" thread.
    I won't include it here.

    At the end there is:

    /usr/local/apache2/htdocs/fez/include/class.fedora_api.php 785
    Warning: Cannot modify header information - headers already sent by
    (output started at
    /usr/local/apache2/htdocs/fez/include/class.error_handler.php:65) in
    /usr/local/apache2/htdocs/fez/include/class.workflow_status.php on line 246

    Per the above thread, I took a look at the following from

    @define("APP_TEMP_DIR", "/tmp/");
    @define("APP_JHOVE_DIR", "/usr/local/jhove");
    @define("APP_CONVERT_CMD", "/usr/bin/convert");
    @define("APP_COMPOSITE_CMD", "/usr/bin/composite");
    @define("APP_IDENTIFY_CMD", "/usr/bin/identify");

    After all this, the file gets uploaded correctly, but we are unable to
    determine whether the Preservation Metadata is created. We get:

    "Object not found" whenever we click on the Preservation Metadata Icon.

    Any thoughts/suuggestions on fixing this will
    be appreciated.

    • Christiaan

      Christiaan - 2006-05-11

      Hi Leo,

      The problem in the other thread was windows path environment misconfiguration.

      You are on linux so it will be probably be a different problem.

      When you installed JHOVE did you then afterwards modify the /usr/local/jhove/jhove executable as per the install instructions here: ?

      This is the main part:
      You will need to change the last line in the jhove executable 'jhove' (not sure why, but it doesn't work otherwise):

      * FROM: ${JAVA} -classpath $CP Jhove $ARGS -c ${JHOVE_HOME}/conf/jhove.conf
      * TO: ${JAVA} -classpath $CP Jhove -c ${JHOVE_HOME}/conf/jhove.conf $ARGS

      Also when you have the jhove executable open in your editor make sure the paths to java etc are correct. Try running the jhove executable from the
      command shell and see if it works outside Fez.

      Also can you send me the full debug message to my email address if you don't want to post it here.


    • leo_holmberg

      leo_holmberg - 2006-05-15


      Thanks a lot. We indeed needed to chaange the
      last line of the jhove.conf file as you
      suggested, and now everything is working fine.
      Thanks again.


Log in to post a comment.