Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Unable to get CSClient in CSSDK
Vip777
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.
Find more posts tagged with
Comments
Vip777
Its working..So closing the thread.