RE: Re: Matlab With Restlet

2010-02-24 Thread webpost
hi Thierry 

  Sorry for late reply for ur post.Actually i have found the reason for the 
behaviour.The problem was in my code in matlab.Im really sorry for taking up ur 
time but without ur help i would not have found the problem in side matlab 
code.Im really thankful for your support.(i guess u can also cancel the bug 
created for the issue).

The problem was from the matlab i was passing invaild scheme name.But client 
was getting created with out any errors
for eg.client(Protocol.HTTP).Thats the reason why i was getting a negative 
return from containAll().
Because of my in experience with the api i had feeling that it would give an 
error when i pass a invalid scheme name as string to the constructor for 
creating the client.

Thanks a lot for helping me out.Any how im using the API so if i have any more 
doubts i will get back to u.

regards
Rashik.T

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2451691


RE: Re: Matlab With Restlet

2010-02-22 Thread webpost
Hi Thierry

I have checked the values 

Then value of org.restlet.util.Eng​ine.getInstance() 
is com.noelios.restlet.eng...@ae43b8 (is an instance of 
com.noelios.restlet.Engine)

and the value returned from the method getRegisteredC​lients() are 

[com.noelios.restlet.ext.net.httpclienthel...@54919e, 
com.noelios.restlet.http.streamclienthel...@2437ef, 
com.noelios.restlet.local.clapclienthel...@1d46259, 
com.noelios.restlet.local.fileclienthel...@84fa6a]

If you need any more information please let me know.

Thanks.

Regards
Rashik.T

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2450365


RE: Re: Matlab With Restlet

2010-02-22 Thread webpost
hi Thierry

If i execute the following in side matlab

Client client = new Client(Protocol.HTTP);
I get the warning 

WARNUNG: No available client connector supports the required protocols: 
'PROTOCOL.HTTP' . Please add the JAR of a matching connector to your classpath.

When i execut the following
System.out.println(E​ngine.getInstance().​createHelper(client,​
null));
I get the same warning.
WARNUNG: No available client connector supports the required protocols: 
'PROTOCOL.HTTP' . Please add the JAR of a matching connector to your classpath.

But when i checked the code of the createhelper() and so i checked for more 
values from matlab.

client.getProtocol() returns [HTTP].
but for
(connector.getprotocols().containsAll(client.getProtocol()) returns 0 for 
iteration with
com.noelios.restlet.​http.StreamClientHel​per
instance.)

Can u please let me know why this returning zero.I hope im on right path of 
debugging the problem.

Thanks

Regards
Rashik.T

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2450425


RE: Re: Matlab With Restlet

2010-02-22 Thread webpost
hi Thierry

   I have done the test suggested by you.Im using Restlet 1.1.8.Also i have 
downloaded (version 2 milestone 7 but i was not able to find 
com.noelios.restlet.jar inside lib folder. So i havent tried anything with this 
release). 

The log from the Matlab Command Window is as follows:

Diagnostics START
Executing : com.noelios.restlet.Engine engine = (com.noelios.restlet.Engine) 
org.restlet.util.Engine.getInstance();.And the Output Is:
 
Executing : System.out.println( engine:  + engine);.And the Output Is:
Engine : com.noelios.restlet.eng...@ae43b8
 
Executing : System.out.println( client connectors:  + 
engine.getRegisteredClients());.And the Output Is:
client Connectors : [com.noelios.restlet.ext.net.httpclienthel...@54919e, 
com.noelios.restlet.http.streamclienthel...@2437ef, 
com.noelios.restlet.local.clapclienthel...@1d46259, 
com.noelios.restlet.local.fileclienthel...@84fa6a]
 
Executing : Client client = new Client(Protocol.HTTP);.And the Output Is:
22.02.2010 18:52:44 com.noelios.restlet.Engine createHelper

WARNUNG: No available client connector supports the required protocols: 
'PROTOCOL.HTTP' . Please add the JAR of a matching connector to your classpath.

Client : org.restlet.cli...@18307be
 
Executing : System.out.println( client helper:  + helper);.And the Output Is:
Client Helper : com.noelios.restlet.ext.net.httpclienthel...@54919e
 
Executing : System.out.print( client protocols:  + helper.getProtocols());.And 
the Output Is:
Client Protocols : [HTTP, HTTPS]
 
Executing : System.out.println( =  + 
helper.getProtocols().containsAll(client.getProtocols()));.And the Output Is:
Value returned by (helper.getProtocols().containsAll(client.getProtocols())) : 0
 
Executing : System.out.println( client helper:  + helper);.And the Output Is:
Client Helper : com.noelios.restlet.http.streamclienthel...@2437ef
 
Executing : System.out.print( client protocols:  + helper.getProtocols());.And 
the Output Is:
Client Protocols : [HTTP]
 
Executing : System.out.println( =  + 
helper.getProtocols().containsAll(client.getProtocols()));.And the Output Is:
Value returned by (helper.getProtocols().containsAll(client.getProtocols())) : 0
 
Executing : System.out.println( client helper:  + helper);.And the Output Is:
Client Helper : com.noelios.restlet.local.clapclienthel...@1d46259
 
Executing : System.out.print( client protocols:  + helper.getProtocols());.And 
the Output Is:
Client Protocols : [CLAP]
 
Executing : System.out.println( =  + 
helper.getProtocols().containsAll(client.getProtocols()));.And the Output Is:
Value returned by (helper.getProtocols().containsAll(client.getProtocols())) : 0
 
Executing : System.out.println( client helper:  + helper);.And the Output Is:
Client Helper : com.noelios.restlet.local.fileclienthel...@84fa6a
 
Executing : System.out.print( client protocols:  + helper.getProtocols());.And 
the Output Is:
Client Protocols : [FILE]
 
Executing : System.out.println( =  + 
helper.getProtocols().containsAll(client.getProtocols()));.And the Output Is:
Value returned by (helper.getProtocols().containsAll(client.getProtocols())) : 0
 
Executing : System.out.println( chosen helper:  + 
Engine.getInstance().createHelper(client, null));.And the Output Is:
22.02.2010 18:52:44 com.noelios.restlet.Engine createHelper

WARNUNG: No available client connector supports the required protocols: 
'PROTOCOL.HTTP' . Please add the JAR of a matching connector to your classpath.

chosen helper: The Value returned from 
Engine.getInstance().createHelper(client, null)) is Empty
 
Diagnostics END 

I hope  u can easily understand the above log file.
If you need any more info pls let me know. 
Thanks.

Regards
Rashik.T

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2450560


RE: Re: Matlab With Restlet

2010-02-19 Thread webpost
hi
But i wrote java application using eclipse to interact with sever including 
following jar files
 1.com.noelios.restlet.jar
 2.org.json.jar
 3.org.restlet.ext.json.jar
 4.org.restlet.jar
 and the application is running fine.I m able to interact with the server.
 Here i didnt add jar files realted to HTTP client connector as well i didnt 
configure any parameters realted to HTTP inside the api.
Why is there a difference.


Thanks

Regards
Rashik

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2449108