2 tianyufeixiang9 tianyufeixiang9 于 2014.02.19 11:41 提问

arcgis java 连接sde错误 求帮助

initializeArcGISLicenses();
SdeWorkspaceFactory sdeFact = new SdeWorkspaceFactory();
// Create a PropertySet object that will contain all of the
// SDE connection parameters
PropertySet propSet = new PropertySet();
// Populate the property set with the connection parameters
propSet.setProperty("SERVER", server);
propSet.setProperty("INSTANCE", instance);
propSet.setProperty("DATABASE", database);
propSet.setProperty("USER", user);
propSet.setProperty("PASSWORD", password);
propSet.setProperty("VERSION", "sde.DEFAULT");
** IWorkspace w= sdeFact.open(propSet, 0); **
// Open the ArcSDE workspace using the connection PropertySet
Workspace ws = new Workspace(w);

这行 IWorkspace w= sdeFact.open(propSet, 0);报错
AutomationException: 0x80041501 - Operation Failed in 'esriDataSourcesGDB.SdeWorkspace.1'

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!