Using JCO error Wrong repository version = 0 encountered.
Hi Guru,
We convert our existing Java Jco program to call RFC Sender adapter and XI should forward the request to RFC receiver adapter to our ECC.
We found that when we create client connection using gwhost, gwserv and tpname which is config in RFC sender adapter.
In our Java program throw error in the step of mRepository.getFunctionTemplate.
The error is "Wrong repository version = 0 encountered.".
It seems the program can not access function template from repository.
Anyone have this experience before, please advise
Thanks you.
It's working now.
For your knowledge, it seems it was something wrong inside the jrfc.jar.
The problem is not exactly the same but the solution is to apply OSS note 816491.
Similar Messages
-
Java Georaster API error - wrong java version
Hi all. I've done some searching about but cannot see this question answered (or indeed asked) anywhere else so perhaps i'm the first person to encounter it.
I've got some georaster data from a customer in an Oracle DMP file which i've imported. It all checks out as being valid (using sdo_geor.validategeoraster) but i cannot view it in the Georaster Viewer tool. I wrote some java to extract a piece to a file but i get this error with the select command ...
DEBUG <10:27:51> [GeoRaster] jGeor.getRasterImage(conn,0,600, 1199, 1801, 2400 )
ERROR <10:27:51> [GeoRaster] Failed to getRasterImage() because of a GeoRasterException : -13464;GeoRaster object has float or double data type.
It can be retrieved only with Java version 1.4.1 or higher.
Java version found: 1.5
ERROR <10:27:51> [GeoRaster] stack trace is ...
DEBUG <10:27:51> [GeoRaster] 0 oracle.spatial.georaster.JGeoRaster.getColorModel(JGeoRaster.java:1276)
DEBUG <10:27:51> [GeoRaster] 1 oracle.spatial.georaster.JGeoRaster.getRasterImage(JGeoRaster.java:2568)
DEBUG <10:27:51> [GeoRaster] 2 com.espatial.ps.georaster.GeoRaster.getRenderedImage(GeoRaster.java:736)
DEBUG <10:27:51> [GeoRaster] 3 com.espatial.ps.utilities.TemplateApplicationHelper.testExport(TemplateApplicationHelper.java:294)
DEBUG <10:27:51> [GeoRaster] 4 com.espatial.ps.utilities.TemplateApplicationHelper.main(TemplateApplicationHelper.java:130)If I query the georaster I get this ...
ORCL10GR:SQL> SELECT georaster FROM intermap_iscsi.CORE_DTM g WHERE g.georaster.RASTERDATATABLE = 'CORE_DTM_RDT_01' AND g.georid = 101;
GEORASTER(RASTERTYPE, SPATIALEXTENT(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES), RASTERDATATABLE, RASTERID, METADATA)
SDO_GEORASTER(20001, SDO_GEOMETRY(2003, 8265, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1), SDO_ORDINATE_ARRAY(-114.87502, 35.0000208, -114.87502, 34.93
75, -114.87502, 34.8749792, -114.8125, 34.8749792, -114.74998, 34.8749792, -114.74998, 34.9375, -114.74998, 35.0000208, -114.8125, 35.0000208, -1
14.87502, 35.0000208)), 'CORE_DTM_RDT_01', 101, XMLTYPE(<georasterMetadata xmlns="http://xmlns.oracle.com/spatial/georaster">
<objectI))I'm running my java program with JDK 1.5.0_11 so that error about needing 1.4.1 or higher is odd. Is it to do with the Oracle instance needing that JDK? Anyone got any ideas?
John.Looks like the code is explicitly checking for a specific version of Java without doing a greater than check, you'll have to trick the API
Before you call the JGeoRaster Method, call:
String temp = System.getProperty("java.specification.version");
System.setProperty( "java.specification.version", "1.4.1" );
the after call:
System.setProperty("java.specification.version", temp);
Alternatively, the JGeoRaster library that comes with 11g has a fix for this issue. -
Error via ODBC: wrong dll version (check: SQLTCPx.dll)
Hi,
after system, MAXDB 7.06.03 & database studio installation on new server my application reports error: wrong dll version (check: SQLTCPx.dll)
On previous server connection via ODBC was ok.
I have checked all available ODBC Drivers (MAXDB, SAPDB, SAPDB 7.4) and it does nothing.
Connection via .net driver (without ODBC) works fine.
How can I get correct version of dll ?
Which version is correct?
This dll currently exists in system: v. 7.6.3.0 (C:\Program Files\sdb\DBM) or v. 7.6.2.0 (C:\Program Files\sdb\programs\pgm)
Best regards,
Lukasz
MAXDB 7.06.03.07 Community Edition, WIN 2k3 x32 Ent. ed.
ODBC:
Version 7.6.03 Build 007-123-157-515
Object Mode 32 bit
Test File pgm/sqlod32.dll
Make Id 256246
Installation Date 24.01.2008
Size 3045874 bytes
Checksum 293d54b1f67025353bc9cfdbe1dd84f3Hello Wolfgang,
problem is after Database Studio installation.
My test system is:
OS: Windows XP Sp2
MAXDB Software:
1) MAXDB 7.6.03.07 (install file: maxdb-all-win-32bit.exe, server+client installation)
2) SQL Studio 7.6.03.02 (174235)
3) Database manager 7.6.03.02
If i install MaxdbStudio (install file: maxdb-studio-win-32bit.exe) on that environment I'll get error :wrong dll version (check: SQLTCPx.dll) in all known connections via ODBC.
Connections via odbc means for me connection via ODBC Source witch uses MAXDB (unicode) driver, file: SQLODE32W.DLL
(Control panel => Administrative tools => ODBC Sources => Add source => MAXDB (unicode) ... etc.).
SQL Studio, database manager and maxdb studio starts and works correctly.
Connections via MaxDB ADO.NET Data Provider works correctly (another application).
Error occurs in Windows 2003 as well (the same software).
Best regards,
Lukasz -
Jco: Error Connecting using sapgw04
Hi,
I have a problem using Jco to connect to a SAP-System.
I'm trying to connect to SAP using the following configuartions:
sysnr: 04
GWServ: sapgw00
GWHost: XXX.YYY.com
ASHost: XXX.YYY.com
The code to create a repository for this configuration is:
JCO.addClientPool(poolname, maxpoolsize, "538", "username", "password", "DE",
"XXX.YYY.com", "04", "XXX.YYY.com", "sapgw00");
When I use this pool to get a function I get an Exception:
com.sap.mw.jco.JCO$Exception: (123) JCO_ERROR_FUNCTION_NOT_FOUND: Server repository could not create function template '[FUNCTIONNAME]'
caused by: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect from SAP gateway to RFC server failed
Connect_PM
GWHOST=XXX.YYY.com , GWSERV=sapgw00, ASHOST=XXX.YYY.com , SYSNR=04
LOCATION
SAP-Gateway on host h33e / sapgw00
ERROR partner not reached
(host XXX.YYY.com , service <b>sapgw04</b>)
The strange thing is the sapgw04 in the error-message.
Somehow JCO wants to use sapgw04 to connect to the RFC-Server. Is this an error in the SAP-Configuration or do I have to change the configuration of Jco?
How can I tell Jco not to use sapgw04 but sapgw00?
Any help would be appreciated!
Thanks
TorstenHi Torsten,
please check how you log on to your system. You are giving a system number 04, which corresponds to sapgw04. I'm not sure why the method needs all the information, seems to be duplicate to me (please comment if I'm wrong); it should be sufficient to use:
addClientPool(String key,
int max_connections,
String client,
String user,
String passwd,
String lang,
String ashost,
String sysnr)
If you don't want to use sapgw04, just specify "00" for the sysnr.
Hope this helps, harald -
I am using Adobe Acrobat 9 Standard version in Windows 8.1 and when I try to create a .pdf file, I receive the following error message "Acrobat could not open "file name.log" because it is either not a supported file type or because the file has been damaged. To create a PDF document, go to the source application then print the document to .pdf" I am going to the source application and printing the document to .pdf yet it's saving the file as a .log file. After reinstalling the software, I initially didn't encounter this problem but on my second and third attempts to convert files to .pdf format, this error message reappeared. How do I resolve this problem?
I have a similar problem which i did not have before...and it exists only in some powerpoint files which i want to print as a pdf file...and i get the same message as above.
the log says the bellow details...what's the problem and how can i resolve it? thanks.
%%[ ProductName: Distiller ]%%
%%[Page: 1]%%
%%[Page: 2]%%
Cambria not found, using Courier.
%%[ Error: invalidfont; OffendingCommand: show ]%%
Stack:
%%[ Flushing: rest of job (to end-of-file) will be ignored ]%% -
Error while calling BAPI_PARTNEREMPLOYEE_CREATE BAPI using JCO
Hi All,
Our requirement is to create and update customer contact details from java application. For this purpose we are trying to call BAPI_PARTNEREMPLOYEE_CREATE BAPI for create contact and BAPI_PARTNEREMPLOYEE_EDIT for updating contact information. As these BAPIs are of online version, error is coming while calling these BAPIs.
So is there any way to call these BAPIs through JCO or are there any alternative BAPIs available for same purpose?
Thanks in advance,
Arati.Hi,
All the bapi or function module available in SAP to create contact person will internally do a call transaction to VAP1 and VAP2 tcodes in order to create or change contact person respectively.
We had a similar problem when we were creating and updating customer contact person using inbound idoc. We then created a bdc recording for the same and then created two function module with name Z_CREATE_CONTACT and Z_CHANGE_CONTACT. In your case you can make this function modules as RFC enabled FM and call them using JCO I guess.
KR Jaideep, -
Error when connecting SAP CRM to SUP using JCO
Hi Gurus,
we are trying to connect SAP CRM (v 7.0 Ehp1 SP3) to Sybase Unwired Server Platform 2.0 (installed on a 64bit workstation) using JCO.
Following the instructions into the following link:
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01283.0200/doc/html/asc1229701333453.html
and given the informationfound into the forum, we performed the following steps:
1) Copy librfc32.dll (32bit) and sapjcorfc.dll (64bit, if not an error
is thrown) to "D:\Sybase\UnwiredPlatform\Servers\UnwiredServer\lib"
2) Copy librfc32.dll (32bit) and sapjcorfc.dll (32bit) and paste them
to C:\WINDOWS\sysWOW64
3) Copy librfc32.dll (32bit) and sapjcorfc.dll (32bit)
to 'D:\Sybase\UnwiredPlatform\JDK1.6.0_24\bin'
4) Copy sapjco.jar (32bit) to
"\Sybase\UnwiredPlatform\Unwired_WorkSpace\Eclipse\sybase_workspace\mobile\eclipse\plugins\com.sybase.uep.com.sap.mw.jco_<version>\lib"
5) Copy sapjco.jar (32bit)
to "D:\Sybase\UnwiredPlatform\Servers\UnwiredServer\lib\3rdparty"
With this configuration, we are able to connect to CRM from Eclipse (Sybase Unwired Workspace) but if we open Sybase Control Center, and we go to Domains -> Connections, we select CRD connection, we go to Properties then we click on "Test connection", SCC remains stuck with no responce. This issue does not allow us to connect to Sybase-SAP
using an Ipad application (the application remains stuck the same).
We also tried to install SapGui, but with no results. Did we place the right files into the right directories? Do you have any suggestions=
Thanks in advance,
FabioHi Pavani
I hope you solved your issue
Ey!.. Im also in a project where I had to connect BODS with SAP CRM, actually I havent even configured the connection, but I would really appreciate if you could share some valuable information with me.
BR
Belinda -
Error Using JCo..
When i start the JCo Outbound server program in Java it terminates with an Exception saying Server Start Exception because of Invalid Gateway Host and Service....
What should be done??
The Java code of RfcDest.java is given below...
RfcDest.java - Simple implementation of an (external RFC) server. This example is based on
static metadata with non-unicode layout, so the calls only from non-unicode systems can be
handled.
Property of SAP AG, Walldorf
(c) Copyright SAP AG, Walldorf, 2000-2003.
All rights reserved.
import com.sap.mw.jco.*;
import java.util.*;
@version 1.0
@author SAP AG, Walldorf
public class RfcDest implements JCO.ServerExceptionListener, JCO.ServerStateChangedListener {
Implementation of our own repository.
Just dummy extend the basic repository that comes with the JCO package
static public class Repository extends JCO.BasicRepository implements IRepository {
Creates a new empty repository
public Repository(String name)
super(name);
/** The repository we gonna be using */
protected static IRepository repository;
static {
repository = new Repository("TestRepository");
// non-unicode definition of functions. The server with this repository can
// dispatch calls only from non-unicode systems
// Add function 'STFC_CONNECTION'
JCO.MetaData fmeta = new JCO.MetaData("STFC_CONNECTION");
fmeta.addInfo("REQUTEXT", JCO.TYPE_CHAR, 255, 0, 0, JCO.IMPORT_PARAMETER, null);
fmeta.addInfo("ECHOTEXT", JCO.TYPE_CHAR, 255, 0, 0, JCO.EXPORT_PARAMETER, null);
fmeta.addInfo("RESPTEXT", JCO.TYPE_CHAR, 255, 0, 0, JCO.EXPORT_PARAMETER, null);
repository.addFunctionInterfaceToCache(fmeta);
// Add function 'STFC_STRUCTURE'
fmeta = new JCO.MetaData("STFC_STRUCTURE");
fmeta.addInfo("IMPORTSTRUCT", JCO.TYPE_STRUCTURE, 144, 0, 0, JCO.IMPORT_PARAMETER, "RFCTEST");
fmeta.addInfo("ECHOSTRUCT", JCO.TYPE_STRUCTURE, 144, 0, 0, JCO.EXPORT_PARAMETER, "RFCTEST");
fmeta.addInfo("RESPTEXT", JCO.TYPE_CHAR, 255, 0, 0, JCO.EXPORT_PARAMETER, null );
fmeta.addInfo("RFCTABLE", JCO.TYPE_TABLE, 144, 0, 0, 0, "RFCTEST");
repository.addFunctionInterfaceToCache(fmeta);
// Add the structure RFCTEST to the structure cache
JCO.MetaData smeta = new JCO.MetaData("RFCTEST");
smeta.addInfo("RFCFLOAT", JCO.TYPE_FLOAT, 8, 0, 0);
smeta.addInfo("RFCCHAR1", JCO.TYPE_CHAR, 1, 8, 0);
smeta.addInfo("RFCINT2", JCO.TYPE_INT2, 2, 10, 0);
smeta.addInfo("RFCINT1", JCO.TYPE_INT1, 1, 12, 0);
smeta.addInfo("RFCICHAR4", JCO.TYPE_CHAR, 4, 13, 0);
smeta.addInfo("RFCINT4", JCO.TYPE_INT, 4, 20, 0);
smeta.addInfo("RFCHEX3", JCO.TYPE_BYTE, 3, 24, 0);
smeta.addInfo("RFCCHAR2", JCO.TYPE_CHAR, 2, 27, 0);
smeta.addInfo("RFCTIME", JCO.TYPE_TIME, 6, 29, 0);
smeta.addInfo("RFRDATE", JCO.TYPE_DATE, 8, 35, 0);
smeta.addInfo("RFCDATA1", JCO.TYPE_CHAR, 50,43, 0);
smeta.addInfo("RFCDATA2", JCO.TYPE_CHAR, 50,93, 0);
repository.addStructureDefinitionToCache(smeta);
Implementation of my own server
static public class Server extends JCO.Server {
Create an instance of my own server
@param gwhost the gateway host
@param gwserv the gateway service number
@param progid the program id
@param repository the repository used by the server to lookup the definitions of an inc
public Server(String gwhost, String gwserv, String progid, IRepository repository)
super(gwhost,gwserv,progid,repository);
Not really necessary to override this function but for demonstration purposes...
protected JCO.Function getFunction(String function_name)
JCO.Function function = super.getFunction(function_name);
return function;
Not really necessary to override this method but for demonstration purposes...
protected boolean checkAuthorization(String function_name, int authorization_mode,
String authorization_partner, byte[] authorization_key)
/* Simply allow everyone to invoke the services */
return true;
Overrides the default method.
Can handle only the two functions STFC_CONNECTION and STFC_STRUCTURE
protected void handleRequest(JCO.Function function)
JCO.ParameterList input = function.getImportParameterList();
JCO.ParameterList output = function.getExportParameterList();
JCO.ParameterList tables = function.getTableParameterList();
System.out.println("handleRequest(" + function.getName() + ")");
if (function.getName().equals("STFC_CONNECTION")) {
output.setValue(input.getString("REQUTEXT"),"ECHOTEXT");
output.setValue("This is a response from RfcDest.java","RESPTEXT");
else if (function.getName().equals("STFC_STRUCTURE")) {
JCO.Structure sin = input.getStructure("IMPORTSTRUCT");
JCO.Structure sout = (JCO.Structure)sin.clone();
try {
System.out.println(sin);
catch (Exception ex) {
System.out.println(ex);
output.setValue(sout,"ECHOSTRUCT");
output.setValue("This is a response from RfcDest.java","RESPTEXT");
}//if
/** List of servers */
// JCO.Server srv[] = new JCO.Server[2]; <-- Original
JCO.Server srv[] = new JCO.Server[1];
Constructor
public RfcDest()
// Yes, we're interested in server exceptions
JCO.addServerExceptionListener(this);
// And we also want to know when the server(s) change their states
JCO.addServerStateChangedListener(this);
Start the server
public void startServers()
// Server 1 listens for incoming requests from system 1
// (Change gateway host, service, and program ID according to your needs)
srv[0] = new Server("gateway","sapgw00","JCOSERVER01",repository);
// Server 2 listens for incoming requests from system 2
// (Change gateway host, service, and program ID according to your needs)
/******* Next line commented out by Anand ****************/
//srv[1] = new Server("gwhost2","gwserv00","JCOSERVER02",repository);
for (int i = 0; i < srv.length; i++) {
try {
srv<i>.setTrace(true);
srv<i>.start();
catch (Exception ex) {
System.out.println("Could not start server " + srv<i>.getProgID() + ":\n" + ex);
}//try
}//for
Simply prints the text of the exception and a stack trace
public void serverExceptionOccurred(JCO.Server server, Exception ex)
System.out.println("Exception in server " + server.getProgID() + ":\n" + ex);
ex.printStackTrace();
Simply prints server state changes
public void serverStateChangeOccurred(JCO.Server server, int old_state, int new_state)
System.out.print("Server " + server.getProgID() + " changed state from [");
if ((old_state & JCO.STATE_STOPPED ) != 0) System.out.print(" STOPPED ");
if ((old_state & JCO.STATE_STARTED ) != 0) System.out.print(" STARTED ");
if ((old_state & JCO.STATE_LISTENING ) != 0) System.out.print(" LISTENING ");
if ((old_state & JCO.STATE_TRANSACTION) != 0) System.out.print(" TRANSACTION ");
if ((old_state & JCO.STATE_BUSY ) != 0) System.out.print(" BUSY ");
System.out.print("] to [");
if ((new_state & JCO.STATE_STOPPED ) != 0) System.out.print(" STOPPED ");
if ((new_state & JCO.STATE_STARTED ) != 0) System.out.print(" STARTED ");
if ((new_state & JCO.STATE_LISTENING ) != 0) System.out.print(" LISTENING ");
if ((new_state & JCO.STATE_TRANSACTION) != 0) System.out.print(" TRANSACTION ");
if ((new_state & JCO.STATE_BUSY ) != 0) System.out.print(" BUSY ");
System.out.println("]");
public static void main(String[] argv)
RfcDest obj = new RfcDest();
obj.startServers();Hi,
Can u please post the exception trace..
Regards,
Tanveer.
Message was edited by: Tanveer Shaikh -
Error connection using JCO.Client
Hello all,
I got the following problem <b>"Error connection using JCO.Client"</b> and don't know what's wrong. All connections works at the content administration when I test the connection.
Can anyone help me please?
Best regards
PetraHi,
I almost tested the JCO connection with the 'test' button successfully at the content administrator. I tested again and it still works. And I have a stand alone webdynpro application (no portal).
Now I got the following error message after completing the coding with 'e.printStackTrace().'.
<i>
"Error connection using JCO.Client:null"
"[Ljava.lang.StackTraceElement:@60db08"
"Could not create JCOClientConnection for logical System:WD_MODELDATA_DEST - Model: class impersonalaccout.intro.model.Z_Fh0002_Datenverwaltung.Please assure that you have configured the RFC connections and/or logical System"
"com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCException:Error connection using JCO.Client:null"
"com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCException: Could not create JCOClientConnection for logical System: WD_MODELDATA_DEST - Model:class impersonalaccout.intro.model.Z_Fh0002_Datenveraltung.Please ***"</i>
Can anyone explaine me what's wrong?
Bye
Petra -
Error Calling Web Service - VersionMismatch Wrong SOAP Version
Hello,
I am attempting to create a web service from a function module, and to call this web service from outside of SAP.
I used the Web Service Creation Wizard to create a web service from BAPI_CURRENCY_GETLIST, and tested it using the Web Service Homepage button from transaction WSADMIN. Everything seems to work OK so far.
To test calling the web service, I copied the SOAP envelope from the web service homepage into a vbscript file:
Const HOST = "http://<server>.<domain>:<port>"
Const URL = "/sap/bc/srt/rfc/sap/ZWSD_Currency?sap-client=<nnn>"
' Create the HTTP object
Set xmlhttp = CreateObject("Microsoft.XMLHTTP")
Dim Request
Request = "<?xml version=""1.0"" encoding=""UTF-8"" ?>" & _
"<SOAP-ENV:Envelope xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema"" xmlns:xs=""http://www.w3.org/2001/XMLSchema-instance"">" & _
"<SOAP-ENV:Header>" & _
"<sapsess:Session xmlns:sapsess=""http://www.sap.com/webas/630/soap/features/session/"">" & _
"<enableSession>true</enableSession>" & _
"</sapsess:Session>" & _
"</SOAP-ENV:Header>" & _
"<SOAP-ENV:Body>" & _
"<ns1:CurrencyGetlist xmnls:ns1='urn:sap-com:document:sap:soap:functions:mc-style'>" & _
"<CurrencyList><item>" & _
"<CURRENCY></CURRENCY>" & _
"<CURRENCY_ISO></CURRENCY_ISO>" & _
"<ALT_CURR></ALT_CURR>" & _
"<VALID_TO></VALID_TO>" & _
"<LONG_TEXT></LONG_TEXT>" & _
"</item></CurrencyList>" & _
"</ns1:CurrencyGetlist>" & _
"</SOAP-ENV:Body>" & _
"</SOAP-ENV:Envelope>"
xmlhttp.open "POST", HOST & URL, False
xmlhttp.send (request)
MsgBox (xmlhttp.responseXML.xml)
When I execute the vbscript, the response is
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelop/">
<soap-env:Body>
<soap-env:Fault>
<faultcode>
soap-env:VersionMismatch
</faultcode>
<faultstring xml:lang="en">
Wrong SOAP Version
</faultstring>
</soap-env:Fault>
</soap-env:Body>
</soap-env:Envelope>
The system log (transaction SM21) contains the messages:
SOAP Runtime: SOAP Fault exception occurred in program CL_SOAP_MESSAGE===============CP in include CL_SOAP_ME SSAGE===============CM00X at position 34
SOAP Runtime: Exception message: Severe processing error; SOAP fault handling required
In the RFC trace (transaction SM59) I see
XRFC> INFO 14:25:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING <
XRFC> ROOT->IFSOAP_TRANSPORT_BINDING~RESPONSE() Try to create response <
XRFC> message <
XRFC> <
XRFC> INFO 14:25:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING <
XRFC> ROOT->IFSOAP_TRANSPORT_BINDING~RESPONSE() Response message <
XRFC> created <
XRFC> <
XRFC> INFO 14:25:10: SOAP Transport binding CL_SOAP_HTTP_TPBND_ROOT <
XRFC> ->IF_SOAP_TRANSPORT_BINDING~RECEIVE() Try to receive message <
XRFC> <
XRFC> 20071218 142510 00037640: SOAP Fault Exception caught: : Wrong <
XRFC> SOAP Version <
XRFC> <
XRFC>
XRFC> End of user trace
How can I tell what version(s) of SOAP the NetWeaver 2004 platform supports? Has anyone seen and resolved this error?
Thanks in advance,
MarkHi Anton,
Thanks for the helpful suggestion. I did try setting SOAPAction using xmlhttp.setRequestHeader, but that didn't seem to make any difference. I may not have formatted the SOAP header correctly, however.
What I noticed is that if I added a slash at the end of the xmlns:soap tag in the SOAP envelope, I got a different error message (SOAP Processing failure, error id = 112).
I downloaded version 2.0 of the .NET framework and the SOAPSonar tool. SOAPSonar was able to format the SOAP envelope from the WSDL. When I pasted the SOAP envelope from SOAPSonar into my vbscript file, it worked. So, the vbscript looks like this:
Const HOST = "http://nwr051.nwenergy:1080"
Const URL = "/sap/bc/srt/rfc/sap/ZWSD_Currency?sap-client=100"
Const FORMAT = "dd-MMM-yy"
' Create the HTTP object
Set xmlhttp = CreateObject("Microsoft.XMLHTTP")
Dim Request
Request = "<?xml version=""1.0"" encoding=""utf-8""?>" & _
"<soap:Envelope xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:tns=""urn:sap-com:document:sap:soap:functions:mc-style"">" & _
" <soap:Body>" & _
" <tns:CurrencyGetlist>" & _
" <CurrencyList>" & _
" </CurrencyList>" & _
" </tns:CurrencyGetlist>" & _
" </soap:Body>" & _
"</soap:Envelope>"
xmlhttp.open "POST", HOST & URL, False
xmlhttp.send (request)
MsgBox (xmlhttp.responseXML.xml)
Again, thanks for taking the time to read through this and offer your insight.
Regards,
Mark -
Error building project using kXML2 - "Class loading error: Wrong name"
Hi,
I'm testing the XML-Parser KXML2 and downloaded the latest package, but the minimal version (kxml2-min.zip). I put this file into the directory "%j2mewtk%\apps\KxmlTest\lib" and wrote the lines
import org.kxml2.io.*;
import org.xmlpull.v1.*;
When I try to build the project with the Wireless Toolkit (v1.04) it spits out the following error:
Error preverifying class kxml2.io.KXmlParser
Class loading error: Wrong name
com.sun.kvem.ktools.ExecutionException: Preverifier returned 1
Build failed
I also tried the full package "kxml2.zip" but the same error occurs.
How can I get rid of this? Thanks in advance!Okay, finally worked it out (hopefully). I unpacked the archive to a directory (say "%J2MEWTK%\apps\KxmlTest\tmpclasses") and then preverified them "manually":
%J2SDK%\bin\preverify.exe -classpath "%J2MEWTK%\apps\KxmlTest\tmpclasses";"%J2MEWTK%\lib\midpapi.zip" org.kxml2.io.KXmlParser
%J2SDK%\bin\preverify.exe -classpath "%J2MEWTK%\apps\KxmlTest\tmpclasses";"%J2MEWTK%\lib\midpapi.zip" org.xmlpull.v1.XmlPullParser
%J2SDK%\bin\preverify.exe -classpath "%J2MEWTK%\apps\KxmlTest\tmpclasses";"%J2MEWTK%\lib\midpapi.zip" org.xmlpull.v1.XmlPullParserException
Then I packed them again to a jar-file:
%J2SDK%\bin\jar.exe -cvf kxml2-min.jar %J2MEWTK%\apps\KxmlTest\tmpclasses\output\.
That was all! -
Error while creating PO using JCO......?
hello all,
i am trying to create po by using jco. i have done everything
but at time of execution its throw following error
please try to help..
thanks in advance..
com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Exception condition "FAILURE" raised.
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeExecute(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.execute(MiddlewareRFC.java:1244)
at com.sap.mw.jco.JCO$Client.execute(JCO.java:3842)
at com.sap.mw.jco.JCO$Client.execute(JCO.java:3287)
at org.apache.jsp.pocreate1$jsp._jspService(pocreate1$jsp.java:167)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:595)check user Authorization in R/3
nikhil -
Error connecting using JCO.Client: null
Hi,
I created a WD app which uses the RFC FM. I followed How-To-build-webdynpro.pdf document to create the WD and trying to deploy and run, I see the view page but when I trigger the action via button UI element I get following error as exception in the try catch block of execute method
In the NWA I see
Could not create JCOClientConnection for logical System: 'WD_MODELDATA_DEST' - Model
An exception has occurred: Erorr accessing cache [region]='XCM_SESSION_SCOPE'.
[EXCEPTION]
com.sap.isa.core.cache.Cache$Exception: Cannot return access for region 'XCM_SESSION_SCOPE'. Cache is not ready
I'm using following existing JCO definition by configuring them with correct parameters. Tested them successfully
WD_RFC_METADATA_DEST
WD_MODELDATA_DEST
What am I missing? In SM04 tcode I see 2 connections are opened with 2 Megabyte not released for a long time. I think if connections are released correctly it should drop to 1 megabyte. Is there anything that I need to do just after execute method as shown below (I have replaced function module with <FM> in below code)
try {
wdContext.node<FM>_Input().current<FM>_Get_InputElement().modelObject().execute();
} catch(Exception exception) {
msgMgr.reportException(exception.getLocalizedMessage(), false);
wdContext.nodeOutput().invalidate();
msgMgr.reportSuccess("Success");
The error is in the catch block which is displayed on the view page.
Thanks
Praveen
I modified the above code and put in finally block to close the connections as follows, please let me know if this is OK. I still get error message as "Error connecting using JCO.Client: null" but no additional connections in the SM04 after adding finally block.
try {
wdContext.node<FM>_Input().current<FM>_Get_InputElement().modelObject().execute();
} catch(Exception exception) {
msgMgr.reportException(exception.getLocalizedMessage(), false);
}finally {
// disconnect the connection
wdContext.<FM>_Get_InputElement().modelObject().modelInstance().disconnectIfAlive();
Edited by: Praveen11 on Oct 5, 2009 9:06 AMThanks Satish.
The issue is resolved. I think it was to do with permission, as I was running directly from NWDS deploy and run the session didn't have proper authorisation or something that was causing this error.
When I copy pasted the URL in the correct browser session window I got no error and function module was successfully executed. However the issue now is that values are not showing up in the view may be to do with mapping context or model I'll review and post back as different thread.
Thanks
Praveen -
Urgent : Error in RFC Look Up using JCO.
Hi,
I have a scenario od accessing a database table by passing the name through XI and also giving the Where condition ,passing the fieldnames and getting back the field values . The FM that id used for this on ABAP side is <b>RFC_READ_TABLE</b>.
For this Scenario I inserted a Java Code using JCO's in th UDF for the RFC Look Up's.
I got errors while activating the MM which i am not able to rectify.Please Help me in this.
<b>Activation of the change list canceled Check result for Message Mapping MM_Notes_2_ED_Z_SDIDOC |
Starting compilation Source code has syntax error: /usr/sap/EXD/DVEBMGS49/j2ee/cluster/server0/./temp/classpath_resolver/Map303c42607df411dc8b1d00e000c553d9/source/com/sap/xi/tf/_MM_Notes_2_ED_Z_SDIDOC_.java:1539: cannot resolve symbol symbol : method createClient (java.lang.String,java.lang.String) location: class com.sap.mw.jco.JCO JCO.Client mConnection = JCO.createClient("200","EN"); ^ /usr/sap/EXD/DVEBMGS49/j2ee/cluster/server0/./temp/classpath_resolver/Map303c42607df411dc8b1d00e000c553d9/source/com/sap/xi/tf/_MM_Notes_2_ED_Z_SDIDOC_.java:1578: cannot resolve symbol symbol : variable result location: class com.sap.xi.tf._MM_Notes_2_ED_Z_SDIDOC_ result.addValue(resultSet[pos]); ^ 2 errors</b>
<b>This is an Urgent Requirement. Please reply ASAP.</b>
Regards,
Priyanka.Hi Priyanka,
The error message says there are 2 errors:
1. createClient
2. result.addValue
For the first one, I guess you might not have included all the API required for lookup
For second one, please check what is the type of object you are adding to the resultset, maybe you can just say result.addValue(resultSet[pos] + ""); to typecast it. -
Error message has just occurred... This copy of itunes is corrupted. Please reinstall itunes. I'm using a Macbook operating on version 10.6.8 - not that this means anything to me. I just want to preserve my library and playlists! What do I do?!
Let's try a repair install of iTunes.
Restart the PC first.
If you're using Vista or 7, now head into your Uninstall a program control panel, select "iTunes" and then click "Repair".
If you're using XP, head into your Add or Remove Programs control panel, select "iTunes", and click "Change". Select "Repair" and click "Next" as per the following screenshot:
Can you launch your iTunes now?
Maybe you are looking for
-
Can anyone help me with getting the best setting for me system
can anyone help me with getting the best setting for me system on cpufan it says my temp is 38c but on corecentre it says 42c can anyone help get my system overclocked any more but keeping it stable as well thanx in advance for the help
-
Dear Team, Japanese characters alone are not passing correctly (passing like ??? or some unreadable characters) to Adobe application when we create input variable as XML data type. The same solution works fine if we change input variable data type to
-
[Apache2 | PHP] serving local files
Hi there, A recent hardware update and reinstall of my primary office server had broken the following functionality of my webbased dossier program: With the use of glob() I can list all the files in the directory belonging to a dossier - this is stil
-
Calling/invoking a web service
Hi Everybody, I am in some serious trouble and need some help. Here is my situation :- I have a web service hosted in oracle application server. I have an xml file that is to be used as input to the web service. This is what I require :- Is there a w
-
Mapping a CASE constraint gives error:The expression is not properly formed
Hi I am hoping someone can help us with this as we cannot find it in the usual places: I have the following WHERE clause in my query: WHERE xd.cii_owner_account_id = hca.cust_account_id AND incidentb.incident_status_id = incident_status.incident_stat