Exception while connecting to SAP from Java
Hi,
When my application tries to connect to SAP R/3 system, I am getting the following exception:
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 [C:\Program Files\Java\jdk1.5.0_11\bin;.;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Windows Imaging\] ];
---> nested java.rmi.ServerError: Unexpected Error; nested exception is:
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 [C:\Program Files\Java\jdk1.5.0_11\bin;.;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Windows Imaging\]
Please help me with your guidance.
Regards,
Blessy.
Which application is trying to connect to SAP. Give us your SAP landscape..whether it was working beofre and suddenly stoped. or you are in the middle of configuration
Reagards
Umesh K
Similar Messages
-
Exception while calling BPEL process from JAVA
Hi All
I am getting this error while calling BPEL process from JAVA
first I've got javabeans exception then I changed the port to default 23791 .. now I am getting the following
Exception in thread "main" oracle.adf.mds.exception.MDSRuntimeException: Cache not initialized
at oracle.apps.fnd.framework.mds.cache.ATGCacheMgrDelegateImpl.<init>(ATGCacheMgrDelegateImpl.java:325)
at oracle.apps.fnd.framework.mds.cache.ATGCacheFactoryImpl.<init>(ATGCacheFactoryImpl.java:44)
at oracle.apps.fnd.cp.request.CpContext.getMDSContext(CpContext.java:1084)
at oracle.apps.fnd.cp.request.Run.main(Run.java:130)
can anyone helpSorry guys for disturbing.
I deleted the file CacheDefaultConfig.properties by mistake from $JAVA_TOP
I replaced it and it worked fine
Thanks,
Baraa -
Problem while connecting to Oracle from JAVA
HI ,
I am stuck with a problem.I could'nt connect from java to SQL.
Do I need to install any drivers.I installed oracle 8i full version.and i am
using j2sdk1.4.2.and included class12.zar file in class path......
what els I have to do.
please give me the solution.
feel free to contact me at [email protected]I am stuck with a problem.I could'nt connect from java to SQL.
Do I need to install any drivers.I installed oracle 8i full version.and i am
using j2sdk1.4.2.and included class12.zar file in class path......
what els I have to do.Well, what have you tried?
You need the Oracle JDBC driver jar (ojdbc14.jar) which you can download from Oracle or somewhere I believe....I can't remember where I got it. Anyway, google for the Oracle JDBC driver and you should find it.
You will probably need to read up on JDBC as I can't believe you even did that before you realised you needed a driver to connect. Good luck.
feel free to contact me at [email protected]
Nope.....post to forum, reply to forum. -
"UnknownHost" exception while connecting to mysql from web dynpro
Hi
I am trying to connect to Mysql 5.0 database from web dynpro application.I am using NWDS 7.1.
I have followed this blog and created the datasource in NWA.
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/8675
I have written the following code in my web dynpro application.
InitialContext ctx;
try{
ctx=new InitialContext();
DataSource ds=(DataSource)ctx.lookup("jdbc/dbconnect");
Connection conn=ds.getConnection();
wdComponentAPI.getMessageManager().reportSuccess("connected");
Statement stmt=conn.createStatement();
String query="select Col from TestTable";
ResultSet res=stmt.executeQuery(query);
while(res.next())
String str1=res.getString(1);
wdComponentAPI.getMessageManager().reportSuccess(str1);
}catch (Exception e) {
wdComponentAPI.getMessageManager().reportSuccess(e.getMessage());
// TODO: handle exception
But I m getting the following error as "UnknownHost exception"
I checked with the datasource created in NWA.Here in the Driver status it is showing the driver as unknown.
I have added the following driver.
mysql-connector-java-5.0.8-bin.jar
Any idea on how to solve this problem?
Do I need to add the driver in my application also.
Thanks in advance,
SumangalaHi,
Have you created a datasource in Visualadmin?
Was that tested and was it success full?
If you havent done this this could be your issue
make sure the following code is using the correct datasource
DataSource ds=(DataSource)ctx.lookup("jdbc/dbconnect");
Regards
Ayyapparaj -
Connecting to SAP from Web Dynpro
Hi,
I am new to web dynpro, but have downloaded the java sneak preview edition and worked through it a bit. I understand that we have to use JCo to connect to SAP from Java Web dynpro, . Is it true?
What about web dynpro for ABAP? Can we use normal select statements to connect to SAP? How is it exactly done in that case?
Thanks in advance
PGhi pg
Just go thru this example which describes how to connect to SAP from web dynpro application.
http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on accessing abap functions in web dynpro - 4.htm
thanks
kris -
Exception while connecting to Content server from JDeveloper
I am getting following exception while connecting from jDeveloper
java.lang.NullPointerException
at oracle.stellent.wcm.jdev.shared.connection.ConnectionContext.<init>(ConnectionContext.java:53)
at oracle.stellent.wcm.jdev.features.rescat.IdcConnectionPanel.testAndLogin(IdcConnectionPanel.java:344)
at oracle.stellent.wcm.jdev.features.rescat.IdcConnectionPanel.access$000(IdcConnectionPanel.java:75)
at oracle.stellent.wcm.jdev.features.rescat.IdcConnectionPanel$1.doInBackground(IdcConnectionPanel.java:505)
at javax.swing.SwingWorker$1.call(SwingWorker.java:277)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at javax.swing.SwingWorker.run(SwingWorker.java:316)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
please Help
~HariOk. I found out why it is happening.
If I follow the section 3.1.2 and setup the site studio connection then everything is fine
3.1.2 Creating a Content Server Connection
http://download.oracle.com/docs/cd/E17904_01/doc.1111/e13650/ssxa_creatingsites.htm#CIHJGHFC
If I try to create a content server connection from file->new->content server connection then I get a null pointer exception.
I am sure someone from Oracle will fix it soon. For now all is well with Site Studio. -
Getting Exception while connecting to oim
Getting Exception while connecting to oim
log4j:WARN No appenders could be found for logger (XELLERATE.JBOSSLOGINHANDLER).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.NoSuchFieldError: TRACE
at org.jboss.logging.Log4jLoggerPlugin.isTraceEnabled(Log4jLoggerPlugin.java:85)
at org.jboss.logging.Logger.isTraceEnabled(Logger.java:122)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:660)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.thortech.xl.ejb.interfaces.tcUnauthenticatedOperationsUtil.lookupHome(Unknown Source)
at com.thortech.xl.ejb.interfaces.tcUnauthenticatedOperationsUtil.getHome(Unknown Source)
at Thor.API.Security.ClientLoginUtility.getUnauthenticatedOperations(Unknown Source)
at Thor.API.Security.ClientLoginUtility.login(Unknown Source)
at Thor.API.tcUtilityFactory.<init>(Unknown Source)
at SearchUser.Connect(SearchUser.java:101)
at SearchUser.main(SearchUser.java:215)
Process exited with exit code 1.
I have added configuration file path also i copied log4j file to xlClient from JBOSS_HOME/server/default but still i am getting this exception.The new log4j JAR file has to be named exactly the same way the previous one was named (log4j-1.2.8.jar I think).
-
Getting the error while connection to SAP Server
Hi,
I am getting the below mentioned error while connection to SAP Sever using SAP.Net Connector. What could be the possible reason?
"<i>
<b>Connect to SAP gateway failed
Connect_PM GWHOST=ia2-ms.boi.hp.com, GWSERV=sapgw01, ASHOST=ia2-ms.boi.hp.com, SYSNR=01
LOCATION CPIC (TCP/IP) on local host
ERROR partner not reached (host 15.78.80.31, service 3301)
TIME Fri Feb 02 11:10:35 2007
RELEASE 640
COMPONENT NI (network interface)
VERSION 37
RC -10
MODULE nixxi_r.cpp
LINE 8716
DETAIL NiPConnect2
SYSTEM CALL SiPeekPendConn
ERRNO 10061
ERRNO TEXT WSAECONNREFUSED: Connection refused
COUNTER</b>
</i>"Hi
The gateway monitor is used to analyze and administer the SAP Gateway from outside the SAP System. The profile you assign to it must be the same as for the gateway. This process has different names:
UNIX: gwmon
Windows: gwmon.exe
more on this.. please go thru ..
http://help.sap.com/saphelp_erp2005vp/helpdata/en/bb/9f13c24b9b11d189750000e8322d00/frameset.htm
hope this info helps!
with regards,
raj.
<i>pls, award points</i> -
Hi guys,
While getting the sales order from the JDE database. It is giving
Caught exception while handling request: deserialization error: java.text.ParseException: Unparseable date: "-11-JA-01T12:00:00-05".
can any one of you can guide me about this exception
Expecting a reply from any one ASAP.
Regards,
Chakrithe schema element for this field is having different datatype than what you are receiving the data. Can you check logs and see on which column it is failing? If we know the exact xsd datatype used for the element and and value that is stored in table then we can correct the xsd accordingly. Are you using dynamic sql query or select options to get values from DB.
-
Help needed in Connecting to SAP From Eclipse
Hi All,
Currently, we have a requirement where we need to retrieve data from SAP System and need to upload the same in a Third Party Application (Java based system).
We are able to create an account in Java Application using Eclipse IDE by hard coding the Account details. We are stuck up in establishing the SAP connection and retrieving the details and then creating the extracted account details in Java application from Eclipse.
Any pointers on this will be of great help.
Regards,
EurekaHi Eureka,
Please refrain from creating cross-posts in parallel forums, moreover this question is JCo-related and is not directly connected with Java EE 5. The Help needed in Connecting to SAP From Eclipse in the Java Programming forum would be enough. Please continue the discussion there.
Regards,
Vladimir -
How to connect to SAP AS JAVA?
Hi,
I am developing an JAVA application, which will connect to SAP AS Java dataSource. My environment don't have ABAP installed. So, I believe use of JCo connector is not an option.
Is ther any other connector API jar available to connect to SAP AS JAVA Datasource?
Could anyone please help me with a detail guide to connect to SAP AS Java Datasource using any APIs provided by SAP?
Thanks
AlinganHi Aligan,
Thant's correct, you have to develop a service on your EP and then you can change the UME persistence (user creation etc).
Now you can write a J2EE app which will call your service to cater your requirement.
Please go through the below links which will help you to achieve the same
http://help.sap.com/saphelp_nw73/helpdata/de/f5/1cf770b9bd442985ee71461ef2227a/content.htm
User Management Functions for Users - Integrating Security Functions - SAP Library
Could you please let me know for any further information.
Thanks,
Hamendra -
Error IFS-20010 connecting to IFS from java class
Hello,
I try to connect to IFS from java program with sentences:
LibraryService ifsService = new LibraryService();
CleartextCredential me = new CleartextCredential("user", "password");
ConnectOptions connectOpts = new ConnectOptions();
connectOpts.setServiceName("ifsDefault");
connectOpts.setServicePassword("ifspassword");
LibrarySession ifsSession = ifsService.connect(me,connectOpts);
the class compile but not run because the error:
IFS-20010: Failed to get PropertiesResourceBundler ifsDefault.
The message errors documentation said:
This error occurs when attempting to start an Oracle iFS process by specifying a service properties file name that cannot be located by the Oracle iFS repository. The
parameter specified in the error is the name of the specified service properties file. The specified service properties file
must exist in the oracle.ifs.server.properties package
descending from one of the directories included in the
CLASSPATH setting for the process.
I don't understand what mean this, somebody yes?
Please give me any idea.
What can i do to solve this problem?
Thanks.
FABIANHi,
Make sure you have $ORACLE_HOME/ifs/settings in your classpath.
Good luck. -
Hi Friends,
I've a requiremnet to create SO where data will be provided in JAVA screens. Is there any way to access SAP from java as we can do this through VB using API methods.
Regards,
Anupamsee these links
[link1|http://www.sapdevelopment.co.uk/java/jco/jcohome.htm]
[link2|http://searchsap.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid21_cid417095,00.html]
[link3|http://www.experts-exchange.com/Database/Software/ERP/SAP_ERP/Q_20693539.html]
Regards,
SAPient -
Connecting to SAP from VB. Is it MUST to have SAP installed in the machine?
Hi All,
I have a requirement to connect to SAP from VB. I did it by creating an RFC and a Bapi for that. Now, I could execute the SAP function from VB based application. I have no issues so far.
But, when I try to execute the same from the system which doesn't have SAP installed in it, it couldn't execute. Is it MUST to have SAP installed in the machine to execute the SAP function from VB..? or is there any otherway to avoid this problem. Is there any way to execute the SAP function from VB from the machine which doesn't have SAP installed in it.
Please give me your valuable inputs. Thanks in advance,
Thanks & Regards,
Pradeep.Hi,
No need of SAP environment to execute, but you should provide all the necessary parameters in your application in order to execute the RFC function module like: target host, m/c no, and etc of the SAP server.
best regards
Mahesh -
What User authorization objects needed for connecting to SAP from xMII?
We eneter a SAP user and password for connecting to SAP from xMII to retrieve the metadata of the incoming IDocs.
When I specify a user with SAP_ALL user profiles, the IDocs are received properly in xMII. If I specify a user with privileges to run only certain transactions, IDocs are not received in xMII.
What user authorization objects are needed for this user to connect to SAP from xMII?
Thanks,
SaraSam,
I turned on the SAP System trace for this user and figured out the following auth. objects are required for receiving IDocs in xMII:
C_TCLA_BKA
S_RFC
S_CTS_ADMI
B_ALE_MAST
S_IDOCDEFT
The following auth. object is required for making JCO call to SAP from xMII:
C_AFRU_AWK
Thanks,
Sara
Maybe you are looking for
-
Keyboard light not working on boot camp!
Hi I received some updates for the Boot camp just recently, and since then the keyboard light doesn't turn on anymore when it gets dark! I'm working on the windows XP... I feel i made a huge mistake accepting the update!!!! has anyone encountered suc
-
IOS 8.0.2 update did not work.
After installing the 8.0.2 update, ipad will still not keep a wifi connection for more than 5 minutes. I also still cannot play videos. will Apple be able to figure this out soon? My device has pretty much been rendered useless at this point.
-
Hello I do have an issue printing at ALV - I want the Layout X_44_120 - g_grid TYPE REF TO cl_gui_alv_gri ps_print-print_ctrl-pri_params-LINCT = 44. ps_print-print_ctrl-pri_params-linsz = '120'. ps_print-print_ctrl-pri_params-paart =
-
Problems installing SAP NetWeaver 7.0
Hello, if my question has already been answerd somewhere else or this is not the correct place to ask for this I would be thankful for a direct link. What's my problem: During installation of NWABAPTRIAL70206_64 - Central System during the phase "Imp
-
Configuring BI on Existing ECC 6.0 System
Hi All, We have an ECC6.0 system and currently there is a requirement to configure BI, can any one share the experience of doing it. I think we need to Install the BI_CONT addin and are there any taks involved after it? Regards, Ershad Ahmed