[resolved] Tbox copy

One Star

[resolved] Tbox copy

Does anyone has an example of how to connect and copy files from box?
I am trying to copy a file and it is giving me the following error message under the tBoxCopy. see screenshot below
Starting job CIN_ecW_Txt_Step0c_Connect_Upload_From_Box at 10:44 15/09/2015.

[statistics] connecting to socket on port 3822
[statistics] connected
[WARN ]: org.apache.http.client.protocol.ResponseProcessCookies - Cookie rejected: "[version: 0][name: bv][value: OPS-39950][domain: .app.box.com][path: /][expiry: Tue Sep 22 10:44:16 EDT 2015]". Illegal domain attribute "app.box.com". Domain of origin: "www.box.com"
[WARN ]: org.apache.http.client.protocol.ResponseProcessCookies - Cookie rejected: "[version: 0][name: cn][value: 49][domain: .app.box.com][path: /][expiry: Thu Sep 15 10:44:16 EDT 2016]". Illegal domain attribute "app.box.com". Domain of origin: "www.box.com"
[WARN ]: org.apache.http.client.protocol.ResponseProcessCookies - Cookie rejected: "[version: 0][name: presentation][value: desktop][domain: .app.box.com][path: /][expiry: null]". Illegal domain attribute "app.box.com". Domain of origin: "www.box.com"
Exception in component tBoxCopy_1
com.box.boxjavalibv2.exceptions.AuthFatalFailureException: com.box.boxjavalibv2.exceptions.BoxServerException: {"error":"invalid_client","error_description":"The client credentials are invalid"}
    at com.box.boxjavalibv2.authorization.OAuthDataController.doRefresh(OAuthDataController.java:278)
    at com.box.boxjavalibv2.authorization.OAuthDataController.refresh(OAuthDataController.java:206)
    at com.box.boxjavalibv2.authorization.OAuthAuthorization.refresh(OAuthAuthorization.java:33)
    at com.box.boxjavalibv2.BoxRESTClient.handleOAuthTokenExpire(BoxRESTClient.java:201)
    at com.box.boxjavalibv2.BoxRESTClient.execute(BoxRESTClient.java:106)
    at com.box.boxjavalibv2.BoxRESTClient.execute(BoxRESTClient.java:72)
    at com.box.boxjavalibv2.resourcemanagers.AbstractBoxResourceManager.getResponseAndParse(AbstractBoxResourceManager.java:118)
    at com.box.boxjavalibv2.resourcemanagers.BoxItemsManagerImpl.getItem(BoxItemsManagerImpl.java:55)
    at com.box.boxjavalibv2.resourcemanagers.BoxFoldersManageImpl.getFolder(BoxFoldersManageImpl.java:56)
[statistics] disconnected
    at cin_project.cin_ecw_txt_step0c_connect_upload_from_box_0_1.CIN_ecW_Txt_Step0c_Connect_Upload_From_Box.tBoxCopy_1Process(CIN_ecW_Txt_Step0c_Connect_Upload_From_Box.java:711)
    at cin_project.cin_ecw_txt_step0c_connect_upload_from_box_0_1.CIN_ecW_Txt_Step0c_Connect_Upload_From_Box.tBoxConnection_1Process(CIN_ecW_Txt_Step0c_Connect_Upload_From_Box.java:617)
    at cin_project.cin_ecw_txt_step0c_connect_upload_from_box_0_1.CIN_ecW_Txt_Step0c_Connect_Upload_From_Box.runJobInTOS(CIN_ecW_Txt_Step0c_Connect_Upload_From_Box.java:1031)
    at cin_project.cin_ecw_txt_step0c_connect_upload_from_box_0_1.CIN_ecW_Txt_Step0c_Connect_Upload_From_Box.main(CIN_ecW_Txt_Step0c_Connect_Upload_From_Box.java:888)
Caused by: com.box.boxjavalibv2.exceptions.BoxServerException: {"error":"invalid_client","error_description":"The client credentials are invalid"}
    at com.box.boxjavalibv2.resourcemanagers.AbstractBoxResourceManager.tryCastObject(AbstractBoxResourceManager.java:130)
    at com.box.boxjavalibv2.resourcemanagers.AbstractBoxResourceManager.getResponseAndParseAndTryCast(AbstractBoxResourceManager.java:109)
    at com.box.boxjavalibv2.resourcemanagers.BoxOAuthManagerImpl.createOAuth(BoxOAuthManagerImpl.java:81)
    at com.box.boxjavalibv2.resourcemanagers.BoxOAuthManagerImpl.refreshOAuth(BoxOAuthManagerImpl.java:88)
    at com.box.boxjavalibv2.authorization.OAuthDataController.doRefresh(OAuthDataController.java:265)
    ... 12 more
Job CIN_ecW_Txt_Step0c_Connect_Upload_From_Box ended at 10:44 15/09/2015. [exit code=1]



Accepted Solutions
Moderator

Re: [resolved] Tbox copy

Hi,

Have you already checked component reference about:TalendHelpCenter:tBoxCopy?

Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

View solution in original post


All Replies
Moderator

Re: [resolved] Tbox copy

Hi,

Have you already checked component reference about:TalendHelpCenter:tBoxCopy?

Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

View solution in original post

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog