简体   繁体   中英

Getting Exception in thread "main" com.telelogic.rhapsody.core.RhapsodyRuntimeException: Can't co-create object

import com.telelogic.rhapsody.core.IRPApplication;
import com.telelogic.rhapsody.core.RhapsodyAppServer;

public class TestRhapsody {
  public static void main(String[] args) {
    IRPApplication irpApplication =  RhapsodyAppServer.createRhapsodyApplication();
  }
}

I am using windows 10 64bit JDK 64bit

Issue will not exits in windows 8/7 Only in windows 10 facing this problem.

Please help me on this issue.

I think you will need everything to be in either 32 bit or 64 bit. when i say everything it means

  • Rhapsody
  • JVM
  • Eclipse

If you are trying 64 bit i would encourage to try out the 32 bit. I had problems with 64 bit and switched to 32 bit

This may be an bad install, ie the Rhapsody installation did not complete and register the DLLs correctly. (Which is why an upgrade was perceived to have fixed the issue). To fix the issue you would need to have admin on the windows machine.

  1. Run a command prompt as Administrator (this is important, right-click and Run as Administrator)
  2. Browse to where the rhapsody.exe is.
  3. Type rhapsody.exe /RegServer
  4. Type rhapsody.reg

Note: If you have multiple Rhapsody's installed then the COM API for only one can be registered (usually the last one) and hence you need to re-register (run rhapsody.exe /RegServer as admin) to switch between them. If you don't do this then plugins may get unexpected errors.

Issue is resolved after switching to latest Rhapsody version 8.3.1

I have faced this Can't co-create object issue in Rhapsody version 8.2.1. After migrating to Rhapsody version 8.3.1 Issue is resolved

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM