Select to view content in your preferred language

SeConnection doesn't work with Direct Connect.

2595
3
08-10-2010 10:54 AM
AndyMoon
New Contributor
I am attempting to do a direct connect using SeConnection and can't seem to get it to work.  I followed the direction on this page http://help.arcgis.com/en/geodatabase/10.0/sdk/arcsde/api/japi/japi.htm for setting up the direct connect, but receive an error.  I also ran the 9.3.1 SP2 to get the fix explained in this bug http://resources.arcgis.com/content/nimbus-bug?bugID=TklNMDUzMTAw

the following code

connection = new SeConnection("ServerName", "sde:oracle11g", null, this.theUser, this.thePassword + "@" + this.theDatabase);

causes an this exception

java.lang.UnsatisfiedLinkError: D:\devtools\ArcGIS\ArcSDE\ora11gexe\bin\sdejavautil.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at com.esri.sde.sdk.client.JGsrvr.<clinit>(Unknown Source)
at com.esri.sde.sdk.client.SeConnection.x(Unknown Source)
at com.esri.sde.sdk.client.SeConnection.<init>(Unknown Source)

Any help would be appreciated.
0 Kudos
3 Replies
VinceAngelo
Esri Esteemed Contributor
Direct Connect requires that the word size environments be identical -- 32-bit app
with ArcSDE 32-bit DLL and  32-bit Oracle library *or* a 64-bit app with an ArcSDE
64-bit DLL and a 64-bit Oracle client install.  Your error message indicates you're
attempting to mix-n-match architectures, which cannot work.  You'll need to use
a 64-bit ArcSDE install to make 64-bit Java and 64-bit Oracle work.

- V
0 Kudos
AndyMoon
New Contributor
Direct Connect requires that the word size environments be identical -- 32-bit app
with ArcSDE 32-bit DLL and  32-bit Oracle library *or* a 64-bit app with an ArcSDE
64-bit DLL and a 64-bit Oracle client install.  Your error message indicates you're
attempting to mix-n-match architectures, which cannot work.  You'll need to use
a 64-bit ArcSDE install to make 64-bit Java and 64-bit Oracle work.

- V


Do you know which install to run in order to get the 64 bit version of the ArcSDE Java SDK?  I have an ArcIMS install that installs it, but only as 32 bit.
0 Kudos
VinceAngelo
Esri Esteemed Contributor
There is a 64-bit Java SDK installer in the media kit, but I haven't looked for it on the
distribution site.  In the copy to which I have access, it's in an "ArcSDE_SDK" folder,
which contains both 64-bit and 32-bit folders for Linux and Windows (64-bit only for
Sun/IBM/HP).

- V
0 Kudos