org.springframework cannot be resolved to a type

Four Stars

org.springframework cannot be resolved to a type

Hi Team,

 

The goal here is to kickoff Talend job from the Routes. I am doing one POC on that and getting the below error.

 

I checked, i am using the same JRE as that in Studio. 

 

Attached are the screenshot.

 

Can anyone please help?

 

Error:

Execution failed : Job compile errors
At least job "example_route_Copy" has a compile errors, please fix and export again.
Error Line: 67
Detail Message: org.springframework cannot be resolved to a type
There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.

 


Accepted Solutions
Employee

Re: org.springframework cannot be resolved to a type

@harsh_kothari

 

Ok. If you are doing a PoC, could you please try below scenario?

 

It is having the detailed steps with screenshots.

 

https://help.talend.com/reader/wPJh3yAxz0baR8imIwmlYA/X1kCQaKtALDIocZ0p6QjpA

 

Warm Regards,

 

Nikhil Thampi


Warm Regards,
Nikhil Thampi
Please appreciate our members by giving Kudos for spending their time for your query. If your query is answered, please mark the topic as resolved :-)

All Replies
Highlighted
Thirteen Stars

Re: org.springframework cannot be resolved to a type

@harsh_kothari,can you expand the sub job and show,your job design?

Manohar B
Employee

Re: org.springframework cannot be resolved to a type

@harsh_kothari

 

    You are referring to a job from a route and it seems the underlying job is having compile error.

 

     Could you please open your job and click to code tab and it will show the position of error. If you toggle back to Designer mode, it will show the corresponding error component.

 

     Once you share the screen shots of the underlying job after above steps, we will be able to analyse further where is the exact issue root cause.

 

Warm Regards,

 

Nikhil Thampi


Warm Regards,
Nikhil Thampi
Please appreciate our members by giving Kudos for spending their time for your query. If your query is answered, please mark the topic as resolved :-)
Four Stars

Re: org.springframework cannot be resolved to a type

Given below. 

 

Error code in :

 

protected CamelContext createContext() {
final org.apache.camel.impl.DefaultCamelContext camelContext = new org.apache.camel.spring.SpringCamelContext(
new org.springframework.context.support.ClassPathXmlApplicationContext(
"META-INF/spring/example_route_copy.xml"));

sub_Job.png

Employee

Re: org.springframework cannot be resolved to a type

Hi,

 

   Could you please verify whether the data type in your schema for route is the right one?

 

    Also can you double check the JSON message you are trying to parse? 

 

Warm Regards,

 

Nikhil Thampi


Warm Regards,
Nikhil Thampi
Please appreciate our members by giving Kudos for spending their time for your query. If your query is answered, please mark the topic as resolved :-)
Four Stars

Re: org.springframework cannot be resolved to a type

My intention is to kick off job from Route, so there is no JASON message or anything that i am passing right now. Do i have to pass something from the cTalendJob Component?

 

Actually I am working on two POC right now:

1) To retrieve message from JMS server to Talend. 

2) Once received, it should kicked off a particular Talend Job.

 

Hence, i am working on #2 right now to kick off Talend job from the Routes.

 

Any inputs will be greatly appreciated!

Employee

Re: org.springframework cannot be resolved to a type

@harsh_kothari

 

Ok. If you are doing a PoC, could you please try below scenario?

 

It is having the detailed steps with screenshots.

 

https://help.talend.com/reader/wPJh3yAxz0baR8imIwmlYA/X1kCQaKtALDIocZ0p6QjpA

 

Warm Regards,

 

Nikhil Thampi


Warm Regards,
Nikhil Thampi
Please appreciate our members by giving Kudos for spending their time for your query. If your query is answered, please mark the topic as resolved :-)

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.