Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFOBJECT - returns variable undefined?

Status
Not open for further replies.

sknyppy

Programmer
May 14, 1999
137
US
Everytime I try to call this java class file it always returns 'variable results undefined'.
Can anyone tell me what may be causing this? It worked fine a few times and now its dead.

------------------
<CFOBJECT type=&quot;java&quot; action=&quot;create&quot; class=&quot;encrypt&quot; name=&quot;cd&quot;>
<CFSET void = cd.init()>
<CFSET results = cd.encodeData(&quot;A&quot;, &quot;B&quot;, &quot;C&quot;, &quot;D&quot;, &quot;E&quot;)>
</CFOBJECT>
<CFDUMP var=&quot;#results#&quot;>
-------------------
package encode;
import java.util.*;
import BlowfishJ.*;

public class encrypt{
private String key = &quot;test&quot;;
public String[] encodeData(String A, String B, String C, String D, String E)
{
String[] se = new String[5];
BlowfishEasy bfe = new BlowfishEasy(this.key);
se[0] = bfe.encryptString(A);
se[1] = bfe.encryptString(B);
se[2] = bfe.encryptString(C);
se[3] = bfe.encryptString(D);
se[4] = bfe.encryptString(E);
return se;
}
}
------------------

Regards,
Dave Bosky
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top