Thanks!

-Akara

Joshua Schnee wrote:
The messages started indicating a permissions issue after I upgraded Geocoder.php. Geocoder.php was set to rwx for only the root user, changing to all users fixes what I saw... On Thu, Oct 8, 2009 at 2:11 PM, Akara Sucharitakul <[email protected] <mailto:[email protected]>> wrote:

    Can you please elaborate what permission issue has caused it? Thanks.

    -Akara

    Joshua Schnee wrote:

        By using the included Geocoder.php I was able to determine that
        there was a permissions issue with the file itself.  After
        correcting it, there errors go away.

        Thanks for the help,


        On Wed, Oct 7, 2009 at 11:36 AM, Akara Sucharitakul
        <[email protected] <mailto:[email protected]>
        <mailto:[email protected]
        <mailto:[email protected]>>> wrote:

           Turns out the file I attached was before saving the changes.
        Please
           use this one instead. Thanks.

           -Akara


           Akara Sucharitakul wrote:

               This looks good to me (as I suspected). Based on this and the
               previous error you've got, the problem tends to be in
               classes/Geocoder.php line 33. Also the single quote on
        the php
               may not have allowed for proper formatting.

               I've made some very minor changes to Geocoder.php, just
        to make
               sure the messages come out right. Can you please try drop
        it in
               and see whether the $stream shows up in the message? If it
               doesn't, we need to check what curl_string is doing. It's
        also a
               function in this file.

               Thanks,
               -Akara

               Joshua Schnee wrote:

                   So here's the results from my manual test.  I'm still
        seeing
                   these errors in my httpd error_log, but the manual
        request
                   looks OK to me.  Am I missing something?

                   URL request:
http://192.168.1.5:8080/geocoder/geocode?street=186+Qgt+Blvd&city=avhtapshc&state=IG&zip=62221&;
        
<http://192.168.1.5:8080/geocoder/geocode?street=186+Qgt+Blvd&city=avhtapshc&state=IG&zip=62221&;>
<http://192.168.1.5:8080/geocoder/geocode?street=186+Qgt+Blvd&city=avhtapshc&state=IG&zip=62221&;
        
<http://192.168.1.5:8080/geocoder/geocode?street=186+Qgt+Blvd&city=avhtapshc&state=IG&zip=62221&;>>
<http://192.168.1.5:8080/geocoder/geocode?street=186+Qgt+Blvd&city=avhtapshc&state=IG&zip=62221&;
        
<http://192.168.1.5:8080/geocoder/geocode?street=186+Qgt+Blvd&city=avhtapshc&state=IG&zip=62221&;>
<http://192.168.1.5:8080/geocoder/geocode?street=186+Qgt+Blvd&city=avhtapshc&state=IG&zip=62221&;
        
<http://192.168.1.5:8080/geocoder/geocode?street=186+Qgt+Blvd&city=avhtapshc&state=IG&zip=62221&;>>>


                   <?xml version="1.0" ?>
                   <ResultSet xmlns="urn:yahoo:maps"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
                   xsi:schemaLocation="urn:yahoo:maps
http://api.local.yahoo.com/MapsService/V1/GeocodeResponse.xsd";>
                   <Result precision="address">
                   <Latitude>
                   33.0000
                   </Latitude><Longitude>
                   -177.0000
                   </Longitude><Address>
                   186 Qgt Blvd
                   </Address><City>
                   avhtapshc
                   </City><State>
                   IG
                   </State><zip>
                   62221
                   </zip><Country>
                   USA

                   </Country>
                   </Result>
                   </ResultSet>


                   BTW, I've since needed to change my ipaddress, so
        here's my
                   updated geocoder entry in config.php.
                   $olioconfig['geocoderURL'] =
                   'http://192.168.1.5:8080/geocoder/geocode';
        //Geocoder URL

                   Thanks,

                   On Mon, Oct 5, 2009 at 9:32 PM, Akara Sucharitakul
                   <[email protected]
        <mailto:[email protected]>
                   <mailto:[email protected]
        <mailto:[email protected]>>
                   <mailto:[email protected]
        <mailto:[email protected]>
                   <mailto:[email protected]
        <mailto:[email protected]>>>> wrote:

                      Josh,

                      Here's the request URL generation from the php code.

                             $url =
                   Web20::$config['geocoderURL'].'?appid=gsd5f&street='.
                                     $this->street.'&city='.$this->city.
'&state='.$this->state.'&zip='.$this0->zip;

                      Try making a request based on this get request string.
                   The fields
                      are in the exception you sent. (186 Qgt Blvd...)

                      Let me know what comes out in your case. You can
        use the
                   browser to
                      make that request. Just do a view page source on the
                   response to see
                      the xml. Thanks.

                      -Akara



                       Joshua Schnee wrote:

                          Hi,

                          I'm wondering if there is a good way to test the
                   tomcat/geocoder
                          setup.  Both my SUT and client seem to be able to
                   reach the
                          geocoder but I'm currently seeing the following
                   errors in my
                          httpd error_log.

                          /[Thu Oct 01 19:30:49 2009] [error] [client
        10.20.52.194]
                          exception 'Exception' with message 'Did not
        find xml
                   part in:
                          $stream' in
                   /var/www/html/oliophp/classes/Geocoder.php:36\nStack
                          trace:\n#0
/var/www/html/oliophp/public_html/addEventResult.php(52):
                          Geocoder->__construct('186+Qgt+Blvd',
        'avhtapshct', 'IG',
                          '62221')\n#1 {main}
                          /
                          In the past, this meant that my geocoder
        wasn't up or
                   configured
                          appropriately in the config.php.  I am trying
        to run
                   it on the
                          same system as the one under test so my config.php
                   has the
                          following line :
                          $olioconfig['geocoderURL'] =
                          'http://10.20.52.197:8080/geocoder/geocode';
                   //Geocoder URL

                          This url gives the following output for both
        the SUT
                   and the
                          client driver.

                          SUT:
                          33.0000 -177.0000
                          null
                          null null null USA

                          Client:
                           <?xml version="1.0" ?>
                          - <ResultSet xmlns="urn:yahoo:maps"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
                          xsi:schemaLocation="urn:yahoo:maps
http://api.local.yahoo.com/MapsService/V1/GeocodeResponse.xsd";>
                          - <Result precision="address">
                           <Latitude>33.0000</Latitude>
                           <Longitude>-177.0000</Longitude>
                           <Address>null</Address>
                           <City>null</City>
                           <State>null</State>
                           <zip>null</zip>
                           <Country>USA</Country>
                           </Result>
                           </ResultSet>
                          --         SUT IP : 10.20.52.197
                          Client IP : 10.20.52.194

                          Ideas?
                          -Josh





                   --            -Josh






-- -Josh





--
-Josh


Reply via email to