https://raw.githubusercontent.com/ajmaradiaga/feeds/main/scmt/topics/SAP-Java-Connector-(JCo)-qa.xmlSAP Community - SAP Java Connector (JCo)2024-05-20T11:13:08.781743+00:00python-feedgenSAP Java Connector (JCo) Q&A in SAP Communityhttps://community.sap.com/t5/technology-q-a/help-is-required-regarding-download-the-archive-files-from-the-application/qaq-p/12769942Help is required regarding download the archive files from the application server to non-SAP server2023-10-25T15:20:21+02:00ashish_pancholihttps://community.sap.com/t5/user/viewprofilepage/user-id/881365<P>I am new to SAP. My requirement is that, as soon as SAP archiving moves the data that is no longer required to archive files, I would like to bring those archive files to an external non-SAP server. I believe that in order to read and download the archive file from the SAP application server to a Java-based external non-SAP server, JCO will support this. </P>
<P>So, regarding the same, I need to ask the following: </P>
<P>Does JCo support making an HTTP or FTP request to read and download the archive file? Or should we go with BAPI, RFC, or IDoc using JCo? </P>
<P>Will the archive file be read from the AL11 directory, or do we need an ABAP program to first move the file to the AL11 directory, and afterwards we can download using JCo?</P>2023-10-25T15:20:21+02:00https://community.sap.com/t5/enterprise-resource-planning-q-a/which-programming-languages-for-sap-offer-an-archive-development-kit-adk/qaq-p/12807404Which programming languages for SAP offer an Archive Development Kit (ADK)?2023-11-02T10:48:28+01:00ashish_pancholihttps://community.sap.com/t5/user/viewprofilepage/user-id/881365<P>Being new to SAP, I am aware that the Archive Development Kit (ADK) offers a collection of tools and programming interfaces (APIs) that enable developers to design new archiving solutions, alter pre-existing ones, or create custom archiving objects. However, I am unsure if this can be done with the ABAP programming language, and I'm also curious about which programming languages for SAP have an Archive Development Kit (ADK) available.</P>
<P>Can someone additionally clarify, if I can use ADK to trigger or execute Archiving Actions like CREATE without using the SAP GUI?</P>2023-11-02T10:48:28+01:00https://community.sap.com/t5/technology-q-a/want-to-download-the-version-3-1-x-libraries-for-idoc-jco-and-jco-native/qaq-p/12731853Want to download the version 3.1.x libraries for IDoc, JCO, and JCO Native(need these jar files)2023-11-07T16:26:55+01:00pravallika_18https://community.sap.com/t5/user/viewprofilepage/user-id/885833<P>I am working on the POC integration from SAP to B2C commerce cloud. So, In order to have the sap as my back-end system I need those jar files.</P>2023-11-07T16:26:55+01:00https://community.sap.com/t5/technology-q-a/list-of-users-with-their-roles-in-sap-ecc/qaq-p/12771997LIst of Users with their Roles in SAP ECC2023-11-19T20:21:24+01:00amankumarchagtihttps://community.sap.com/t5/user/viewprofilepage/user-id/863584<P>Hi, I am trying to pull all the users with their respective roles in SAP ECC via JCo and I am using the below code:</P>
<PRE><CODE>import java.io.BufferedWriter;<BR />import java.io.FileWriter;<BR />import java.io.IOException;<BR />import com.sap.conn.jco.JCoDestination;<BR />import com.sap.conn.jco.JCoDestinationManager;<BR />import com.sap.conn.jco.JCoException;<BR />import com.sap.conn.jco.JCoFunction;<BR />import com.sap.conn.jco.JCoParameterList;<BR />import com.sap.conn.jco.JCoTable;<BR />public class SAPDestinationTable { public static void main(String[] args) <BR />{ try { // Establish connection <BR />JCoDestination destination = JCoDestinationManager.getDestination("SAP-ECC-"); <BR />destination.ping();<BR /> // Create function module call <BR />JCoFunction function = destination.getRepository().getFunction("RFC_READ_TABLE");<BR /> // Set up function module parameters <BR />JCoParameterList imports = function.getImportParameterList(); <BR />imports.setValue("QUERY_TABLE", "ARG_USERS"); <BR />imports.setValue("DELIMITER", ",");<BR /> // Execute the function module call <BR />function.execute(destination);<BR /> System.out.println(function.getTableParameterList().getTable("OPTIONS")); <BR />// Get the data table JCoTable <BR />dataTable = function.getTableParameterList().getTable("DATA");<BR /> // Get the fields table <BR />JCoTable fieldsTable = function.getTableParameterList().getTable("FIELDS");<BR /> System.out.println(dataTable.getNumRows()); <BR />System.out.println(fieldsTable); <BR />// Create CSV file writer <BR />BufferedWriter writer = new BufferedWriter(new FileWriter("output-testing.csv"));<BR /> // Write column headings to CSV <BR />System.out.println(fieldsTable); <BR />for (int i = 0; i < fieldsTable.getNumRows(); i++) { <BR />fieldsTable.setRow(i); <BR />String fieldName = fieldsTable.getString("FIELDTEXT"); <BR />writer.write(fieldName); <BR />if (i < fieldsTable.getNumRows() - 1) { <BR />writer.write(","); <BR />} <BR />} writer.newLine();<BR /> // Write data rows to CSV<BR /> for (int i = 0; i < dataTable.getNumRows(); i++) { <BR />dataTable.setRow(i); <BR />for (int j = 0; j < dataTable.getNumColumns(); j++) { <BR />String fieldValue = dataTable.getString(j); <BR />writer.write(fieldValue); <BR />if (j < dataTable.getNumColumns() - 1) <BR />{
writer.write(","); <BR />} <BR />} writer.newLine(); <BR />} <BR /> // Close the writer <BR />writer.close(); <BR /> System.out.println("Data written to output-testing.csv successfully."); <BR /> } <BR />catch (JCoException | IOException e) { <BR />e.printStackTrace(); <BR />} <BR />}} </CODE></PRE>
<P><BR />but it is giving following error:<BR /><BR />```<BR />com.sap.conn.jco.AbapException: (126) TABLE_NOT_AVAILABLE: TABLE_NOT_AVAILABLE Message 029 of class SV type E, Par[1]: ARG_USERS</P>
<P> at com.sap.conn.jco.rt.ClientConnection.executeInternal(ClientConnection.java:2062)</P>
<P> at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:2257)</P>
<P> at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:2124)</P>
<P> at com.sap.conn.jco.rt.RfcDestination.execute(RfcDestination.java:2289)</P>
<P> at com.sap.conn.jco.rt.RfcDestination.execute(RfcDestination.java:2253)</P>
<P> at com.sap.conn.jco.rt.AbapFunction.execute(AbapFunction.java:305)</P>
<P> at SAPDestinationTable.main(SAPDestinationTable.java:27)</P>
<P>```<BR /><BR />I verified with the team and the table ARG_USERS exist in SAP ECC, so I am unable to identify the loophole.</P>2023-11-19T20:21:24+01:00https://community.sap.com/t5/technology-q-a/issues-with-sapjco-scn-parameters/qaq-p/12772912Issues with sapjco SCN parameters2023-11-20T16:57:38+01:00hnguyen_kinaxishttps://community.sap.com/t5/user/viewprofilepage/user-id/392997<P>Hello,</P>
<P>I am passing these SCN parameters (provided by Basis provider). It looks like it figured out by itself the port 4800, but it showed <EM>TEXT WSAECONNREFUSED: Connection refused</EM></P>
<P>Does anybody have the same problem and know how to fix it?</P>
<P><EM>jco.client.ashost=<host><BR /></EM></P>
<P><EM>jco.client.sysnr=00</EM></P>
<P><EM>#jco.client.gwserv = 3300</EM></P>
<P><EM>#jco.client.gwserv = 4800</EM></P>
<P><EM>jco.client.client=<client></EM></P>
<P><EM>jco.client.user=<user></EM></P>
<P><EM>jco.client.passwd=<passwd></EM></P>
<P><EM>jco.client.lang=en</EM></P>
<P><EM><BR /></EM></P>
<P><EM>jco.client.snc_mode=1</EM></P>
<P><EM>jco.client.snc_qop=1</EM></P>
<P><EM>#jco.client.snc_myname=XQ3</EM></P>
<P><EM>jco.client.snc_lib=C:/SAP/crypto/sapcrypto.dll</EM></P>
<P><EM>jco.client.snc_partnername=p:CN=XQ3, OU=I0090125263, O=SAP Web AS</EM></P>
<P>It is working fine without SNC (where<EM> jco.client.snc_mode=0</EM>)</P>
<P>However, with SNC (where<EM> jco.client.snc_mode=1</EM>) , somehow I got this error:</P>
<P><EM>com.sap.conn.jco.JCoException: (102) JCO_ERROR_COMMUNICATION: Initialization of destination ABAP_AS1 failed: Connect to SAP gateway failed</EM></P>
<P><EM> connection parameters: TYPE=A DESTINATION=ABAP_AS1 ASHOST=<host> SYSNR=00 SNC_MODE=1 SNC_QOP=1 SNC_PARTNERNAME="p:CN=XQ3, OU=I0090125263, O=SAP Web AS" PCS=1 SERIALIZATION_FORMAT=columnBased NETWORK=LAN</EM></P>
<P><EM><BR /></EM></P>
<P><EM>LOCATION CPIC (TCP/IP) on local host with Unicode</EM></P>
<P><EM>ERROR partner '<host>:4800' not reached</EM></P>
<P><EM>TIME Mon Nov 20 10:40:35 2023</EM></P>
<P><EM>RELEASE 753</EM></P>
<P><EM>COMPONENT NI (network interface)</EM></P>
<P><EM>VERSION 40</EM></P>
<P><EM>RC -10</EM></P>
<P><EM>MODULE D:/depot/bas/753_REL/src/base/ni/nixxi.cpp</EM></P>
<P><EM>LINE 3458</EM></P>
<P><EM>DETAIL NiPConnect2: <host>:4800</EM></P>
<P><EM>SYSTEM CALL connect</EM></P>
<P><EM>ERRNO 10061</EM></P>
<P><EM>ERRNO TEXT WSAECONNREFUSED: Connection refused</EM></P>
<P><EM>COUNTER 2</EM></P>
<P><EM> at com.sap.conn.jco.rt.RfcDestination.initialize(RfcDestination.java:1456)</EM></P>
<P><EM> at com.sap.conn.jco.rt.RfcDestination.ping(RfcDestination.java:2163)</EM></P>
<P><EM> at Processor.processRow(Unknown Source)</EM></P>
<P><EM> at org.apache.hop.pipeline.transforms.userdefinedjavaclass.UserDefinedJavaClass.processRow(UserDefinedJavaClass.java:908)</EM></P>
<P><EM> at org.apache.hop.pipeline.transform.RunThread.run(RunThread.java:55)</EM></P>
<P><EM> at java.base/java.lang.Thread.run(Thread.java:833)</EM></P>
<P><EM>Caused by: com.sap.conn.jco.JCoException: (102) JCO_ERROR_COMMUNICATION: Connect to SAP gateway failed</EM></P>
<P><EM> connection parameters: TYPE=A DESTINATION=ABAP_AS1 ASHOST=<host> SYSNR=00 SNC_MODE=1 SNC_QOP=1 SNC_PARTNERNAME="p:CN=XQ3, OU=I0090125263, O=SAP Web AS" PCS=1 SERIALIZATION_FORMAT=columnBased NETWORK=LAN</EM></P>
<P>Thanks,</P>
<P>hn</P>2023-11-20T16:57:38+01:00https://community.sap.com/t5/technology-q-a/sap-port-change/qaq-p/12796365SAP Port Change2023-11-23T05:16:09+01:00amankumarchagtihttps://community.sap.com/t5/user/viewprofilepage/user-id/863584<P>Hi, want to change my SAP connectivity port, right now it is connected to 3311 where 11 is the system number, how can I connect to port 3211? I am trying to connect via SAP JCo.</P>2023-11-23T05:16:09+01:00https://community.sap.com/t5/technology-q-a/java-connect-snc-with-error-no-credentials-were-supplied/qaq-p/12808115JAVA Connect SNC with error: No credentials were supplied2023-11-29T02:08:16+01:00huiyong_tanhttps://community.sap.com/t5/user/viewprofilepage/user-id/888740<P>Hi Experts</P>
<P>I have an error when I try to connect SAP with SNC by sapjco3.jar lib,</P>
<P>the system environment is ok, because other SAP account working, I have tested already.</P>
<P>the configuration as bellow:</P>
<P>1. system32 folder put the sapjco3.jar and sapjco3.dll </P>
<P>2. the code specifies the dll SNC_LIB path:</P>
<P><IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2228306-image.png" /></P>
<P>3. and then run the jar application, got error as bellow:</P>
<P><IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2228307-image.png" /></P>
<P>4.this error only for one account, and other SAP account is ok for same system, I don't know where went wrong, maybe the cert configuration or SAP SNC server configuration. and I asked the local SAP supplier, but never replied. </P>
<P>some configurations as bellow:</P>
<P>import certification: sapgenpse import_own_cert</P>
<P>add certification user: sapgenpse.exe seclogin<BR /></P>
<P>Any help will be appreciated. Thanks!</P>2023-11-29T02:08:16+01:00https://community.sap.com/t5/technology-q-a/how-to-call-a-bapi-rfc-from-btp-java-application/qaq-p/12817250How to call a BAPI / RFC from BTP Java Application2024-01-08T14:22:36+01:00Animatron56https://community.sap.com/t5/user/viewprofilepage/user-id/3676<P>Currently I have the use case, where I need to call a BAPI / RFC in an onpremise system to adapt a users master data (like first name and SNC).</P>
<P>I have read in the cloud SDK Docu that this can be achieved with Java via the cloud connector. I know that the cloud sdk collegues will remove this feature in the future as they have written in the official documentation, but I still wanted to try that out (official docu: <A href="https://sap.github.io/cloud-sdk/docs/java/features/bapi-and-rfc/overview)" target="test_blank" rel="nofollow noopener noreferrer">https://sap.github.io/cloud-sdk/docs/java/features/bapi-and-rfc/overview)</A> Since it is written, that this feature will still be available for Cloud SDK version 5, I believe that it should still be available and working at the moment. </P>
<P>Therefore I have read how this setup can be achieved and setup a java application like the one from <SPAN class="mention-scrubbed">fukuhara</SPAN> here: <A href="https://blogs.sap.com/2020/05/08/how-to-call-function-modules-using-sap-cloud-sdk-for-java/comment-page-1/#comment-701698" target="test_blank" rel="noopener noreferrer">https://blogs.sap.com/2020/05/08/how-to-call-function-modules-using-sap-cloud-sdk-for-java/comment-page-1/#comment-701698</A> </P>
<P>Unfortunately this did not work for me. I always get the following error: </P>
<P>jakarta.servlet.ServletException: Handler dispatch failed: java.lang.NoClassDefFoundError: com/sap/conn/jco/JCoException</P>
<P>Becasue of this error I was wondering, if this feature is still available and can be used or if it has been removed now.?Additionally I wanted to know if there is another option to access RFC / BAPIs from a CAP application?</P>
<P>I have also tested a bit with node-rfc (see here: <A href="https://github.com/SAP/node-rfc)" target="test_blank" rel="nofollow noopener noreferrer">https://github.com/SAP/node-rfc)</A>, but since for Java this feature is / was built-in, I tried my luck with the first method. </P>
<P>Thank you very much and best regards!</P>2024-01-08T14:22:36+01:00https://community.sap.com/t5/technology-q-a/error-while-creating-new-jco-destination/qaq-p/13585665Error while creating new Jco Destination2024-01-29T18:38:40.962000+01:00windhttps://community.sap.com/t5/user/viewprofilepage/user-id/1384824<P>Hi all,</P><P>I am configuring the SLD. I created the Jco.</P><P>I clicked 'Ping' , the error is [ Failed to ping JCo destination 'WD_RFC_METADATA_DEST' ] , It's nomal that telnet seccprd1 3600.</P><P>And while I clicked 'Test' , I am getting the below error.</P><P>com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B</P><P>MSHOST=seccprd1 GROUP=SPACE R3NAME=SCP MSSERV=sapmsSCP PCS=1 ERROR service 'sapmsSCP' unknown TIME Thu Jan 30 01:19:41</P><P>2024 RELEASE 700 COMPONENT NI (network interface) VERSION 38 RC -3 MODULE nixxhsl.cpp LINE 776 DETAIL</P><P>NiHsLGetServNo: service name cached as unknown COUNTER 2</P><P>Message server's trace file is like this</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20240130013309.jpg" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/55255i4A86FF70FF4B1888/image-size/large?v=v2&px=999" role="button" title="20240130013309.jpg" alt="20240130013309.jpg" /></span></P><P>What could be the problem?</P><P>Thanks,</P><P>Robert</P>2024-01-29T18:38:40.962000+01:00https://community.sap.com/t5/technology-q-a/when-single-sign-on-to-sac-can-i-know-the-xml-form-of-the-samlresponse/qaq-p/13606118When single sign on to SAC, can I know the xml form of the samlresponse required to log in to SAC?2024-02-15T08:45:36.883000+01:00jackdawhttps://community.sap.com/t5/user/viewprofilepage/user-id/128441<P>When single sign on to SAC, can I know the xml form of the samlresponse required to log in to SAC?</P>2024-02-15T08:45:36.883000+01:00https://community.sap.com/t5/technology-q-a/exception-while-fetching-jcodestinationmanager-getdestination-destination/qaq-p/13607699Exception while fetching JCoDestinationManager.getDestination(destination)2024-02-16T11:35:20.347000+01:00Mukesh_123https://community.sap.com/t5/user/viewprofilepage/user-id/1399259<P>I am getting this below Exception while trying to use JCO in my application : JCo initialization failed with java.lang.ExceptionInInitializerError: Illegal JCo archive "sapjco3-3.1.8.jar". It is not allowed to rename or repackage the original archive "sapjco3.jar".</P><P> </P><DIV><PRE> </PRE></DIV>2024-02-16T11:35:20.347000+01:00https://community.sap.com/t5/technology-q-a/sap-jco-error-service-quot-0-quot-already-in-use/qaq-p/13608661SAP Jco Error : Service "0" already in Use2024-02-17T14:18:57.625000+01:00Former Member<P>Hi,</P><P> We are facing. below issue, Address already in use . Any help would be greatly appreciated.</P><P> </P><PRE>LOCATION CPIC (TCP/IP) on local host with Unicode
ERROR service '0' in use
TIME Fri Nov 27 18:36:36 2009
RELEASE 720
COMPONENT NI (network interface)
VERSION 40
RC -4
MODULE nixxi.cpp
LINE 3255
DETAIL NiICheckPendConnection
SYSTEM CALL select, getsockopt
ERRNO 10048
ERRNO TEXT WSAEADDRINUSE: Address already in use
COUNTER 4978</PRE><P> </P><P> </P>2024-02-17T14:18:57.625000+01:00https://community.sap.com/t5/technology-q-a/getting-destination-inside-thread-losing-context/qaq-p/13615076Getting destination inside thread. Losing Context2024-02-22T06:06:18.820000+01:00Mukesh_123https://community.sap.com/t5/user/viewprofilepage/user-id/1399259<P>I am using this below code to get the destination.</P><P>JCoDestination btpDest = JCoDestinationManager.getDestination(XXXX);</P><P>And in the same method i am trying to set the token.<SPAN>com.sap.cloud.security.token.Token token = com.sap.cloud.security.token.SecurityContext.</SPAN><SPAN>getToken</SPAN><SPAN>()</SPAN><SPAN>;</SPAN></P><DIV><PRE>com.sap.cloud.security.token.SecurityContext.<SPAN>setToken</SPAN>(token)</PRE><P>But still i am getting </P><P> <SPAN>TenantContext context = </SPAN><SPAN>this</SPAN><SPAN>.</SPAN><SPAN>runtime</SPAN><SPAN>.</SPAN><SPAN>tenantManager</SPAN><SPAN>.getTenantContext()</SPAN><SPAN>;</SPAN></P><P><SPAN>context is null.</SPAN></P><P><SPAN>Could please help me for this.</SPAN></P><P> </P><P><SPAN>I am using these two dependency to enable JCO.</SPAN></P><DIV><PRE><SPAN><dependency><BR /></SPAN><SPAN> <groupId></SPAN>com.sap.cloud<SPAN></groupId><BR /></SPAN><SPAN> <artifactId></SPAN>neo-java-web-api<SPAN></artifactId><BR /></SPAN><SPAN> <version></SPAN>4.0.0<SPAN></version><BR /></SPAN><SPAN> <scope></SPAN>provided<SPAN></scope><BR /></SPAN><SPAN></dependency><BR /><BR /></SPAN></PRE><DIV><PRE><SPAN><dependency><BR /></SPAN><SPAN> <groupId></SPAN>com.sap.conn.jco<SPAN></groupId><BR /></SPAN><SPAN> <artifactId></SPAN>com.sap.conn.jco.sapjco3<SPAN></artifactId><BR /></SPAN><SPAN> <version></SPAN>3.1.8<SPAN></version><BR /></SPAN><SPAN></dependency><BR /></SPAN><SPAN><dependency></SPAN></PRE></DIV><PRE><SPAN> </SPAN></PRE></DIV></DIV>2024-02-22T06:06:18.820000+01:00https://community.sap.com/t5/technology-q-a/way-of-functioning-of-sap-jco-library/qaq-p/13632153Way of functioning of SAP Jco Library2024-03-08T11:03:20.174000+01:00saprookieathttps://community.sap.com/t5/user/viewprofilepage/user-id/849861<P>Dear SAP community,</P><P>We have implemented a JCo Server, which uses tRFC and the JCoFunction <SPAN>IDOC_INBOUND_ASYNCHRONOUS. The JCoServerFunctionHandler as well as the JCoServerTIDHandler have custom implementations for saving IDocs with CRUD operations into the database.</SPAN></P><P><SPAN>During internal tests we noticed, that for instance, if we would throw a RuntimeException (e.g. the database connection has been lost) in the commit() method of the JCoServerTIDHandler the transaction will not be reprocessed.</SPAN></P><P>The same behavior could be observed, if we just throw a RuntimeException in the <SPAN>handleRequest(JCoServerContext jcoServerContext, JCoFunction jcoFunction) of the</SPAN> <SPAN>JCoServerFunctionHandler implementation. </SPAN></P><P>In both cases we receive an error in the log file, but SAP does not seem to send the IDoc again or check with <SPAN>checkTID(JCoServerContext serverContext, String transactionID) if the IDoc has been processed already.</SPAN></P><P>So my lack of understanding results in three questions:</P><UL><LI>Is there no feedback with regards to the information in case the IDoc has been received?</LI><LI>Do you need to call a specific JCoFunction to signal SAP the IDoc has not been successfully received and needs to be sent again in a later try?</LI><LI>Is this in general not something I can do with the JCo Java Library and it needs to be configured on the SAP system to handle feedback sent back (e.g. through a RuntimeException) to the SAP system (I do not know, if there is a response from the SAP library in this case)</LI></UL><P>I would appreciate any valuable input with regards to this question as I am currently a bit stuck to cover all necessary edge cases to ensure data consistency.</P><P>Thank you in advance!</P><P> </P>2024-03-08T11:03:20.174000+01:00https://community.sap.com/t5/technology-q-a/wildfly-resource-adapter-for-sap-jra-and-sapjco3/qaq-p/13638960Wildfly resource adapter for SAP JRA and sapjco32024-03-14T23:38:26.597000+01:00Naga24https://community.sap.com/t5/user/viewprofilepage/user-id/1411923<P>Hi,</P><P>I am looking for SAP Java resource adapter for sapjco3 implementation. We have sapjra.jar and sapjco2 libraries which we are using to connect to SAP system using Wildfly resource adapter module. </P><P>The current sapjra.jar which is sapjco2 implementation has </P><P>managedconnectionfactory class as <STRONG>com.sap.mw.jco.jra.JRA$ManagedConnectionFactoryImpl</STRONG>, connectionfactory impl class as <STRONG>com.sap.mw.jco.jra.JRA$ConnectionFactoryImpl</STRONG>, and connection impl class as <STRONG>com.sap.mw.jco.jra.JRA$ConnectionImpl </STRONG>which are internally using sapjco2's com.sap.mw.jco libraries.</P><P>We are currently planning to move to sapjco3. I need equivalent sapjra.jar file which has implementation of sapjco3's JCO with managedconnectionfactory, connectionfactory impl, and connection impl classes.</P><P>Please help me in getting JRA implementation of sapjco3. </P><P> </P><P> </P><P> </P>2024-03-14T23:38:26.597000+01:00https://community.sap.com/t5/technology-q-a/could-not-initialize-class-jco/qaq-p/13643703could not initialize class jco2024-03-20T06:25:57.628000+01:00mspakishttps://community.sap.com/t5/user/viewprofilepage/user-id/1411976<P>sapjco3.jar / sapjco3.dll</P><P>version upgrade issue</P><P>windows server 2016 standard</P><P>Web Application Server : JEUS</P><P>Among the Java library files, sapjco3.jar file was upgraded. From 3.0.17version to 3.1.8 version.<BR />However, the following error appears:</P><P> </P><P>java.lang.NoClassDefFoundError: Could not initialize class com.sap.conn.jco.JCo</P><P><SPAN>at com.sap.conn.jco.JCoDestinationManager.getDestination(JCoDestinationManager.java:56) ~[sapjco3.jar:20230711 2000 [3.1.8 (2023-07-11)]]</SPAN></P><P><SPAN>at com.jmech.zrfc.RFCProcess.createClient(RFCProcess.java:228) ~[classes/:?]</SPAN></P><P><SPAN>at com.jmech.zrfc.func.ZPM_NON_NRC_WORDER_SEARCH.<init>(ZPM_NON_NRC_WORDER_SEARCH.java:31) ~[classes/:?]</SPAN></P><P><SPAN>at com.jmech.zrfc.SapOrderManager.getZPM_NON_NRC_WORDER_SEARCH(SapOrderManager.java:255) ~[classes/:?]</SPAN></P><P><SPAN>at com.jmech.batch.SyncExternalDataBatchController.batchCall_ZPM_NON_NRC_WORDER_SEARCH(SyncExternalDataBatchController.java:1144) ~[classes/:?]</SPAN></P><P><SPAN>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]</SPAN></P><P><SPAN>at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101]</SPAN></P><P><SPAN>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101]</SPAN></P><P><SPAN>at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101]</SPAN></P><P><SPAN>at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:64) ~[spring-context-3.2.18.RELEASE.jar:3.2.18.RELEASE]</SPAN></P><P><SPAN>at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53) [spring-context-3.2.18.RELEASE.jar:3.2.18.RELEASE]</SPAN></P><P><SPAN>at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81) [spring-context-3.2.18.RELEASE.jar:3.2.18.RELEASE]</SPAN></P><P><SPAN>at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_101]</SPAN></P><P><SPAN>at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_101]</SPAN></P><P><SPAN>at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_101]</SPAN></P><P><SPAN>at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_101]</SPAN></P><P><SPAN>at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_101]</SPAN></P><P><SPAN>at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_101]</SPAN></P><P><SPAN>at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]</SPAN></P><P> </P><P> </P><P>Even though I set it to the same library location as before, this phenomenon occurs and I don't know why. Is this a java version issue?</P>2024-03-20T06:25:57.628000+01:00https://community.sap.com/t5/technology-q-a/jco-idoc-send-is-waiting-for-idoc-to-complete-processing/qaq-p/13644917JCo IDoc send is waiting for IDoc to complete processing2024-03-21T02:02:34.924000+01:00ingos11https://community.sap.com/t5/user/viewprofilepage/user-id/890089<P>Hi everyone,</P><P>We have a client that has a IDoc that is set to Trigger Immediately and with some of their large IDocs the processing can take more than 20 minutes. We send the IDocs to SAP with Jco 3.1.8 and the IDoc 3.1.3 library and whenever we have a large IDoc we experience that the <SPAN>JCoIDoc</SPAN><SPAN>.</SPAN><SPAN>send method is blocked until processing in SAP has finished.<BR />I was always told that IDoc is asynchronous and now I am wondering what we are doing wrong.<BR />We have suggested to the customer that he changes the processing to `Trigger by background program` but that is not an option to him. He still thinks that we should be able to continue processing on our end with the current settings.</SPAN></P><P> </P>2024-03-21T02:02:34.924000+01:00https://community.sap.com/t5/technology-q-a/taking-huge-heap-memory-by-sap-jco-library/qaq-p/13655620Taking huge heap memory by SAP JCO library2024-04-02T12:00:38.148000+02:00polireddyhttps://community.sap.com/t5/user/viewprofilepage/user-id/874084<P>we are seeing<SPAN> </SPAN><STRONG>java.lang.OutOfMemoryError: Java heap space </STRONG>in SAP Java connector. After analyzing heap dumps, we came to know is, for 278 MB file, jco is taking around 2GB heap memory. </P><P>For 400 mb file, it taking around 3.2GB.</P><P>1. We need to know if the Idoc file is having x size , how much approximate memory required (2x, 4x,6x,8x,10x) to process this file using java program.</P><P>For example, if the Idoc file is 100 MB, do we need around 400/600/800 MB of java heap memory to process the file.</P><P>2. Is there anyway by which java application will get to know the file size using SapJCO api before start processing/reading file?</P><P>Error:</P><P>One instance of “com.sap.conn.rfc.data.ARFCSDATA” loaded by “com.test.$Loader @ 0x60129d7a8” occupies 2,790.48 MB (34.17%) bytes. The memory is accumulated in one instance of “char[][]”, loaded by “<system class loader>”, which occupies 2,790.47 MB (34.17%) bytes.</P>2024-04-02T12:00:38.148000+02:00https://community.sap.com/t5/technology-q-a/connect-to-abap-environment-using-rfc/qaq-p/13679921Connect to ABAP environment using RFC2024-04-23T22:37:30.301000+02:00Gustafhttps://community.sap.com/t5/user/viewprofilepage/user-id/1441442<P>Hello, I have created an ABAP environment on my SAP BTP Cloud trial account. The runtime environment is Cloud Foundry. Now I’m trying to connect to it with RFC connection, although I’m struggling finding the right host and port to connect. So far I tried to connect with username/password. I found some <SPAN>NAT IPs (egress, IPs for requests from an ABAP System) which I tried to connect to but none of them worked. Or is there an url to access the environment? </SPAN>Could anyone help me with this? Thanks.</P>2024-04-23T22:37:30.301000+02:00https://community.sap.com/t5/technology-q-a/sapjco3-how-to-add-certificate-for-snc-connection/qaq-p/13684905sapjco3: How to add certificate for SNC connection2024-04-28T20:25:30.003000+02:00Niko1https://community.sap.com/t5/user/viewprofilepage/user-id/1444862<P>Hi experts!</P><P>I am trying to set up an SNC connection to my SAP Netweaver system, using SAP Jco in Java (Ubuntu).</P><P>I have managed to make an SNC connection with SAP GUI, so the SNC infrastructure should be mostly in place. I am unsure how to add the SNC certificate to the SAP Jco, because, I am getting this error when I try to run my Java program: </P><pre class="lia-code-sample language-abap"><code>ERROR GSS-API(maj): No credentials were supplied
Unable to establish the security context
target="p:CN=NPL"</code></pre><P>Can the certificate be linked by adding some property here?</P><pre class="lia-code-sample language-abap"><code>sapProperties.setProperty(DestinationDataProvider.JCO_SNC_MODE, "1");
sapProperties.setProperty(DestinationDataProvider.JCO_SNC_PARTNERNAME, "p:CN=NPL");
sapProperties.setProperty(DestinationDataProvider.JCO_SNC_MYNAME, "p:CN=NPL");
sapProperties.setProperty(DestinationDataProvider.JCO_SNC_QOP, "1");</code></pre><P>Help is much appreciated!</P>2024-04-28T20:25:30.003000+02:00