Trasportation Exception

Document created by cdnadmin on Jan 25, 2014
Version 1Show Document
  • View in full screen mode
This document was generated from CDN thread

Created by: Alexander Bondar on 19-08-2013 07:32:08 PM
I am trying to run tutorials  from Eclipse IDE on Ubuntu VM and when I run any of it I see the following error:
"  TRACE com.cisco.onep.element.NetworkElement  - Connect called for username:cisco
535   ERROR com.cisco.onep.element.NetworkElement  - Transport exception: org.apache.thrift.transport.TTransportException: Could not connect to 10.10.20.10 on port 15002
535   ERROR com.cisco.onep.tutorials.BaseTutorial  - Error occurred in the operation. Failed to connect to the network element or the session is closed. Could not connect to 10.10.20.10 on port 15002"
I can't understand why it occurs because virtual network and  one of the routers are configured

Subject: RE: Trasportation Exception
Replied by: John Voss on 19-08-2013 08:56:31 PM
Hi Alexander,

The sample apps and tutorials as of SDK 1.0.0 default to use the onepk TLS transport (encrypted transport) which connects on port 15002. 

The error you are seeing is either the result of onep tranport type TLS not being enabled on the network element you are trying to connect to or TLS not being configured properly on the network element. 

Please follow the instructions in the Getting Started Guide to enable TLS on your network element. 

Or for testing/prototyping purposes you may use the transport tcp (Eclipse properties file) or -t tcp (command line) option in the sample app/tutorial to connect to your network element using the onep transport TCP option. 

Please note that using transport TCP means all communication between your application and the network
element is sent unencrypted. 


Transport TCP should never be used with any network element that is on a production network or any environment where the communication between the network element and the onePK application can be intercepted (e.g., over a public network). 

For more information see the security section of the onePK Getting Started Guide.

Thanks,

John

Subject: Re: New Message from Alexander Bondar in onePK Developer - Тема Форума - on
Replied by: Zach Seils on 19-08-2013 08:45:50 PM
Hi Alexander,

Can you please provide the onep portion of the router configuration you are testing with?

Thanks,
Zach


Cisco Developer Community Forums <cdicuser@developer.cisco.com> wrote:



Alexander Bondar has created a new message in the forum "Тема Форума - onePK Developer": -------------------------------------------------------------- I am trying to run tutorials  from Eclipse IDE on Ubuntu VM and when I run any of it I see the following error:
"  TRACE com.cisco.onep.element.NetworkElement  - Connect called for username:cisco
535  ERROR com.cisco.onep.element.NetworkElement  - Transport exception: org.apache.thrift.transport.TTransportException: Could not connect to 10.10.20.10 on port 15002
535  ERROR com.cisco.onep.tutorials.BaseTutorial  - Error occurred in the operation. Failed to connect to the network element or the session is closed. Could not connect to 10.10.20.10 on port 15002"
I can't understand why it occurs because virtual network and  one of the routers are configured
--
To respond to this post, please click the following link: http://developer.cisco.com/web/onepk-developer/forum/-/message_boards/view_message/18401005 or simply reply to this email.

Subject: RE: Trasportation Exception
Replied by: Alexander Bondar on 20-08-2013 12:15:20 PM
Thank you very much,John. I will try to configure TLS properly.

Subject: RE: Trasportation Exception
Replied by: Han Shen on 20-08-2013 01:36:33 PM
John Voss:
Hi Alexander,

The sample apps and tutorials as of SDK 1.0.0 default to use the onepk TLS transport (encrypted transport) which connects on port 15002. 

The error you are seeing is either the result of onep tranport type TLS not being enabled on the network element you are trying to connect to or TLS not being configured properly on the network element. 

Please follow the instructions in the Getting Started Guide to enable TLS on your network element. 

Or for testing/prototyping purposes you may use the transport tcp (Eclipse properties file) or -t tcp (command line) option in the sample app/tutorial to connect to your network element using the onep transport TCP option. 

Please note that using transport TCP means all communication between your application and the network
element is sent unencrypted. 


Transport TCP should never be used with any network element that is on a production network or any environment where the communication between the network element and the onePK application can be intercepted (e.g., over a public network). 

For more information see the security section of the onePK Getting Started Guide.

Thanks,

John



Hi john,
      I have the same problem with Alex initially. When I tried to add "-t tcp" option in the command line, it shows up another error : "No route to host ",what does it mean?

Thanks!
Han

Subject: RE: New Message from Han Shen in onePK Developer - Message Boards Home - on
Replied by: Zach Seils on 20-08-2013 06:34:50 PM
Han,

Can you confirm that you have IP connectivity (i.e. ping) between the host running the onePK application and the Network Element?

Thanks,
Zach


From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Tuesday, August 20, 2013 2:37 PM
To: cdicuser@developer.cisco.com
Subject: New Message from Han Shen in onePK Developer - Message Boards Home - onePK Developer: RE: Trasportation Exception

Han Shen has created a new message in the forum "Message Boards Home - onePK Developer": --------------------------------------------------------------
John Voss:
Hi Alexander,

The sample apps and tutorials as of SDK 1.0.0 default to use the onepk TLS transport (encrypted transport) which connects on port 15002.

The error you are seeing is either the result of onep tranport type TLS not being enabled on the network element you are trying to connect to or TLS not being configured properly on the network element.

Please follow the instructions in the Getting Started Guide to enable TLS on your network element.

Or for testing/prototyping purposes you may use the transport tcp (Eclipse properties file) or -t tcp (command line) option in the sample app/tutorial to connect to your network element using the onep transport TCP option.

Please note that using transport TCP means all communication between your application and the network
element is sent unencrypted.

Transport TCP should never be used with any network element that is on a production network or any environment where the communication between the network element and the onePK application can be intercepted (e.g., over a public network).

For more information see the security section of the onePK Getting Started Guide.

Thanks,

John



Hi john,
      I have the same problem with Alex initially. When I tried to add "-t tcp" option in the command line, it shows up another error : "No route to host ",what does it mean?

Thanks!
Han
--
To respond to this post, please click the following link: http://developer.cisco.com/web/onepk-developer/forum/-/message_boards/view_message/18428750 or simply reply to this email.

Subject: RE: Trasportation Exception
Replied by: Han Shen on 23-08-2013 03:17:33 AM
HI Zach,
 Thanks for your help. I have found the cause of the exception——we didn't use "write memory" command(which was not showed in User Guide as well) to save our configuration of the remote router, When we tried again, it works. Thanks a lot !

Attachments

    Outcomes