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="java" action="create" class="encrypt" name="cd">
<CFSET void = cd.init()>
<CFSET results = cd.encodeData("A", "B", "C", "D", "E"
>
</CFOBJECT>
<CFDUMP var="#results#">
-------------------
package encode;
import java.util.*;
import BlowfishJ.*;
public class encrypt{
private String key = "test";
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
Can anyone tell me what may be causing this? It worked fine a few times and now its dead.
------------------
<CFOBJECT type="java" action="create" class="encrypt" name="cd">
<CFSET void = cd.init()>
<CFSET results = cd.encodeData("A", "B", "C", "D", "E"
</CFOBJECT>
<CFDUMP var="#results#">
-------------------
package encode;
import java.util.*;
import BlowfishJ.*;
public class encrypt{
private String key = "test";
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