airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marlon Pierce <marpi...@iu.edu>
Subject Re: [GSoC] Executing PHP client Samples through Local Airavata Server
Date Mon, 16 Jun 2014 13:40:10 GMT
I'm not sure what you mean by being able to execute the application 
through XBaya.  Did you modify XBaya to use Thrift clients?  Are you 
running the Thrift server on port 8080?  Why did you change this from 
the defaults?

Marlon

On 6/13/14, 6:36 PM, Nadeem Anjum wrote:
> Hi Marlon,
>
> I am able to telnet as well as execute the same application through xbaya
> gui. But the exception comes up using php sdk. Is it possibly any
> permissions issue, as the exception contains "Could not write 2 bytes
> localhost:8080"?
>
> Thanks,
> Nadeem.
>
>
> On Fri, Jun 13, 2014 at 5:29 PM, Marlon Pierce <marpierc@iu.edu> wrote:
>
>> Can you connect to localhost:8080 by other means (like "telnet localhost
>> 8080"). It could be a network configuration issue.
>>
>> Marlon
>>
>>
>> On 6/13/14, 11:25 AM, Nadeem Anjum wrote:
>>
>>> Hello Everyone,
>>>
>>> I need to execute php client samples through my local airavata server.
>>> What
>>> should be done to achieve this?
>>>
>>> I have tried by changing airavata-client-properties.ini and
>>> setting AIRAVATA_SERVER = "localhost", AIRAVATA_PORT = 8080.
>>>
>>> However, I get the following exception on executing any php file like
>>> createProject.php
>>>
>>> PHP Fatal error:  Uncaught exception
>>> 'Thrift\\Exception\\TTransportException' with message 'TSocket: Could not
>>> write 2 bytes localhost:8080' in
>>> /var/www/html/nadeemtest/output/html5/ajax/lib/Thrift/
>>> Transport/TSocket.php:299\nStack
>>> trace:\n#0
>>> /var/www/html/nadeemtest/output/html5/ajax/lib/Thrift/
>>> Protocol/TBinaryProtocol.php(135):
>>> Thrift\\Transport\\TSocket->write('??', 2)\n#1
>>> /var/www/html/nadeemtest/output/html5/ajax/lib/Thrift/
>>> Protocol/TBinaryProtocol.php(78):
>>> Thrift\\Protocol\\TBinaryProtocol->writeI16(1)\n#2
>>> /var/www/html/nadeemtest/output/html5/ajax/lib/Airavata/Model/Workspace/
>>> Types.php(291):
>>> Thrift\\Protocol\\TBinaryProtocol->writeFieldBegin('projectID', 11,
>>> 1)\n#3
>>> /var/www/html/nadeemtest/output/html5/ajax/lib/Airavata/API/Airavata.php(
>>> 1736):
>>> Airavata\\Model\\Workspace\\Project->write(Object(Thrift\\
>>> Protocol\\TBinaryProtocol))\n#4
>>> /var/www/html/nadeemtest/output/html5/ajax/lib/
>>> Airavata/API/Airavata.php(134):
>>> Airavata\\API\\Airavata_createProject_args->write(
>>> Object(Thrift\\Protocol\\TBinaryProtocol))\n#5
>>> /var/www/html/nadeemtest/output/html5/aj in
>>> /var/www/html/nadeemtest/output/html5/ajax/lib/Thrift/
>>> Transport/TSocket.php
>>> on line 299, referer: http://localhost/html/nadeemtest/output/html5/
>>>
>>> Any suggestions on how to deal with this exception will be helpful.
>>>
>>> Thanks & Regards,
>>> Nadeem.
>>>
>>>


Mime
View raw message