I am getting this error when I call a java method from inside xquery
script. I am using basex 7.8.2
Java constructor initialization (aBlob:new) went fine. Even I can call
close method w/o any issue.
but when I call insertImage3 in xquery script, I am getting error
[FORG0006] Unknown method
I compiled the class into jar file and put it into libs folder of basex
installation folder. I am using basexgui.bat to open basex gui that will
load all jars in libs folder.
Is there anything I could not see here?
I appreciate your help
Stopped at D:/StepToDAR/DARImport.xq, 90/35:
[FORG0006] Unknown method: AddBlob.insertImage2(AddBlob, xs:integer,
xs:string).
declare namespace aBlob ="com.ferguson.blobmanager.AddBlob";
let $bm := aBlob:new($connUrl,$username,$passwd)
let $r1 := aBlob:insertImage2($bm,xs:integer(3333),xs:string("eeeee"))
public class AddBlob {
public AddBlob (String connUrl,String username,String passwd) throws
SQLException
{
}
public void insertImage3( String fileName, int id) {
System.out.println ("test message here");
}
public void close () throws SQLException
{
connection.commit();
connection.close();
}
}