Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Throwing CSException for getClient method in CSFactory
kolli
Hi All,
I'm getting CSException while using getClient method in CSFactory.
This is my pseudo code.
Properties props=new Properties();
try {
props.load(new FileInputStream("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);
} catch ( CSFactoryInitializationException fie ) {
System.out.println( "The factory cannot be initialized" );
fie.printStackTrace();
}
username = args[0];
password = args[1];
role = args[2];
source = args[3];
// create the client object
try {
client = factory.getClient( username, role,password, Locale.getDefault(),"mydemo",null);
} catch ( CSException e ) {
e.printStackTrace();
}
So please help how to resolve this exception.
Thanks in Advance.
Find more posts tagged with
Comments
There are no comments yet