0
를, 나는 오류가 발생합니다. AuthoringException : {0} 연결 드라이버 목록을 가져 오는 동안 오류가 발생했습니다. (SLS 16002) 아래가/연결 만들기 SDK 게시 :</p> <p>com.sap.sl.sdk.authoring.internal : 나는 관계 연결을 만들고 게시하려면 내 자바 프로그램을 실행하면 오류 (SLS 16002)
내 코드 :는 오류 얻을
public class createnewuser {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
String CMS = "WIN-SADERTL72LE:6400";
String userID = "administrator";
String password = "zxscdfv";
String auth = "secEnterprise";
IEnterpriseSession enterpriseSession;
try
{
ISessionMgr mySessionMgr = CrystalEnterprise.getSessionMgr();
enterpriseSession = mySessionMgr.logon(userID, password, CMS,auth);
if (enterpriseSession != null)
{//Create and store useful objects for the session.
SlContext context;
context = SlContext.create();
context.getService(CmsSessionService.class).setSession(enterpriseSession);
CmsResourceService service = context.getService(CmsResourceService.class);
String tempFolder = "c:\\Temp\\";
String user = "cms_boxi4"; // dbconnection.getParameter(DatabaseConnection.USER_NAME).getValue();
String pwd = "zxcdfgh" ;
String dbmsName = "MS SQL Server 2008" ; //dbconnection.getParameter(DatabaseConnection.DBMS).getValue();
String ntwkName = "OLE DB Providers" ; //dbconnection.getParameter(DatabaseConnection.NETWORK_LAYER).getValue();
String connName = "WIN-SADERTL72LE" ; //dbconnection.getParameter(DatabaseConnection.DATASOURCE).getValue();
String dbName = "cms_boxi4";
String connectionName = "SDKTestRelationalConn";
com.sap.sl.sdk.authoring.connection.ConnectionFactory connectionFactory;
connectionFactory = context.getService(com.sap.sl.sdk.authoring.connection.ConnectionFactory.class);
RelationalConnection connection = connectionFactory.createRelationalConnection(connectionName, dbmsName, ntwkName);
connection.getParameter("DATASOURCE").setValue(connName);
connection.getParameter("DATABASE").setValue(dbName);
connection.getParameter("USER_NAME").setValue(user);
connection.getParameter("PASSWORD").setValue(pwd);
System.out.println("Passo 4");
com.sap.sl.sdk.authoring.local.LocalResourceService localResourceService = context.getService(com.sap.sl.sdk.authoring.local.LocalResourceService.class);
localResourceService.save(connection, tempFolder + connectionName + ".cnx", true);
service.publish(tempFolder + connectionName + ".cnx", "/Connections" , true);
}
enterpriseSession.logoff();
}
catch(Exception e)
{
e.printStackTrace();
}
}
}
라인 : 어떤 도움에 감사드립니다
RelationalConnection connection = connectionFactory.createRelationalConnection(connectionName, dbmsName, ntwkName);
.
최저 시선,
MJ
: