Author Topic: Error code: 0x800702e4  (Read 10284 times)

SkiRat

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Error code: 0x800702e4
« on: August 11, 2010, 12:13:42 am »
I'm get this error at run time using an Eclipse IDE. I have a very simple program using the org.sparx package. I don't think it's a CLASSPATH problem because the eaapi.jar is defined as one of the preferences.  The java program will compile but the return error is;

Exception in thread "main" java.lang.Exception: Failed to construct object. Error code: 0x800702e4
      at org.sparx.Repository.comConstructor(Native Method)
      at org.sparx.Repository.<init>(Repository.java:167)
      at EADump.main(EADump.java:8)

Anyone have ideas?
thanks for your help

mrf

  • EA User
  • **
  • Posts: 311
  • Karma: +0/-0
    • View Profile
Re: Error code: 0x800702e4
« Reply #1 on: August 11, 2010, 08:51:01 am »
The error code 0x800702e4 is an operating system error code, thrown by the COM subsystem. The corresponding error message is:

"The requested operation requires elevation"

So please check that the user the process is set to run under has the necessary permissions to create registered COM objects. If all else fails, try running the application from the command line (which automatically elevates to administrator afaik) and see if it works like that.
Best Regards,

Michael

[email protected]
"It is more complicated than you think." - RFC 1925, Section 2.8

SkiRat

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Error code: 0x800702e4
« Reply #2 on: August 12, 2010, 01:09:32 am »
The problem is 32-bit versus 64-bit architecture. No problem with classpath definition and accessing the eaapi.jar file and no run-time errors in 32-bit land. The problem is getting the API to work on the
64-bit system. The 64-bit system is where I see the Error code.
« Last Edit: August 12, 2010, 04:48:15 am by jpostek »
thanks for your help

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8074
  • Karma: +118/-20
    • View Profile
Re: Error code: 0x800702e4
« Reply #3 on: August 12, 2010, 08:44:18 am »
Then it's very simple.  EA doesn't exist at all in 64 bit land, it's a 32 bit only application.

SkiRat

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Error code: 0x800702e4
« Reply #4 on: August 13, 2010, 03:32:33 am »
Solved problem, all is good!
thanks for your help

mrf

  • EA User
  • **
  • Posts: 311
  • Karma: +0/-0
    • View Profile
Re: Error code: 0x800702e4
« Reply #5 on: August 16, 2010, 08:53:23 am »
Good to hear :)

If you have the time, please let us know the steps you took to resolve the issue so that other forum users can benefit from your experience.
Best Regards,

Michael

[email protected]
"It is more complicated than you think." - RFC 1925, Section 2.8

SkiRat

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Error code: 0x800702e4
« Reply #6 on: August 17, 2010, 01:49:21 am »
I'm using 64-bit architecture, windows, unfortunately.  No Linux yet.

But I just opened the credentials up at the top level of the EA directory to the world. Also, I changed the location for the Java home to the default, out-of-box, location. Also, opened the permissions there too.

Set credentials on windows is not as seamless as running a chmod at the top level directory structure. Here's what you can do: Open up the properties by right-click on the directory you need to change, (properties), and go to the security tab within that dialog box. At that point you can change the permissions for the directory to allow users access.

Also, anyone know the link for a standard javadoc of EA api packages?

And, where are good EA api java code examples?
thanks for your help

mrf

  • EA User
  • **
  • Posts: 311
  • Karma: +0/-0
    • View Profile
Re: Error code: 0x800702e4
« Reply #7 on: August 17, 2010, 08:53:43 am »
Check out %InstallDir%\Code Samples\Java_Sample for a fairly comprehensive Java example.

We don't have JavaDoc publically available, but if you send an email to support with attention to me I can probably organise something for you.
Best Regards,

Michael

[email protected]
"It is more complicated than you think." - RFC 1925, Section 2.8