CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > Data Management

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-18-2007, 09:50 AM
fcoexposito fcoexposito is offline
Registered User
 
Join Date: Apr 2004
Posts: 78
Hung up when creating a new WMSession

Hello,

We have a java application which needs to connect to MM. The code we use to open the session is the next one:

log.debug("Before open a new session");
newSession_=new WMSession();
WMObject.session=null;
log.debug("After open a new session");

When we run the application, the application hungs up and in the log file we only see the first debug message (Before open a new session) and the process doesn´t die. But this doesn´t happen everytime we run the application. It happends sometimes and other times it works properly.

Thanks a lot
Reply With Quote
  #2  
Old 10-19-2007, 06:02 AM
mgb mgb is offline
Registered User
 
Join Date: Sep 2007
Posts: 82
Re: Hung up when creating a new WMSession

There should be one and only one WMSession object. I don't know your application initialization, but if there is already one session this could be the problem. Also depending upon the initialization you could be having a thread blocking issue as threads wait for the pdm.semaphore. It is also possible that the initialization which MM does in the WMServer object is not being done by your application, or is not yet complete and therefore WMSession might be blocked or looking for a license. Try doing a thread dump in the console window to see what the threads are doing when this occurs.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 11:32 AM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.