Data Transformation & Java

LabKey Support Forum (Inactive)
Data Transformation & Java kgrady15  2009-09-18 13:08
Status: Closed
 
I downloaded three sample files that were emailed to my group for data transformation:
AbstractAssayValidator.java
AssayTransform.java
AssayValidator.java

Since AssayTransform and AssayValidator extend AbstractAssayValidator, I made two jar files:
AbstractAssayValidator + AssayTransform (AssayTransform.jar)
AbstractAssayValidator + AssayValidator (AssayValidator.jar)

Whenever I try to import data with the AssayTransform.jar file in the Data Transform field of the assay, an error comes back saying "unable to access [path]...AssayTransform.jar" Is this a problem with the way I am grouping the files in each .jar, or something else?
 
 
Karl Lum responded:  2009-09-18 14:19
If there are spaces in the path to your jarfile, you may have to put quotes around the scriptFile token in your engine definition:

-jar "${scriptFile}" "${runInfo}"
 
kgrady15 responded:  2009-09-18 14:49
There are no spaces in the path, but I have quotes around the scriptFile token nonetheless.
 
kgrady15 responded:  2009-09-21 10:33
Problem solved.
 
christian.pfaff responded:  2011-07-21 00:51
Hello kgrady15

I have seen, that you use the args[] in your transformer to get the username, password and host. Very interesting. Did you hardcode these in the ScriptEngine definition or did you find out how to forward the currently logged in user plus password to the transformer?

Best regards, Christian