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


All Replies
Highlighted
Forteen 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
Don't forget to give kudos/accept the solution when a replay is helpful.
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

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

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

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Quality

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

Download