You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@airavata.apache.org by Nadeem Anjum <na...@gmail.com> on 2014/06/13 17:25:12 UTC

[GSoC] Executing PHP client Samples through Local Airavata Server

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.

Re: [GSoC] Executing PHP client Samples through Local Airavata Server

Posted by Nadeem Anjum <na...@gmail.com>.
Hi Saminda,

Yes, I am able to register applications now.

Thanks,
Nadeem.


On Tue, Jun 17, 2014 at 12:22 PM, Saminda Wijeratne <sa...@gmail.com>
wrote:

> hi Nadeem,
>
> Were you able to solve your application registration issue?
>
>
> On Mon, Jun 16, 2014 at 9:56 AM, Nadeem Anjum <na...@gmail.com>
> wrote:
>
>> Hi Marlon,
>>
>> I realized that I was using airavata 0.11 server, which was causing the
>> problem. Now, with the build from trunk, I am able to execute the sample
>> clients on localhost:8930.
>>
>> Thanks,
>> Nadeem.
>>
>>
>> On Mon, Jun 16, 2014 at 3:40 PM, Marlon Pierce <ma...@iu.edu> wrote:
>>
>>> 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 <ma...@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.
>>>>>>
>>>>>>
>>>>>>
>>>
>>
>

Re: [GSoC] Executing PHP client Samples through Local Airavata Server

Posted by Saminda Wijeratne <sa...@gmail.com>.
hi Nadeem,

Were you able to solve your application registration issue?


On Mon, Jun 16, 2014 at 9:56 AM, Nadeem Anjum <na...@gmail.com>
wrote:

> Hi Marlon,
>
> I realized that I was using airavata 0.11 server, which was causing the
> problem. Now, with the build from trunk, I am able to execute the sample
> clients on localhost:8930.
>
> Thanks,
> Nadeem.
>
>
> On Mon, Jun 16, 2014 at 3:40 PM, Marlon Pierce <ma...@iu.edu> wrote:
>
>> 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 <ma...@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.
>>>>>
>>>>>
>>>>>
>>
>

Re: [GSoC] Executing PHP client Samples through Local Airavata Server

Posted by Nadeem Anjum <na...@gmail.com>.
Hi Marlon,

I realized that I was using airavata 0.11 server, which was causing the
problem. Now, with the build from trunk, I am able to execute the sample
clients on localhost:8930.

Thanks,
Nadeem.


On Mon, Jun 16, 2014 at 3:40 PM, Marlon Pierce <ma...@iu.edu> wrote:

> 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 <ma...@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.
>>>>
>>>>
>>>>
>

Re: [GSoC] Executing PHP client Samples through Local Airavata Server

Posted by Marlon Pierce <ma...@iu.edu>.
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 <ma...@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.
>>>
>>>


Re: [GSoC] Executing PHP client Samples through Local Airavata Server

Posted by Nadeem Anjum <na...@gmail.com>.
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 <ma...@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.
>>
>>
>

Re: [GSoC] Executing PHP client Samples through Local Airavata Server

Posted by Marlon Pierce <ma...@iu.edu>.
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.
>