Hi,
  When I try to use a PHP script to return some XML that represents a service 
deployment output I get the error "Host name must not be null" when the 
datastream in the object that uses the service has the control group "R".
  If the control group is "E" I get an exception, the relevant part of the log 
is shown below:

DEBUG 2010-12-02 09:51:31.550 [http-8080-4] (DisseminationService) Replaced 
dissURL: 
http:/127.0.0.1/fedora-collections/get_children.php?pid=(pid)&obj_type=CASE 
DissBindingInfo index: 0
DEBUG 2010-12-02 09:51:31.550 [http-8080-4] (DisseminationService) User parm 
substituted in URL: 
http:/127.0.0.1/fedora-collections/get_children.php?pid=ts%3A3000&obj_type=CASE
DEBUG 2010-12-02 09:51:31.550 [http-8080-4] (DisseminationService) 
ProtocolType: HTTP
DEBUG 2010-12-02 09:51:31.551 [http-8080-4] (DisseminationService) Finished 
assembling dissemination, 
URL=http:/127.0.0.1/fedora-collections/get_children.php?pid=ts%3A3000&obj_type=CASE
ERROR 2010-12-02 09:51:31.561 [http-8080-4] (FedoraAccessServlet) Unexpected 
error servicing API-A request
java.lang.NullPointerException: null
 at 
org.fcrepo.server.utilities.ServerUtility.isURLFedoraServer(ServerUtility.java:158)
 [fcrepo-server-3.4.jar:na]


The service op is defined as:

<wsdl:operation name="list">
                <http:operation 
location="http:/127.0.0.1/fedora-collections/get_children.php?pid=(pid)&amp;obj_type=CASE"/>
                  <wsdl:input>
                  <http:urlReplacement/>
                </wsdl:input>
                <wsdl:output>
                  <mime:content type="text/plain"/>
                </wsdl:output>
</wsdl:operation>

However, if I use the following URL as a test everything works fine.


<wsdl:operation name="list">
                <http:operation 
location="http://local.fedora.server/fedora-demo/timescapes/test.xml"/>
                <wsdl:input>
                  <http:urlReplacement/>
                </wsdl:input>
                <wsdl:output>
                  <mime:content type="text/plain"/>
                </wsdl:output>
  </wsdl:operation>

I am confused, can anybody point me in the right direction. I just want to use 
PHP scripts to query the triple store and produce XML that can be used to 
produce JSON for building navigation structures etc for a Fedora interface.

Regards,
  Ben
---------------------------------------------------------------------
Dr Ben Ryan
Timescapes Archive Technical Officer
School of Sociology and Social Policy
Faculty of Education, Social Sciences and Law
Social Science Building
The University of Leeds
Leeds LS2 9JT
Email: b.r...@leeds.ac.uk<mailto:b.r...@leeds.ac.uk>
Tel: 0113 343 7319
Website: http://www.timescapes.leeds.ac.uk<http://www.timescapes.leeds.ac.uk/>
---------------------------------------------------------------------

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to