Five Stars

Talend Component Kit Error deploying to Studio

Hi, i m new to  developing  Talend components using the new component kit, in the documentation, this command,

 

mvn package talend-component:deploy-in-studio -Dtalend.component.studioHome=/path/to/studio
 is supposed to deploy the newly created component to  Talend Studio .But when i run it i get the following error  
msg.png
Please can some one help me out?
Thanks in advance

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Employee

Re: Talend Component Kit Error deploying to Studio

Hi Samba,

 

It looks like you put a path to the studio which contains a space and you didn't quote the path.

 

Concretely you should probably try

 

mvn package talend-component:deploy-in-studio -Dtalend.component.studioHome="C:/Program Files/Studio"

 

Romain
Talend Component Kit Documentation: https://talend.github.io/component-runtime/
Employee

Re: Talend Component Kit Error deploying to Studio

Hi Samba,

 

You should not have component-server in your pom (if it is due to anything unclear in the doc, feel free to mention it, we'll try to clarify it). The starter normally does all the setup for you.

However, it guarantees you have the server 1.0.4 in your local repository but the studio integrated version is likely not this one (which was released only yesterday) so it likely doesn't achieve your original goal.

 

In terms of proxy, there is no need of any remote communication (it is all local) so you should ensure the proxy does not proxy localhost.

To test the server you can set in your configuration/config.init the property:

 

component.java.port = 8080
component.environment = dev
component.server.jul.forceConsole = true
java.util.logging.SimpleFormatter.format = [%4$s] %5$s%6$s%n

It will force the component server to start on localhost:8080 (you can use any port you want) and to log the server output in the console (launch the studio from a terminal). This will allow us to see if there is any issue during the startup. If not you can also check the server is started calling http://localhost:8080/api/v1/environment which should return you a JSON payload with some information about the server.

 

Romain
Talend Component Kit Documentation: https://talend.github.io/component-runtime/
11 REPLIES
Employee

Re: Talend Component Kit Error deploying to Studio

Hi Samba,

 

It looks like you put a path to the studio which contains a space and you didn't quote the path.

 

Concretely you should probably try

 

mvn package talend-component:deploy-in-studio -Dtalend.component.studioHome="C:/Program Files/Studio"

 

Romain
Talend Component Kit Documentation: https://talend.github.io/component-runtime/
Five Stars

Re: Talend Component Kit Error deploying to Studio

Hi  rmannibucau, thanks for your quick response, i added quotes and it worked, but after restarting talend, i couldnt see the component,  any ideas?  once more thanks for your solution

Employee

Re: Talend Component Kit Error deploying to Studio

You can check the logs in workspace/.metadata/.log (if there is any error).

You can also connect on your studio through JMX (jvisualvm/jconsole/jmc would do the trick) and check it is registered in talend MBeans.

 

 

Romain
Talend Component Kit Documentation: https://talend.github.io/component-runtime/
Five Stars

Re: Talend Component Kit Error deploying to Studio

Hi rmannibucau,

thanks once more for your quick reply, i checked and found out the following error in the log file

MESSAGE 2018-08-07 17:01:18,842 ERROR org.talend.commons.exception.CommonExceptionHandler  -  javax.websocket.DeploymentException: The HTTP request to initiate the WebSocket connection failed

i m just doing a basic hello world component and nothing more, am i missing any dependencies?

 

thanks in advance

Employee

Re: Talend Component Kit Error deploying to Studio

Any error earlier in the log file? It looks like the studio can't access the local components server.

Did you tweak your config.ini to use the global repository (this would require you to ensure you have the component-server in your dependencies)?
Do you have a firewall preventing some localhost communication (MacAfee does it sometimes)?
Do you have multiple network cards?
Romain
Talend Component Kit Documentation: https://talend.github.io/component-runtime/
Five Stars

Re: Talend Component Kit Error deploying to Studio

Hi, rmannibucau, yes i tweak my config.ini file with   

maven.repository=global    and the dependencies in my pom.xml file looks like this 

<dependency>
      <groupId>org.talend.sdk.component</groupId>
      <artifactId>component-server</artifactId>
      <version>1.0.4</version>
        <scope>
        provided
    </scope>
    </dependency>
    <dependency>
      <groupId>org.talend.sdk.component</groupId>
      <artifactId>component-api</artifactId>
      <version>1.0.2</version>
      <scope>provided</scope>
    </dependency>

But still i get this error  java.lang.IllegalStateException: javax.websocket.DeploymentException: The HTTP request to initiate the WebSocket connection failed 

should in case i m behind a proxy, is there any configuration that can fix it? 

thanks in advance

Employee

Re: Talend Component Kit Error deploying to Studio

Hi Samba,

 

You should not have component-server in your pom (if it is due to anything unclear in the doc, feel free to mention it, we'll try to clarify it). The starter normally does all the setup for you.

However, it guarantees you have the server 1.0.4 in your local repository but the studio integrated version is likely not this one (which was released only yesterday) so it likely doesn't achieve your original goal.

 

In terms of proxy, there is no need of any remote communication (it is all local) so you should ensure the proxy does not proxy localhost.

To test the server you can set in your configuration/config.init the property:

 

component.java.port = 8080
component.environment = dev
component.server.jul.forceConsole = true
java.util.logging.SimpleFormatter.format = [%4$s] %5$s%6$s%n

It will force the component server to start on localhost:8080 (you can use any port you want) and to log the server output in the console (launch the studio from a terminal). This will allow us to see if there is any issue during the startup. If not you can also check the server is started calling http://localhost:8080/api/v1/environment which should return you a JSON payload with some information about the server.

 

Romain
Talend Component Kit Documentation: https://talend.github.io/component-runtime/
Five Stars

Re: Talend Component Kit Error deploying to Studio

Hi rmannibucau,

Thank you, problem solved, just one more question please, in which folder are the newly generated components installed,  with the  Talend 6 it used to be \plugins\org.talend.designer.components.localprovider_x.x.x.rxxxxxx\components, it seems not to be the case in 7?

 

best regards

Six Stars

Re: Talend Component Kit Error deploying to Studio

I have a seemingly very similar issue. Can you explain, what exactly solved it for you?

In my case it looks like the Component-Server does not start with the studio (http://localhost:8080/api/v1/environment gives no response).

However when I start the server via mvn talend-component:web, it is available immediately.

Employee

Re: Talend Component Kit Error deploying to Studio

They are in the maven repository of the studio. If you use the value "global" it is your ~/.m2/repository (or the value in  ~/.m2/settings.xml localRepository tag) else it is the local repository of the studio, i.e. <studio>/configuration/.m2.
Romain
Talend Component Kit Documentation: https://talend.github.io/component-runtime/
Six Stars

Re: Talend Component Kit Error deploying to Studio

For the record:

A fresh install of the studio did fix the problem (at least for 50% of us)