Jco 2.0.10 - HPUX - use_sapgui=2
Hi All,
i'm using jco with hpux. if the property use_sapgui is set to 0 everything works out fine but if I set it to 2 it won't return from the sap call. It returns only if I disconnect the client or kill the login in SM04.
With JCo Version 2.1.4 it won't even work if I disconnect or kill the login. However with use_sapgui=0 everything works out fine.
The problem only occures on Unix platforms. On Windows everthing works.
Does someone have a glue about the problem?
Tanks, kind regards
jochen
Hi,
to use the sapgui on unix you've to set some environment variables.
export SHLIB_PATH=/opt/sapjco
export CLASSPATH=/opt/sapjco/sapjco.jar
export PLATINHOME=/opt/sapgui
export SAPGUI="$PLATINHOME/bin/guistart"
export PLATIN_JAVA=/opt/java1.4/jre/bin/java
export PLATIN_JAVA_VER=1.4.0
The bad thing is that the different jco versions behave different. The latest version (2.1.4) of sapjco does not work with sapgui = 2 at all.
regards
jochen
Similar Messages
-
SAP JCO 3 - Not recognizing ABAP_DEBUG and USE_SAPGUI
We are in the process of converting a Java application to use JCO 3.0 in order for it to work on the Intel based Macs. The code conversion has gone well so far and I have successfully been able to connect to a SAP system using the new connection methods. In previous versions of JCO I was able to set AbapDebug to true on the Client and this would bring up the SAP GUI in debug mode when I executed a RFC. In order for this to work I had to create a script that would call the SAP GUI application. I also had to set an environment variable called SAPGUI to point to this script. The script would called the SAP GUI JAR file and pass on any parameters passed into it.
The problem I am experiencing with JCO 3 is that I cannot get this to work. The new version of the SAP GUI 7.10 R4 has changed some of the parameters to start the GUI and I have changed these in my script file. If I call the SAPGUI command with a connection string on both systems (JCO 2 and JCO3) I get the same result. The SAP GUI is displayed and is requesting logon details for the requested server. This seems to prove that my changes to the script worked. Prior to the script changes the SAP GUI would not be displayed on the JCO 3 system.
An interesting observation is that the connection properties use an enum (eg. DestinationDataProvider.JCO_ASHOST) to set the individual properties that make up the connection. This enum does not have anything related to USE_SAPGUI or ABAP_DEBUG. I am desperately hoping that this functionality hasn't been forgotten in the port to version 3.
I know this is a new connector but I am hoping that someone can shed some light on what changes I would need to make to get this to work.
Thanks,
CharlesHi Charles,
any progress with your problem? I've a similar problem. I have to call BAPI_DOCUMENT_CHANGE2 to change an original of a DIS.
This won't work unless a SAPGUI is attached to the connection. With JCo 2.1.8 I set the connection property USE_SAPGUI to 1 or 2
and everything works fine. After connecting there is a SAPGUI running in background and during the BAPI call the SAPGUI starts
a saphttp.exe with managed the file transfer to the Server. In Jco 3.0 I'm missing this property, as you do. No SAPGUI, no saphttp.exe, but also
no error or exception from BAPI_DOCUMENT_CHANGE2 and no filetransfer from client to server.
regards,
Boris -
JCO-Java application unable to open a Frontend GUI session
Hello,
<P>
I am having a problem opening a GUI session on a client PC through the JCo java call. It works on some PC's when I am logged in, but not on my PC. But other persons who login on my PC do not have a problem with the application opening a GUI session. I am at a loss. I have had a basis consultant look into this and he could not find a reason for the problem. I have submitted a customer message to SAP and am being told to file this issue in the forum, so here it is. If this is the wrong forum, please let me know which forum would be the correct one.
</P>
<P>
Problem:</br>
For test purposes, I have created a Java application using the SAP standalone SAPJCO3 vers. 3.0.1. The R/3 backend is 4.6C. The SAPGui version is 7.1 patch level 13 installed on a Windows XP Pro client PC. The application is supposed to start a Frontend GUI session as part of the initial process. This is not working on all PCu2019s for all users. The following are scenarios for two different users on two different PCu2019s, logged on and executing the Java application. The parameters for the Java application are: User, Password, and System Id in this order on the command line after the Java applicationu2019s name. The system Id in our example is PRP in uppercase. This problem happens while connecting to any of our R/3 instances.
</P>
<P>
Testing of the issue:</br>
Scenario 1:</br>
User gmcghie: This user is the primary user of his/her PC. This PC has not had its registry entries cleaned up for a long time. Starting the Java application from the Windows command line with the supplied parameters, the program is executed and makes the initial connection with the R/3 backend. When the R/3 system sends back a request to start the GUI session, the SAP Logon is executed and opens on the PC. Nothing seems to happen after this.
<P>
Here is the JCO exception from the log file:
JCoException eDest: (136)com.sap.conn.jco.JCoException: (136) JCO_ERROR_ILLEGAL_STATE: Launching SAP GUI failed, though it was requested (error message: Communication with SAPGUI timed out)
</P>
<P>
When you right click on the SAP Logon icon that is in the Windows System Tray on the PC you see an entry that shows a session for Client 000. This is the wrong client being called by the application. The client being called is 600 in this particular scenario.
</P>
<P>
Here is the connection string sent to backend for scenario 1:</br>
TYPE=A DEST=PRP USER="gmcghie" PASSWD=********** CLIENT=600 LANG=E ASHOST=10.212.120.53 SYSNR=00 TRACE=1 PCS=1 USE_SAPGUI=2
</P>
<P>
Scenario 2:</br>
User mshin: This user is the primary user of his/her PC. This PC has had the OS re-installed on it within the last few years, hence the registry is likely more clean. Starting the Java application from the Windows command line with the supplied parameters, the program is executed and makes the initial connection with the R/3 backend. When the R/3 system sends back a request to start the GUI session, the SAP Logon is executed and opens on the PC. The connection is made to Client 600 and the process ends. The screens that appear above for the other scenario are not present when the connection is successful. The log file is not included for this as it was empty because it succeeded.
</P>
<P>
Here is the connection string sent to backend for scenario 2:</br>
TYPE=A DEST=PRP USER="mshin" PASSWD=********** CLIENT=600 LANG=E ASHOST=10.212.120.53 SYSNR=00 TRACE=1 PCS=1 USE_SAPGUI=2
</P>
I have the same issue on my PC as the first scenario.
<P>The steps I took to try to get this to work are as follows.</br>
1. Un-installed and re-installed the SAPGui, several times with no change.</br>
2. Compared the registry settings of SAPGui between working and non-working PCu2019s. These were essentially the same.</br>
3. Compared the system variables between working and non-working PCu2019s. These were essentially the same.</P>
It should also be noted that if user u2018gmcghieu2019 from scenario #1 logs into another PC, the program executes correctly (for most other PCs but not all). Finally, if user u2018mshinu2019 from scenario #2 (certain other users as well) logs into Windows on the primary PC for user u2018gmcghieu2019 from scenario #1, and user u2018gmcghieu2019 is used to connect to SAP using the Java program, the program executes correctly. It seems that this would indicate some problem with the useru2019s Windows account on certain PCs.</P>
Why is the connection information being dropped? How is the process of opening the SAPGui on the frontend done?</P>
Any help with this issue is greatly appreciated.</P>
Thanks,</br>
Mark ShirkeyCreated Customer Message and got answer. There were settings in Windows Registry for starting the SAP Logon Launch Pad which had to have a value of 1.
-
HPUX on IA64: Error when connecting to SAP via librfc
Hello,
I'm trying to develop a C-program to call ABAP-Functions. On Windows this works fine (example program from the book "SAP-Schnittstellenprogrammierung" by Meiners/Nüßer), but on HP-UX on IA64 I get:
**** Trace file opened at 20060919 115449 MESZ SAP-REL 700,0,61 RFC-VER 3 834459
resize I/O buffer to 16000 bytes
>>>> [1] <unknown> : EXT <ac: 1> L w2sap >>> OPEN
UUID: ab_drvstate create uuid {450FBE6A-BE69-25F1-E100-0000C06D4F88}
======> Connect to SAP gateway failed
Connect_PM GWHOST=w2sap, GWSERV=sapgw00, SYSNR=00
LOCATION CPIC (TCP/IP) on local host
ERROR internal error
TIME Tue Sep 19 11:54:49 2006
RELEASE 700
COMPONENT NI (network interface)
VERSION 38
RC -1
MODULE nixxi.cpp
LINE 2762
DETAIL NiICheckPendConnection
SYSTEM CALL poll, getsockopt
ERRNO 2050
COUNTER 3
>>>> [1] <unknown> : EXT <ac: 2> L w2sap >>> CLOSE abrfcio.c 611
-{450FBE6A-BE69-25F1-E100-0000C06D4F88}
==== Delta 0 0 LOG DROPPED
>>> RfcOpenEx ...
Got following connect_param string:
CLIENT=000 USER=BCUSER PASSWD=******* LANGUAGE=DE ASHOST=w2sap SYSNR=00 ABAP_DEBUG=0 LCHECK=0 TRACE=1 USE_SAPGUI=0
<<< RfcOpenEx failed
I presume it has something to do with 32/64 Bit, because we also had problems with our own programs. On HPUX socklen_t is 64 bit (parameter of getsocket), and perhaps librfc thinks, it only has 32 bit and give an int as parameter.
Is there anything I can do?
Thx.
RogerI am also getting this error when using VitalStream. Was an
answer ever found this this issue? If anybody has any suggestions,
all help is appreciated.
Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095:
flash.net.NetConnection was unable to invoke callback streamInfo.
error=ReferenceError: Error #1069: Property streamInfo not found on
mx.controls.videoClasses.NCManagerConnectClient and there is no
default value.
at mx.controls.videoClasses::NCManager/::connectRTMP()
at mx.controls.videoClasses::NCManager/connectToURL()
at mx.controls.videoClasses::VideoPlayer/::_load()
at mx.controls.videoClasses::VideoPlayer/load()
at mx.controls::VideoDisplay/load()
at mx.controls::VideoDisplay/::autoPlaying()
at mx.controls::VideoDisplay/::creationCompleteHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
CODE
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Panel title="VideoDisplay Control Example"
height="75%" width="75%"
horizontalAlign="center"
paddingTop="10" paddingLeft="10" paddingRight="10"
paddingBottom="10">
<mx:Text width="75%" color="blue"
text="Use the buttons to control the video. The Stop button
resets the video to the beginning."/>
<mx:VideoDisplay
id="myVid"
height="158"
width="211"
source="rtmp://LINK REMOVED"
autoPlay="false"/>
<mx:HBox>
<mx:Button label="Play" click="myVid.play();"/>
<mx:Button label="Pause" click="myVid.pause();"/>
<mx:Button label="Stop" click="myVid.stop();"/>
</mx:HBox>
<mx:HBox>
<mx:Label text="{myVid.bytesLoaded} of
{myVid.bytesTotal}" />
<mx:Label text="{myVid.playheadTime} of
{myVid.totalTime}" />
</mx:HBox>
</mx:Panel>
</mx:Application>
Text -
About login_parameter 'use_sapgui' and 'abap_debug' in jco3.0.
hello.
in jco2.1.8 createclient,there is parameter 'use_sapgui' and 'abap_debug',but in JCO3.0 connectProperties,whether have the two parameter? how to write in java script? it's better to give example script.
best regards.
vera pang.Hi Charles,
any progress with your problem? I've a similar problem. I have to call BAPI_DOCUMENT_CHANGE2 to change an original of a DIS.
This won't work unless a SAPGUI is attached to the connection. With JCo 2.1.8 I set the connection property USE_SAPGUI to 1 or 2
and everything works fine. After connecting there is a SAPGUI running in background and during the BAPI call the SAPGUI starts
a saphttp.exe with managed the file transfer to the Server. In Jco 3.0 I'm missing this property, as you do. No SAPGUI, no saphttp.exe, but also
no error or exception from BAPI_DOCUMENT_CHANGE2 and no filetransfer from client to server.
regards,
Boris -
JCO over HP-UX running Itanium 64 bits not working
Hi,
I´ve downloaded sapjco-hpia64-2.1.4.tgz, and installed it in a Itanium machine, running HPUX B.11.23. The problem comes when I try to connect with SAP using JCO. The virtual machine throws an execption with this message:
Exception in thread "main" java.lang.ExceptionInInitializerError: JCO.classInitialize():
Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc
/opt/sap/connector/2_1_4/libsapjcorfc.so: specified handle or index is not valid..
java.library.path /opt/java1.4/jre/lib/IA64N/server:/opt/java1.4/jre/lib/IA64N:/opt/java1.4/jre/../lib/IA64N:/opt/java1.4/jre/lib/IA64N:/opt/java1.4/jre/lib/IA64N/server:/opt/java1.4/jre/../lib/IA64N:/opt/java1.4/jre/lib/PA_RISC/server:/opt/java1.4/jre/lib/PA_RISC:/opt/java1.4/jre/../lib/PA_RISC:/opt/sap/connector/2_1_4::/usr/lib
at com.sap.mw.jco.JCO.(JCO.java:735)
at com.wurth.broker.sap.conexion.ClienteSAP.conectar(ClienteSAP.java:86)
at com.wurth.broker.sap.consulta.morosidad.test.TestMain.test1(TestMain.java:78)
at com.wurth.broker.sap.consulta.morosidad.test.TestMain.main(TestMain.java:36)
I think that the problem with the initialization is because i execute JVM with the -d64 modifier, but version of JCO is 64bit-compatible.
Can anyone help me?
Thanks in advanceHi llja,
These are the outputs of the 'file' command that you request:
file libsapjcorfc.so
libsapjcorfc.so: ELF-64 shared object file - IA64
file librfccm.so
librfccm.so: ELF-64 shared object file - IA64
Thanks for you reply
Jose -
Error while selecting Load Balancing in JCO creation
While creating JCO i am facing this error.It is working fine with Single server connection,but when i chose Load balancing i error comes out.Please tell me the solution.
I have read couples of forum mentioned you need to start both Portal and ECC.
For you information my Portal and Java are both on diffrrent Box.
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=olameccpdvr GROUP=PUBLIC R3NAME=DVR MSSERV=sapmsDVR PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR service 'sapmsDVR' unknown TIME Thu Feb 24 12:19:54 201 RELEASE 701 COMPONENT NI (network interface) VERSION 38 RC -3 MODULE nixxhsl.cpp LINE 776 DETAIL NiHsLGetServNo: service name cached as unknown COUNTER 5Is your backend system configured correctly in your SLD ?
Go to transaction SMMS on your backend system that your are connecting to. Click on Goto=>Parameters=>Display. Look for "server port" value.
This should give you the TCP/IP port for your message server. It could be 3600 or 3601 (36NN - where NN is the instance number).
In your services file, if you made the entry at the end of the file, press Enter (Return) after your entry.
Try restarting your server after making the above changes.
- Shanti -
Error in creation of JCO with Load balancing server
Hi,
We are using a ABAP user base for our WEBAS server 6.40 (with ABAP+JAVA). i have created a Public group in concerned ECC 5.0 system. I have already configured SLD, and then i maintain data supplier bridge in SLD and run RZ70 in ECC 5.0 system to load system information.. i can see details in SLD ..
now i am trying to create JCO connections .. here i am unable to create JCO with load balancing option.. i get
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=<servername> GROUP=PUBLIC R3NAME=SID MSSERV=sapms<SID> PCS=1 ERROR service 'sapms<SID>' unknown TIME Fri Jun 16 12:41:20 2006 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -3 MODULE ninti.c LINE 505 DETAIL NiPGetServByName2: service 'sapms<SID>' not found SYSTEM CALL getservbyname_r COUNTER 1
i am able to create single server JCO, but it fails in load balancing.. is there anything i have missed out in settings...
Thanks and regards,
SudhirThanks, Bogdan Rokosa
I have the same problem,and solved it following the steps provided by Bogdan Rokosa :
you must insert an entry for your R3 system
(like: sapms<SID> 3600/tcp)
in services file
(C:\WINDOWS\system32\drivers\etc\services) on Java WAS.
I test the Jco successful without restart J2EE Engine. -
Hi All,
After two years of CTS+ working without issue, in the last fortnight JCO_ERROR_LOGON_FAILURE has occurred. I have reviewed all the configuration in document http://scn.sap.com/doc/DOC-30177, and it all looks fine. The user configured also checks out fine as well. The user id that is causing all the trouble is CTS_<SID>. We chose this option so we could determine which user in case of future issues. We have two development paths, Project and BAU. So at anyone time transports that have started in the BAU development system will need to be imported into the Project development system (using transport express) and vice versa. Attached is the security authentication log from the system showing authentication failure. I have also checked the transport routes defined for the business systems in the SLD and these look fine as well. Roles assigned to the user are SAP_CTS_PLUS,
SAP_J2EE_ADMIN, SAP_XI_CMS_SERV_USER, SAP_XI_CONFIGURATOR, SAP_XI_DEVELOPER, Z_CTS_PLUS_ADDITIONAL. I have also checked the permissions on the file at the operating system level.
Any suggestions/advice gratefully received as this really has me scratching my head.
Log:
!REPOSITORY_ERROR_CHECK_STACKTRACE!
[EXCEPTION]
com.sap.conn.jco.JCoException: (103) JCO_ERROR_LOGON_FAILURE: Name or password is incorrect (repeat logon) on DXI mshost strsap31
at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:662)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1364)
at com.sap.conn.jco.rt.ClientConnection.connect(ClientConnection.java:731)
at com.sap.conn.jco.rt.PoolingFactory.init(PoolingFactory.java:103)
at com.sap.conn.jco.rt.ConnectionManager.createFactory(ConnectionManager.java:293)
at com.sap.conn.jco.rt.DefaultConnectionManager.createFactory(DefaultConnectionManager.java:46)
at com.sap.conn.jco.rt.ConnectionManager.getFactory(ConnectionManager.java:262)
at com.sap.conn.jco.rt.RfcDestination.initialize(RfcDestination.java:509)
at com.sap.conn.jco.rt.RfcDestination.getSystemID(RfcDestination.java:533)
at com.sap.conn.jco.rt.RepositoryManager.getRepository(RepositoryManager.java:30)
at com.sap.conn.jco.rt.RfcDestination.getRepository(RfcDestination.java:603)
at com.sap.conn.jco.rt.RfcDestination.getRepository(RfcDestination.java:27)
at com.sap.cts.jco.tms.TmsJCoAdapter.initializeJCo(TmsJCoAdapter.java:76)
at com.sap.cts.jco.tms.TmsJCoAdapter.<init>(TmsJCoAdapter.java:57)
at com.sap.cts.jco.EpsFileReader.<init>(EpsFileReader.java:76)
at com.sap.cts.jco.EpsFileReaderController.doImport(EpsFileReaderController.java:90)
at com.sap.cts.core.ImportManager.execImport(ImportManager.java:102)
at com.sap.cts.ejb.DeployBean.execImport(DeployBean.java:170)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:47)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:37)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:21)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_MethodRetry.invoke(Interceptors_MethodRetry.java:46)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:189)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:16)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:25)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:17)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:138)
at com.sap.engine.services.ejb3.webservice.impl.DefaultImplementationContainer.invokeMethod(DefaultImplementationContainer.java:204)
at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process0(RuntimeProcessingEnvironment.java:710)
at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.preProcess(RuntimeProcessingEnvironment.java:662)
at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process(RuntimeProcessingEnvironment.java:322)
at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPostWOLogging(ServletDispatcherImpl.java:199)
at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:65)
at com.sap.engine.services.webservices.servlet.SoapServlet.doPost(SoapServlet.java:61)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)
at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:457)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)
at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:276)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)
at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)
at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
Caused by: RfcException: [null]
message: Name or password is incorrect (repeat logon) on DXI mshost strsap31
Return code: RFC_SYS_EXCEPTION(3)
error group: 103
key: RFC_ERROR_LOGON_FAILURE
at com.sap.conn.rfc.api.RfcApi.RfcOpen(RfcApi.java:219)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1331)
... 87 more
Caused by: RfcException: [DXI|strsap31]
message: Name or password is incorrect (repeat logon)
Return code: RFC_SYS_EXCEPTION(3)
error group: 104
key: RFC_ERROR_SYSTEM_FAILURE
Exception raised by DXI|strsap31
at com.sap.conn.rfc.engine.RfcIoOpenCntl.RfcReceive(RfcIoOpenCntl.java:2034)
at com.sap.conn.rfc.api.RfcApi.RfcOpen(RfcApi.java:187)
... 88 more
Caused by: com.sap.conn.rfc.exceptions.RfcGetException: Name or password is incorrect (repeat logon)
at com.sap.conn.rfc.engine.RfcImp.ab_rfcerror(RfcImp.java:1157)
at com.sap.conn.rfc.engine.RfcGet.rfcget_run(RfcGet.java:131)
at com.sap.conn.rfc.engine.RfcGet.ab_rfcget(RfcGet.java:23)
at com.sap.conn.rfc.engine.RfcRcv.ab_rfcreceive(RfcRcv.java:33)
at com.sap.conn.rfc.engine.RfcIoOpenCntl.RfcReceive(RfcIoOpenCntl.java:1981)
... 89 moreUser id missing in client 000
-
Hi Everyone
My Connection Pool parameters JCO api.
client=300
user=SISGERAL_RFC
passwd=******
ashost=14.29.3.120
sysnr=00
size=10
I have these parameters on my Connection Pool and sometimes appear these wrongs in my application:
1.
2006-01-07 13:20:37,414 ERROR com.tel.webapp.framework.SAPDataSource - ##### Time limit exceeded. LOCALIZED MESSAGE = Time limit exceeded. KEY = RFC_ERROR_SYSTEM_FAILURE GROUP = 104 TOSTRING = com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Time limit exceeded.
2.
2006-01-07 14:01:31,007 ERROR com.tel.webapp.framework.SapPoolConnectionManager - Timeout
Id like to know if is happening.
Are there something wrong with my connection pool?
What can be happening?
ThanksRaghu,
Thanks for your response.
Yes, the pool connections are in place according to the sAP note mentioned above.
Regards,
Faisal -
JCO connection pool is exhausted
hi
I am using RFC module in my web dynpro application. When the application is used for sometime, the JCO connection will get exhusted. The JCO connection will not release itself. I can't find any method in web dynpro to release the connection manually. How can I solve this problem?Hi,
What is scope of the connection. View properties of MODELDATA and METADATA destinations.
You can change the scope of the connection..
or
wdContext.current<BAPI INPUT>Element().modelObject().modelInstance().disconnectIfAlive();
For more ways , give a forum search.. There are a lot of close forum posts.. Gud luc..
Regards
Bharathwaj -
Problem with JCo Connection Pool
Hi,
I have a problem with using an RFC Model in my WebApplication. So sometimes the access to the function block works, and sometimes it doesn't work. Now I know, that there is a problem with the connection pool. Look at this message:
com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Connection pool WD_X24_MODELDATA_DEST_CPIC_REKTO_DE_useDefinedUser is exhausted. The current pool size limit (max connections) is 10 connections.
So it looks like a problem with closing the JCo Connections after using. Do know where the problem is? Because I'm using many other function blocks with no problems.Hello,
You need to increase the pool size via Visual Administrator.
Server 0 -> Services -> JCO RFC Connections.
Change the pool size from there. I believe a restart is in order.
Regards,
Jan -
Hi All,
Can anyone help me to connect to SAP from JCO using logon group....appericate if you can give some example such as sample code on how to connect using logon group. Its is urgent.
thanks!
prabHi Pardeep,
Thanks a lot!!!
It seems now the connection is working. I passed the parameters u have told and now I am not getting any connection error.When I print
System.out.println(myClient.getAttributes());
It returns me the following with correct IP address:
OWN_HOST: bpcbz6n
PARTNER_HOST: 172.30.xxx.xxx
SYSTNR: 02
SYSID: TS1
CLIENT: 203
USER: CPIC-DIS-BPC
LANGUAGE: E
ISO_LANGUAGE: EN
OWN_CODEPAGE: 1100
OWN_CHARSET: ISO8859_1
OWN_ENCODING: ISO-8859-1
OWN_BYTES_PER_CHAR: 1
PARTNER_CODEPAGE: 1100
PARTNER_CHARSET: ISO8859_1
PARTNER_ENCODING: ISO-8859-1
PARNER_BYTES_PER_CHAR: 1
OWN_REL: 640
PARTNER_REL: 620
PARTNER_TYPE: 3
KERNEL_REL: 640
TRACE:
RFC_ROLE: C
OWN_TYPE: E
CPIC_CONVID: 385948
So this means connection is working?
But when I call the RFC, it is returning me null value. When I call the following RFC, the functionTemplate instance is returning the "null" value. What can be the cause of it?This RFC exists in the SAP. I hope connection is working?
IFunctionTemplate functionTemplate = aRepository.getFunctionTemplate("Z_RFC_PLANTS");
thanks! -
Adaptive RFC 2 gives error: com/sap/ide/jco/service/internal/R3Service
Hi,
I've run into the following problem about NWDS. This happens as I create a Model. It appears there is a new version of the Adaptive RFC Model, which is called Adaptive RFC 2 Model.
1. Right click on Models, and select Create.
2. Double Click on Adaptive RFC 2 Model
3. The error pops up. It says "An error has occurred. See error log for more details. java.lang.NoClassDefFoundError". Then if you click details you get "An error has occurred. See error log for more details. com/sap/ide/jco/service/internal/R3Service "
If you know which log to have a look, or what this error is about please let me know urgently. Any help if much appreciated.
Thanks,
Ogeday IsiklarHi,
I am also getting same problem. Waiting for solution
Regards,
Pradeep Kumar -
Hi,
I am having an issue with SAP adapter configuration. It throws below error in log files :
java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [no sapjcorfc in java.library.path]. java.library.path [opt/apps/Oracle/jdk160_14_R27.6.5-32/jre/lib/i386/client:/opt/apps/Oracle/jdk160_14_R27.6.5-32/jre/lib/i386:/opt/apps/Oracle/jdk160_14_R27.6.5-32/jre/../lib/i386:/opt/apps/Oracle/patch_wls1032/profiles/default/native:/opt/apps/Oracle/patch_jdev1111/profiles/default/native:/opt/apps/Oracle/jdk160_14_R27.6.5-32/jre/lib/i386/client:/opt/apps/Oracle/jdk160_14_R27.6.5-32/jre/lib/i386:/opt/apps/Oracle/jdk160_14_R27.6.5-32/jre/../lib/i386:/opt/apps/Oracle/patch_wls1032/profiles/default/native:/opt/apps/Oracle/patch_jdev1111/profiles/default/native:/opt/apps/Oracle/wlserver_10.3/server/native/linux/i686:/opt/apps/Oracle/wlserver_10.3/server/native/linux/i686/oci920_8:/opt/apps/Oracle/wlserver_10.3/server/native/linux/i686:/opt/apps/Oracle/wlserver_10.3/server/native/linux/i686/oci920_8:/opt/apps/Oracle/Oracle_SOA1/soa/thirdparty/edifecs/XEngine/bin:/opt/apps/Oracle/Oracle_SOA1/soa/thirdparty/edifecs/XEngine/bin]
java.lang.NoClassDefFoundError: Could not initialize class com.sap.mw.jco.JCO
Invoking SAP targets from bpel or iwafjca test servlet fails with "java.lang.NoClassDefFoundError: Could not initialize class com.sap.mw.jco.JCO."
I am able to connect from Application Explorer(AE) and browse through idocs and bapis. I tried to check the class loading pattern for AE using Jconsole :
1. Started the AE
2. /opt/apps/Oracle/jdk1.6.0_19/bin/jps
15279 BseFlashScreen
3. /opt/apps/Oracle/jdk1.6.0_19/bin/jconsole 15279
Enabled verbose output on class loading page and connected to SAP target from AE
4. The verbose output shows below :
Loaded com.sap.mw.jco.JCO from file:/opt/apps/Oracle/Oracle_SOA1/soa/thirdparty/ApplicationAdapters/lib/sapjco.jar
I have added the above path to my LD_LIBRARY_PATH
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${WL_HOME}/server/native/linux/${arch}:${MW_HOME}/Oracle_SOA1/soa/thirdparty/ApplicationAdapters/lib:${MW_HOME}/user_projects/domains/base_domain/lib:${WL_HOME}/server/native/linux/${arch}/oci920_8
I also added the path to WEBLOGIC_CLASSPATH in commEnv.sh file.
The sapjco.jar, libsapjcorfc.so and librfccm.so files are also available under below directories
WL_HOME/server/lib
MW_HOME/Oracle_SOA1/soa/thirdparty/ApplicationAdapters/lib
MW_HOME/user_projects/domains/base_domain/lib
Any suggestions will be really helpful.
Regards
SubhankarHi Manoj,
I have added the libsapjcorfc.so and librfccm.so files to below locations:
WL_HOME/server/lib
MW_HOME/Oracle_SOA1/soa/thirdparty/ApplicationAdapters/lib
MW_HOME/user_projects/domains/base_domain/lib
And also set the LD_LIBRARY_PATH and WEBLOGIC_CLASSPATH in commEnv.sh file.
Eg:
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${WL_HOME}/server/native/linux/${arch}:${MW_HOME}/Oracle_SOA1/soa/thirdparty/ApplicationAdapters/lib:${MW_HOME}/user_projects/domains/base_domain/lib:${WL_HOME}/server/native/linux/${arch}/oci920_8
Is there any other location where these need to be added ? I hope library path/system path refers to the WEBLOGIC_CLASSPATH ?
Regards
Subhankar
Maybe you are looking for
-
I scanned some photos with Image Capture, but I can't import them into iPhoto. When I try importing them via drag-and-drop or File>Import to Library, I get an error message that says, "The following file could not be imported. (The file is in an unre
-
ITunes Installation Problems!
I have tried several times to re-install iTunes over the past several weeks. The problem seemed to start when I move the iTunes folder to another external drive. (Due to disk space.) Since that time I've been unable to uninstall and re-install the so
-
I need to know how to fix my add attachments, it has quit working.
-
Initializing a class automatically at application loadtime, howto?
Hi, In a web application deployed on an application server, i can automatically initialize a servelt at application loadtime by using the following in my web.xml <servlet> <servlet-name>classRefName</servlet-name> <servlet-class>m
-
Le micro-contrôleur c167 fait planter le logiciel LabVIEW 2012
Bonjour, Tout d'abord je vous explique l'expérience que j'effectue. Je souhaite piloter automatiquement un robot cartésien qui effectuera une cartographie du champ magnétique en 3D. Pour cela j'utilise une carte PCI-7334 reliée à l'UMI-7774 qui est l