Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-07-2007, 06:11 AM
Member
 
Join Date: Jun 2007
Posts: 95
Felissa is on a distinguished road
SAP R3 – Java
Hello! At the moment I am developing an interface between a system under SAP R3 (language ABAP) and a Java application, which will serve as bridge to communicate to the system in SAP with a system with data base SQLServer (all route Intranet, nothing of Web server).

I go to you in search of some suggestion, since it is first time that use the JCO library, that provides SAP to make the connection with Java, and in the tests that there are been making the connection has been quite unstable. I copy the error to them that throws when invoking from SAP the Java application.

ERROR:

Code:
Server JAVASERVER changed state from [ STOPPED ] to [ STARTED ] Server JAVASERVER changed state from [ STARTED ] to [ STARTED LISTENING ] Server JAVASERVER changed state from [ STARTED LISTENING ] to [ STARTED LISTENING BUSY ] Exception in server JAVASERVER: com.sap.mw.jco.JCO$Exception : (123) JCO_ERROR_FUNCTION_NOT_FOUND: Server repository could not create function template 'ZSAPJAVA' caused by: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM GWHOST=10.0.0.4, GWSERV=sapgw00, ASHOST=10.0.0.4, SYSNR=00 LOCATION CPIC (TCP/IP) on local host ERROR partner not reached (host 10.0.0.4, service 3300) TIME Fri Jul 07 17:12:36 2006 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -10 MODULE nixxi_r.cpp LINE 8634 DETAIL com.sap.mw.jco.JCO$Exception : (123) JCO_ERROR_FUNCTION_NOT_FOUND: Server repository could not create function template 'ZSAPJAVA' caused by: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM GWHOST=10.0.0.4, GWSERV=sapgw00, ASHOST=10.0.0.4, SYSNR=00 LOCATION CPIC (TCP/IP) on local host ERROR partner not reached (host 10.0.0.4, service 3300) TIME Fri Jul 07 17:12:36 2006 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -10 MODULE nixxi_r.cpp LINE 8634 DETAIL at com.sap.mw.jco.rfc.MiddlewareRFC$Server.nativeListen( Native Method) Exception in server JAVASERVER: com.sap.mw.jco.JCO$Exception : (120) JCO_ERROR_EXTENSION: JCO.Server could not create server function 'ZSAPJAVA' at com.sap.mw.jco.rfc.MiddlewareRFC$Server.listen( MiddlewareRFC.java:1368) at com.sap.mw.jco.JCO$Server.listen( JCO.java:6844) at com.sap.mw.jco.JCO$Server.run( JCO.java:6773) at java.lang.Thread.run(Unknown Source) com.sap.mw.jco.JCO$Exception : (120) JCO_ERROR_EXTENSION: JCO.Server could not create server function 'ZSAPJAVA' at com.sap.mw.jco.rfc.MiddlewareRFC$Server.nativeListen( Native Method) at com.sap.mw.jco.rfc.MiddlewareRFC$Server.listen( MiddlewareRFC.java:1368) at com.sap.mw.jco.JCO$Server.listen( JCO.java:6844) at com.sap.mw.jco.JCO$Server.run( JCO.java:6773) at java.lang.Thread.run(Unknown Source) Server JAVASERVER changed state from [ STARTED LISTENING BUSY ] to [ STARTED LISTENING ] Server JAVASERVER changed state from [ STARTED LISTENING ] to [ STARTED ] Server JAVASERVER changed state from [ STARTED ] to [ STOPPED ] Server JAVASERVER changed state from [ STOPPED ] to [ STARTED ] Server JAVASERVER changed state from [ STARTED ] to [ STARTED LISTENING ]
Felissa
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-07-2007, 06:16 AM
Senior Member
 
Join Date: Jun 2007
Posts: 114
Albert is on a distinguished road
RE: SAP R3 – Java
Have you test changing the parameters of ashost? often it can cause similar problems, check if router String something like "/H/...", followed of the name of host you have it in the parameter of ashost.

For example check it in this string of example:
Code:
mConnection JCO.createClient("100","userid","pw","DE", "/H/SAPROUTER2.HCC.UNI- MAGDEBURG.DE/S/3299/H/A22Z","A22");
I hope that it serves to you!

Albert
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +3. The time now is 02:56 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org