Java call to a VB COM code

Hello,
I have a standalone java application making call to a 3rd party VBCOM code. Im using EZCOM bridge. I get the following exception when i try to make a call. can anyone help me as to why this comes.
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\WINNT\system32\Jpa
wcom242d.dll: %1 is not a valid Win32 application
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at pawcom.Btrieve.<clinit>(Btrieve.java:46)
at TestPeachTree.<init>(TestPeachTree.java:12)
at TestPeachTree.main(TestPeachTree.java:40)
thanx
raviCS

sir, this is raaj,, long back u posted a question in forum that, how to call functions or procedures from dll created as a com component from java... Did u got it, do u have any idea about it.. Plz help me.. I am also created one dll in vb which contains some functions. I know what the dll does, but I want to call all the functions availabe in vb dll want to call from java. plz help me ya sir..

Similar Messages

  • Call a VB dll (com) from a java

    hi
    I need to call Vb dll from a java.
    this dll is a com object,, whit a database calling.
    i neet to see a example, please.
    [email protected]

    Well, if you don't want to switch to the microsoft virtual machine, you can try the classes from nevaobject.com. These will allow you to use the sun jvm and work with com objects. Using these is a bit combersome, but I can attest to their validity. Here is the link.
    http://www.nevaobject.com/
    If you want to persue this, I would be happy to provide code examples.
    -DB

  • Java calls from ABAP code in XI

    Java and ABAP gurus,
    Is it possible to make java call from ABAP. Is a sample out there I can take a look at.
    Please help.
    Thanks.

    Hi,
    YES, Very well it  is Possible,
    This will help you
    /people/bv.pillai/blog/2006/09/28/calling-mdm-java-api-application-executable-from-abap
    /people/vijayasarathy.raghunathan/blog/2005/12/28/java-editor-inside-abap
    /people/gregor.wolf3/blog/2004/08/26/setup-and-test-sap-java-connector-outbound-connection
    JCo Outbound( calling Java Function from ABAP )
    /people/gregor.wolf3/blog/2004/08/26/setup-and-test-sap-java-connector-outbound-connection
    Call Java Class and Methods from ABAP
    Regards
    Agasthuri Doss

  • "ORA-29532: Java call terminated by uncaught Java exception

    Dear Oracle:
    I am trying to establish an HTTPS connection from a Java stored
    procedure that is wrapped in a PL/SQL procedure and loaded into a
    Package. We are running on Oracle 8.1.7.
    My Java code compiles and runs fine when run stand-alone outside
    Oracle; I can establish the connection to a secure server and talk to
    the server. However when I load this Java class (using the loadjava
    utility) this class can no longer run and I get a the following
    exception:
    "ORA-29532: Java call terminated by uncaught Java exception:
    javax.net.ssl.SSLException: SSL handshake failed:
    X509CertChainIncompleteErr"
    I have tried loading the JSSE from Sun and I still get the same error.
    Searching in the Discussing Forums I found the following link (which
    describes a procedure that logs into the UPS secure server site and
    grabs some XML) http://osi.oracle.com/~mbpierma/SSL_Java_DB.html .
    This code works ok if we try to connect to UPS server. However this
    code doesn't work if we try to log in to a different server (such as
    ???). If I modify this code slightly and try to log to any other
    sever server I get the same error as the one above. Investigation
    lead us to understand that the certificate at the UPS web site is a
    self-signed certificate -- not one generated by a major 'recognized'
    authority such as Verisign or Thawte.
    Further research pointed me to the following URL
    http://www.znow.com/sales/oracle/network.816/a76932/appf_ora.htm#619367
    This URL has the documentation for JAVA SSL for 8.1.6 which I figure
    I could read and try to make it work in 8.1.7.
    I looked at your Secure Hello World example, however the code is
    missing the most critical parts of the whole example, it does not
    specify where the certificate or any of the security settings come
    from (see the attached JavaCertExample.txt file).
    So, my questions are the following:
    1) What should I do to avoid the error mentioned above?
    2) Do you have a sample piece of code that describes how to make a
    HTTPS connection using a Java stored procedure?
    3) Can I make the HTTPS connection using a URL class and not using
    sockets directly?
    4) Do I need to load the JSEE provided by Sun?
    5) Will the solution be different for Oracle 9i?
    // SecureHelloClient.java
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import javax.net.ssl.*;
    import javax.security.cert.X509Certificate;
    import oracle.security.ssl.OracleSSLCredential;
    import oracle.security.ssl.OracleSSLSocketFactory;
    import oracle.security.ssl.OracleSSLProtocolVersion;
    import oracle.security.ssl.OracleSSLSession;
    public class SecureHelloClient
    public static void main(String argv[])
    String hostName = "localhost";
    if(argv.length != 0)
    String hostName = argv[0];
    // Set the SSLSocketFactoryImpl class as follows:
    java.util.Properties prop = System.getProperties();
    prop.put("SSLSocketFactoryImplClass",
    "oracle.security.ssl.OracleSSLSocketFactoryImpl");
    try
    // Get the default socket factory
    OracleSSLSocketFactory sSocFactory
    = (OracleSSLSocketFactory)SSLSocketFactory.getDefault();
    sSocFactory.setSSLProtocolVersion(OracleSSLProtocolVersion.SSL_Version_3_0);
    OracleSSLCredential sslCredObj = new OracleSSLCredential();
    // Where did these values come from? caCert, userCert, trustedCert,
    // Set the certificate chain and private key if the
    // server requires client authentication
    sslCredObj.addCertChain(caCert)
    sslCredObj.addCertchain(userCert)
    sslCredObj.setPrivateKey(userPvtKey, userPassword)
    // Populate credential object
    sslCredObj.addTrustedCert(trustedCert);
    sSocFactory.setSSLCredentials(sslCredObj);
    // Create the socket using factory
    SSLSocket jsslSoc =
    (SSLSocket)sSocFactory.createSocket(hostName, 8443);
    String [] ciphers = jsslSoc.getSupportedCipherSuites() ;
    // Select the ciphers you want and put them.
    // Here we will put all availabel ciphers
    jsslSoc.setEnabledCipherSuites(ciphers);
    // We are creating socket in client mode
    jsslSoc.setUseClientMode(true);
    // Do SSL handshake
    jsslSoc.startHandshake();
    // Print negotiated cipher
    System.out.println("Negotiated Cipher Suite: "
    +jsslSoc.getSession().getCipherSuite());
    System.out.println("");
    X509Certificate[] peerCerts
    = ((javax.net.ssl.SSLSocket)jsslSoc).getSession().getPeerCertificateChain();
    if (peerCerts != null)
    System.out.println("Printing server information:");
    for(int i =0; i ? peerCerts.length; i++)
    System.out.println("Peer Certificate ["+i+"] Information:");
    System.out.println("- Subject: " + peerCerts.getSubjectDN().getName());
    System.out.println("- Issuer: " + peerCerts[i].getIssuerDN().getName());
    System.out.println("- Version: " + peerCerts[i].getVersion());
    System.out.println("- Start Time: " + peerCerts[i].getNotBefore().toString());
    System.out.println("- End Time: " + peerCerts[i].getNotAfter().toString());
    System.out.println("- Signature Algorithm: " + peerCerts[i].getSigAlgName());
    System.out.println("- Serial Number: " + peerCerts[i].getSerialNumber());
    else
    System.out.println("Failed to get peer certificates");
    // Now do data exchange with client
    OutputStream out = jsslSoc.getOutputStream();
    InputStream in = jsslSoc.getInputStream();
    String inputLine, outputLine;
    byte [] msg = new byte[1024];
    outputLine = "HELLO";
    out.write(outputLine.getBytes());
    int readLen = in.read(msg, 0, msg.length);
    if(readLen > 0)
    inputLine = new String(msg, 0, readLen);
    System.out.println("");
    System.out.println("Server Message:");
    System.out.println(inputLine );
    else
    System.out.println("Can't read data from client");
    // Close all sockets and streams
    out.close();
    in.close();
    jsslSoc.close();
    catch(SSLException e)
    System.out.println("SSL exception caught:");
    e.printStackTrace();
    catch(IOException e)
    System.out.println("IO exception caught:");
    e.printStackTrace();
    catch(Exception e)
    System.out.println("Exception caught:");
    e.printStackTrace();

    Hi,
    I have the same problem.
    Is some ORACLE guru that can help us ?
    We need to communicate with some servlet
    via POST method of https (SSL3)
    and with using private certificate on the client site.
    We need furthermore allow using of some proxy.
    Client site is realized as set of stored procedures within ORACLE 8.1.7
    In this time I am able to communicate with server without SSL and certificate
    using package utl_tcp
    (but with this solution without certificate is our customer not satisfied -:))
    ORACLE help us please !
    Pavel Pospisil
    [email protected]

  • Java calling functions in an OCX

    Hey folks,
    I have a proprietary OCX for a clicker system I use in my high school math classroom. The vendor gave me a VB SDK for calling the OCX functions and that works fine. However, I want to write apps using Java. So, I've thought about two options: 1) creating a VB DLL wrapper around the OCX and then calling routines from the VB DLL and 2) calling the routines from Java using some kind of Java COM bridge.
    Choice 1 seems like the more difficult choice because I'll still have to use some kind of Java COM bridge to access the VB DLL. Also, if my memory serves me correctly, I recall that VB DLL's are not necessarily accessed the same way that C or C++ DLL's are (or maybe that changed with .NET?).
    So, I spent the last week trying to find a Java COM bridge to make contact with the OCX directly. I've read through many posts here and I've searched around the net quite a bit. I've looked at JACOB, com4j, jawin, and comeclipse and I still can't get to the point where I can create a Java. com4j and comeclipse have come the closest to making me feel like there is light at the end of the tunnel. com4j's web site suggested using OLEVIEW to create the .IDL file that is almost like having the the type library (.tlb). That seemed to work, I do have a .IDL file. But when I tried to use com4j to create my wrapper files, the ClassFactory class didn't have any methods defined (it should have had some create... methods).
    So, then I tried comeclipse. That actually took the OCX directly and created a number of Java wrapper code files. The answer may actually already be in my hands, but I'm not sure how to instantiate the objects in the wrapper code files. I'm lucky because the OCX file includes a function that produces an About box (sAbout). So, if I can figure out the syntax to call the About box, I should be able to figure out the rest of the syntax.
    It would be awesome if someone had a clue about the syntax required in order to pull that About box up from Java.
    This is the code from what looks like the main (I guess you could call it the root) file. Furtherdown the page, I have the Java code that includes the sAbout reference.
    Filename: ctlPrsX.java (the OCX is called PrsX.ocx)
    * Generated on Sun Sep 14 14:43:08 PDT 2008
    * This class was 100% generated by the SWTtoCOM Type library
    * generator.  Please do not edit this class manually since
    * all changes will be lost on the next generation.
    package prsx;
    import au.com.swz.swttocom.swt.types.TypeUtils;
    import org.eclipse.swt.internal.ole.win32.GUID;
    import org.eclipse.swt.internal.ole.win32.IUnknown;
    import org.eclipse.swt.ole.win32.OleAutomation;
    import prsx.impl.__ctlPrsXListener;
    import prsx.impl._ctlPrsXImpl;
    public class ctlPrsX extends _ctlPrsXImpl {
         public static final GUID CLSID = TypeUtils.IIDFromString("{E08B4F09-B88A-11D3-B5DB-00104BA291B8}");
         private IUnknown objIUnknown;
         private __ctlPrsXListener mf_ctlPrsXListener;
          * Constructs a new ctlPrsX from the specified OleAutomation.
         public ctlPrsX(OleAutomation oleAutomation) {
              super(oleAutomation);
          * Constructs a new ctlPrsX from the specified OleAutomation and IUnknown.
         public ctlPrsX(OleAutomation oleAutomation, IUnknown unknown) {
              super(oleAutomation);
              this.objIUnknown = unknown;
          * Adds the specified listener to the set of Listeners that
          * will be notified when events occur.
          * @param listener the new listener to add.
          * @return true if the set of listeners did not already contain
          *         the specified listener, false otherwise.
         public boolean add__ctlPrsXListener(__ctlPrsX listener) {
              if (mf_ctlPrsXListener == null) {
                   mf_ctlPrsXListener = new __ctlPrsXListener();
                   addEventListener(__ctlPrsX.IID, 1, mf_ctlPrsXListener);
                   addEventListener(__ctlPrsX.IID, 2, mf_ctlPrsXListener);
                   addEventListener(__ctlPrsX.IID, 3, mf_ctlPrsXListener);
                   addEventListener(__ctlPrsX.IID, 4, mf_ctlPrsXListener);
                   addEventListener(__ctlPrsX.IID, 5, mf_ctlPrsXListener);
                   addEventListener(__ctlPrsX.IID, 6, mf_ctlPrsXListener);
                   addEventListener(__ctlPrsX.IID, 7, mf_ctlPrsXListener);
              return mf_ctlPrsXListener.addListener(listener);
          * Removes the specified listener from the set of Listeners that
          * will be notified when events occur.
          * @param listener the listener to remove.
          * @return true if the set of listeners contained the specified
          *         listener, false otherwise.
         public boolean remove__ctlPrsXListener(__ctlPrsX listener) {
              boolean bRtn = mf_ctlPrsXListener.removeListener(listener);
              if (mf_ctlPrsXListener.isEmpty()) {
                   removeEventListener(__ctlPrsX.IID, 1, mf_ctlPrsXListener);
                   removeEventListener(__ctlPrsX.IID, 2, mf_ctlPrsXListener);
                   removeEventListener(__ctlPrsX.IID, 3, mf_ctlPrsXListener);
                   removeEventListener(__ctlPrsX.IID, 4, mf_ctlPrsXListener);
                   removeEventListener(__ctlPrsX.IID, 5, mf_ctlPrsXListener);
                   removeEventListener(__ctlPrsX.IID, 6, mf_ctlPrsXListener);
                   removeEventListener(__ctlPrsX.IID, 7, mf_ctlPrsXListener);
                   mf_ctlPrsXListener = null;
              return bRtn;
    }Filename: _ctlPrsX.java (this file includes sAbout reference)
    * Generated on Sun Sep 14 14:43:08 PDT 2008
    * This class was 100% generated by the SWTtoCOM Type library
    * generator.  Please do not edit this class manually since
    * all changes will be lost on the next generation.
    package prsx;
    import au.com.swz.swttocom.swt.types.IAutomationObject;
    import au.com.swz.swttocom.swt.types.TypeUtils;
    import au.com.swz.swttocom.swt.types.pointer.IntPointer;
    import au.com.swz.swttocom.swt.types.pointer.StringPointer;
    import au.com.swz.swttocom.swt.types.pointer.VariantPointer;
    import org.eclipse.swt.internal.ole.win32.GUID;
    import org.eclipse.swt.ole.win32.Variant;
    public interface _ctlPrsX extends IAutomationObject {
         static GUID IID = TypeUtils.IIDFromString("{4F0E0D87-ABE3-4B53-A25F-BCD5CD8F4CC7}");
         public String sAbout();
         public void unInit();
         public String sDecode(StringPointer sCID, VariantPointer bBuf);
         public String sInit(IntPointer iCom);
         public boolean rFInit();
         public boolean rFStartClass(StringPointer className);
         public boolean rFStartClassSP(StringPointer className);
         public boolean rFStartQt(StringPointer correctAnswer);
         public boolean rFStartQtHW();
         public boolean rFStartQtSP();
         public boolean rFStopQuestion();
         public boolean rFStopClass();
          * Constructs a Variant representation of this interface that can then
          * be used to pass this interface as a parameter to methods.
          *@return a Variant representation of this interface.
         public Variant createSWTVariant();
         

    After a lot of searching, I had to resort to a second query as follows:
    $getID = mysqli_fetch_assoc(mysqli_query($conn, "SELECT photodate FROM table WHERE ref = $t"));
    $pdate = $getID['photodate'];
    $pdate= (date('d/m/Y', strtotime($pdate)));
    <td>Pictured : $pdate </td>
    produced the correct output.
    Moral - if you work at it long enough there is aways a way!
    Have fun!
    Howard Walker

  • Java node 'server0' terminated with exit code 2150 after JSPM patches

    Dear Experts,
    We want to install SAP Netweaver 7.3 EHP1.
    After applying patches SP11 from JSPM utility we tried to restart the SAP Java instances from SAP MMC.
    But it failed to start with error code :
    *** LOG => SfCJavaVm: exit hook is called. (rc = 2150)
    *** ERROR => Java node 'server0' terminated with exit code 2150.
    *** To resolve the issue, we restarted machine, Database services, SAP services but it still did not start.
    *** Let us know if you need any other trace file for debugging.
    Below is the log file:
    stdout log file:-
    stdout/stderr redirection
    node name   : server0
    host name   : INPUNEME01
    system name : ME2
    system nr.  : 00
    started at  : Thu Jul 17 00:10:29 2014
    JVMX version - Jun 22 2014 00:31:35 - 61_REL - optU - windows amd64 - 6 - bas2:220276 (mixed mode)
    (CompilerOracle read from file C:\usr\sap\ME2\J00\exe\sapjvm_6\jre\.hotspot_compiler)
    The active factory is : com.sap.engine.boot.loader.StandardClassLoaderFactory
    Class loading cache information loaded from package index [C:\usr\sap\ME2\J00\j2ee\cluster\bin\index.list]
    Reading manager properties from [kernelProperties.bin] file
       Checked the data for [16] ms
       Objects read for [109] ms
       Substituted the values for [94] ms
    Finished reading kernel objects for [203] ms
    Startup mode [NORMAL] and action [NONE] read
    AS Java version [7.31.3710.148365.20111012091351] is starting server process [ID3448650] on host [INPUNEME01.India.***.com] ...
    Loading [LogManager]... [109] ms
    Loading [PoolManager]... [0] ms
    Loading [ApplicationThreadManager]... 2.296: [GC2.296: [ParNew: 343552K->8912K(381696K), 0.0251348 secs] 343557K->8917K(2059008K), 0.0253589 secs] [Times: user=0.03 sys=0.03, real=0.02 secs]
    [125] ms
    Loading [ThreadManager]... [32] ms
    Loading [ClassLoaderManager]... [31] ms
    Loading [ClusterManager]... [485] ms
    Loading [LockingManager]... [63] ms
    Loading [ConfigurationManager]... [1624] ms
    Loading [CacheManager]... [141] ms
    Loading [DatabaseManager]... [547] ms
    Loading [SessionManager]... [515] ms
    Loading [LicensingManager]... [32] ms
    Loading [ServiceManager]...
    Initialize components for : 94 ms.
    Resolve components for : 31 ms.
    Load components for 969 ms.
    Loading services.
    Calculate startup service set for 266 ms.
      Service [tc~je~content~classification~handler] started. [16] ms / [0] CPU ms
      Service [tc~je~sca~ws.plugin] started. [16] ms / [0] CPU ms
      Service [engine.lm.log.facade] started. [62] ms / [0] CPU ms
      Service [engine.dsr.facade] started. [62] ms / [0] CPU ms
      Service [webservices] started. [62] ms / [0] CPU ms
      Service [tc~je~security~api] started. [62] ms / [0] CPU ms
      Service [tc~je~cross~api] started. [62] ms / [0] CPU ms
      Service [tc~je~mngt_model~srv] started. [62] ms / [0] CPU ms
      Service [r3startup] started. [62] ms / [0] CPU ms
      Service [security.destination.facade] started. [62] ms / [0] CPU ms
      Service [tc~esi~uddi~content~handler] started. [62] ms / [0] CPU ms
      Service [tc~je~sca~jco.plugin] started. [110] ms / [0] CPU ms
      Service [jmx_notification] started. [140] ms / [15] CPU ms
      Service [cluster] started. [125] ms / [0] CPU ms
      Service [runtimeinfo] started. [109] ms / [15] CPU ms
      Service [memory] started. [297] ms / [31] CPU ms
      Service [timeout] started. [297] ms / [15] CPU ms
      Service [userstore] started. [297] ms / [0] CPU ms
      Service [tc~sec~destinations~provider] started. [344] ms / [171] CPU ms
      Service [cross] start ================= ERROR =================
      CSN Component [BC-JAS-COR-RMT], DC Name [sap.com/cross]
    java.lang.NoSuchFieldError: ipaddress
    at com.sap.bc.proj.jstartup.fca.FCAProperties.init1(Native Method)
    at com.sap.bc.proj.jstartup.fca.FCAProperties.init(FCAProperties.java:54)
    at com.sap.engine.services.cross.fca.FCAConnectorImpl.<init>(FCAConnectorImpl.java:101)
    at com.sap.engine.services.cross.CrossFrame.start(CrossFrame.java:82)
    at com.sap.engine.core.service630.container.ServiceRunner.startFrame(ServiceRunner.java:165)
    at com.sap.engine.core.service630.container.ServiceRunner.startService(ServiceRunner.java:118)
    at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:65)
    at com.sap.engine.frame.core.thread.Task.run(Task.java:73)
    at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:178)
    at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:316)
    FATAL: Critical shutdown with exit code [2150] was requested due to [AS Java cannot be started; core service [cross] failed to start]
    Heap
    par new generation   reserved 419840K, committed 419840K, used 298078K [0x000000013fe70000, 0x0000000159870000, 0x0000000159870000)
      eden space 343552K,  84% used [0x000000013fe70000, 0x00000001518d3970, 0x0000000154df0000)
      from space 38144K,  23% used [0x0000000157330000, 0x0000000157be4038, 0x0000000159870000)
      to   space 38144K,   0% used [0x0000000154df0000, 0x0000000154df0000, 0x0000000157330000)
    concurrent mark-sweep generation reserved 1677312K, committed 1677312K, used 60K [0x0000000159870000, 0x00000001bfe70000, 0x00000001bfe70000)
    concurrent-mark-sweep perm gen reserved 1048576K, committed 1048576K, used 31907K [0x00000001bfe70000, 0x00000001ffe70000, 0x00000001ffe70000)
    stdout/stderr redirection
    node name   : server0
    host name   : INPUNEME01
    system name : ME2
    system nr.  : 00
    started at  : Thu Jul 17 00:10:46 2014
    JVMX version - Jun 22 2014 00:31:35 - 61_REL - optU - windows amd64 - 6 - bas2:220276 (mixed mode)
    (CompilerOracle read from file C:\usr\sap\ME2\J00\exe\sapjvm_6\jre\.hotspot_compiler)
    The active factory is : com.sap.engine.boot.loader.StandardClassLoaderFactory
    Class loading cache information loaded from package index [C:\usr\sap\ME2\J00\j2ee\cluster\bin\index.list]
    Reading manager properties from [kernelProperties.bin] file
       Checked the data for [16] ms
       Objects read for [188] ms
       Substituted the values for [78] ms
    Finished reading kernel objects for [266] ms
    Startup mode [NORMAL] and action [NONE] read
    AS Java version [7.31.3710.148365.20111012091351] is starting server process [ID3448650] on host [INPUNEME01.India.***.com] ...
    Loading [LogManager]... [109] ms
    Loading [PoolManager]... [0] ms
    Loading [ApplicationThreadManager]... 2.406: [GC2.406: [ParNew: 343552K->8913K(381696K), 0.0187920 secs] 343557K->8919K(2059008K), 0.0190498 secs] [Times: user=0.06 sys=0.00, real=0.02 secs]
    [141] ms
    Loading [ThreadManager]... [31] ms
    Loading [ClassLoaderManager]... [94] ms
    Loading [ClusterManager]... [454] ms
    Loading [LockingManager]... [47] ms
    Loading [ConfigurationManager]... [1578] ms
    Loading [CacheManager]... [78] ms
    Loading [DatabaseManager]... [344] ms
    Loading [SessionManager]... [296] ms
    Loading [LicensingManager]... [16] ms
    Loading [ServiceManager]...
    Initialize components for : 78 ms.
    Resolve components for : 16 ms.
    Load components for 703 ms.
    Loading services.
    Calculate startup service set for 172 ms.
      Service [webservices] started. [16] ms / [0] CPU ms
      Service [tc~esi~uddi~content~handler] started. [16] ms / [0] CPU ms
      Service [tc~je~content~classification~handler] started. [16] ms / [0] CPU ms
      Service [tc~je~sca~ws.plugin] started. [16] ms / [0] CPU ms
      Service [r3startup] started. [16] ms / [0] CPU ms
      Service [tc~je~cross~api] started. [31] ms / [0] CPU ms
      Service [tc~je~security~api] started. [47] ms / [0] CPU ms
      Service [engine.dsr.facade] started. [47] ms / [0] CPU ms
      Service [engine.lm.log.facade] started. [47] ms / [0] CPU ms
      Service [security.destination.facade] started. [47] ms / [0] CPU ms
      Service [tc~je~mngt_model~srv] started. [47] ms / [0] CPU ms
      Service [cluster] started. [62] ms / [15] CPU ms
      Service [tc~je~sca~jco.plugin] started. [62] ms / [0] CPU ms
      Service [jmx_notification] started. [46] ms / [0] CPU ms
      Service [runtimeinfo] started. [62] ms / [0] CPU ms
      Service [memory] started. [172] ms / [15] CPU ms
      Service [tc~sec~destinations~provider] started. [234] ms / [109] CPU ms
      Service [timeout] started. [266] ms / [31] CPU ms
      Service [log_configurator] started. [312] ms / [46] CPU ms
      Service [userstore] started. [312] ms / [31] CPU ms
      Service [cross] start ================= ERROR =================
      CSN Component [BC-JAS-COR-RMT], DC Name [sap.com/cross]
    java.lang.NoSuchFieldError: ipaddress
    at com.sap.bc.proj.jstartup.fca.FCAProperties.init1(Native Method)
    at com.sap.bc.proj.jstartup.fca.FCAProperties.init(FCAProperties.java:54)
    at com.sap.engine.services.cross.fca.FCAConnectorImpl.<init>(FCAConnectorImpl.java:101)
    at com.sap.engine.services.cross.CrossFrame.start(CrossFrame.java:82)
    at com.sap.engine.core.service630.container.ServiceRunner.startFrame(ServiceRunner.java:165)
    at com.sap.engine.core.service630.container.ServiceRunner.startService(ServiceRunner.java:118)
    at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:65)
    at com.sap.engine.frame.core.thread.Task.run(Task.java:73)
    at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:178)
    at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:316)
    FATAL: Critical shutdown with exit code [2150] was requested due to [AS Java cannot be started; core service [cross] failed to start]
    Heap
    par new generation   reserved 419840K, committed 419840K, used 298923K [0x000000013fe70000, 0x0000000159870000, 0x0000000159870000)
      eden space 343552K,  84% used [0x000000013fe70000, 0x00000001519a6a18, 0x0000000154df0000)
      from space 38144K,  23% used [0x0000000157330000, 0x0000000157be45b8, 0x0000000159870000)
      to   space 38144K,   0% used [0x0000000154df0000, 0x0000000154df0000, 0x0000000157330000)
    concurrent mark-sweep generation reserved 1677312K, committed 1677312K, used 60K [0x0000000159870000, 0x00000001bfe70000, 0x00000001bfe70000)
    concurrent-mark-sweep perm gen reserved 1048576K, committed 1048576K, used 31359K [0x00000001bfe70000, 0x00000001ffe70000, 0x00000001ffe70000)
      Service [locking] started. [47] ms / [0] CPU ms
    stdout/stderr redirection
    node name   : server0
    host name   : INPUNEME01
    system name : ME2
    system nr.  : 00
    started at  : Thu Jul 17 00:11:02 2014
    JVMX version - Jun 22 2014 00:31:35 - 61_REL - optU - windows amd64 - 6 - bas2:220276 (mixed mode)
    (CompilerOracle read from file C:\usr\sap\ME2\J00\exe\sapjvm_6\jre\.hotspot_compiler)
    The active factory is : com.sap.engine.boot.loader.StandardClassLoaderFactory
    Class loading cache information loaded from package index [C:\usr\sap\ME2\J00\j2ee\cluster\bin\index.list]
    Reading manager properties from [kernelProperties.bin] file
       Checked the data for [16] ms
       Objects read for [110] ms
       Substituted the values for [93] ms
    Finished reading kernel objects for [203] ms
    Startup mode [NORMAL] and action [NONE] read
    AS Java version [7.31.3710.148365.20111012091351] is starting server process [ID3448650] on host [INPUNEME01.India.***.com] ...
    Loading [LogManager]... [109] ms
    Loading [PoolManager]... [0] ms
    Loading [ApplicationThreadManager]... 2.297: [GC2.297: [ParNew: 343552K->9136K(381696K), 0.0230809 secs] 343557K->9142K(2059008K), 0.0233963 secs] [Times: user=0.06 sys=0.00, real=0.02 secs]
    [125] ms
    Loading [ThreadManager]... [31] ms
    Loading [ClassLoaderManager]... [16] ms
    Loading [ClusterManager]... [501] ms
    Loading [LockingManager]... [62] ms
    Loading [ConfigurationManager]... [1500] ms
    Loading [CacheManager]... [125] ms
    Loading [DatabaseManager]... [453] ms
    Loading [SessionManager]... [406] ms
    Loading [LicensingManager]... [32] ms
    Loading [ServiceManager]...
    Initialize components for : 110 ms.
    Resolve components for : 32 ms.
    Load components for 953 ms.
    Loading services.
    Calculate startup service set for 265 ms.
      Service [tc~je~security~api] started. [16] ms / [0] CPU ms
      Service [webservices] started. [16] ms / [15] CPU ms
      Service [engine.lm.log.facade] started. [0] ms / [0] CPU ms
      Service [tc~je~sca~ws.plugin] started. [0] ms / [0] CPU ms
      Service [engine.dsr.facade] started. [0] ms / [0] CPU ms
      Service [r3startup] started. [0] ms / [0] CPU ms
      Service [tc~je~cross~api] started. [0] ms / [0] CPU ms
      Service [security.destination.facade] started. [32] ms / [0] CPU ms
      Service [tc~esi~uddi~content~handler] started. [32] ms / [0] CPU ms
      Service [tc~je~content~classification~handler] started. [32] ms / [0] CPU ms
      Service [tc~je~mngt_model~srv] started. [32] ms / [0] CPU ms
      Service [tc~je~sca~jco.plugin] started. [47] ms / [15] CPU ms
      Service [jmx_notification] started. [125] ms / [31] CPU ms
      Service [runtimeinfo] started. [109] ms / [15] CPU ms
      Service [cluster] started. [109] ms / [0] CPU ms
      Service [userstore] started. [156] ms / [15] CPU ms
      Service [cross] start ================= ERROR =================
      CSN Component [BC-JAS-COR-RMT], DC Name [sap.com/cross]
    java.lang.NoSuchFieldError: ipaddress
    at com.sap.bc.proj.jstartup.fca.FCAProperties.init1(Native Method)
    at com.sap.bc.proj.jstartup.fca.FCAProperties.init(FCAProperties.java:54)
    at com.sap.engine.services.cross.fca.FCAConnectorImpl.<init>(FCAConnectorImpl.java:101)
    at com.sap.engine.services.cross.CrossFrame.start(CrossFrame.java:82)
    at com.sap.engine.core.service630.container.ServiceRunner.startFrame(ServiceRunner.java:165)
    at com.sap.engine.core.service630.container.ServiceRunner.startService(ServiceRunner.java:118)
    at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:65)
    at com.sap.engine.frame.core.thread.Task.run(Task.java:73)
    at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:178)
    at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:316)
      Service [timeout] started. [235] ms / [31] CPU ms
    FATAL: Critical shutdown with exit code [2150] was requested due to [AS Java cannot be started; core service [cross] failed to start]
    Heap
    par new generation   reserved 419840K, committed 419840K, used 275035K [0x000000013fe70000, 0x0000000159870000, 0x0000000159870000)
      eden space 343552K,  77% used [0x000000013fe70000, 0x000000015021acd0, 0x0000000154df0000)
      from space 38144K,  23% used [0x0000000157330000, 0x0000000157c1c238, 0x0000000159870000)
      to   space 38144K,   0% used [0x0000000154df0000, 0x0000000154df0000, 0x0000000157330000)
    concurrent mark-sweep generation reserved 1677312K, committed 1677312K, used 59K [0x0000000159870000, 0x00000001bfe70000, 0x00000001bfe70000)
    concurrent-mark-sweep perm gen reserved 1048576K, committed 1048576K, used 29998K [0x00000001bfe70000, 0x00000001ffe70000, 0x00000001ffe70000)
      Service [memory] started. [312] ms / [46] CPU ms
    stdout/stderr redirection
    node name   : server0
    host name   : INPUNEME01
    system name : ME2
    system nr.  : 00
    started at  : Thu Jul 17 00:11:18 2014
    JVMX version - Jun 22 2014 00:31:35 - 61_REL - optU - windows amd64 - 6 - bas2:220276 (mixed mode)
    (CompilerOracle read from file C:\usr\sap\ME2\J00\exe\sapjvm_6\jre\.hotspot_compiler)
    The active factory is : com.sap.engine.boot.loader.StandardClassLoaderFactory
    Class loading cache information loaded from package index [C:\usr\sap\ME2\J00\j2ee\cluster\bin\index.list]
    Reading manager properties from [kernelProperties.bin] file
       Checked the data for [15] ms
       Objects read for [109] ms
       Substituted the values for [94] ms
    Finished reading kernel objects for [203] ms
    Startup mode [NORMAL] and action [NONE] read
    AS Java version [7.31.3710.148365.20111012091351] is starting server process [ID3448650] on host [INPUNEME01.India.***.com] ...
    Loading [LogManager]... [94] ms
    Loading [PoolManager]... [16] ms
    Loading [ApplicationThreadManager]... 2.267: [GC2.268: [ParNew: 343552K->9051K(381696K), 0.0218818 secs] 343557K->9057K(2059008K), 0.0221899 secs] [Times: user=0.06 sys=0.00, real=0.02 secs]
    [156] ms
    Loading [ThreadManager]... [31] ms
    Loading [ClassLoaderManager]... [16] ms
    Loading [ClusterManager]... [485] ms
    Loading [LockingManager]... [62] ms
    Loading [ConfigurationManager]... [1297] ms
    Loading [CacheManager]... [141] ms
    Loading [DatabaseManager]... [437] ms
    Loading [SessionManager]... [406] ms
    Loading [LicensingManager]... [16] ms
    Loading [ServiceManager]...
    Initialize components for : 110 ms.
    Resolve components for : 31 ms.
    Load components for 953 ms.
    Loading services.
    Calculate startup service set for 265 ms.
      Service [engine.lm.log.facade] started. [16] ms / [0] CPU ms
      Service [tc~esi~uddi~content~handler] started. [16] ms / [0] CPU ms
      Service [tc~je~mngt_model~srv] started. [16] ms / [0] CPU ms
      Service [webservices] started. [16] ms / [0] CPU ms
      Service [engine.dsr.facade] started. [16] ms / [0] CPU ms
      Service [tc~je~cross~api] started. [16] ms / [0] CPU ms
      Service [r3startup] started. [32] ms / [0] CPU ms
      Service [tc~je~security~api] started. [32] ms / [0] CPU ms
      Service [security.destination.facade] started. [32] ms / [0] CPU ms
      Service [tc~je~content~classification~handler] started. [16] ms / [0] CPU ms
      Service [tc~je~sca~ws.plugin] started. [16] ms / [0] CPU ms
      Service [runtimeinfo] started. [47] ms / [15] CPU ms
      Service [tc~je~sca~jco.plugin] started. [47] ms / [0] CPU ms
      Service [jmx_notification] started. [63] ms / [0] CPU ms
      Service [cluster] started. [47] ms / [15] CPU ms
      Service [timeout] started. [172] ms / [93] CPU ms
      Service [userstore] started. [140] ms / [31] CPU ms
      Service [memory] started. [172] ms / [15] CPU ms
      Service [cross] start ================= ERROR =================
      CSN Component [BC-JAS-COR-RMT], DC Name [sap.com/cross]
    java.lang.NoSuchFieldError: ipaddress
    at com.sap.bc.proj.jstartup.fca.FCAProperties.init1(Native Method)
    at com.sap.bc.proj.jstartup.fca.FCAProperties.init(FCAProperties.java:54)
    at com.sap.engine.services.cross.fca.FCAConnectorImpl.<init>(FCAConnectorImpl.java:101)
    at com.sap.engine.services.cross.CrossFrame.start(CrossFrame.java:82)
    at com.sap.engine.core.service630.container.ServiceRunner.startFrame(ServiceRunner.java:165)
    at com.sap.engine.core.service630.container.ServiceRunner.startService(ServiceRunner.java:118)
    at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:65)
    at com.sap.engine.frame.core.thread.Task.run(Task.java:73)
    at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:178)
    at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:316)
    FATAL: Critical shutdown with exit code [2150] was requested due to [AS Java cannot be started; core service [cross] failed to start]
    Heap
    par new generation   reserved 419840K, committed 419840K, used 277992K [0x000000013fe70000, 0x0000000159870000, 0x0000000159870000)
      eden space 343552K,  78% used [0x000000013fe70000, 0x0000000150513298, 0x0000000154df0000)
      from space 38144K,  23% used [0x0000000157330000, 0x0000000157c06fd0, 0x0000000159870000)
      to   space 38144K,   0% used [0x0000000154df0000, 0x0000000154df0000, 0x0000000157330000)
    concurrent mark-sweep generation reserved 1677312K, committed 1677312K, used 59K [0x0000000159870000, 0x00000001bfe70000, 0x00000001bfe70000)
    concurrent-mark-sweep perm gen reserved 1048576K, committed 1048576K, used 30982K [0x00000001bfe70000, 0x00000001ffe70000, 0x00000001ffe70000)
    Thanks and Regards,
    Muddassar Khan

    Hi Muddassar,
    Hope you are doing good.
    A new note has been released exclusively for this issue. Please see:
    note 1937296 - SUM fails at start-shadow-instance-dm step. This is not
    an issue with the SCAs and more with the kernel employed.
    You will need to make sure that you are on the latest kernel so that
    this can be resolved.
    The below links will help you if there are any queries with the
    kernel update procedure
    SAP Note No. 1636252 - Installing a 7.20 kernel in SAP Web AS
                           7.00/7.01/7.10/7.11
    SAP Note No. 1629598 - SAP Kernel 720 will replace older
                           kernel versions
    SAP Note No. 19466   - Downloading SAP kernel patches
    Also check:
    <http://scn.sap.com/docs/DOC-1206>
    (for Manual Kernel Upgrade)
    and
    <http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/11219>
    (for kernel upgrade using JSPM)
    Thank you and have a nice day!
    Kind Regards,
    Hemanth

  • [JNI Beginner] GC of Java arrays returned by the native code

    Hello all,
    I am beginning with JNI, to integrate a C library that pilots an industrial equipment, into a java UI. This library enables to exchange various proprietary PDUs (protocol data units), with the equipment, up and down (request/replies). Both requests and replies are arrays of bytes (+char*+).
    "Request" byte arrays are constructed by Java code, which passes them to the JNI code that glues with the lib. "Reply" byte arrays are returned to the Java code, which analyzes them.
    The "return reply" part is very similar to this [tutorial example|http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jniexamp.html] , which returns bytes read from a file. However there's something I don't understand with regard to garbage collection of the returned byte array:
    - in this stock example, the C code creates a Java byte array fills it, and simply returns it (example code stripped to highlight only the parts relevant to my question):
        jByteArray=(*env)->NewByteArray(env, size);
        (*env)->SetByteArrayRegion(env, jByteArray, 0, size, (jbyte *)sourceBytes);
        return (jByteArray);What will happen to this Java array (jByteArray) with regard to garbage collection?
    - if it's no more referenced (the example Java code just systemouts it and forgets it), will it be eligible to GC?
    - if it is referenced by a Java variable (in my case, I plan to keep a reference to several replies as the business logic requires to analyze several of them together), do regular Java language GC rules apply, and prevent eligibility of the array to GC as long as it's referenced?
    That may sound obvious, but what mixes me up is that the same tutorial describes memory issues in subsequent chapters: spécifically, the section on "passing arrays states that:
    [in the example] the array is returned to the calling Java language method, which in turn, garbage collects the reference to the array when it is no longer usedThis seems to answer "yes" to both my questions above :o) But it goes on:
    The array can be explicitly freed with the following call:
    {code} (*env)-> ReleaseByteArrayElements(env, jByteArray, (jbyte *)sourceBytes, 0);{code}Under what circumstances would one need to explicitly free jByteArray when it's about to be returned to the Java calling method? Or does this sentence apply to completely different situations (such as, when the array is +not+ returned as is to a Java method)?
    The tutorial's next section has a much-expected +memory issues+ paragraph, from which I quote:
    By default, JNI uses local references when creating objects inside a native method. This means when the method returns, the references are eligible to be garbage collected.I assume this means, +unless the references are assigned, in the Java code, to a Java variable+, right?
    If you want an object to persist across native method calls, use a global reference instead. A global reference is created from a local reference by calling NewGlobalReference on the the local reference.I assume this enables the C code to maintain a global reference to a java object even if it's not referenced anymore from the Java variables, right?
    I also checked the [JNI specification|http://download-llnw.oracle.com/javase/6/docs/technotes/guides/jni/spec/design.html#wp1242] , but this didn't clear the doubt completely:
    *Global and Local References*
    The JNI divides object references used by the native code into two categories: local and global references. Local references are valid for the duration of a native method call, and are automatically freed after the native method returns. Global references remain valid until they are explicitly freed.
    Objects are passed to native methods as local references. All Java objects returned by JNI functions are local references. The JNI allows the programmer to create global references from local references. JNI functions that expect Java objects accept both global and local references. A native method may return a local or global reference to the VM as its resultAgain I assume the intent is that Global references are meant for objects that have to survive across native calls, regardless of whether they are referenced by Java code. But what worries me is that combining both sentences end up in +All Java objects returned by JNI functions are local references (...) and are automatically freed after the native method returns.+.
    Could you clarify how to make sure that my Java byte arrays, be they allocated in C code, behave consistently with a Java array allocated in Java code (I'm familiar already with GC of "regular" Java objects)?
    Thanks in advance, and best regards,
    J.

    jduprez wrote:
    Hello all,
    I am beginning with JNI, to integrate a C library that pilots an industrial equipment, into a java UI. This library enables to exchange various proprietary PDUs (protocol data units), with the equipment, up and down (request/replies). Both requests and replies are arrays of bytes (+char*+).
    "Request" byte arrays are constructed by Java code, which passes them to the JNI code that glues with the lib. "Reply" byte arrays are returned to the Java code, which analyzes them.
    The "return reply" part is very similar to this [tutorial example|http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jniexamp.html] , which returns bytes read from a file. However there's something I don't understand with regard to garbage collection of the returned byte array:
    - in this stock example, the C code creates a Java byte array fills it, and simply returns it (example code stripped to highlight only the parts relevant to my question):
        jByteArray=(*env)->NewByteArray(env, size);
    (*env)->SetByteArrayRegion(env, jByteArray, 0, size, (jbyte *)sourceBytes);
    return (jByteArray);What will happen to this Java array (jByteArray) with regard to garbage collection?It will be collected when it is no longer referenced.
    The fact that you created it in jni doesn't change that.
    The array can be explicitly freed with the following call:
    (*env)-> ReleaseByteArrayElements(env, jByteArray, (jbyte *)sourceBytes, 0);Under what circumstances would one need to explicitly free jByteArray when it's about to be returned to the Java calling method? Or does this sentence apply to completely different situations (such as, when the array is not returned as is to a Java method)?
    Per what the tutorial says it is either poorly worded or just wrong.
    An array which has been properly initialized it a just a java object. Thus it can be freed like any other object.
    Per your original question that does not concern you because you return it.
    In terms of why you need to explicitly free local references.
    [http://download-llnw.oracle.com/javase/6/docs/technotes/guides/jni/spec/design.html#wp16785]
    The tutorial's next section has a much-expected memory issues paragraph, from which I quote:
    By default, JNI uses local references when creating objects inside a native method. This means when the method returns, the references are eligible to be garbage collected.I assume this means, unless the references are assigned, in the Java code, to a Java variable, right?As stated it is not precise.
    The created objects are tracked by the VM. When they are eligible to be collected they are.
    If you create a local reference and do NOTHING that creates an active reference elsewhere then when the executing thread returns to the VM then the local references are eligible to be collected.
    >
    If you want an object to persist across native method calls, use a global reference instead. A global reference is created from a local reference by calling NewGlobalReference on the the local reference.That is not precise. The scope is the executing thread. You can pass a local reference to another method without problem.
    I assume this enables the C code to maintain a global reference to a java object even if it's not referenced anymore from the Java variables, right?
    It enables access to it to be insured across multiple threads in terms of execution scope. Normally you should not use them.

  • Oracle BI 11.1.1.7.1: Calling BI webservices from Plsql Procedure: ORA-29532: Java call terminated by uncaught Java exception: java.lang.NoClassDefFoundError

    Hi,
         I have a requirement of calling BI webservices from Plsql stored procedure. I generated all my wsdl java classes and loaded them into the database. However, when I tried to call one of my java class using stored procedure, it is giving me"ORA-29532: Java call terminated by uncaught Java exception: java.lang.NoClassDefFoundError".
    *Cause:    A Java exception or error was signaled and could not be
               resolved by the Java code.
    *Action:   Modify Java code, if this behavior is not intended.
    But all my dependency classes are present in database as java class objects and are valid. Can some one help me out of this?

    Stiphane,
    You can look in USER_ERRORS to see if there's anything more specific reported by the compiler. But, it could also be the case that everything's OK (oddly enough). I loaded the JavaMail API in an 8.1.6 database and also got bytecode verifier errors, but it ran fine. Here are the errors I got when loading Sun's activation.jar, which ended up not being a problem:
    ORA-29552: verification warning: at offset 12 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
    verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):12 by a throw at offset 18 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
    verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):18 by a throw at offset 30 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
    verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):30 by a throw
    Hope this helps,
    -Dan
    http://www.compuware.com/products/devpartner/db/oracle_debug.htm
    Debug PL/SQL and Java in the Oracle Database

  • Java Call out - Error

    Hi,
    I'm trying to call a Java Class method from BPEL and the Java Class is packaged into a JAR and copied the same into SCA-INF/lib folder of the SOA composite application.
    My Java Class is:
    package uk.co.utilities;
    public class Utils {
    public Utils() {
    public String sayHello(String Value) throws Exception{
    String result = "";
    try{
    result = "Hello !!!" + Value;
    }catch(Exception e){
    e.printStackTrace();
    return result;
    The BPEL snippet code for the Java Call out is:
    <bpelx:exec import="uk.co.utilities"/>
    <bpelx:exec name="javaInvoke" version="1.5" language="java">
    <![CDATA[Utils testUtils = new Utils();     
    String testResult = testUtils.sayHello("User");
    setVariableData("TempResult",testResult);]]>
    </bpelx:exec>
    I have tried to build the project,but getting the following error:
    Error(21,36): Failed to compile bpel generated classes.
    failure to compile the generated BPEL classes for BPEL process "bpelJavaMethod" of composite "default/prjJAVAMethod!1.0"
    The class path setting is incorrect.
    Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
    It seems that the BPEL couldn't find the JAR method,but i have copied the JAR into SCA-INF/lib folder and added it to the " libraries and classpath " of the project.
    Please do help me.
    Thanks,
    Sri.

    Hi Sri,
    Can you check this out, will be helpful for you to find out where is the issue.
    http://yatanveersingh.blogspot.com/2011/08/how-to-call-java-method-inside-bpel.html
    -Yatan

  • The Cluster Service function call 'ClusterResourceControl' failed with error code '1008(An attempt was made to reference a token that does not exist.)' while verifying the file path. Verify that your failover cluster is configured properly.

    I am experiencing this error with one of our cluster environment. Can anyone help me in this issue.
    The Cluster Service function call 'ClusterResourceControl' failed with error code '1008(An attempt was made to reference a token that does not exist.)' while verifying the file path. Verify that your failover cluster is configured properly.
    Thanks,
    Venu S.
    Venugopal S ----------------------------------------------------------- Please click the Mark as Answer button if a post solves your problem!

    Hi Venu S,
    Based on my research, you might encounter a known issue, please try the hotfix in this KB:
    http://support.microsoft.com/kb/928385
    Meanwhile since there is less information about this issue, before further investigation, please provide us the following information:
    The version of Windows Server you are using
    The result of SELECT @@VERSION
    The scenario when you get this error
    If anything is unclear, please let me know.
    Regards,
    Tom Li

  • Java call to RFC FM for replacing CRM pricing

    Hi Experts,
    I have a requirement to make a RFC call to retrieve the pricing from ECC in CRMD_ORDER transaction after hit enter key with product/qty entry (use Web UI/shop/IC as frontend). Is it possible to made a Java call to RFC FM in SAP CRM which in turn calls R/3 to execute pricing and display this price on web order page?  If yes, any documentation/samples and advise please.
    Thanks in advance, Jin

    Hi all,
    Following the AP7 Pricing Userexit Manual, I can change the price value in the exit (good doc, thanks).  my next steip is to get sales org, customer and product info to make RFC, but I don't know from which Interface I can retrieve these info, can anyone help me? any doc or sample code?
    Thanks, Jin

  • Where may I download package for JAVA call SAP RFC

    Hi all,
    I need to call a RFC in a JAVA based system. I found I need to install two package before I call, such as:
    import com.sap.rfc.*;
    import com.sap.rfc.exception.*;
    import com.ibm.sap.bapi.*;
    import com.ibm.sap.bapi.generated.*;
    where can I download these 2 package?
    Thanks a lot in advance.
    Ned

    Hai ,
    im telling in Eclipse ..
    Take a look to see that those packages are listed in the plug-ins under
    Windows > Preferences > Target Platform.  This should point to an Ecilpse
    installation which should have most of those packages.
    You will need to install GEF separately.  It does not come with Eclpse.  Go
    to http://www.eclipse.org/gef/ and click on Downloads.
    Regards ,
    Venkat

  • Webdynpro JAVA call ARFC

    Hi Friend
    I created the "ZBEN_DEMO_RFC" RFC in IDS.
    When Webdynpro Java call the "ZBEN_DEMO_RFC" get a error.
    How to get a ARFC?
    Regards
    Ben

    Hi Ben,
    I think problem is related to autherization, please chekc the userID/password and check SSO ticket for authorization while defining a metadata JCO Destination.
    You can trace error RFC_ERROR_SYSTEM_FAILURE exception, have a look at the dev_jrfc.trc files. These files are written by JRFC and can be found in the directories j2ee/cluster/server* of the J2EE Application Server Installation.
    Refre this WDJ - Adaptive RFC Troubleshooting Guide:-
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0019b1a-775f-2910-beb8-d81f27d0d8d0?quicklink=index&overridelayout=true
    http://wiki.sdn.sap.com/wiki/display/EP/8EstablishSingleSignOnbetweenPortal%28frontend%29andESS6.0%28backend%29
    Hope this may help you
    Deepak!!!
    Edited by: Deepak Arora on May 17, 2010 6:00 AM

  • Java call out in OSB 10g

    in java call out in OSB, is it possilble to pass java object or java collection (like list,arraylist) as argument to the java method and during configuration at OSB proxy service is it possible to fetch the value from java object from java call out .I have tried it and i am able pass string and xml object as argument and get string type only.please guide me.

    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/userguide/pojo.html
    "The input and return types for Java callouts are not restricted. However, any return types other than primitives, Strings, or XmlObjects can only be passed (unmodified) to other Java callouts. See Java Content in the body Variable for more information about storing and passing Java objects in the pipeline."

  • SAPinst error:- The java class is not found:  com.sap.engine.offline.Offlin

    Hi,
    I am in the midst of Installing SOLMAN on RHEL5-ORACLE
    Have installed IBM JDK version 1.4.2_10
    During the CREATE SECURE STORE PHASE I am getting the following error:
    sapinst_dev log file O/P
    WARNING[E] 2008-06-09 18:04:43.225
               CJSlibModule::writeError_impl()
    CJS-30050  Cannot create the secure store. SOLUTION: See output of log file SecureStoreCreate.log:
    The java class is not found:  com.sap.engine.offline.OfflineToolStart.
    TRACE      2008-06-09 18:04:43.225 [iaxxejsbas.hpp:483]
               EJS_Base::dispatchFunctionCall()
    JS Callback has thrown unknown exception. Rethrowing.
    TRACE      2008-06-09 18:04:43.243 [syuxctask.cpp:1382]
               CSyTaskImpl::start(bool)
    A child process has been started. Pid = 2529
    TRACE      2008-06-09 18:04:43.281 [syuxctask.cpp:1382]
               CSyTaskImpl::start(bool)
    A child process has been started. Pid = 2530
    ERROR      2008-06-09 18:04:43.310 [sixxcstepexecute.cpp:951]
    FCO-00011  The step createSecureStore with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_SecureStore|ind|ind|ind|ind|8|0|createSecureStore was executed with status ERROR .
    TRACE      2008-06-09 18:04:43.317 [iaxxgenimp.cpp:752]
                CGuiEngineImp::showMessageBox
    <html> <head> </head> <body> <p> An error occurred while processing service SAP Solution Manager 4.0 Support Release 4 > SAP Systems > Oracle > Central System > Central System. You may now </p> <ul> <li> choose <i>Retry</i> to repeat the current step. </li> <li> choose <i>View Log</i> to get more information about the error. </li> <li> stop the task and continue with it later. </li> </ul> <p> Log files are written to /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS. </p> </body></html>
    TRACE      2008-06-09 18:04:43.317 [iaxxgenimp.cpp:1255]
               CGuiEngineImp::acceptAnswerForBlockingRequest
    Waiting for an answer from GUI
    SAPINST.LOG file  O/P
    WARNING 2008-06-09 18:04:43.224
    Execution of the command "/opt/IBMJava2-amd64-142/bin/java -classpath /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/sharedlib/launcher.jar -Xmx256m com.sap.engine.offline.OfflineToolStart com.sap.security.core.server.secstorefs.SecStoreFS /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/lib:/tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/sharedlib/exception.jar:/tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/sharedlib/logging.jar:/tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/sharedlib/tc_sec_secstorefs.jar create -s SMD -f /sapmnt/SMD/global/security/data/SecStore.properties -k /sapmnt/SMD/global/security/data/SecStore.key -enc -p XXXXXX" finished with return code 1. Output:
    The java class is not found:  com.sap.engine.offline.OfflineToolStart
    WARNING[E] 2008-06-09 18:04:43.225
    CJS-30050  Cannot create the secure store. SOLUTION: See output of log file SecureStoreCreate.log:
    The java class is not found:  com.sap.engine.offline.OfflineToolStart.
    ERROR 2008-06-09 18:04:43.310
    FCO-00011  The step createSecureStore with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_SecureStore|ind|ind|ind|ind|8|0|createSecureStore was executed with status ERROR .
    SecurStoreCreate log O/P
    The java class is not found:  com.sap.engine.offline.OfflineToolStart
    Pls suggest how to resolve this issue
    Pls help to resolve this issue
    Rgds,
    Abhijeet

    Hi All,
    I Found the Solution.
    The SAPinst tool was somehow not able to extracte the
    J2EEINSTALL.SAR files from the JAVA Components DVD.
    So I manually extracted the the file in the temporary install folder which the SAPinst creates in the /tmp filesystem (on LINUX by deafult) during the installation process.
    The following command is used (I used this on Red Hat LINUX 5.2) to extract the J2EEINSTALL.SAR file:-
    /sapmnt/SMD/exe/SAPCAR
    -xvf /dump/SR4_Java_Components/D51033521/DATA_UNITS/JAVA_J2EE_OSINDEP_J2EE_INST/J2EEINSTALL.SAR
    /sapmnt/SMD/exe/SAPCAR -->source directory of the file SAPCAR which is used to extarct CAR / SAR files on UNIX
    /dump/SR4_Java_Components/D51033521/DATA_UNITS/JAVA_J2EE_OSINDEP_J2EE_INST/J2EEINSTALL.SAR--> destination dir. where the SAPinst tool will read and execute the file.
    Rgds,
    Abhijeet K

Maybe you are looking for

  • Help needed to access internet while roaming

    Hi, I m new to this community and do not know properly how to get support. I have I pad mini with retina display, WiFi & Cellular, 32 GB, OS: iOS 7.1.2. To use internet I have taken Vodafone SIM (UP, West, India) which is a handmade nano SIM. I am ab

  • Exception Handling in bounded taskflows - expected behaviour

    Hi, I'm currently reviewing exception handling in bounded task flows and some things does not seems to be very clear for me. (q1) Does it make sense that a bounded task flow calls a method (via a method activity) defined on the page definition of ano

  • Trouble trial cnversion of PDF to word document

    I signed in for a free trial to convert pdf file to a word document for easy editing. Every time I try to convert the file. I am asked to sign in again and again. why?

  • PROBLEM SAVING A PROJECT

    Adobe Premier CS6: I can't save the project to another hard drive for safety. I've tried with large projects and then with small ones as that didn't work. I start with the Project Manager, "collect files and copy project to a new location" and I rend

  • The "add exception" block isn't active

    The "add exception" block isn't active in the "I understand the risks." section of Untrusted Connection. I had to use IE to access my wireless router? Any suggestions? I'm running Firefox 17.0.1 under Win 8. Keith Brewer