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)
ProtocolNotSupportedException
raul77
Hi All
I am getting an exception while trying to login to interwoven using java WOM API .
My program is,
import com.imanage.cms.api.workteam.SessionManager;
import com.imanage.cms.api.workteam.SimpleSession;
public class SimpleLogin{
// Login parameters
public static String userId = "sujay"; //Enter user ID
public static String password = "sujay"; //Enter password
public static String domain = "satyam"; //Enter domain
public static String applicationName = "sample"; //Enter application name
public static String serverName = "hcc-pc831"; //Enter server name
public static void main(String args[]){
try{
System.out.println("Creating Session Manager...");
SessionManager manager = SessionManager.getInstance();
System.out.println("Session Manager created. Creating Simple Session...");
// Create a SimpleSession
SimpleSession session = manager.createSimpleSession(applicationName,serverName);
System.out.println("Simple Session created. Login...");
// Login to the session
if(domain != null || !(domain.equals(""))){
session.logon(domain,userId, password);
}else{
session.logon(userId, password);
}
System.out.println("Logged in. Ping...");
// Test the connection.
session.ping();
System.out.println("Connection OK.");
// Logoff from the session.
session.logoff();
System.out.println("Logged off.");
}catch(Exception e){
System.out.println("Exception :: " + e);
e.printStackTrace();
}
}
}
It Complies without error. But while running I get an exeception
com.imanage.cms.exceptions.base.ProtocolNotSupportedException: Client protocol version is 1.13, Server protocol version is 1.12
The server output is :
Creating Session Manager...
Session Manager created. Creating Simple Session...
Simple Session created. Login...
Exception :: com.imanage.cms.exceptions.base.ProtocolNotSupportedException: Client protocol version is 1.13, Server protocol version is 1.12
com.imanage.cms.exceptions.base.ProtocolNotSupportedException: Client protocol version is 1.13, Server protocol version is 1.12
at com.imanage.cms.t1.service.cmsbeans.CmsGetChallengeBean.execute(CmsGetChallengeBean.java:72)
at com.imanage.cms.t1.service.cmsbeans.CmsGetChallengeBean.execute(CmsGetChallengeBean.java:27)
at com.imanage.cms.t1.service.CmsServiceBean.processMessage(CmsServiceBean.java:157)
at com.imanage.cms.t1.service.CmsMsgProcessor.processMessage(CmsMsgProcessor.java:165)
at com.imanage.cms.t1.service.CmsMsgProcessor.processMessage(CmsMsgProcessor.java:139)
at com.imanage.cms.t1.service.CmsServiceBeanContainer.processMessage(CmsServiceBeanContainer.java:40)
at com.imanage.cms.t1.net.rpc.RpcSession.processMessage(RpcSession.java:546)
at com.imanage.cms.t1.net.rpc.RpcSession$RpcSessionThread.run(RpcSession.java:460)
at com.imanage.cms.fc.base.ImThread.callRun(ImThread.java:808)
at com.imanage.cms.fc.base.ImThread.executeOneLoop(ImThread.java:931)
at com.imanage.cms.fc.thread.ThreadHWRunner.run(ThreadHWRunner.java:141)
at java.lang.Thread.run(Unknown Source)
at com.imanage.cms.fc.cmsifc.CMSClientInterfaceBase.executeMessage(CMSClientInterfaceBase.java:320)
at com.imanage.cms.fc.cmsifc.CMSClientInterfaceBase.buildResponseKey(CMSClientInterfaceBase.java:2223)
at com.imanage.cms.fc.cmsifc.CMSClientInterfaceBase.reLogon(CMSClientInterfaceBase.java:2280)
at com.imanage.cms.fc.cmsifc.CMSClientInterfaceBase.logon(CMSClientInterfaceBase.java:2172)
at com.imanage.cms.t2.jom.impl.LibraryImpl.logon(LibraryImpl.java:110)
at com.imanage.cms.t2.jom.impl.SimpleSessionImpl.getLibrary(SimpleSessionImpl.java:71)
at com.imanage.cms.t2.jom.impl.SimpleSessionImpl.getLibrary(SimpleSessionImpl.java:55)
at com.imanage.cms.api.workteam.impl.SimpleSessionImpl.logon(SimpleSessionImpl.java:53)
at mypackage.SimpleLogin.main(SimpleLogin.java:35)
Failed to execute message: CmsGetChallenge
Return code=700
Error msg=Message for code 700 not found.
Library=satyam
Server=HCC-PC831
KIndly Let me know what is the problem.
Regards,
sujay
Find more posts tagged with
Comments
peter_choe
it seems that you have different versions between the client and the server as shown by:
com.imanage.cms.exceptions.base.ProtocolNotSupportedException: Client protocol version is 1.13, Server protocol version is 1.12
are you compiling your code with the same WOM API version as the server?
just a guess.
raul77
I have the same api version on the server and client