Accessing java class from DataStage
Posted: Mon Jan 07, 2013 12:09 pm
Hi All,
I am working with Java client stage to invoke a java class file. I am just calling simple class file to print a message. My design is
Java client stage -> seq_file
I am not returning anything out of my java class. In the link to seq_file I am just having one filed but I am not passing through any data in it. Once this class invoked and I am able to print the string I will proceed to return data from the file and will load to seq file.
But I am getting below error and my job is getting aborted.
Java_Transformer_9,0: Error: java.lang.ClassCastException: Print_ds incompatible with com.ascentialsoftware.jds.InternalStage
Print_ds is my class name. I am not able to get proper input from sites. Please help he.
TIA.
I am working with Java client stage to invoke a java class file. I am just calling simple class file to print a message. My design is
Java client stage -> seq_file
I am not returning anything out of my java class. In the link to seq_file I am just having one filed but I am not passing through any data in it. Once this class invoked and I am able to print the string I will proceed to return data from the file and will load to seq file.
But I am getting below error and my job is getting aborted.
Java_Transformer_9,0: Error: java.lang.ClassCastException: Print_ds incompatible with com.ascentialsoftware.jds.InternalStage
Print_ds is my class name. I am not able to get proper input from sites. Please help he.
TIA.