You can not classload a 32-bit native library (JNI) using a 64-bit JVM, and vice versa. You will be constrained to a 32-bit JVM as long as those 32-bit native libraries are required.
Axton The opinions, statements, and/or suggested courses of action expressed in this E-mail do not necessarily reflect those of BMC Software, Inc. My voluntary participation in this forum is not intended to convey a role as a spokesperson, liaison or public relations representative for BMC Software, Inc. On Fri, Feb 4, 2011 at 8:27 AM, Frex Popo <[email protected]> wrote: > ** > Dear listers, > > I am not a Java person and would need some pointers from those who wrote > Java API in the past. > > The company integrated with some supplier's application using web services. > They got into all kind of problems so they decided to go it the Java API > route. > > Someone from the supplier's end wrote some Java program which connects to > the remedy server and creates/updates some tickets etc.. He started with a > stand alone server which he installed in his machine. He used all the dll. > file listed in the API integration manual. He got his program working. > > He then deployed his program in a WAS61 (websphere web server) in a 32x > machine. It worked just fine, or at least what I was told. He then did the > same in one of our x64 but machine but it bails during deployment the > application gives errors (please see below). > > They are all pointing to the fact that the dlls are x32 and not 64x. > > My question is if this is the case, why is it that we got a Mid-Tier which > uses x32 libraries working fine in a WAS61 x64 machine? What's different? > > Where do I look to start with, in order to compare what's on both machines > (x32 [where the API works] and x64 [where it does not]), simply because the > two machines are different with different software/components/specs etc and > not just the Remedy API libraries?? > > Also, could the Java driver or C driver be used as a test to prove that the > API libraries are the culprit? > > Is there anyway you can emulate a x64 JVM to run the 32x API? > > Anyway pointers will be very much appreciated as we are quite stuck as to > what do next!! > > Regards > > frex > 3/02/11 9:30:07:663 CET] 0000006e DispatchActio E > org.apache.struts.actions.DispatchAction dispatchMethod > Dispatch[/editInspeccion] to method 'guardar' returned an exception > > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:618) > at > org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:269) > at > org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:170) > at > com.eptisa.pavimentos.control.action.GenericAction.execute(GenericAction.java:106) > at > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) > at > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > at > com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1096) > at > com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:570) > at > com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478) > at > com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90) > at > com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748) > at > com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1466) > at > com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:119) > at > com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458) > at > com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387) > at > com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102) > at > com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) > at > com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) > at > com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) > at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136) > at > com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195) > at > com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743) > at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873) > at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473) > Caused by: java.lang.UnsatisfiedLinkError: > com/bmc/arsys/api/Proxy.ARInitialization()J > at com.bmc.arsys.api.Proxy.<init>(Unknown Source) > at com.bmc.arsys.api.ProxyJRpcBase.<init>(Unknown Source) > at com.bmc.arsys.api.ProxyJRpc.<init>(Unknown Source) > at com.bmc.arsys.api.ProxyManager.createProxy(Unknown Source) > at com.bmc.arsys.api.ProxyPool.get(Unknown Source) > at com.bmc.arsys.api.PoolingProxyManager.getProxy(Unknown > Source) > at com.bmc.arsys.api.ARServerUser.logout(Unknown Source) > at com.avisa.AvisaServer.logoutServer(AvisaServer.java:93) > at > com.avisa.AvisaServer.modificarFormulario(AvisaServer.java:120) > at com.avisa.Avisa.inspeccionar(Avisa.java:64) > at > com.eptisa.pavimentos.facade.DFInspeccion.guardar(DFInspeccion.java:273) > at > com.eptisa.pavimentos.control.action.InspeccionAction.guardar(InspeccionAction.java:265) > > > > _attend WWRUG11 www.wwrug.com ARSlist: "Where the Answers Are"_ _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org attend wwrug11 www.wwrug.com ARSList: "Where the Answers Are"

