Calling a remote JCo destination file
Hi everybody.
This is my first post here in the SAP SDN Forum.
While I'm not a SAP developer, I'm a Java developer. Currently I'm making an application to connect to SAP AS (with JCo 3.0) and retrieve data from BAPI structures and tables. I'm using the JCo 3.0 guide (SAPJCO_Doku_3.0_EN.pdf) successfully but I have some issues:
First: How can I call "remotely" the destination file??? For example: supose first that my destination file, let's say the ABAP_AS_WITHOUT_POOL.jcoDestination file and the Java application are stored in a directory like C:\My Documents\Files, from a first and successful run of the application. With another application in another directory I'd like to call and use that destination file, so in my second application I shouldn't create a second destination file. How can I do it??? What elements and/or properties should I use??? (Maybe the JCoDestination, the DestinationManager, the getRepository and related).
Second: Is it the same for calling a destination file that is in a remote machine??? In a directory like +
255.255.255.255\shared\Files+
I guess if this is in some way equivalent to file reading in Java, but I'm not really sure.
Please help me. Most of the sources I've read didn't say something useful about this, and I need this for my final application.
If you can, please add some generic example-code for a better understanding.
Thanks
JCo provides the interfaces DestinationDataProvider and ServerDataProvider for providing connection/logon data for RFC (remote function call) clients (i.e. Java program calls RFC function on SAP server) or RFC server programs (SAP calls RFC function on Java program acting as a server). When you check the JCO API documentation for usage of those interfaces you'll see that for example for the client you can register your own DestinationDataProvider via method Environment.registerDestinationDataProvider(DestinationDataProvider).
Thus if you don't like the default implementation delivered by SAP (i.e. file based), you can simply create your own class. Note that to some degree the document SAPJCO_Doku_3.0_EN.pdf already points you in the right direction: It mentions on page 8 in section SAP JCo Customizing and Integration:
You should always implement the interface DestinationDataProvider to optimize data security. If you are using server functionality you should also implement ServerDataProvider. These interfaces support the secure storage of critical data.
Cheers, harald
Similar Messages
-
BAPI call in java through jco destination defined in content Administration
Hi All,
Is it possible to use JCO destination defined in Content Administration to execute BAPI in a java DC class file rather than creating a jco client through code.
Any pointers for the same?
regards
Radhika KuthialaHi Radhika Kuthiala
It's possible. Use the code below:
JCO.Client client;
try {
client = JCO.getDestinationClient(rfcDestName);
client.connect();
} catch (JCO.Exception ex) {
BR, Siarhei -
Unable to create a jco destination using remote AS Java system on myjava sy
Dear SAP Gurus,
I had ce 7.1 and nw 2004s based AS java Systems.I want to create a jco destination in my CE 7.1 system using usermapping data of nw 2004s for jco communication.So i created a AS Java system of NW2004s in my CE 7.1 SLD .when i try to create a jco destination using the AS JAVA as Nw2004s system it is not creating .Please help me to solve this issue.
regards,
vanamaSanthosh.Hi vanamaSanthosh
try this
1. In your CE1 System where u define your JCO destination, Go to C:\WINDOWS\system32\drivers\etc
open hosts file and define the identity of AS System like <IP address> <name of the system>
for example 159.858.2.45 abcd
restart the server and then check.
Best Regards
Satish Kumar -
Problem in connecting JCO destination in web dynpro
HI all,
I was installed sneak preview of Net weaver 6.4,
I want to do some web dynpro (java) programs which connect to back end systems.(R/3 system).
The R/3 system which I want to connect is at remote place, i have connectivity to that R/3 system using VPN connectivity. With this I am not having any problem. Since I am able to connect using User name and password, and able to do some transactions like RZ70, etc.
I developed an application which calls COMPANY_CODE_GET_LIST (BAPI function).
for the above requirement what I did was
(1)I created SLD setting.
(a)Web as Java (I am not having any problem to
Create this.
(b) Web as ABAP.
When i am trying to create
This, there are some steps like i need to go to SAP log in and I need to run the transaction RZ70. For this i need to create an enter in visual administrator>JCO RFC Provider>runtime-->Bundles i need to create an entry for RFC destination as well as Repository.
under RFC destination there are some fields which i need to enter those are (a)Program ID as mySLD (b) Gateway Host as 10.10.10.125 (c)Gateway service as sapgw00 (d)Number of processes as 1
Under Repository (a) Application server host 10.10.10.125 (b)system number as 00 (c)Client number as 100 (d)Language as en (e)user as ABCD (f)password as 1234
I haven't choused the check boxes Local bundle and Unicode and pressed the set button. So like this i created the RFC destinations. under the properties tab there is a property called RFC_DEFAULT_DESTINATION by default it was false so i made it as true. .
I also went to SLD Data Supplier,under Runtime tab , HTTP Settings , I mentioned
(a)Host: pava-vis75
(b) Port: 50000
(c) user: administrator
(d) password: abcd1234
RFC Settings, I mentioned as
(a)Gateway Host: 10.10.10.125 (which is SAP R/3 system)
(b)Gateway Service/Host: sapgw00
CIM Client Generation settings, as
(a)Host: pava-vis75
(b)Port (http/https):50000
(c) user: administrator
(d) Password : abcd1234
I tested the CIMClient Test by click the the button. I got the successful message.
Then I came back to HTTP settings and clicked the button with tilted arrow mark [This triggers data transfer to system landscape directory], for this also I got a successfully message.[data transferred successfully]
Next I been to SAPLOGON and went to RFC Destinations by using sm59 transaction. There under TCP/IP connections i been to SLD_NUC , opened this by double clicking that and under Technical settings for Program ID I had given the ID which I created at visual administrator [JCO RFC Provider] which is mySLD , under gateway options for Gateway Host as 10.10.10.125and Gateway service as sapgw00 then i tested the connection, it was also successfully.
Then I opened the SLDAPICUST and i created a new entry for maintaining the SLD Access Data by giving some couple of entries as
(a)Alias: vissldtest
(b)Host Name: pava-vis75
(c)Port: 50000
(d) user: administrator
(e) password: abcd1234
Then saved it.
Next I created sapmsUV0 3600/tcp entry at
WINDOWS\system32\drivers\etc\services file, and also there are some required entries which are already existing those are sapgw00 3300/tcp to sapgw99 3399/tcp , another entry starts from sapdp00s 4700/tcp to sapdp99s 4799/tcp , next entry starts from sapgw00s 4800/tcp to sapgw99s 4899/tcp and sapmsJ2E 3601/tcp .
I restarted the system, as well as server.
Now my problem is when I was trying to create JCO destination at web dynpro content administrator. For that I navigated as create JCO Destination Deployed Contentlocal-local/CompanyCodeGetList-Applications CompanyCodeGetList
I Choosed the JCO Connections tab- there are 2 entries those are
(1) COMPANY_CODE_MODEL
(2) COMPANY_CODE_RFC_METADATA
So I started creating connection for COMPANY_CODE_RFC_METADATA.
First one is
General data Name : COMPANY_CODE_RFC_METADATA
Client : 100
I didnt changed any default JCo pool configuration.
J2EE Cluster
There is a check box called Use Local J2EE engine J2E on pava-vis75 so I choosed that.
Connection Type
Dictionary Meta Data and application Data
I choosed the first one.
Then
Msg. Server Connection
Security
After these, I tried to test the connection by clicking the Test Connection.
It is saying the error as
First time
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=v011 GROUP=DEFAULT R3NAME=UV0 MSSERV=sapmsUV0 PCS=1 ERROR service 'sapmsUVO' unknown TIME Fri Jul 01 07:20:41 2006 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -3 COUNTER 1
second time
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=v011 GROUP=DEFAULT R3NAME=UV0 MSSERV=sapmsUV0 PCS=1 ERROR service '?' unknown TIME Fri Jul 01 07:20:41 2006 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -3 COUNTER 1
Can any body please help me to solve this problem.
From past 1 week on wards I have been trying to resolve this. But in vain.It does not necessarily mean that you have to change that parameter. I read that blog as I had a similar problem, and after reading it and understanding the reasons and possible causes for the error, I found that my particular problem was that I was using "PUBLIC" as the logon group in my JCO destinations, but such a group does NOT exist at my backend. I went to transaction SMLG, had a look at Logon Groups, noted that there were none other than SPACE, figured out that I had to include that information in SLD (Web AS ABAP tech. system --> Message Server --> Logon Groups), put it there. Voilá. It works.
Edit: That SPACE logon group is the one I had to use at JCO destinations. Sorry I forgot to mention that one...
Regards,
Eduardo.
Message was edited by: Jesus Cil -
RFC error while creating JCo Destinations
Hi Team,
We have been getting RFC_Communication_Error over time and again while creating MetaData type JCo Destination in EP 7. Actually We am configuring a Business package for ESS.
I am pasting the error,
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=<server> GROUP=public R3NAME=<xxx> MSSERV=sapms<yyy> PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR service 'sapms<yyy>' unknown TIME Tue Jun 12 16:43:08 2007 RELEASE 700 COMPONENT NI (network interface) VERSION 38 RC -3 MODULE ninti.c LINE 530 DETAIL NiPGetServByName2: service 'sapms<yyy>' not found SYSTEM CALL getservbyname_r COUNTER 4
We have created Application type connections successfully. the tests on these were also successful.
Thank you,
VamshiCan u pl check for the entry in the services file of the JAVA Engine/portal.
sapmsQ10 36XX/tcp
If this entry is not there please create the same @ ..WINDOWS\system32\drivers\etc\ open the services file in notepad and make an entry in the last line.
format is
sap<SID> Press TAB once 36XX/tcp<Press Enter>
where XX is the Instance no of your Java Central Instance.
If the prob persists please update.
Priyabrata -
JCo destination error while executing the webservice model
Hi,
I have explained what I have done so far and whats my issue right now.
My requirement is calling a PI interface (exposed as webservice) from webdynpro for java and setting some parameter value to the PI interface based on which our functional flow will continue.
Done so Far :
1. Created a webdynpro for java application using NWDI.
2. received the WSDL file of the PI interface and imported as "Adaptive webservice model" into webdynpro.
3. used the model and set the parameters to PI interface and executed the model.
4. I have created JCO destinations in the source system (where the application runs) to communicate to the PI system. A special user has been created and assigned in the connection for communicating.
5. Also I have created the "Dynamic Webseviceproxies" in visual admin with the same name as the JCO destinations. It had a property "URL" for which I have tested with providing both the PI server URL (Http://<Hostname>:<Port no>) and also the complete webservice URL (Which calls the WSDL file directly)
when I run the application, I get the following error.
1. Exception on creation of service metadata for WS metadata destination 'WD_RFC_METADATA_DEST' and WS interface '{<Interface Name>'. One possible reason is that the metadata destination 'WD_RFC_METADATA_DEST' has not been properly configured; check configuration.
after some exception the next error follows
2. Invalid Response Code 403 while accessing URL: <The URL which I have provided in the webservice proxy in Visual admin tool> Response Message: Forbidden.
after some lines of exception from PI server the next error follows.
3. Error: You are not authorized to view the requested resource
My Question :
1. Do I miss anything in Configuration?
2. Is my way of approach wrong?
3. Any additional authorization needed?
Kindly provide some ideas and inputs.
Regards,
Mahendran B.Dear Mahendran
JCO destination will not used for the Web Service Model. While creating the webservice model, you need to use the logical destination which you have created in the Visual Admin.
Please refer to the Secured WebServices II and verify currently used webservice logical destination How To Reimport Web Service Models in Web Dynpro for Java
You can also refer to
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/900bbf94-a7a8-2910-e298-a651b4706c1e?QuickLink=index&overridelayout=true
Hope it will helps
Best Regards
Arun Jaiswal -
Failed JCO destination name 'WD_RFC_METADATA_DEST' and MODEL DATA
Hi Friends
I am created "WD_RFC_METADATA_DEST". this meta data.When i am created this metadata i was called message server as technical system of CRM server.
means i am created metadata for CRM System
Once metadata had complted then i was cheing click on "Text"
Here it display this error message
Model Data test
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=ecc15 GROUP=PUBLIC R3NAME=E15 MSSERV=sapmsE15 PCS=1 ERROR Group PUBLIC not found TIME Fri Feb 19 01:12:26 2010 RELEASE 700 COMPONENT LG VERSION 5 RC -6 MODULE lgxx.c LINE 4299 DETAIL LgIGroupX COUNTER 1
Meta data test
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=ecc15 GROUP=PUBLIC R3NAME=E15 MSSERV=sapmsE15 PCS=1 ERROR Group PUBLIC not found TIME Fri Feb 19 01:13:19 2010 RELEASE 700 COMPONENT LG VERSION 5 RC -6 MODULE lgxx.c LINE 4299 DETAIL LgIGroupX COUNTER 1
What is problem. i m not getting can u tell me how slove this problem.
Regards
Vijay KalluriHi Vijay,
You need check following thing to resolve this issue.
1. Check the your host file entries for CRM System (Start>Run>enter 'drivers'>etc>hosts)
2. Check SLD test is successfull or not.
3. As per your error message group PUBLIC not found. Check in the CRM system (T-code : SMLG) whether PUBLIC group is available or not.
Then check JCO destination parameter again and test it.
Hope this will helps you.
Thanks
Arun -
BI Post Installation /JCO Destinations
Hi all,
I am having some troubles getting the Netweaver BI functionalities to start running.
We have just upgraded our BW System to Netweaver 2004s and installed an add-on Java Stack.
Both the ABAP Stack and the Java Stack have the most current patch level.
I followed the SLD post installation Guide and I think I did everything as described, including the prerequisites described in the SAP Notes 983156 and 917950.
I do want to add that I am a functional consultant with quite a lot of experience in BW and BPS, but very little knowledge in Basis technology. Our Basis collegues know only little about Java, so we are trying to work it out together.
I imported the content though the SLD and created our ABAP System as a technical system in SLD.
I then tried to use the post-BI installation wizard. The following steps 1-9 are executed without problems:
1. Create RFC Destinations in ABAP
2. Update Table RSPOR_T_PORTAL
3. Create RFC Destinations in Java
4. Create System Landscape Folder
5. Create BW System
6. Set System Alias
7. Add ACL
8. Set Master System
9. Download Engine Certificate
I get following error message when trying to install step 10:
Import ABAP Certificate to Engine Import not successful Element 'SAPConfigLib.C40.Unclassified.uploadAbapCertificate':!BrokerImport.import_of_element_failed!!BrokerImport.Fehler!com.sap.tc.lm.ctc.cul.cpi.exceptions.CPIBaseException: <Localization failed: ResourceBundle='com.sap.tc.lm.ctc.cul.cpi.CPIResourceBundle', ID='com.sap.tc.lm.ctc.cul.cpi.BaseException_BASE_EXCEPTION', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key com.sap.tc.lm.ctc.cul.cpi.BaseException_BASE_EXCEPTION:com.sap.tc.lm.ctc.provider.javaServiceProvider.JavaServiceWriter.writeElement!BrokerImport.LINE!157-:com.sap.tc.lm.ctc.cul.broker.BrokerImport.importElement.86
-:com.sap.tc.lm.ctc.cul.broker.BrokerImport.importElement.128
-:com.sap.tc.lm.ctc.cul.broker.BrokerImport.importElement.128
-:com.sap.tc.lm.ctc.cul.serviceimpl.importservice.CULConfigurationImport.importConfiguration.96
-:com.sap.tc.lm.ctc.ccl.templateinstall er.StepExecuter.run.41
Element 'SAPConfigLib.C40.Unclassified.uploadAbapCertificate':Error during executing Java Reflection:Remote call errored
I also noticed that I cannot maintain the JCO destinations both in the web dynpro content administrator and in the transaction SPRO.
In the web dynpro content administrator i see the buttons, but they are greyed out, in SPOR the "execute" button is missing.
From what I read, I get a feeling that the symptoms might be connected, but I ran out of ideas what the problem could be.
Does anybody have an idea?
I would be very grateful if somebody could help.
Regards,
OmarHi
I am trying to install BI7.0 and as a part of it I was successful in installation part but when i am trying to check the prerequisite for the notes 983156, I was stuck at the point of bringing the system BI7.0 in to the sld, from the note I can infer that to bring the system in to sld we need to use rz70 and give the gateway details over there (host ,service) when I try to continue with the default values i was not successful to bring the system in to land scape can some one guide me for the steps to bring this system in to land scape.
Any documents of ur previous installation would be appreciated.
Regards
Manikanth -
Use WebDynpro JCO Destination in Abstract Portal Component
Hello,
I was wondering if it is possible to use a WebDynpro JCo Destination in an Abstract Portal Component? I have a portal component that make as JCO call to run an rfc. I get the MYSAPSSO2 ticket from the cookie and pass this in to the JCO client. This works fine. Now I need to be able to run this for anonymous users as well. I was hoping to be able to retrieve a WebDynpro JCo destination that is set up as a userid/password type and use this to make the connection to run my RFC. This way I could avoid having to store the userid and password somewhere and encrypt/decrypt it etc...
Thanks,
BertYes Asusha
You can use JSP , JSPDyn pages in Abstract portal component.
You can call a Jsp file from the abstract portal component.
public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
com.sapportals.portal.prt.resource.IResource somePage =
request.getResource("jsp", "pagelet/test.jsp");
response.include(request, somePage);
Then you can made your desired UI in JSP.
Hope this helps..
Cheers
Chinmaya
Reward for helpful answers -
AE Connector - JCO Destination
Gurus,
I am attempting to create an SAP Connector for AE 5.2. I noticed that if I configure the connector using an available name from the drop down list which displays my JCO Destinations the connector Test is successful. Now if I attempt to supply the Connector Name field with my CC connector SID value (as the documentation states that these two fields should be equal) the connection test fails. The connection test is only successful if I use the name from one of the JCO destinations that I have configured. What am I missing?
The end result is to get the Risk Analysis functionality working. The setup I have defined now, using the defined JCO destination as the Connector name - which does not match the SID on the CC Connector, I get the following error message when I attempt to do Risk Analysis:
Risk analysis failed: Exception in getting the results from the web service : Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException:Invalid Response Code: (401) Unauthorized. The requested URL was" "http://server:port/ViresaCCRiskAnalysisService/Config1?wsdl&style=rpc"
Any help is appreciated
Thx!!Hi Michael,
our problem was slightly different. We were not able to create a Connector with the same SID. Allthough there was none in the GUI, we recognized after a config download that there was a "connector corpse" in the system we had to adapt. After reuploading the config file the connector was there and it worked.
Regards,
Richard -
Error in creating JCO Destination
Hi All
I want to create Adaptive RFC model and after creating JCO destinations when i am trying to execute my application I am getting this error
Can anyone guide...
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=b0001001 GROUP=PUBLIC R3NAME=B07 MSSERV=sapmsB07 PCS=1 ERROR service 'sapmsB07' unknown TIME Mon Apr 23 16:01:08 2007 RELEASE 700 COMPONENT NI (network interface) VERSION 38 RC -3 MODULE ninti.c LINE 530 DETAIL NiPGetServByName2: service 'sapmsB07' not
found SYSTEM CALL getservbyname_r COUNTER 3
Thanks,ArchHi
I made entries in host as well as service files .
192.168.8.42 B0001001 # added by me R/3 System
192.168.9.24 # Portal host
sapmsB07 3610/tcp # added by me R/3 Msg Server Sevice
I changed the status to PUBLIC in r/3. it was space there.
Now the error I got is.
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=B MSHOST=b0001001 GROUP=PUBLIC R3NAME=B07 MSSERV=sapmsB07 PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner '127.0.0.1:3310' not reached TIME Tue Apr 24 11:06:51 2007 RELEASE 700 COMPONENT NI (network interface) VERSION 38 RC -10 MODULE nixxi.cpp LINE 2764 DETAIL NiPConnect2 SYSTEM CALL connect ERRNO 10061 ERRNO TEXT WSAECONNREFUSED: Connection refused COUNTER 1
Thanks -
ERROR WHEN I CREATE A JCo DESTINATIONS
Hi to all
I have the SLD running. I want create two JCo destinatios. I want create a Web Dynpro application with adaptive RFC Model.
But, I login to http:///webdynpro/dispatcher/sap.com/tcwdtools/Explorer
and when I attempt create a JCo destinations, appear the following error:
500 Internal Server Error
Web Dynpro Container/SAP J2EE Engine/6.40
Failed to process request. Please contact your system administrator.
Error Summary
While processing the current request, an exception occured which could not be handled by the application or the framework.
If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
Root Cause
The initial exception that caused the request to fail, was:
java.lang.NullPointerException
at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.checkStatus(SystemLandscapeFactory.java:985)
at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.checkStatus(WDSystemLandscape.java:469)
at com.sap.tc.webdynpro.tools.sld.NameDefinition.updateJCODestinations(NameDefinition.java:272)
at com.sap.tc.webdynpro.tools.sld.NameDefinition.updateNavigation(NameDefinition.java:237)
at com.sap.tc.webdynpro.tools.sld.NameDefinition.wdDoInit(NameDefinition.java:144)
... 45 more
Can someone say me, why occurs this error ? I have reviewed all my configuration, but I haven´t found nothing.
Thank you very much.
Regards
Dario RodriguezI think while creating the JCOs you must hav left some field with a NULL value.Try to check out that all the connection properties hav been specified correctly also make sure that the connection pooling has a small range.
-
Error In JCO Destination Creation
Hi,
I'm creating JCO Destination in Web Dynpro for Java. While finishing the JCO Destination wizard it shows a error as follows:
Root Cause
The initial exception that caused the request to fail, was:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:507)
at java.util.ArrayList.get(ArrayList.java:324)
at com.sap.tc.webdynpro.progmodel.context.Node$ElementList.getElement(Node.java:2022)
at com.sap.tc.webdynpro.progmodel.context.Node.getElementAtInternal(Node.java:617)
at com.sap.tc.webdynpro.progmodel.context.Node.setLeadSelection(Node.java:749)
... 45 more
But the JCO Destination is created successfully and I can test and ping tit successfully. But it becomes the part of System Denied JCO Destinations.
In the server log file I'm getting the following log:
1.5#00112F5374F1005B0000011100000EDC000443BF97417983#1200390062389#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#sap.com/tcwddispwda#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#Guest#0#####SAPEngine_Application_Thread[impl:3]_14##0#0#Error#1#/System/Server/WebRequests#Plain###Processing HTTP request to servlet [dispatcher] finished with error.
The error is: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Cannot navigate via outbound plug tointeractiveForm of view InvoiceListView because there is no navigational link attached to it
Exception id: [00112F5374F1005B0000010F00000EDC000443BF974176DF]#
#1.5#00112F5374F1004F0000055B00000EDC000443BFA0A4587B#1200390219953#com.sap.tc.webdynpro.sessionmanagement#sap.com/tcwddispwda#com.sap.tc.webdynpro.sessionmanagement.ExceptionHandler.handleThrowable#subhayuds#116#####J-Integra for .NET TP Thread 2##0#0#Error#1#/System/UserInterface#Java###Exception occured during processing of a Web Dynpro application: "java.lang.IndexOutOfBoundsException: Index: 0, Size: 0".
[EXCEPTION]
#1#java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:507)
Can anybody help to find out this problem.Hi,
This is a Web Dynpro bug. You need to apply the latest patch for Web Dynpro runtime.
Regards
Srinivasan T -
Creation of JCO Destinations for web dynpro
Hi all,
I read quite a lot of post concerning the subject but unfortunately I did not found a solution to my problem.
My goal is to create JCO Destinations to make my web dynpro to connect to an R3 system.
In order to realise this I followed these steps :
- Launch visual admin and set http settings, rfc settings, and cim client settings. I click on CIM client test and the result is a success so I assume this part is correct.
- In R3, I execute transaction smgw, go to remote gateway to get the gateway settings. I execute RZ70 and filled the parameters just checked. Then I activate and launch the data collect. I have no error message and everythings seemed to work fine.
- In the sld (<host>:<port>/sld) I configured my server settings, the I go to data bridge, set update local sld to true and fill RFC gateway info with the same values as in my R3 system. Then I restarted the sld.
- Finally I went to Web Dynpro content administrator to create my destinations and there I failed. After entering all settings (the message server appears in my technical landscape in SLD), when I click on finish I've got the following exception :
[code]
Failed to create new JCO client connection WD_FLIGHTLIST_RFC_METADATA_DEST:
com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscapeException: Error while obtaining JCO connection.
at
com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:140) at
com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.createJCOClientConnection
(SystemLandscapeFactory.java:286) at
com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.createJCOClientConnection(WDSystemLandscape.java:107) at com.sap.tc.webdynpro.tools.sld.ButtonBar.onActionFinish
(ButtonBar.java:224) at com.sap.tc.webdynpro.tools.sld.wdp.InternalButtonBar.wdInvokeEventHandler(InternalButtonBar.java:252) at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87) at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67) at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:100) at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:299) at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:641) at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59) at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154) at
com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263) at
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318) at
com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:824) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37) at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at
com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162) Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to resolve connection parameter for WD_FLIGHTLIST_RFC_METADATA_DEST at
com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter4MsgServerJCODestinaton(JCOClientConnection.java:664) at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter(JCOClientConnection.java:508) at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.init(AbstractJCOClientConnection.java:247) at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.<init>(AbstractJCOClientConnection.java:221) at
com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.<init>(JCOClientConnection.java:101) at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:138) ... 30 more Caused by: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:393) at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter4MsgServerJCODestinaton(JCOClientConnection.java:558) ... 35 more[/code]
I tried to create a generic destination (no for the web dynpro tutorial) and failed again.
I do not undestand what I did wrong.
Does someone have an idea ?
Thanks for reading this !
Sylvain
Message was edited by: SylvainThis thread helped me too because before reading it I didn't thought that I had to create a logon group "PUBLIC".
Anyway I succed in creating 'WD_FLIGHTLIST_MODELDATA_DEST' and the test is ok. The problem was that in sld / technical system / web as abap, my Central Application Server host was wrong. It is not possible to change it so I just add a secondary server with the right host and select this one when creating the destination.
The only pb remaining is now 'WD_FLIGHTLIST_RFC_METADATA_DEST'. I think the pb is my message server such this is the only difference between the two destinations
Thanks for your help
Message was edited by: Sylvain -
RFC calls with SAP JCO and IBM resource adapter for SAP - basic tuning
Hi experts,
we are working on a java portal connected to a backend system SAP by calling RFCs.
On our first integration tests, it appears to be quite slow fetching data from SAP by calling the remote functions from the custom portal. We are using SAP JCo 3.0.6 and IBM resource adapter for SAP 7.0.0.3 to integrate SAP with our portal.
Is there any basic tuning to achieve to improve performances or any hint of where to tune in SAP ?
Any help would be greatly appreciated.
Thanks a lot,
JamalHi Jamal,
I understand you have already checked performance issues in the SAP Server. We had some problems with certain RFC calls and it turned out to be a badly developed ABAP sentence.
I'd recommend you to use httpwatch or another tool to check the response times from the browser, so you can point accurately where the is.
Regards
Francisco
Maybe you are looking for
-
Need a script that will put photo on white background
I am currently using CS3 Photoshop on a MacPro Intel I have about 31,000 photos that I need to take the background out of. Most of the photos were not shot against white, black or green screens. These are mostly images of plumbing products. The major
-
Has anyone been able to get https to work with SCEP? Right now I'm just trying to authenticate a trustpoint and it does work if I use http as my enrollment URL but as soon as I change it https I get the following: Unable to locate cert record by issu
-
HTTP Connections to Ext. Server - SM59 - Application Server
Hi Experts, first of all its my first post, I hope I can provide any infos you need to give me some advice. Well, I've setup in SM59 a new connection-type "HTTP Connections to Ext. Server" (Type G). It is a stupid webserver in our LAN that returns a
-
Cannot stop memory monitor thread
Hi All, I am getting the following error intermittently in a dataflow which has degree of parallelism = 8. 22943 0 SYS-170111 27/11/2009 12:22:05 |SubDataflow DF_Conform_ISI_Person_Match_Prep_1_9 22943 0 SYS-170111 27/11/2009 12:22:05 Cannot stop mem
-
Hi, I want to print WM details like storage location and Bin number on the GR label. When i am save the material document via MIGO. label should be printed with above details. My doubt is upon saving the document first system will process the ouput W