RFC connectivity through JAVA

Hello sir,
I have create 1 java class file which connects to SAP DB through RFC connection.
I have put sapjco3.dll,librfc32.dll,sapjcorfc.dll in to the folder windows\system32.
Its working fine on windowsXP, but not working on Windows Vista and windows server 2003.
its giving error as
java.lang.UnsatisfiedLinkError: D:\splerp3\sapjco3.dll: The application has failed to start because
its side-by-side configuration is incorrect.
please tell me what configuration i have to do for vista and server 2003.

Hi guys,
please pay attention to the given infos on the JCo download site. It says:
Note: Starting with JCo 2.1.4 and JCo 2.0.11, JCo requires the Visual Studio .NET C/C++ runtime libraries on Windows platforms.
Starting with JCo 3.0.0, it requires the Visual Studio 2005 C/C++ runtime libraries. See SAP note [684106|https://service.sap.com/sap/support/notes/684106] for details on how to install them.
Installing the VC redistributable packages from Microsoft will solve this issue.
Regards,
Stefan

Similar Messages

  • Problem with socket connection through Java Embedding...

    We are trying to create a simple socket connection to a socket server through BPEL PM using the Java Embedding component.
    BPEL Process : Client makes an asynchronous request. Passes an input variable. The input variable is sent to the Server Program through a socket connection through the Java embedding component.
    Server: We are running a simple Socket Server program from command prompt.
    The code below works fine as long as we do not try to receive a response from the server (Commented Code).
    If we uncomment the code and try to receive a response, it refuses to create an instance for the BPEL Process. And sometimes restarts the BPEL Server.
    Client Code:
    String msg="NONE";
    try{
    org.w3c.dom.Element input = (org.w3c.dom.Element) getVariableData("inputVariable","payload","/client:clientProcessRequest/client:input");
    msg = input.getNodeValue();
    Socket clientsoc=new Socket("ServerIP",1000);
    PrintWriter out1=new PrintWriter(clientsoc.getOutputStream());
    out1.write(msg);
    out1.flush();
    BufferedReader cin1=new BufferedReader(new InputStreamReader(clientsoc.getInputStream()));
    msg=cin1.readLine();
    setVariableData("outputVariable","payload","/client:result",new String(msg));
    clientsoc.close();
    catch(UnknownHostException e)
    System.err.println("Don't know about host: dev.");
    System.exit(1);
    catch (IOException e)
    System.err.println("Couldn't get I/O for "+ "the connection to: dev.");
    System.exit(1);
    }

    Repost

  • How to use loop in VBAK table using BDC RFC connection through excel vba ?

    Hello,
    I am trying to extract data from VBAK table using rfc connection with Excel VBA. where i can able to pull data first time, when i tried to use the same set of code using loops, it throws an error like BAD INDEX.
    Any help appreciated.

    Hello,
    I am trying to extract data from VBAK table using rfc connection with Excel VBA. where i can able to pull data first time, when i tried to use the same set of code using loops, it throws an error like BAD INDEX.
    Any help appreciated.

  • Connecting through java to HSQLDB: Out of Memory

    Through my java program i am connecting to hsqldb which has .data file of approx 6.5 GB and getting the error java.sql.SqlException: out of memory (am not getting anything else)
    have increased jvm option -Xms256m -Xmx1024m -XX:PermSize=64M -XX:MaxPermSize=2000M
    What else can be tried...??? A complete Stacktrace for the same
    exception in thread HSQL timer
    java.lang.OutofMemoryError: Java Heap Space
    Besides that also got this on netbeans console but seems this is something else... and not an error
    Mar 19, 2009 4:55:36 AM sun.awt.X11.XToolkit processException
    WARNING: Exception on Toolkit thread
    java.lang.OutOfMemoryError: Java heap space
    Edited by: shubham on Mar 19, 2009 1:57 AM
    Edited by: shubham on Mar 19, 2009 3:31 AM

    Well The issue was somewhere else due to it reading too much of data. It ran but my program is very slow (approx 2-3 hrs).
    I am worried about the speed...
    is it because of the large amount of data.. 23,355,459 records..?? or there could be some issue in programming probably memory leak etc..??
    -> reads db
    -> for each record set
    -> perform different operation/ writes to file

  • FTP Connection Through JAVA

    I am writing a java code to transfer a file from local machine to a server on another machine.
    While uploading i am encountering with an exception which is showing as
    java.net.ConnectException: Connection refused: connect
    The file is getting transferred sucessfully if i am transferring it through command prompt instead of java code.
    Please help me out.

    Duplicated here
    http://forum.java.sun.com/thread.jspa?threadID=700335&messageID=4063726#4063726
    and here
    http://forum.java.sun.com/thread.jspa?threadID=700257&messageID=4063471#4063471

  • Webservice to RFC Scenario - Through Java Mapping

    Hello All,
    In my integration scenario, I will receive a request from a webservice consumer. The webservice is my outbound interface.
    Now I have to write a Java Mapping for it because a similar interface (file to RFC) has been implemented using it and the customer wants minimum deviation from that functionality.
    One question, that I have at this point in time is:
    I must define a Java class that implements the Java interface com.sap.aii.mapping.api.StreamTransformation. This interface has two methods, one of them is:
    public void execute(java.io.InputStream in, java.io.OutputStream out). In the existing interface the InputStream object say 'input' has been initialized to FileInputStream:
    InputStream in = new FileInputStream(new File("Sample7.xml"));
    What shall I initialize it to in my case? One probable is a InputSource, but does the execute method accept an InputSource?
    Please help,
    Regards,
    Varun

    Hello Jose,
    Thanks for your reply, but what I have mentioned above is how it is being done in a similar interface. That being a file to RFC interface, it makes sense to initialize 'in' with the file name.
    But if you mean that I do not need to initialize in my case (Webservice to RFC), then I'll surely give it a try and if useful, will get back to you.
    Thanks again,
    Varun

  • Clinet for RFC Connection in Java Installation

    hi ,
    I am in the process of installing Java Add on for EP.
    I have BW installed in Client 100
    But during instlaltion pls tell me teh client no i should give for RFC Connection

    Hello Balaji,
    In case of BW only one client can be used as BW client. Since your AS ABAP the BW client is 100 it has to be 100 in case of Java Add-in as well.
    Regards.
    Ruchit.

  • Oracle 7.x connection through Java application.

    I have Win98 and Oracle 7.x on my P.C., I am developing an application in Java Menus where under one menu one can get a connection with the underlying Oracle DB. But even after proper JDBC coding I am not able to get the connection. Please help.
    Thnaks,
    Pushpahas.

    Can u be more pecific on the error u r getting may be that way i can help u..
    shravan

  • Mainframe connection through java

    Hi,
    Is it possible to connect to a mainframe and retrieve the results from it i.e., the data stored are in the form of cards(record types).Is it possible to connect to such set up using JDBC connectivity as we do for the normal RDBMS connection..
    Kindly help me in this regards
    Wiht thanks in advance
    subra

    Why on earth should a "mainframe" (you even didn't tell us which OS) be such a magic zone that even Java can't enter it?
    How do other programming languages manage to connnect to a DBMS on a mainframe?
    How has for example Oracle succeeded to be used on mainframes?
    I think you should ask your DBMS' vendor at first.
    "Mainframe" is a collective name for certain hardware structures only.

  • Short dump (CALL_FUNCTION_FORMAT_NOT_SUP) when testing RFC connection

    Hello!
    I'm trying to test a RFC connection through SM59, but I'm getting the following short dump: CALL_FUNCTION_FORMAT_NOT_SUP (RFC data format not supported).
    This RFC will connect to Biztalk, and this dump started occurring when Biztalk changed their codepage from 1100 to 4102.
    On my SAP system the codepage is set to 1100.
    There is no option to set the system as Unicode or non-Unicode on SM59, since I don't have the "Special Options" tab (My release is 4.6C).
    How can I make this connection even with the different codepages?
    Thanks in advance!

    Hello Pedro
    This is the PI forum, which is for PI technical issues. This post is not related to PI.
    P.S. Please also familiarise yourself with the forum Rules of Engagement - https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement. Please do not Cross post.
    Regards
    Mark Smyth
    XI/PI Moderator

  • Getting result from a telnet command through Java

    Hi,
    I've been using a set of classes found here: http://javatelnet.org/
    to do telnet through Java in a non-interactive mode.
    However I've got a problem when retrieving the result of a command sent to the remote host: the classes read the stream until the prompt is encountered; my problem is I must execute commands on several remote hosts, and the prompt is not necessarily the same on all hosts.
    Is there a simple means to establish a telnet connection through Java and retrieve the result of the commands?
    Any help would be appreciated.

    Thanks again, this is a very good article
    I see it is still the same strategy to get the result of a command : wait 'til the prompt is sent. Maybe there is just no other way to get it .
    But as I don't know the prompt on the different hosts I have to query, this won't do it.
    The article gave me an idea though : I only need to count the files in a directory on the remote host; until now I was trying to send the 'ls | wc -l' command by Telnet.
    Maybe I can simply do it by FTP (retrieve the list of files, and then count the lines with JAVA).

  • WORKLOAD ANALYSIS (INTROSCOPE DATA) - Error when opening an RFC connection

    Hi all SDNers,
    Help is needed on error "WORKLOAD ANALYSIS (INTROSCOPE DATA) - Error when opening an RFC connection".
    This error occured on RCA -> Extractor FWK administration and go to managed system (PI) and from the log, i can see some extraction failed due to error message " Error when opening an RFC connection"
    consequently, JAVA performance data is not appearing in RCA -> workload analysis but work fine for ABAP and adapter engine.
    I've followed below notes and perform the troubleshooting step by step by still to no avail:
    Note 1332428 - Missing data in service sessions from BI/CCDB
    Note 1257308 - FAQ: Using EarlyWatch Alert
    Note 1274287 - End-to-End Diagnostics 7.0 EHP1 SP18 to SP27
    Note 1265070 - Diagnostics - Setup of Managed Systems
    Note 1010428 - End-to-End Diagnostics
    http://wiki.sdn.sap.com/wiki/display/SMSETUP/WorkloadAnalysis-Noapplicabledatafound
    steps that have performed:
    restarted agent
    enlarge RFC resource cap for solmandiag and none
    delete entire SID in SMSY and pull again from SLD, re-setup managed system
    restart PI system
    i've spent 2 days on troubleshooting this issue but lack of information in SMP and SDN, even in google.
    in table E2E_EFWK_STATUS and extractor E2E_JAVA_EXTRACTOR_IF, i see all WLI_ID ended with RC 96, MESSAGE = Error when  opening an RFC connection and LASTRECORDS = 0
    I strongly believe this is the issue that causing no applicable data found for JAVA data.
    fyi, we are on SOLMAN EHP1 SPS27.
    Any kind advise is most welcome.
    Thanks,
    Nicholas Chang

    Gosh! at last i found the solution!!
    I appreciate those who tried to help and i''m sharing the solution as i believe this is the purpose of SDN Forum and help others Netweaver Chap who facing the same problem:
    Problem faced:
    Extractor failed intermittently for WORKLOAD ANALYSIS (Introscope Data) due to error message "Error when opening an RFC connection"
    Due to the above error, performance data is not available in RCA workload analysis for J2EE engine.
    Possible Solution:
    1) Ensure both webadmin & SOLMANDIAG RFC working fine -> SM59 -> TCP/IP
    2) go to SE16 -> E2E_RESOURCES and change the resourcecap to 10 for SOLMANDIAG
    3) go to /smd/services -> Diagnostic System -> Advanced Setup -> Abap connectivity -> Connection Configuration and change server count to 10
    4) Restart webadmin (step 3 & 4 can perform in VA too)
    5) set gw/keepalive &  gw/reg_keepalive to value 0 in RZ11 (without reboot of instance)
    5) again go to SM59 -> TCP/IP -> SOLMANDIAG and put in the gateway host and gateway service correctly, don't leave this empty!!!! -
    > This is the main solution to solve intermittent failed RFC for extractor.
    Now, go back and monitor the extractor log and you should see no RFC error anymore and wait for 1 hour for the data to populate.
    Thanks!
    Nicholas Chang,

  • TMS - Error when opening an RFC connection

    Hi,
    TMS communication error with TMSADM@<SID>.DOMAIN_<SID>
    Message no. XT153
    Diagnosis
    There was an error during communication with the RFC destination
    TMSADM@<SID>.DOMAIN_<SID>
    System Response
    The exact error message of the system is:
    Error when opening an RFC connection
    Procedure
    The function terminates.
    Procedure for System Administration
    Check your TMS configuration with the transaction STMS.
    when i check RFC connections through sm59 its working fine.
    plz advise.
    Thanks in advance.

    try to reconfigure STMS easy way to soluve your problem
    or goto STMS -> system overview try to update the configuration
    Samrat

  • Connecting to R/3 System through Java Web Dynpro forms.

    Hi,
    I have a requirement in which I have to send data to R/3
    from Java Web Dynpro screens.
    I will design the Java Web Dynpro screens and write a RFC Model.
    I will write a RFC in se37 which will connect to the RFC Model.
    Before creating the RFC in se37, I will create ztables in se11.
    I will write a ABAP Report to see that all data enters the ztables.
    I need some guidance with regard to this.
    Do, the RFC Model have the access of the ECC(R/3) System.
    What are tasks to be told the Basis guy so, that RFC being called from through Java Web Dynpro?
    Please provide me some documents with regards to this scenario.
    Regards
    Neha Singh

    Hi Neha,
    The steps you provided is clear enough to connect to a R/3 system through the WD forms.
    On creating the model you need to give two inputs such as
    logical system name for model instance
    logical system name for RFC metadata
    there will be 2 default values, also you can create your own JCOs in the <servername>:<port>/devinf of the server or u can ask your basis team also.
    Before creating the JCO , the SLD (System Landscape Directory) needs to be configures, that your basis team will know.
    other than that once you create the functional module in se37 make it RFC enabled , and once you import the RFC model , you can give your ECC system user name and password and search for RFC you have created from the list of RFC.
    Regards,
    Sam Charles J.

  • Java communication error: Error when opening an RFC connection (CPIC-CALL: 'ThSAPOCMINIT' : cmRc=2 thRc=679 Transaction program not registered ).

    There is a RFC connection not working connection test fails.
    I found out the RFC is using a a program id that is not registerd.
    When I register the program on os level like rfcexec -r -a <program_id> -g <hostname> -x <sapgw> the connection test on the rfc works.
    The problem with the rfcexec is that it just works as long as the os session is active.
    From what I´ve read I need to configure this on java side in the web dynpro content administrator.
    Can you help me with that ? When I try to click Create jco destination I get an error.

    Hello Vioar,
    rfcexec is only a standard program for testing, you sould not register it for your application on the gateway.
    Since you are getting "User is not allowed to read any data..." - did you logon with the correct user? Does this user have enough authorizations?
    Regards,
    Alwina

Maybe you are looking for

  • Error when converting a numeric field to XML

    Hi,         When i run the Adobe intractive form,i am getting following exception "Error when converting a numeric field to XML" Anyone plz suggest Regards, vinoth

  • HT5219 can i connect my dv camera to my new imac via thunderbolt firewire adaptor

    can i connect my dv camera to my new imac via thunderbolt firewire adaptor

  • Retriving Archived IDocs

    Hi, 1) Is it possible to retrieve an archived Idoc? If yes how? 2) Assume that an archived IDoc is in status 68. Please help confirm 3) Is it possible to retrieve an Idoc in status 68? If yes how. Would greatly appreciate any help. Regards, Mick

  • Registering on the piece of crap website.

    THIS HAS NOT BEEN RESOLVED!!! I"M STILL SITTING HERE WITH A SEMI USELESS MACHINE> WHERE"S TECH SUPPORT WHEN YOU NEED THEM???????????????????????????????????????????????????????????????When directed by the unit to register online, there's no place to

  • Control Bar Separate From Media Player

    Using LayoutMetadata how would I make the control bar vertically position itself below the current MediaElement? I would like the media element to position itself within a given rectangle above the controlbar, like YouTube's player for instance. Answ