Unable to get CSClient in CSSDK
Dear All,
I am using CSSDK 3.1 with Teamsite 6.7.2 SP-1
TS is running on solaris
CSSDSK Java program is running on local XP box.
I am able to get the factory object but when i tries to client object it is showing following error.
"An exception occurred
com.interwoven.cssdk.access.CSAuthenticationException: (Wrong username/password)"
while i am using right username/password.
Java Code:
public static void main(String[] args) {
CSFactory factory = null;
CSClient client = null;
String username, password, role;
String factoryName, path;
// read the factory type from a properties file
Properties props=new Properties();
try {
props.load(new FileInputStream("D:/Workspace/CSSDK/src/samples.properties"));
} catch ( FileNotFoundException fnf ) {
System.out.println( "The properties file was not found" );
} catch ( IOException io ) {
System.out.println( "Some type of I/O exception has occurred" );
}
// create the factory
try {
factory=CSFactory.getFactory(props);
factoryName = factory.getClass().getName();
System.out.println( "Factory of type " + factoryName + " created" );
} catch (CSFactoryInitializationException fie) {
System.out.println( "The factory cannot be initialized" );
fie.printStackTrace();
}
username = "user";
password = "pass";
role = "master";
path = "path";
// create the client object
try {
System.out.println( "Getting client with username " + username + ", password " + password + ", and role " + role );
client = factory.getClient( username, role,
password, Locale.getDefault(),
"mydemo", null );
System.out.println( "Client object obtained" );
Please tell me how to rectify this error.
Thanks in advance.
I am using CSSDK 3.1 with Teamsite 6.7.2 SP-1
TS is running on solaris
CSSDSK Java program is running on local XP box.
I am able to get the factory object but when i tries to client object it is showing following error.
"An exception occurred
com.interwoven.cssdk.access.CSAuthenticationException: (Wrong username/password)"
while i am using right username/password.
Java Code:
public static void main(String[] args) {
CSFactory factory = null;
CSClient client = null;
String username, password, role;
String factoryName, path;
// read the factory type from a properties file
Properties props=new Properties();
try {
props.load(new FileInputStream("D:/Workspace/CSSDK/src/samples.properties"));
} catch ( FileNotFoundException fnf ) {
System.out.println( "The properties file was not found" );
} catch ( IOException io ) {
System.out.println( "Some type of I/O exception has occurred" );
}
// create the factory
try {
factory=CSFactory.getFactory(props);
factoryName = factory.getClass().getName();
System.out.println( "Factory of type " + factoryName + " created" );
} catch (CSFactoryInitializationException fie) {
System.out.println( "The factory cannot be initialized" );
fie.printStackTrace();
}
username = "user";
password = "pass";
role = "master";
path = "path";
// create the client object
try {
System.out.println( "Getting client with username " + username + ", password " + password + ", and role " + role );
client = factory.getClient( username, role,
password, Locale.getDefault(),
"mydemo", null );
System.out.println( "Client object obtained" );
Please tell me how to rectify this error.
Thanks in advance.
0
Comments
Categories
- All Categories
- 107 Developer Announcements
- 53 Articles
- 104 General Questions
- 141 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 898 Cloud Fax and Notifications
- 76 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 118 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
TeamSite Developer Resources
If you are interested in gaining full access to the content, you can register for a My Support account here.
- Docker Automation
- LiveSite Content Services (LSCS) REST API
- Single Page Application (SPA) Modules
- TeamSite Add-ons
If you are interested in gaining full access to the content, you can register for a My Support account here.