Lotus notes 访问产品对象方法时出错-Lotus Notes

Lotus notes 访问产品对象方法时出错-Lotus Notes,lotus-notes,lotus-domino,lotusscript,lotus,hcl-notes,Lotus Notes,Lotus Domino,Lotusscript,Lotus,Hcl Notes,我在调用mySqlTableObj.init(url、用户、密码)时遇到了这个错误“访问产品对象方法时出错” 以下是lotusscript脚本库: Dim jsDU As New JAVASESSION Dim mySqlTable As JAVACLASS Dim mySqlTableObj As JAVAOBJECT Set mySqlTable = jsDU.GetClass("org.piu.MySQLTable.MySQLObject") Set mySqlTa

我在调用mySqlTableObj.init(url、用户、密码)时遇到了这个错误“访问产品对象方法时出错”

以下是lotusscript脚本库:

Dim jsDU As New JAVASESSION
Dim mySqlTable As JAVACLASS
Dim mySqlTableObj  As JAVAOBJECT

Set mySqlTable = jsDU.GetClass("org.piu.MySQLTable.MySQLObject")
Set mySqlTableObj = mySqlTable.Createobject()
Call mySqlTableObj.init(url,user,password)
Set getMySQLTableObject = mySqlTableOBJ
public void init( String url, String un,String pd) {

    this.url = url;
    this.un = un;
    this.pd = pd;
}
以下是java脚本库:

Dim jsDU As New JAVASESSION
Dim mySqlTable As JAVACLASS
Dim mySqlTableObj  As JAVAOBJECT

Set mySqlTable = jsDU.GetClass("org.piu.MySQLTable.MySQLObject")
Set mySqlTableObj = mySqlTable.Createobject()
Call mySqlTableObj.init(url,user,password)
Set getMySQLTableObject = mySqlTableOBJ
public void init( String url, String un,String pd) {

    this.url = url;
    this.un = un;
    this.pd = pd;
}
我不是一直都有这个错误。有时不出现,有时出现。有人能帮我吗


谢谢

错误发生在哪一行?如果您还不知道,您可以通过使用LotusScript调试器,或者通过使用
On Error
语句,通过
Erl
函数捕获错误,以获取行号来找到答案。您好!我已经提到了它出错的地方。我在调用mySqlTableObj.init(url、用户、密码)时收到这个错误“error accessing product object method”,这表明类中的Createobject方法失败,因此它没有为mySqlTableObj返回有效的JAVAOBJECT。我怀疑是否有人能告诉你原因。你还没有展示整个班级。您还没有说明您使用的是哪个版本的Notes或Domino。您没有提到此代码运行的上下文—它是什么类型的脚本,在哪里运行,这段代码是只调用一次还是重复调用,等等。您只说过有时失败,有时不成功。这还不够,对不起,我问了一些多余的问题;不知何故,我错过了你在问题开始时所说的错误。有一件事你可以尝试,虽然我不知道是否有用,那就是用斜杠替换
GetClass
调用中的点,比如
jsDU.GetClass(“org/piu/MySQLTable/MySQLObject”)
。设计器帮助建议使用斜杠,因为在某些平台上使用dots时GetClass可能会失败。