Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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  
0683p000009Lzo3.png
Please can some one help me out?
Thanks in advance

 

Labels (4)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

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"

 

View solution in original post

11 Replies
Anonymous
Not applicable
Author

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"

 

Anonymous
Not applicable
Author

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

Anonymous
Not applicable
Author

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.

 

 

Anonymous
Not applicable
Author

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

Anonymous
Not applicable
Author

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?
Anonymous
Not applicable
Author

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

Anonymous
Not applicable
Author

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.

 

Anonymous
Not applicable
Author

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

Anonymous
Not applicable
Author

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.