Cannot create record in Fez 1.2 Beta

Help
2006-05-03
2012-10-29
  • Tassos Arvanitis

    Hi everyone,

    I'm using the new Fez Release (1.2 Beta) with Fedora 2.1. I have created communities and collections but when I try to insert (submit for approval or publish) a new record a SOAP error appears. Here's the log:

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

    Request: POST /fedora/services/management HTTP/1.0 Host: localhost:8080 Authorization: Basic YWRtaW46cm9vdGFyaXM= User-Agent: NuSOAP/0.7.2 (1.95) Content-Type: text/xml; charset=ISO-8859-1 SOAPAction: "" Content-Length: 1099 <?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns9980:addDatastream xmlns:ns9980="http://tempuri.org"><PID xsi:type="xsd:string">geognosi:29</PID><dsID xsi:type="xsd:string">presmd_Birdeye_Egypt.xml</dsID><altIDs xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:anyType[0]"></altIDs><dsLabel xsi:type="xsd:string">presmd_Birdeye_Egypt.xml</dsLabel><versionable xsi:type="xsd:boolean">false</versionable><MIMEType xsi:type="xsd:string">text/xml</MIMEType><formatURI xsi:type="xsd:string">unknown</formatURI><dsLocation xsi:type="xsd:string"></dsLocation><controlGroup xsi:type="xsd:string">X</controlGroup><dsState xsi:type="xsd:string">A</dsState><logMessage xsi:type="xsd:string">Added new datastream from Fez</logMessage></ns9980:addDatastream></SOAP-ENV:Body></SOAP-ENV:Envelope>Response: HTTP/1.1 500 Internal Server Error Content-Type: text/xml;charset=iso-8859-1 Date: Wed, 03 May 2006 17:01:24 GMT Server: Apache-Coyote/1.1 Connection: close <?xml version="1.0" encoding="ISO-8859-1"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>fedora.server.errors.GeneralException: Error with : Error getting </faultstring><detail><ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">aris</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>Debug log:

    2006-05-03 20:01:24.395289 soapclient_internal: instantiate SOAP with endpoint at http://username:password@localhost:8080/fedora/services/management
    2006-05-03 20:01:24.395562 soapclient_internal: call: operation=addDatastream, namespace=http://tempuri.org, soapAction=, rpcParams=, style=rpc, use=encoded, endpointType=soap
    params=array(11) {
    ["PID"]=>
    string(11) "geognosi:29"
    ["dsID"]=>
    string(24) "presmd_Birdeye_Egypt.xml"
    ["altIDs"]=>
    array(0) {
    }
    ["dsLabel"]=>
    string(24) "presmd_Birdeye_Egypt.xml"
    [0]=>
    object(soapval)#16 (19) {
    ["name"]=>
    string(11) "versionable"
    ["type"]=>
    string(7) "boolean"
    ["value"]=>
    string(5) "false"
    ["element_ns"]=>
    bool(false)
    ["type_ns"]=>
    bool(false)
    ["attributes"]=>
    bool(false)
    ["title"]=>
    string(6) "NuSOAP"
    ["version"]=>
    string(5) "0.7.2"
    ["revision"]=>
    string(17) "$Revision: 1.95 $"
    ["error_str"]=>
    string(0) ""
    ["debug_str"]=>
    string(0) ""
    ["charencoding"]=>
    bool(true)
    ["debugLevel"]=>
    int(9)
    ["XMLSchemaVersion"]=>
    string(32) "http://www.w3.org/2001/XMLSchema"
    ["soap_defencoding"]=>
    string(10) "ISO-8859-1"
    ["namespaces"]=>
    array(4) {
    ["SOAP-ENV"]=>
    string(41) "http://schemas.xmlsoap.org/soap/envelope/"
    ["xsd"]=>
    string(32) "http://www.w3.org/2001/XMLSchema"
    ["xsi"]=>
    string(41) "http://www.w3.org/2001/XMLSchema-instance"
    ["SOAP-ENC"]=>
    string(41) "http://schemas.xmlsoap.org/soap/encoding/"
    }
    ["usedNamespaces"]=>
    array(0) {
    }
    ["typemap"]=>
    array(6) {
    ["http://www.w3.org/2001/XMLSchema"]=>
    array(43) {
    ["string"]=>
    string(6) "string"
    ["boolean"]=>
    string(7) "boolean"
    ["float"]=>
    string(6) "double"
    ["double"]=>
    string(6) "double"
    ["decimal"]=>
    string(6) "double"
    ["duration"]=>
    string(0) ""
    ["dateTime"]=>
    string(6) "string"
    ["time"]=>
    string(6) "string"
    ["date"]=>
    string(6) "string"
    ["gYearMonth"]=>
    string(0) ""
    ["gYear"]=>
    string(0) ""
    ["gMonthDay"]=>
    string(0) ""
    ["gDay"]=>
    string(0) ""
    ["gMonth"]=>
    string(0) ""
    ["hexBinary"]=>
    string(6) "string"
    ["base64Binary"]=>
    string(6) "string"
    ["anyType"]=>
    string(6) "string"
    ["anySimpleType"]=>
    string(6) "string"
    ["normalizedString"]=>
    string(6) "string"
    ["token"]=>
    string(6) "string"
    ["language"]=>
    string(0) ""
    ["NMTOKEN"]=>
    string(0) ""
    ["NMTOKENS"]=>
    string(0) ""
    ["Name"]=>
    string(0) ""
    ["NCName"]=>
    string(0) ""
    ["ID"]=>
    string(0) ""
    ["IDREF"]=>
    string(0) ""
    ["IDREFS"]=>
    string(0) ""
    ["ENTITY"]=>
    string(0) ""
    ["ENTITIES"]=>
    string(0) ""
    ["integer"]=>
    string(7) "integer"
    ["nonPositiveInteger"]=>
    string(7) "integer"
    ["negativeInteger"]=>
    string(7) "integer"
    ["long"]=>
    string(7) "integer"
    ["int"]=>
    string(7) "integer"
    ["short"]=>
    string(7) "integer"
    ["byte"]=>
    string(7) "integer"
    ["nonNegativeInteger"]=>
    string(7) "integer"
    ["unsignedLong"]=>
    string(0) ""
    ["unsignedInt"]=>
    string(0) ""
    ["unsignedShort"]=>
    string(0) ""
    ["unsignedByte"]=>
    string(0) ""
    ["positiveInteger"]=>
    string(0) ""
    }
    ["http://www.w3.org/2000/10/XMLSchema"]=>
    array(11) {
    ["i4"]=>
    string(0) ""
    ["int"]=>
    string(7) "integer"
    ["boolean"]=>
    string(7) "boolean"
    ["string"]=>
    string(6) "string"
    ["double"]=>
    string(6) "double"
    ["float"]=>
    string(6) "double"
    ["dateTime"]=>
    string(6) "string"
    ["timeInstant"]=>
    string(6) "string"
    ["base64Binary"]=>
    string(6) "string"
    ["base64"]=>
    string(6) "string"
    ["ur-type"]=>
    string(5) "array"
    }
    ["http://www.w3.org/1999/XMLSchema"]=>
    array(11) {
    ["i4"]=>
    string(0) ""
    ["int"]=>
    string(7) "integer"
    ["boolean"]=>
    string(7) "boolean"
    ["string"]=>
    string(6) "string"
    ["double"]=>
    string(6) "double"
    ["float"]=>
    string(6) "double"
    ["dateTime"]=>
    string(6) "string"
    ["timeInstant"]=>
    string(6) "string"
    ["base64Binary"]=>
    string(6) "string"
    ["base64"]=>
    string(6) "string"
    ["ur-type"]=>
    string(5) "array"
    }
    ["http://soapinterop.org/xsd"]=>
    array(1) {
    ["SOAPStruct"]=>
    string(6) "struct"
    }
    ["http://schemas.xmlsoap.org/soap/encoding/"]=>
    array(3) {
    ["base64"]=>
    string(6) "string"
    ["array"]=>
    string(5) "array"
    ["Array"]=>
    string(5) "array"
    }
    ["http://xml.apache.org/xml-soap"]=>
    array(1) {
    [0]=>
    string(3) "Map"
    }
    }
    ["xmlEntities"]=>
    array(5) {
    ["quot"]=>
    string(1) """
    ["amp"]=>
    string(1) "&"
    ["lt"]=>
    string(1) "<"
    ["gt"]=>
    string(1) ">"
    ["apos"]=>
    string(1) "'"
    }
    }
    ["MIMEType"]=>
    string(8) "text/xml"
    ["formatURI"]=>
    string(7) "unknown"
    ["dsLocation"]=>
    string(0) ""
    ["controlGroup"]=>
    string(1) "X"
    ["dsState"]=>
    string(1) "A"
    ["logMessage"]=>
    string(29) "Added new datastream from Fez"
    }
    headers=bool(false)
    2006-05-03 20:01:24.396017 soapclient_internal: serializing param array for operation addDatastream
    2006-05-03 20:01:24.396262 soapclient_internal: in serialize_val: name=PID, type=, name_ns=, type_ns=, use=encoded
    value=string(11) "geognosi:29"
    attributes=bool(false)
    2006-05-03 20:01:24.396568 soapclient_internal: in serialize_val: name=dsID, type=, name_ns=, type_ns=, use=encoded
    value=string(24) "presmd_Birdeye_Egypt.xml"
    attributes=bool(false)
    2006-05-03 20:01:24.396862 soapclient_internal: in serialize_val: name=altIDs, type=, name_ns=, type_ns=, use=encoded
    value=array(0) {
    }
    attributes=bool(false)
    2006-05-03 20:01:24.397159 soapclient_internal: in serialize_val: name=dsLabel, type=, name_ns=, type_ns=, use=encoded
    value=string(24) "presmd_Birdeye_Egypt.xml"
    attributes=bool(false)
    2006-05-03 20:01:24.397456 soapclient_internal: in serialize_val: name=0, type=, name_ns=, type_ns=, use=encoded
    value=object(soapval)#16 (19) {
    ["name"]=>
    string(11) "versionable"
    ["type"]=>
    string(7) "boolean"
    ["value"]=>
    string(5) "false"
    ["element_ns"]=>
    bool(false)
    ["type_ns"]=>
    bool(false)
    ["attributes"]=>
    bool(false)
    ["title"]=>
    string(6) "NuSOAP"
    ["version"]=>
    string(5) "0.7.2"
    ["revision"]=>
    string(17) "$Revision: 1.95 $"
    ["error_str"]=>
    string(0) ""
    ["debug_str"]=>
    string(0) ""
    ["charencoding"]=>
    bool(true)
    ["debugLevel"]=>
    int(9)
    ["XMLSchemaVersion"]=>
    string(32) "http://www.w3.org/2001/XMLSchema"
    ["soap_defencoding"]=>
    string(10) "ISO-8859-1"
    ["namespaces"]=>
    array(4) {
    ["SOAP-ENV"]=>
    string(41) "http://schemas.xmlsoap.org/soap/envelope/"
    ["xsd"]=>
    string(32) "http://www.w3.org/2001/XMLSchema"
    ["xsi"]=>
    string(41) "http://www.w3.org/2001/XMLSchema-instance"
    ["SOAP-ENC"]=>
    string(41) "http://schemas.xmlsoap.org/soap/encoding/"
    }
    ["usedNamespaces"]=>
    array(0) {
    }
    ["typemap"]=>
    array(6) {
    ["http://www.w3.org/2001/XMLSchema"]=>
    array(43) {
    ["string"]=>
    string(6) "string"
    ["boolean"]=>
    string(7) "boolean"
    ["float"]=>
    string(6) "double"
    ["double"]=>
    string(6) "double"
    ["decimal"]=>
    string(6) "double"
    ["duration"]=>
    string(0) ""
    ["dateTime"]=>
    string(6) "string"
    ["time"]=>
    string(6) "string"
    ["date"]=>
    string(6) "string"
    ["gYearMonth"]=>
    string(0) ""
    ["gYear"]=>
    string(0) ""
    ["gMonthDay"]=>
    string(0) ""
    ["gDay"]=>
    string(0) ""
    ["gMonth"]=>
    string(0) ""
    ["hexBinary"]=>
    string(6) "string"
    ["base64Binary"]=>
    string(6) "string"
    ["anyType"]=>
    string(6) "string"
    ["anySimpleType"]=>
    string(6) "string"
    ["normalizedString"]=>
    string(6) "string"
    ["token"]=>
    string(6) "string"
    ["language"]=>
    string(0) ""
    ["NMTOKEN"]=>
    string(0) ""
    ["NMTOKENS"]=>
    string(0) ""
    ["Name"]=>
    string(0) ""
    ["NCName"]=>
    string(0) ""
    ["ID"]=>
    string(0) ""
    ["IDREF"]=>
    string(0) ""
    ["IDREFS"]=>
    string(0) ""
    ["ENTITY"]=>
    string(0) ""
    ["ENTITIES"]=>
    string(0) ""
    ["integer"]=>
    string(7) "integer"
    ["nonPositiveInteger"]=>
    string(7) "integer"
    ["negativeInteger"]=>
    string(7) "integer"
    ["long"]=>
    string(7) "integer"
    ["int"]=>
    string(7) "integer"
    ["short"]=>
    string(7) "integer"
    ["byte"]=>
    string(7) "integer"
    ["nonNegativeInteger"]=>
    string(7) "integer"
    ["unsignedLong"]=>
    string(0) ""
    ["unsignedInt"]=>
    string(0) ""
    ["unsignedShort"]=>
    string(0) ""
    ["unsignedByte"]=>
    string(0) ""
    ["positiveInteger"]=>
    string(0) ""
    }
    ["http://www.w3.org/2000/10/XMLSchema"]=>
    array(11) {
    ["i4"]=>
    string(0) ""
    ["int"]=>
    string(7) "integer"
    ["boolean"]=>
    string(7) "boolean"
    ["string"]=>
    string(6) "string"
    ["double"]=>
    string(6) "double"
    ["float"]=>
    string(6) "double"
    ["dateTime"]=>
    string(6) "string"
    ["timeInstant"]=>
    string(6) "string"
    ["base64Binary"]=>
    string(6) "string"
    ["base64"]=>
    string(6) "string"
    ["ur-type"]=>
    string(5) "array"
    }
    ["http://www.w3.org/1999/XMLSchema"]=>
    array(11) {
    ["i4"]=>
    string(0) ""
    ["int"]=>
    string(7) "integer"
    ["boolean"]=>
    string(7) "boolean"
    ["string"]=>
    string(6) "string"
    ["double"]=>
    string(6) "double"
    ["float"]=>
    string(6) "double"
    ["dateTime"]=>
    string(6) "string"
    ["timeInstant"]=>
    string(6) "string"
    ["base64Binary"]=>
    string(6) "string"
    ["base64"]=>
    string(6) "string"
    ["ur-type"]=>
    string(5) "array"
    }
    ["http://soapinterop.org/xsd"]=>
    array(1) {
    ["SOAPStruct"]=>
    string(6) "struct"
    }
    ["http://schemas.xmlsoap.org/soap/encoding/"]=>
    array(3) {
    ["base64"]=>
    string(6) "string"
    ["array"]=>
    string(5) "array"
    ["Array"]=>
    string(5) "array"
    }
    ["http://xml.apache.org/xml-soap"]=>
    array(1) {
    [0]=>
    string(3) "Map"
    }
    }
    ["xmlEntities"]=>
    array(5) {
    ["quot"]=>
    string(1) """
    ["amp"]=>
    string(1) "&"
    ["lt"]=>
    string(1) "<"
    ["gt"]=>
    string(1) ">"
    ["apos"]=>
    string(1) "'"
    }
    }
    attributes=bool(false)
    2006-05-03 20:01:24.398173 soapclient_internal: in serialize_val: name=MIMEType, type=, name_ns=, type_ns=, use=encoded
    value=string(8) "text/xml"
    attributes=bool(false)
    2006-05-03 20:01:24.398466 soapclient_internal: in serialize_val: name=formatURI, type=, name_ns=, type_ns=, use=encoded
    value=string(7) "unknown"
    attributes=bool(false)
    2006-05-03 20:01:24.398759 soapclient_internal: in serialize_val: name=dsLocation, type=, name_ns=, type_ns=, use=encoded
    value=string(0) ""
    attributes=bool(false)
    2006-05-03 20:01:24.399050 soapclient_internal: in serialize_val: name=controlGroup, type=, name_ns=, type_ns=, use=encoded
    value=string(1) "X"
    attributes=bool(false)
    2006-05-03 20:01:24.399341 soapclient_internal: in serialize_val: name=dsState, type=, name_ns=, type_ns=, use=encoded
    value=string(1) "A"
    attributes=bool(false)
    2006-05-03 20:01:24.399631 soapclient_internal: in serialize_val: name=logMessage, type=, name_ns=, type_ns=, use=encoded
    value=string(29) "Added new datastream from Fez"
    attributes=bool(false)
    2006-05-03 20:01:24.399918 soapclient_internal: wrapping RPC request with encoded method element
    2006-05-03 20:01:24.400172 soapclient_internal: In serializeEnvelope length=702 body (max 1000 characters)=geognosi:29presmd_Birdeye_Egypt.xmlpresmd_Birdeye_Egypt.xmlfalsetext/xmlunknownXAAdded new datastream from Fez style=rpc use=encoded encodingStyle=http://schemas.xmlsoap.org/soap/encoding/
    2006-05-03 20:01:24.400403 soapclient_internal: headers:
    bool(false)
    2006-05-03 20:01:24.400642 soapclient_internal: namespaces:
    array(0) {
    }
    2006-05-03 20:01:24.400923 soapclient_internal: endpoint=http://username:password@localhost:8080/fedora/services/management, soapAction=, namespace=http://tempuri.org, style=rpc, use=encoded, encodingStyle=http://schemas.xmlsoap.org/soap/encoding/
    2006-05-03 20:01:24.401155 soapclient_internal: SOAP message length=1099 contents (max 1000 bytes)=geognosi:29presmd_Birdeye_Egypt.xmlpresmd_Birdeye_Egypt.xmlfalsetext/xmlunknownXAAd
    2006-05-03 20:01:24.401406 soapclient_internal: transporting via HTTP
    2006-05-03 20:01:24.404964 soapclient_internal: sending message, length=1099
    2006-05-03 20:01:24.401674 soap_transport_http: scheme = http
    2006-05-03 20:01:24.401903 soap_transport_http: host = localhost
    2006-05-03 20:01:24.402132 soap_transport_http: port = 8080
    2006-05-03 20:01:24.402358 soap_transport_http: user = admin
    2006-05-03 20:01:24.402584 soap_transport_http: pass = rootaris
    2006-05-03 20:01:24.402810 soap_transport_http: path = /fedora/services/management
    2006-05-03 20:01:24.403046 soap_transport_http: set Host: localhost:8080
    2006-05-03 20:01:24.403288 soap_transport_http: Set credentials for authtype basic
    2006-05-03 20:01:24.403527 soap_transport_http: set Authorization: Basic YWRtaW...
    2006-05-03 20:01:24.403779 soap_transport_http: set User-Agent: NuSOAP/0.7.2 (1.95)
    2006-05-03 20:01:24.404027 soap_transport_http: set Content-Type: text/xml; charset=ISO-8859-1
    2006-05-03 20:01:24.404260 soap_transport_http: set SOAPAction: ""
    2006-05-03 20:01:24.404497 soap_transport_http: Set credentials for authtype basic
    2006-05-03 20:01:24.404734 soap_transport_http: set Authorization: Basic YWRtaW...
    2006-05-03 20:01:24.405199 soap_transport_http: entered send() with data of length: 1099
    2006-05-03 20:01:24.405439 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme http, host localhost, port 8080
    2006-05-03 20:01:24.405669 soap_transport_http: calling fsockopen with host localhost connection_timeout 0
    2006-05-03 20:01:24.407966 soap_transport_http: set response timeout to 30
    2006-05-03 20:01:24.408249 soap_transport_http: socket connected
    2006-05-03 20:01:24.408518 soap_transport_http: set Content-Length: 1099
    2006-05-03 20:01:24.408752 soap_transport_http: HTTP request: POST /fedora/services/management HTTP/1.0
    2006-05-03 20:01:24.408985 soap_transport_http: HTTP header: Host: localhost:8080
    2006-05-03 20:01:24.409217 soap_transport_http: HTTP header: Authorization: Basic YWRtaW46cm9vdGFyaXM=
    2006-05-03 20:01:24.409446 soap_transport_http: HTTP header: User-Agent: NuSOAP/0.7.2 (1.95)
    2006-05-03 20:01:24.409675 soap_transport_http: HTTP header: Content-Type: text/xml; charset=ISO-8859-1
    2006-05-03 20:01:24.409905 soap_transport_http: HTTP header: SOAPAction: ""
    2006-05-03 20:01:24.410136 soap_transport_http: HTTP header: Content-Length: 1099
    2006-05-03 20:01:24.410467 soap_transport_http: wrote data to socket, length = 1324
    2006-05-03 20:01:24.562920 soap_transport_http: read line of 36 bytes: HTTP/1.1 500 Internal Server Error
    2006-05-03 20:01:24.563343 soap_transport_http: read line of 43 bytes: Content-Type: text/xml;charset=iso-8859-1
    2006-05-03 20:01:24.563599 soap_transport_http: read line of 37 bytes: Date: Wed, 03 May 2006 17:01:24 GMT
    2006-05-03 20:01:24.563841 soap_transport_http: read line of 27 bytes: Server: Apache-Coyote/1.1
    2006-05-03 20:01:24.564083 soap_transport_http: read line of 19 bytes: Connection: close
    2006-05-03 20:01:24.564334 soap_transport_http: read line of 2 bytes:
    2006-05-03 20:01:24.564609 soap_transport_http: found end of headers after length 164
    2006-05-03 20:01:24.564906 soap_transport_http: want to read content to EOF
    2006-05-03 20:01:24.565221 soap_transport_http: read buffer of 532 bytes
    2006-05-03 20:01:24.565460 soap_transport_http: read to EOF
    2006-05-03 20:01:24.565690 soap_transport_http: read body of length 532
    2006-05-03 20:01:24.565919 soap_transport_http: received a total of 696 bytes of data from server
    2006-05-03 20:01:24.566429 soap_transport_http: closed socket
    2006-05-03 20:01:24.566758 soap_transport_http: No Content-Encoding header
    2006-05-03 20:01:24.567003 soap_transport_http: end of send()
    2006-05-03 20:01:24.567365 soapclient_internal: got response, length=532 type=text/xml;charset=iso-8859-1
    2006-05-03 20:01:24.567605 soapclient_internal: Entering parseResponse() for data of length 532 and type text/xml;charset=iso-8859-1
    2006-05-03 20:01:24.567843 soapclient_internal: Got response encoding: iso-8859-1
    2006-05-03 20:01:24.568097 soapclient_internal: Use encoding: ISO-8859-1 when creating soap_parser
    2006-05-03 20:01:24.568398 soap_parser: Charset from HTTP Content-Type matches encoding from XML declaration
    2006-05-03 20:01:24.568631 soap_parser: Entering soap_parser(), length=532, encoding=ISO-8859-1
    2006-05-03 20:01:24.569237 soap_parser: found root struct Fault, pos 2
    2006-05-03 20:01:24.569877 soap_parser: in buildVal() for detail(pos 5) of type
    2006-05-03 20:01:24.570111 soap_parser: in buildVal, there are children
    2006-05-03 20:01:24.570350 soap_parser: in buildVal, adding Java Vector or generic compound type detail
    2006-05-03 20:01:24.570596 soap_parser: in buildVal, return:
    array(1) {
    ["hostname"]=>
    &string(4) "aris"
    }
    2006-05-03 20:01:24.570911 soap_parser: in buildVal() for Fault(pos 2) of type struct
    2006-05-03 20:01:24.571141 soap_parser: in buildVal, there are children
    2006-05-03 20:01:24.571377 soap_parser: in buildVal, adding Java Vector or generic compound type Fault
    2006-05-03 20:01:24.571623 soap_parser: in buildVal, return:
    array(3) {
    ["faultcode"]=>
    &string(28) "soapenv:Server.userException"
    ["faultstring"]=>
    &string(67) "fedora.server.errors.GeneralException: Error with : Error getting "
    ["detail"]=>
    &array(1) {
    ["hostname"]=>
    &string(4) "aris"
    }
    }
    2006-05-03 20:01:24.571944 soap_parser: parsed successfully, found root struct: 2 of name Fault
    2006-05-03 20:01:24.572283 soapclient_internal: sent message successfully and got a(n) array
    return=array(3) {
    ["faultcode"]=>
    string(28) "soapenv:Server.userException"
    ["faultstring"]=>
    string(67) "fedora.server.errors.GeneralException: Error with : Error getting "
    ["detail"]=>
    array(1) {
    ["hostname"]=>
    string(4) "aris"
    }
    }
    2006-05-03 20:01:24.572537 soapclient_internal: got fault
    2006-05-03 20:01:24.572776 soapclient_internal: faultcode = soapenv:Server.userException

    2006-05-03 20:01:24.573005 soapclient_internal: faultstring = fedora.server.errors.GeneralException: Error with : Error getting

    2006-05-03 20:01:24.573234 soapclient_internal: detail = Array

    ) C:\Inetpub\wwwroot\geotopos2\include\class.fedora_api.php 785ERROR: File not created c:/temp/thumbnail_Birdeye_Egypt.jpg
    C:\Inetpub\wwwroot\geotopos2\workflow\thumbnail.php 85ERROR: File not created c:/temp/preview_Birdeye_Egypt.jpg
    C:\Inetpub\wwwroot\geotopos2\workflow\thumbnail.php 85ERROR: File not created c:/temp/web_Birdeye_Egypt.jpg
    C:\Inetpub\wwwroot\geotopos2\workflow\thumbnail.php 85
    Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\geotopos2\include\class.error_handler.php:65) in C:\Inetpub\wwwroot\geotopos2\include\class.workflow_status.php on line 246

    Can you locate the problem? The strange thing is that it worked in Fez 1.1. (Same database, same application server)

    Thanks for any help

    Anastasios Arvanitis
    National Technical University of Athens, Greece

     
    • Tassos Arvanitis

      Hi Cristiaan,

      The problem with the controlled vocabularies is solved thanks to the patch files you sent me.

      As for the JHOVE error messages I tried changing APP_JHOVE_TEMP_DIR to c:\jhove\temp/ or c:\temp/ but it didn't worked. Then I commented:

      // echo $str;

      in class.fedora_api.php and the error messages disappeared. Records are created successfully as far as I can see.

      Thanks,

      Anastasios Arvanitis
      National Technical University of Athens, Greece

       
    • Christiaan

      Christiaan - 2006-05-03

      Hi Anastasios,

      Those problems are all trying to add preservation metadata which means something is wrong with your
      JHOVE installation/config.

      Did you follow the JHOVE config steps in the Fez install instructions?

      Make sure you modify the jhove executable and make sure the paths are correct inside it and the jhove
      config file.

      Also make sure the path to the jhove executable set in your Fez config.inc.php is correct. Eg
      /usr/local/jhove if thats where it is.

      Cheers,
      Christiaan

       
    • Tassos Arvanitis

      Hi Cristiaan,

      Well, Fez 1.2 seems to let me create records of any type except for images (eg jpeg).
      Using Fez 1.1 Beta I was able to create records of any type without having JHOVE installed!

      Here's the jhove.conf file:

      <?xml version="1.0" encoding="UTF-8"?>
      <jhoveConfig version="1.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://hul.harvard.edu/ois/xml/ns/jhove/jhoveConfig"
      xsi:schemaLocation="http://hul.harvard.edu/ois/xml/ns/jhove/jhoveConfig
      http://hul.harvard.edu/ois/xml/xsd/jhove/1.3/jhoveConfig.xsd">
      <jhoveHome>C:\jhove</jhoveHome>
      <defaultEncoding>utf-8</defaultEncoding>
      <tempDirectory>C:\jhove\temp</tempDirectory>
      <bufferSize>131072</bufferSize>
      <module>
      <class>edu.harvard.hul.ois.jhove.module.AiffModule</class>
      </module>
      <module>
      <class>edu.harvard.hul.ois.jhove.module.WaveModule</class>
      </module>
      <module>
      <class>edu.harvard.hul.ois.jhove.module.PdfModule</class>
      </module>
      <module>
      <class>edu.harvard.hul.ois.jhove.module.Jpeg2000Module</class>
      </module>
      <module>
      <class>edu.harvard.hul.ois.jhove.module.JpegModule</class>
      </module>
      <module>
      <class>edu.harvard.hul.ois.jhove.module.GifModule</class>
      </module>
      <module>
      <class>edu.harvard.hul.ois.jhove.module.TiffModule</class>
      </module>
      <module>
      <class>edu.harvard.hul.ois.jhove.module.XmlModule</class>
      </module>
      <module>
      <class>edu.harvard.hul.ois.jhove.module.HtmlModule</class>
      </module>
      <module>
      <class>edu.harvard.hul.ois.jhove.module.AsciiModule</class>
      </module>
      <module>
      <class>edu.harvard.hul.ois.jhove.module.Utf8Module</class>
      </module>
      </jhoveConfig>

      And that's the jhove.bat:

      @ECHO OFF
      REM JHOVE - JSTOR/Harvard Object Validation Environment
      REM Copyright 2003-2005 by JSTOR and the President and Fellows of Harvard College
      REM JHOVE is made available under the GNU General Public License (see the
      REM file LICENSE for details)
      REM
      REM Usage: jhove [-c config] [-m module] [-h handler] [-e encoding]
      REM [-H handler] [-o output] [-x saxclass] [-t tempdir]
      REM [-b bufsize] [-l loglevel] [[-krs] dir-file-or-uri [...]]
      REM
      REM where -c config Configuration file pathname
      REM -m module Module name
      REM -h handler Output handler name (defaults to TEXT)
      REM -e encoding Character encoding of output handler (defaults to UTF-8)
      REM -H handler About handler name
      REM -o output Output file pathname (defaults to standard output)
      REM -x saxclass SAX parser class (defaults to J2SE 1.4 default)
      REM -t tempdir Temporary directory in which to create temporary files
      REM -b bufsize Buffer size for buffered I/O (defaults to J2SE default)
      REM -l loglevel Logging level
      REM -k Calculate CRC32, MD5, and SHA-1 checksums
      REM -r Display raw data flags, not textual equivalents
      REM -s Format identification based on internal signatures only
      REM dir-file-or-uri Directory, file pathname, or URI of formatted content
      REM
      REM Configuration constants:
      REM JHOVE_HOME Jhove installation directory
      REM JAVA_HOME Java JRE directory
      REM JAVA Java interpreter
      REM EXTRA_JARS Extra jar files to add to CLASSPATH

      SET JHOVE_HOME="C:\jhove"

      SET JAVA_HOME="C:\j2sdk1.4.2_10"
      SET JAVA=%JAVA_HOME%\bin\java

      SET EXTRA_JARS=

      REM NOTE: Nothing below this line should be edited
      REM #########################################################################

      SET CP=%JHOVE_HOME%\bin\JhoveApp.jar
      IF "%EXTRA_JARS%"=="" GOTO FI
      SET CP=%CP%:%EXTRA_JARS
      :FI

      REM Retrieve a copy of all command line arguments to pass to the application

      SET ARGS=
      :WHILE
      IF "%1"=="" GOTO LOOP
      SET ARGS=%ARGS% %1
      SHIFT
      GOTO WHILE
      :LOOP

      REM Set the CLASSPATH and invoke the Java loader
      %JAVA% -classpath %CP% Jhove -c %JHOVE_HOME%/conf/jhove.conf %ARGS%

      Before changing it, the last line of jhove.bat was:

      %JAVA% -classpath %CP% Jhove -c %ARGS%

      And here's the config.inc.php of my Fez installation

      ...

      if ((stristr(PHP_OS, 'win')) && (!stristr(PHP_OS, 'darwin'))) { // Windows Server
      @define("APP_TEMP_DIR", 'c:/temp/');
      @define("APP_DELETE_CMD", 'del ');
      @define("APP_DELETE_DIR", 'c:\temp\'); //Windows needs the delete path to be forward slashes
      @define("APP_CONVERT_CMD", "c:/Program Files/ImageMagick/convert"); // To convert image (part of ImageMagick)
      @define("APP_COMPOSITE_CMD", "c:/Program Files/ImageMagick/composite"); // To watermark image (part of ImageMagick)
      @define("APP_IDENTIFY_CMD", "c:/Program Files/ImageMagick/identify"); // To get image information (part of ImageMagick)
      @define("APP_JHOVE_DIR", "c:/jhove");
      @define("APP_JHOVE_TEMP_DIR", 'c:/jhove/temp/'); // jhove needs windows style dir names when run on a win server
      ini_set("include_path", ".;" . APP_PEAR_PATH);

      ...

      Do you think there's something wrong in the installation of JHOVE?

      Thanks,

      Anastasios Arvanitis
      National Technical University of Athens, Greece

       
    • Tassos Arvanitis

      Hi Cristiaan,

      Well, Fez 1.2 seems to let me create records of any type except for images (eg jpeg).
      Using Fez 1.1 Beta I was able to create records of any type without having JHOVE installed!

      Here's the jhove.conf file:

      <?xml version="1.0" encoding="UTF-8"?>
      <jhoveConfig version="1.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://hul.harvard.edu/ois/xml/ns/jhove/jhoveConfig"
      xsi:schemaLocation="http://hul.harvard.edu/ois/xml/ns/jhove/jhoveConfig
      http://hul.harvard.edu/ois/xml/xsd/jhove/1.3/jhoveConfig.xsd">
      <jhoveHome>C:\jhove</jhoveHome>
      <defaultEncoding>utf-8</defaultEncoding>
      <tempDirectory>C:\jhove\temp</tempDirectory>
      <bufferSize>131072</bufferSize>
      <module>
      <class>edu.harvard.hul.ois.jhove.module.AiffModule</class>
      </module>
      <module>
      <class>edu.harvard.hul.ois.jhove.module.WaveModule</class>
      </module>
      <module>
      <class>edu.harvard.hul.ois.jhove.module.PdfModule</class>
      </module>
      <module>
      <class>edu.harvard.hul.ois.jhove.module.Jpeg2000Module</class>
      </module>
      <module>
      <class>edu.harvard.hul.ois.jhove.module.JpegModule</class>
      </module>
      <module>
      <class>edu.harvard.hul.ois.jhove.module.GifModule</class>
      </module>
      <module>
      <class>edu.harvard.hul.ois.jhove.module.TiffModule</class>
      </module>
      <module>
      <class>edu.harvard.hul.ois.jhove.module.XmlModule</class>
      </module>
      <module>
      <class>edu.harvard.hul.ois.jhove.module.HtmlModule</class>
      </module>
      <module>
      <class>edu.harvard.hul.ois.jhove.module.AsciiModule</class>
      </module>
      <module>
      <class>edu.harvard.hul.ois.jhove.module.Utf8Module</class>
      </module>
      </jhoveConfig>

      And that's the jhove.bat:

      @ECHO OFF
      REM JHOVE - JSTOR/Harvard Object Validation Environment
      REM Copyright 2003-2005 by JSTOR and the President and Fellows of Harvard College
      REM JHOVE is made available under the GNU General Public License (see the
      REM file LICENSE for details)
      REM
      REM Usage: jhove [-c config] [-m module] [-h handler] [-e encoding]
      REM [-H handler] [-o output] [-x saxclass] [-t tempdir]
      REM [-b bufsize] [-l loglevel] [[-krs] dir-file-or-uri [...]]
      REM
      REM where -c config Configuration file pathname
      REM -m module Module name
      REM -h handler Output handler name (defaults to TEXT)
      REM -e encoding Character encoding of output handler (defaults to UTF-8)
      REM -H handler About handler name
      REM -o output Output file pathname (defaults to standard output)
      REM -x saxclass SAX parser class (defaults to J2SE 1.4 default)
      REM -t tempdir Temporary directory in which to create temporary files
      REM -b bufsize Buffer size for buffered I/O (defaults to J2SE default)
      REM -l loglevel Logging level
      REM -k Calculate CRC32, MD5, and SHA-1 checksums
      REM -r Display raw data flags, not textual equivalents
      REM -s Format identification based on internal signatures only
      REM dir-file-or-uri Directory, file pathname, or URI of formatted content
      REM
      REM Configuration constants:
      REM JHOVE_HOME Jhove installation directory
      REM JAVA_HOME Java JRE directory
      REM JAVA Java interpreter
      REM EXTRA_JARS Extra jar files to add to CLASSPATH

      SET JHOVE_HOME="C:\jhove"

      SET JAVA_HOME="C:\j2sdk1.4.2_10"
      SET JAVA=%JAVA_HOME%\bin\java

      SET EXTRA_JARS=

      REM NOTE: Nothing below this line should be edited
      REM #########################################################################

      SET CP=%JHOVE_HOME%\bin\JhoveApp.jar
      IF "%EXTRA_JARS%"=="" GOTO FI
      SET CP=%CP%:%EXTRA_JARS
      :FI

      REM Retrieve a copy of all command line arguments to pass to the application

      SET ARGS=
      :WHILE
      IF "%1"=="" GOTO LOOP
      SET ARGS=%ARGS% %1
      SHIFT
      GOTO WHILE
      :LOOP

      REM Set the CLASSPATH and invoke the Java loader
      %JAVA% -classpath %CP% Jhove -c %JHOVE_HOME%/conf/jhove.conf %ARGS%

      Before changing it, the last line of jhove.bat was:

      %JAVA% -classpath %CP% Jhove -c %ARGS%

      And here's the config.inc.php of my Fez installation

      ...

      if ((stristr(PHP_OS, 'win')) && (!stristr(PHP_OS, 'darwin'))) { // Windows Server
      @define("APP_TEMP_DIR", 'c:/temp/');
      @define("APP_DELETE_CMD", 'del ');
      @define("APP_DELETE_DIR", 'c:\temp\'); //Windows needs the delete path to be forward slashes
      @define("APP_CONVERT_CMD", "c:/Program Files/ImageMagick/convert"); // To convert image (part of ImageMagick)
      @define("APP_COMPOSITE_CMD", "c:/Program Files/ImageMagick/composite"); // To watermark image (part of ImageMagick)
      @define("APP_IDENTIFY_CMD", "c:/Program Files/ImageMagick/identify"); // To get image information (part of ImageMagick)
      @define("APP_JHOVE_DIR", "c:/jhove");
      @define("APP_JHOVE_TEMP_DIR", 'c:/jhove/temp/'); // jhove needs windows style dir names when run on a win server
      ini_set("include_path", ".;" . APP_PEAR_PATH);

      ...

      Do you think there's something wrong in the installation of JHOVE?

      Thanks,

      Anastasios Arvanitis
      National Technical University of Athens, Greece

       
    • Christiaan

      Christiaan - 2006-05-06

      Hi Anastasios,

      I just had a closer look at your debug messages and it appears to be more of a problem creating the images, and then jhove not finding them afterwards.

      So it looks like Image magick may not be installed correctly.

      Can you make sure your windows path has the image magick 'convert' etc executables path in there as well? To add to your windows path right click on my computer (on your desktop or start menu) and choose properties. Then choose the advanced tab, then click 'Environment Variables'. Edit your Path variable under 'system variables' and add the path to the executables eg c:\program files\imagemagick-6.2.5-q16. Seperate each directory in the path value with a ';'.

      Cheers,
      Christiaan

       
    • Tassos Arvanitis

      I installed Image Magick (6.2.7-q16) and the PATH variable is correctly set to point at C:\&quot;Program Files"\ImageMagick-6.2.7-Q16 where the executables reside. Actually I've done the test after the installation and everything seems to work fine with Image Magick.

      Is any other reason why Fez cannot create Images or thumbnails? I didn't have this issue using Fez 1.1 Beta. Maybe there's a change in the PHP scripts which create records in the new release?

      Besides, I have a problem managing the search keys. I've created a new controlled voacabulary and set it as search key in the advanced search menu. If this search key takes value as text, combo box, all controlled vocabularies etc everything is OK. But when I set it to get values from my new controlled vocabulary, the search key doesn't appear in the menu! Same problem with the previous release too.

      Thanks for your help,

      Anastasios Arvanitis
      National Technical University of Athens, Greece

       
    • Christiaan

      Christiaan - 2006-05-06

      Hi again,

      In your Fez config.inc.php you list the config for image magick as:

      @define("APP_CONVERT_CMD", "c:/Program Files/ImageMagick/convert"); // To convert image (part of ImageMagick)
      @define("APP_COMPOSITE_CMD", "c:/Program Files/ImageMagick/composite"); // To watermark image (part of ImageMagick)
      @define("APP_IDENTIFY_CMD", "c:/Program Files/ImageMagick/identify"); // To get image information (part of ImageMagick)

      But then you say your directory to Image magick is : C:\&quot;Program Files"\ImageMagick-6.2.7-Q16

      One of these must be wrong.

      If you put the correct path to the executables in your windows path you won't (or shouldn't) need to put the full path to identify, convert etc in the config. So they can be just:

      @define("APP_IDENTIFY_CMD", "identify"); // To get image information (part of ImageMagick)

      I hope this sorts it out for you,

      Cheers - Christiaan

       
    • Christiaan

      Christiaan - 2006-05-06

      I will look into the controlled vocab / search key problem soon. Its probably something fairly simple to fix.

      As a side test for the image magick can you go to command prompt in the root c:\ directory and type identify and press enter to make sure the windows path is setup ok? But following my previous post should fix it.

       
    • Tassos Arvanitis

      Hi Christiaan,

      Image creation eventually worked thanks to your post. The correct configuration for me is:

      @define("APP_IDENTIFY_CMD", "identify");
      ...

      However, when I try to insert a new record (eg image) the same error page of my first post appears (except for the last lines about image preview and thumbnails creation). Then, when I go to Browse Communities or My Fez, I find out that the record has been loaded successfully?! Is there any way to get rid of this error and be redirected to Browse Communities?

      PS: Did you fix the problem with the controlled vocabularies? Can you reproduce it on your installation or is it an error of my configuration only?

      Thanks for your help,

      Anastasios Arvanitis
      National Technical University of Athens, Greece

       
    • Christiaan

      Christiaan - 2006-05-09

      Hi Anastasios,

      In the default config.inc.php that comes with Fez the APP_JHOVE_TEMP_DIR is:

      @define("APP_JHOVE_TEMP_DIR", 'c:\temp/');

      There is a reason for the way the slashes are in this variable (and the ending /) at the end of the file dir location. Without the slashes being correct the Jhove script will cause errors and not run. It is a symptom of being a java app (jhove) accepting command line arguments.

      So if you change yours to :

      @define("APP_JHOVE_TEMP_DIR", 'c:\jhove\temp/');

      from :

      @define("APP_JHOVE_TEMP_DIR", 'c:/jhove/temp/');

      It could then work. If this doesnt work try making it back to the default 'c:\temp/', but this should fix jhove.

      With Fez 1.2 it prints out any errors Fez has when performing Fedora API actions (partly to assist me with your problems).

      These errors get printed out from the getsoapcall functions (2) in class.fedora_api.php. If you commented out (with //) those error print out lines then they won't show when your preservation md (jhove) fails. It would be better to fix jhove however, and i think this config fix should do it.

      As for the controlled vocab advanced search key problem, no I haven't had a chance to look into it yet, but will let you know.

      Cheers - Christiaan

       
    • Christiaan

      Christiaan - 2006-05-09

      Hi again,

      I've sent you two files to your sourceforge email address to patch the singular controlled vocab/search key bug.

      Cheers,
      Christiaan

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks