Uploaded image for project: 'Shindig'
  1. Shindig
  2. SHINDIG-1992

Error in Building and running Apache Shindig for PHP

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Won't Fix
    • Affects Version/s: 2.5.0
    • Fix Version/s: None
    • Component/s: PHP
    • Labels:
    • Environment:
      Xamp (Windows 7)

      Description

      I want set up Apache shindig for PHP and I have followed given steps in the following links .

      http://shindig.apache.org/documentation_building_php.html.

      But I am always getting Error " Failed to retrieve gadget content (recieved http code 500 Internal Server Error)"

      With Following Response :

      Array
      (
      [0] => Array
      (
      [file] => D:\xampp\htdocs\shindigphp\src\apache\shindig\gadgets\servlet\GadgetRenderingServlet.php
      [line] => 66
      [function] => showError
      [class] => apache\shindig\gadgets\servlet\GadgetRenderingServlet
      [object] => apache\shindig\gadgets\servlet\GadgetRenderingServlet Object
      (
      [context:protected] => apache\shindig\gadgets\GadgetContext Object
      (
      [httpFetcher:protected] => apache\shindig\common\sample\BasicRemoteContent Object
      (
      [basicFetcher:apache\shindig\common\sample\BasicRemoteContent:private] => apache\shindig\common\sample\BasicRemoteContentFetcher Object
      (
      [requests:apache\shindig\common\sample\BasicRemoteContentFetcher:private] => Array
      (
      )

      [disallowedHeaders:apache\shindig\common\sample\BasicRemoteContentFetcher:private] => Array
      (
      [0] => Keep-Alive
      [1] => Host
      [2] => Accept-Encoding
      [3] => Set-Cookie
      [4] => Content-Length
      [5] => Content-Encoding
      [6] => ETag
      [7] => Last-Modified
      [8] => Accept-Ranges
      [9] => Vary
      [10] => Expires
      [11] => Date
      [12] => Pragma
      [13] => Cache-Control
      [14] => Transfer-Encoding
      [15] => If-Modified-Since
      )

      )

      [signingFetcherFactory:apache\shindig\common\sample\BasicRemoteContent:private] =>
      [signer:apache\shindig\common\sample\BasicRemoteContent:private] =>
      [cache:apache\shindig\common\sample\BasicRemoteContent:private] => apache\shindig\common\Cache Object
      (
      [time:apache\shindig\common\Cache:private] => apache\shindig\common\RequestTime Object
      (
      )

      [storage:apache\shindig\common\Cache:private] => apache\shindig\common\sample\CacheStorageFile Object
      (
      [prefix:apache\shindig\common\sample\CacheStorageFile:private] => RemoteContent
      )

      )

      [invalidateService:apache\shindig\common\sample\BasicRemoteContent:private] => apache\shindig\social\sample\DefaultInvalidateService Object
      (
      [invalidationEntry:apache\shindig\social\sample\DefaultInvalidateService:private] => apache\shindig\common\Cache Object
      (
      [time:apache\shindig\common\Cache:private] => apache\shindig\common\RequestTime Object
      (
      )

      [storage:apache\shindig\common\Cache:private] => apache\shindig\common\sample\CacheStorageFile Object
      (
      [prefix:apache\shindig\common\sample\CacheStorageFile:private] => InvalidationEntry
      )

      )

      [cache:apache\shindig\social\sample\DefaultInvalidateService:private] => apache\shindig\common\Cache Object
      (
      [time:apache\shindig\common\Cache:private] => apache\shindig\common\RequestTime Object
      (
      )

      [storage:apache\shindig\common\Cache:private] => apache\shindig\common\sample\CacheStorageFile Object
      (
      [prefix:apache\shindig\common\sample\CacheStorageFile:private] => RemoteContent
      )

      )

      )

      [cachePostRequest:apache\shindig\common\sample\BasicRemoteContent:private] =>
      )

      [locale:protected] =>
      [renderingContext:protected] => GADGET
      [registry:protected] =>
      [view:protected] => profile
      [moduleId:protected] => 0
      [url:protected] => http://www.labpixies.com/campaigns/todo/todo.xml
      [cache:protected] =>
      [blacklist:protected] => apache\shindig\gadgets\sample\BasicGadgetBlacklist Object
      (
      [rules:apache\shindig\gadgets\sample\BasicGadgetBlacklist:private] => Array
      (
      )

      )

      [ignoreCache:protected] =>
      [forcedJsLibs:protected] =>
      [containerConfig:protected] =>
      [container:protected] => default
      [rawXml:protected] =>
      [refreshInterval:protected] => 1209587
      )

      [lastModified:apache\shindig\common\HttpServlet:private] =>
      [contentType:apache\shindig\common\HttpServlet:private] => text/html
      [charset:apache\shindig\common\HttpServlet:private] => UTF-8
      [noCache:apache\shindig\common\HttpServlet:private] =>
      [cacheTime:apache\shindig\common\HttpServlet:private] => 86400
      [noHeaders] =>
      )

      [type] => ->
      [args] => Array
      (
      [0] => apache\shindig\gadgets\GadgetException Object
      (
      [message:protected] => Failed to retrieve gadget content (recieved http code 500Internal Server Error)
      [string:Exception:private] =>
      [code:protected] => 0
      file:protected => D:\xampp\htdocs\shindigphp\src\apache\shindig\gadgets\GadgetFactory.php
      [line:protected] => 410
      [trace:Exception:private] => Array
      (
      [0] => Array
      (
      [file] => D:\xampp\htdocs\shindigphp\src\apache\shindig\gadgets\GadgetFactory.php
      [line] => 56
      [function] => fetchGadget
      [class] => apache\shindig\gadgets\GadgetFactory
      [type] => ->
      [args] => Array
      (
      [0] => http://www.labpixies.com/campaigns/todo/todo.xml
      )

      )

      [1] => Array
      (
      [file] => D:\xampp\htdocs\shindigphp\src\apache\shindig\gadgets\servlet\GadgetRenderingServlet.php
      [line] => 60
      [function] => createGadget
      [class] => apache\shindig\gadgets\GadgetFactory
      [type] => ->
      [args] => Array
      (
      )

      )

      [2] => Array
      (
      [file] => D:\xampp\htdocs\shindigphp\src\apache\shindig\FrontController.php
      [line] => 74
      [function] => doGet
      [class] => apache\shindig\gadgets\servlet\GadgetRenderingServlet
      [type] => ->
      [args] => Array
      (
      )

      )

      [3] => Array
      (
      [file] => D:\xampp\htdocs\shindigphp\index.php
      [line] => 25
      [function] => run
      [class] => apache\shindig\FrontController
      [type] => ->
      [args] => Array
      (
      )

      )

      )

      [previous:Exception:private] =>
      )

      )

      )

      [1] => Array
      (
      [file] => D:\xampp\htdocs\shindigphp\src\apache\shindig\FrontController.php
      [line] => 74
      [function] => doGet
      [class] => apache\shindig\gadgets\servlet\GadgetRenderingServlet
      [object] => apache\shindig\gadgets\servlet\GadgetRenderingServlet Object
      (
      [context:protected] => apache\shindig\gadgets\GadgetContext Object
      (
      [httpFetcher:protected] => apache\shindig\common\sample\BasicRemoteContent Object
      (
      [basicFetcher:apache\shindig\common\sample\BasicRemoteContent:private] => apache\shindig\common\sample\BasicRemoteContentFetcher Object
      (
      [requests:apache\shindig\common\sample\BasicRemoteContentFetcher:private] => Array
      (
      )

      [disallowedHeaders:apache\shindig\common\sample\BasicRemoteContentFetcher:private] => Array
      (
      [0] => Keep-Alive
      [1] => Host
      [2] => Accept-Encoding
      [3] => Set-Cookie
      [4] => Content-Length
      [5] => Content-Encoding
      [6] => ETag
      [7] => Last-Modified
      [8] => Accept-Ranges
      [9] => Vary
      [10] => Expires
      [11] => Date
      [12] => Pragma
      [13] => Cache-Control
      [14] => Transfer-Encoding
      [15] => If-Modified-Since
      )

      )

      [signingFetcherFactory:apache\shindig\common\sample\BasicRemoteContent:private] =>
      [signer:apache\shindig\common\sample\BasicRemoteContent:private] =>
      [cache:apache\shindig\common\sample\BasicRemoteContent:private] => apache\shindig\common\Cache Object
      (
      [time:apache\shindig\common\Cache:private] => apache\shindig\common\RequestTime Object
      (
      )

      [storage:apache\shindig\common\Cache:private] => apache\shindig\common\sample\CacheStorageFile Object
      (
      [prefix:apache\shindig\common\sample\CacheStorageFile:private] => RemoteContent
      )

      )

      [invalidateService:apache\shindig\common\sample\BasicRemoteContent:private] => apache\shindig\social\sample\DefaultInvalidateService Object
      (
      [invalidationEntry:apache\shindig\social\sample\DefaultInvalidateService:private] => apache\shindig\common\Cache Object
      (
      [time:apache\shindig\common\Cache:private] => apache\shindig\common\RequestTime Object
      (
      )

      [storage:apache\shindig\common\Cache:private] => apache\shindig\common\sample\CacheStorageFile Object
      (
      [prefix:apache\shindig\common\sample\CacheStorageFile:private] => InvalidationEntry
      )

      )

      [cache:apache\shindig\social\sample\DefaultInvalidateService:private] => apache\shindig\common\Cache Object
      (
      [time:apache\shindig\common\Cache:private] => apache\shindig\common\RequestTime Object
      (
      )

      [storage:apache\shindig\common\Cache:private] => apache\shindig\common\sample\CacheStorageFile Object
      (
      [prefix:apache\shindig\common\sample\CacheStorageFile:private] => RemoteContent
      )

      )

      )

      [cachePostRequest:apache\shindig\common\sample\BasicRemoteContent:private] =>
      )

      [locale:protected] =>
      [renderingContext:protected] => GADGET
      [registry:protected] =>
      [view:protected] => profile
      [moduleId:protected] => 0
      [url:protected] => http://www.labpixies.com/campaigns/todo/todo.xml
      [cache:protected] =>
      [blacklist:protected] => apache\shindig\gadgets\sample\BasicGadgetBlacklist Object
      (
      [rules:apache\shindig\gadgets\sample\BasicGadgetBlacklist:private] => Array
      (
      )

      )

      [ignoreCache:protected] =>
      [forcedJsLibs:protected] =>
      [containerConfig:protected] =>
      [container:protected] => default
      [rawXml:protected] =>
      [refreshInterval:protected] => 1209587
      )

      [lastModified:apache\shindig\common\HttpServlet:private] =>
      [contentType:apache\shindig\common\HttpServlet:private] => text/html
      [charset:apache\shindig\common\HttpServlet:private] => UTF-8
      [noCache:apache\shindig\common\HttpServlet:private] =>
      [cacheTime:apache\shindig\common\HttpServlet:private] => 86400
      [noHeaders] =>
      )

      [type] => ->
      [args] => Array
      (
      )

      )

      [2] => Array
      (
      [file] => D:\xampp\htdocs\shindigphp\index.php
      [line] => 25
      [function] => run
      [class] => apache\shindig\FrontController
      [object] => apache\shindig\FrontController Object
      (
      [localConfig:apache\shindig\FrontController:private] => D:\xampp\htdocs\shindigphp/config/local.php
      )

      [type] => ->
      [args] => Array
      (
      )

      )

      )

      And I have debug found that its says not able connect to URL(http://www.labpixies.com/campaigns/todo/todo.xml) in Curl but when I am hitting that URL in Browser its working fine. Please check.

      Response Debug :

      object(apache\shindig\common\RemoteContentRequest)#25 (20) { ["uri":"apache\shindig\common\RemoteContentRequest":private]=> string(48) "http://www.labpixies.com/campaigns/todo/todo.xml" ["notSignedUri":"apache\shindig\common\RemoteContentRequest":private]=> string(48) "http://www.labpixies.com/campaigns/todo/todo.xml" ["method":"apache\shindig\common\RemoteContentRequest":private]=> string(0) "" ["headers":"apache\shindig\common\RemoteContentRequest":private]=> bool(false) ["postBody":"apache\shindig\common\RemoteContentRequest":private]=> bool(false) ["responseContent":"apache\shindig\common\RemoteContentRequest":private]=> string(78) "Curl error: Failed to connect to www.labpixies.com port 80: Connection refused" ["responseSize":"apache\shindig\common\RemoteContentRequest":private]=> int(0) ["responseHeaders":"apache\shindig\common\RemoteContentRequest":private]=> array(0) { } ["metadata":"apache\shindig\common\RemoteContentRequest":private]=> array(0) { } ["httpCode":"apache\shindig\common\RemoteContentRequest":private]=> int(500) ["httpCodeMsg":"apache\shindig\common\RemoteContentRequest":private]=> string(21) "Internal Server Error" ["contentType":"apache\shindig\common\RemoteContentRequest":private]=> bool(false) ["created":"apache\shindig\common\RemoteContentRequest":private]=> int(1422438892) ["refreshInterval":"apache\shindig\common\RemoteContentRequest":private]=> NULL ["handle"]=> bool(false) ["options":"apache\shindig\common\RemoteContentRequest":private]=> object(apache\shindig\common\Options)#26 (3)

      { ["ignoreCache"]=> bool(false) ["ownerSigned"]=> bool(true) ["viewerSigned"]=> bool(true) }

      ["token":"apache\shindig\common\RemoteContentRequest":private]=> string(0) "" ["invalidation":"apache\shindig\common\RemoteContentRequest":private]=> NULL ["authType":"apache\shindig\common\RemoteContentRequest":private]=> string(4) "none" ["oauthParams":"apache\shindig\common\RemoteContentRequest":private]=> NULL }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jaisdilip Dilipkumar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: