Error  while creating a JCO Connection

Hi i am trying to create a JCO Connection from sapj2ee engine
my problem is i am getting an error  connection to msg server host failed ..
When i select the Message Server the System Name and Logon Group fields are disabled and cannot be modified and the problem is there is a default system name field already present there  which remains there irrespective of whther i change
the msg server...
why is this happening...
regards
Nilesh Taunk.

Hi Nilesh,
exactly follow this link for the set up in Visual Admin..
http://help.sap.com/saphelp_nw04/helpdata/en/ea/cd2e807e0e45bf9da67354f452fc05/content.htm
then refer these forums also...
Re: Metadata problem
i have already explained in step by step setting up of SLD.. in thisforum... refer this also
Re: getting a BAPI from an R/3 system
                 Regards
                 Kishor Gopinathan

Similar Messages

  • I am getting the error while creating the JCO connection -Urgent

    Hi iam gettng the following error. Can any body identify what will be the error.
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM  TYPE=B MSHOST=buzzard GROUP=SPACE R3NAME=MT4 MSSERV=sapmsMT4 PCS=1 ERROR       service 'sapmsMT4' unknown TIME        Mon Oct 22 20:01:09 2007 RELEASE     700 COMPONENT   NI (network interface) VERSION     38 RC          -3 MODULE      ninti.c LINE        530 DETAIL      NiPGetServByName2: service 'sapmsMT4' not found SYSTEM CALL getservbyname_r COUNTER     3
    Vijay

    Hi,
       One small correction and addition. Check for group 'SPACE'. Check for appropriate entry in services and also hosts file from C:\WINDOWS\system32\drivers\etc. If possible, restart both the servers and check.
    Regards,
    Harini S

  • Error while Create an JCo RFC provider in J2EE engine of portal system

    Hi all:
    I got the following error while Create an JCo RFC provider in J2EE engine of portal system:
    Bundle can not be added YEPRI-EPD_EPD,
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
    Connect_PM  TYPE=A ASHOST=YEPRI-DEV.domain.ext SYSNR=00 GWHOST=YEPRI-DEV.domain.ext GWSERV=sapgw00 PCS=1
    LOCATION    CPIC (TCP/IP) on local host with Unicode
    ERROR       hostname 'YEPRI-DEV.domain.ext' unknown
    TIME        Fri May 07 10:18:25 201
    RELEASE     701
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -2
    MODULE      ninti.c
    LINE        361
    DETAIL      NiPGetHostByName2: hostname 'YEPRI-DEV.domain.ext' not found
    SYSTEM CALL gethostbyname_r
    ERRNO       11004
    ERRNO TEXT  WSANO_DATA: Valid name, no data record of requested type
    COUNTER     1
    could you please tell me how solve it ?

    Hi,
    Try the steps mentioned below.
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION
    Regards,
    Koti Reddy

  • Error while creating a new connection in ODSM for OVD

    Hi all,
    I am getting the following error while creating a new connection in ODSM for OVD.
    Error log:
    [2012-07-10T14:50:30.005+05:30] [wls_ods1] [ERROR] [] [oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000JXkC9dU3FClqwsJb6G1FyhO000003D,0] [APP: odsm#11.1.1.2.0] Server Exception during PPR, #7[[
    javax.servlet.ServletException: Could not initialize class com.octetstring.vde.admin.services.client.VDEAdminServiceSoapBindingStub
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by:
    =======
    java.lang.NoClassDefFoundError: Could not initialize class
    com.octetstring.vde.admin.services.client.VDEAdminServiceSoapBindingStub
    at com.octetstring.vde.admin.services.client.ServerMgrServiceLocator.getVDEAdminService(ServerMgrServiceLocator.java:58)
    at oracle.ldap.odsm.model.ovd.APServerProxy.connect(APServerProxy.java:248)
    at oracle.ldap.odsm.model.ovd.APServerProxy.authenticateAs(APServerProxy.java:684)
    at oracle.ldap.odsm.model.ovd.APServerProxy.authenticate(APServerProxy.java:286)
    at oracle.ldap.odsm.model.ovd.APServerProxy.init(APServerProxy.java:216)
    at oracle.ldap.odsm.model.ovd.APServerProxy.<init>(APServerProxy.java:198)
    at oracle.ldap.odsm.model.ovd.OVDRoot.connectOVD(OVDRoot.java:185)
    at oracle.ldap.odsm.ui.common.Connection.connect(Connection.java:120)
    at oracle.ldap.odsm.ui.common.Visit.createConnection(Visit.java:663)
    at oracle.ldap.odsm.ui.common.Login.saveChanges(Login.java:215)
    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.sun.el.parser.AstValue.invoke(Unknown Source)
    at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
    at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1245)
    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    ... 28 more
    How to resolve this issue.Pls suggest me.
    Regards,
    -Deena.

    Hi Deena,
    This error:
    "[2012-07-10T14:50:30.005+05:30] [wls_ods1] [ERROR] [] [oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000JXkC9dU3FClqwsJb6G1FyhO000003D,0] [APP: odsm#11.1.1.2.0] Server Exception during PPR, #7[[
    javax.servlet.ServletException: Could not initialize class com.octetstring.vde.admin.services.client.VDEAdminServiceSoapBindingStub"
    is known issue
    Go to metalink, article: Unable To Connect To OVD 11g Webinterface Using ODSM. [ID 1282757.1]
    You need to apply that patch.
    I hope this helps,
    Thiago Leoncio.

  • Error while creating the JCO destinations

    Hi All,
    I am getting the following error while creating the JCO destinations.
    <b>There are no message servers maintained in the associated SLD. Please contact your system administrator.</b>
    Please help me in resolving this
    Thanks

    http://help.sap.com/saphelp_erp2005vp/helpdata/en/24/8fa93e08503614e10000000a114084/frameset.htm
    Creating New Web AS ABAP Technical Systems
    /*Reward if helpful
    Message was edited by:
            Anant
    Message was edited by:
            Anant

  • Error while creating Relational DB connection in webanalysis

    Hi,
    I am facing issue while creating Relational DB connection in webanalysis. It is giving test connection failed error.
    DataBase connection string is correct :- jdbc:oracle:thin:@ugdwpi1.cos.abc.com:1521:GDWDB
    where Port no.- 1521 , Server Name - ugdwpi1.cos.abc.com
    JDBC Username & JDBC Password are also correct.
    CLASSPATH is - E:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14.jar
    JDBC Driver is : oracle.jdbc.driver.OracleDriver
    Please tell me where am i wrong. CLASSPATH is correct or not? or there is an issue with JDBC Driver.
    Thanks
    Edited by: user649490 on Jan 28, 2009 10:24 PM

    Hi Mohit,
    Thanks for ur response and it helps me to explore more. But, still after adding the oracle jar file in E:\Hyperion\deployments\Tomcat5\WebAnalysis\webapps\WebAnalysis\WEB-INF\lib(this path does reside on my remote), it giving the same error.
    I think following details will help u to judge the exact scenario :
    DataBase connection string is correct :- jdbc:oracle:thin:@ugdwpi1.cos.abc.com:1521:GDWDB
    where Port no.- *1521* , Server Name - ugdwpi1.cos.abc.com
    JDBC Username & JDBC Password are also correct.
    CLASSPATH is - E:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14.jar
    JDBC Driver is : oracle.jdbc.driver.OracleDriver
    TNS enrty is :
    GDWDEV =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ugdwpi1.cos.abc.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = GDWDB)
    Please suggest me, if i am wrong anywhere. Quick response is highly appreciated.
    Thanks

  • EPM Error while creating a local connection

    Hello everyone,
    I am a Dashboards designer and am new to BPC 10 MS. I am working on a dashboard that connects to BPC 10 MS to retrieve data via the EPM Connector. For this a 'Local' connection type must be used when creating the report in the Excel sheet using the EPM Add-In. I tried to create one but am facing a curious error which does not seem to be a known issue. I have installed the ODBO Client and therefore can create a local connection of type 'SAP BusinessObjects Planning and Consolidation'. Once I select this provider I entered my application server name and chose Windows Authentication for BPC MS as I have the service account credentials. I encountered an EPM - General error with the following text: Error while communicating with the server. Details: Framework message: Authorization failed. This error shows even if I'm using Excel and not Dashboards. If I use a different connector, I am able to access all the BPC data just fine. However, with local type (which is needed for the dashboard connector) it just doesn't work. I tried reinstalling the EPM Add-In as well as the EPM Connector without any change to the error.
    I am using Win7 32-bit, Excel 2010 32-bit, ODBO Client SP12, EPM Excel Client SP16 Patch 1, BPC 10 MS server SP08, Dashboards 4.1 SP1.
    Has anyone come across this before? Any help would be great as I'm very much stuck at this point.

    Hi Deena,
    This error:
    "[2012-07-10T14:50:30.005+05:30] [wls_ods1] [ERROR] [] [oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000JXkC9dU3FClqwsJb6G1FyhO000003D,0] [APP: odsm#11.1.1.2.0] Server Exception during PPR, #7[[
    javax.servlet.ServletException: Could not initialize class com.octetstring.vde.admin.services.client.VDEAdminServiceSoapBindingStub"
    is known issue
    Go to metalink, article: Unable To Connect To OVD 11g Webinterface Using ODSM. [ID 1282757.1]
    You need to apply that patch.
    I hope this helps,
    Thiago Leoncio.

  • Error While creating new database connection from HFM workspace

    Hi,
    We have recently installed HFM and was trying to create database connection from database connection manager in HFM workspace.
    I am getting below error:
    "Error connecting to database connection : no HssJNIDriver950 in java.library.path" initially and later
    "Error connecting to database connection : com/hyperion/ap/adm/HssConn".
    Any information in this direction would helpful.
    Thanks,
    Bhargav
    Edited by: bhargavr on Jan 24, 2011 6:55 PM

    Hi bhargavr,
    We came accross the same issue. Try the following solution below for this 'KNOWN ISSUE' and let me know how you get on. Drop me a note if you have any questions regarding this post.
    Error: *"Error connecting to database connection: com/hyperion/ap/adm/HssConn" While Creating a Financial Management Database Connection* [ID 1102697.1]
    Modified 04-JAN-2011 Type PROBLEM Status PUBLISHED
    Applies to:
    Hyperion BI+ - Version: 11.1.2.0.00 and later [Release: 11.1 and later ]
    Microsoft Windows x64 (64-bit)
    Symptoms:
    You are running the Financial Reporting Web Server on a 64-bit server.
    When you try to create a new Financial Management (HFM) database connection using the Database Connection Manager in Workspace you receive the following message:
    “Error connecting to database connection <connection_name>: com/hyperion/ap/adm/HssConn”
    You can create a database connection in Financial Reporting Studio. When you refresh a report with a Financial Management database connection, you receive one of the following messages:
    “1001: Error connecting to database connection <DATABASE_CONNECTION_NAME>: com/hyperion/ap/adm/HssConn”
    or
    “1001: Error connecting to database connection <DATABASE_CONNECTION_NAME>: no HssJNIDriver950 in java.library.path”
    Cause:
    The issue is documented in unpublished bug 9537050, and in Known Issues in the 11.1.2 Reporting and Analysis Readme. Cross-reference unpublished bug 9707353.
    Solution:
    In the Windows registry, take the following steps:
    Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\HyperionSolutions\FinancialReporting0\HyS9FRReports.
    For each of the following entries, prefix the contents with text in the blue box: Env2, JVMOption13, and JVMOption17 (note that the JVMOption numbers might be slightly different in your environment).
    C:\Oracle\Middleware\EPMSystem11R1\common\ADM\11.1.2.0\bin-64
    If your EPM_ORACLE_HOME is not located at C:\Oracle\Middleware\EPMSystem11R1, replace that location with your location.
    Restart the server.
    G'Luck,
    -David

  • Getting Error while  creating Integration server Connection ...PLS help me

    Hi everybody,
    While creating the Integration server connection I am getting the below error.
    Please help me to solve it.
    I am using 10.1.3.1 .
    Application Server: OK
    BPEL Process Manager Server: FAILED
    ESB Server: FAILED
    Thanks in advance.
    Ramana

    Now i can able to login to my weblogic admin console and find that listen address is blank i have given the listen address as localhost now i can able to create the application server connection successfully ...Listen address blank means your server will accept connections on all network addresses i.e. on localhost, on 127.0.0.1 and on IP/Host name of machine
    If you want to access this server from a remote machine as well, then better keep the listen address field as blank OR assign the value of hostname/IP of machine as listen address. In case you set listen address as hostname/IP of machine, server will not listen anymore to localhost or 127.0.0.1
    1)Now iam working in local machine so that i am giving localhost .... In case i doing some bpel work in my local machine and after completing the work if want to move to my server ...do i want to change the connectionand give my server hostname ha?If your BPEL server is a remote server then better create a new connection for that (using listen address and port of that server)
    How to see errors in Admin server log C:\Oracle\Middleware\user_projects\domains\Soa_base_domain\servers\AdminServer\logs ...is it i want to check it here?Yes, you need to check the logs in this directory in file AdminServer.log
    How to check this?Under $Domain_Home/bin (C:\Oracle\Middleware\user_projects\domains\Soa_base_domain\bin), there will be a file setSOADomainEnv.cmd. If you open this file using notepad, you would see a setting like below -
    set DEFAULT_MEM_ARGS=-Xms512m -Xmx768mThis setting defines the heap memory.
    Regards,
    Anuj

  • Getting following error while creating a datasource connection with oracle database.

    I have 32 bit oracle server installed in remote server.
    and 64 bit sql server 2008 r2 report server installed, and 64 bit oracle client installed on my report server  while create a new datasource
    in the report server i am getting this error
    Error 
    Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle
    client components installed
    How can i fix this and let me know the reason

    This link will help you out.
    http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/0a38fa00-31de-49de-b68f-4c5a4565e5b1?prof=required
    Milan Das

  • Error while creating a planning connection in FR

    Hi John,
    I was creating a database connection to Planning from FR studio and encountered the following error
    Error connecting to database connection TestPln: Error: Error getting CSS support information for driver [com.hyperion.ap.hsp.HspAdmDriver]
    My Plnning and FR are on the same server.
    Version is 11.1.1.3.0.956.
    Please suggest

    Has it ever worked? If it did and nothing has changed then it is worth restarting the services.
    Anyway it is worth having a look on Oracle Support as there a few documents on there with the same type of issue.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • UDDI Error  while creating a new connection

    Hi,
    Iam trying to add my uddi of my 9ias R2 (windows) to my jdeveloper 10g connections.
    But when I provide the location of the uddi in the "create UDDI registry Connection" and then Test the connection I get the following error:
    Client Error
    The inquiry endpoint could not be contacted. Test failed.But when I try the url I provided in a browser. I get the succes page of the uddi.
    Is there a bug Iam not aware of?? And how do I add the uddi to my jdevelopers connections??
    Gr. Marc

    Hi Deena,
    This error:
    "[2012-07-10T14:50:30.005+05:30] [wls_ods1] [ERROR] [] [oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000JXkC9dU3FClqwsJb6G1FyhO000003D,0] [APP: odsm#11.1.1.2.0] Server Exception during PPR, #7[[
    javax.servlet.ServletException: Could not initialize class com.octetstring.vde.admin.services.client.VDEAdminServiceSoapBindingStub"
    is known issue
    Go to metalink, article: Unable To Connect To OVD 11g Webinterface Using ODSM. [ID 1282757.1]
    You need to apply that patch.
    I hope this helps,
    Thiago Leoncio.

  • Error while creating Oracle DB connection in Endeca Intergrator 3.1

    Hi All,
    I am facing an issue while creating a new Oracle DB connection using Inegtator in 3.1 version.
    I get the following exception:
    loader constraint violation in interface itable initialization: when resolving method "oracle.jdbc.OracleConnectionWrapper.setWrapper(Loracle/jdbc/OracleConnection;)V" the class loader (instance of org/jetel/util/classloader/GreedyURLClassLoader) of the current class, oracle/jdbc/driver/OracleConnection, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for interface oracle/jdbc/OracleConnection have different Class objects for the type oracle/jdbc/OracleConnection used in the signature
    we dont have SID but service name and we use like the following in earlier versions:
    jdbc:oracle:thin:@localhost:1556/xx_yy.us.oracle.com
    Not sure what is the issue... Any pointers are appreciated!!
    Thanks in Advance,
    Kartik P.

    Could you have installed Integrator ETL Server into the same Tomcat instance as Studio?  That's not a supported configuration per http://docs.oracle.com/cd/E40518_01/integrator.311/integrator_install/toc.htm#Installing%20Integrator%20ETL%20Server%20on%20Tomcat : "Integrator ETL Server must be installed on a standalone Apache Tomcat. Do not install Integrator ETL Server on a Tomcat server that is being used to host other applications. For example, do not install Integrator ETL Server on the Tomcat that is hosting Studio. ".

  • Getting error while Creating a JDBC connection from Java Class

    Hi,
    I am getting the exception pasted below:
    Exception in thread "main" java.lang.AbstractMethodError
    at JvMakeVTable(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at JvPrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at JvWaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
    at oracle.jdbc.driver.OracleStatement.executeQuery(java.lang.String) (Unknown Source)
    at oracle.jdbc.dbaccess.DBAccess.setNlsParamsClient(oracle.jdbc.driver.OracleConnection) (Unknown Source)
    at oracle.jdbc.ttc7.TTC7Protocol.initNls(oracle.jdbc.driver.OracleConnection) (Unknown Source)
    at oracle.jdbc.driver.OracleConnection.OracleConnection(oracle.jdbc.dbaccess.DBAccess, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties) (Unknown Source)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties) (Unknown Source)
    at oracle.jdbc.driver.OracleDriver.connect(java.lang.String, java.util.Properties) (Unknown Source)
    at java.sql.DriverManager.getConnection(java.lang.String, java.util.Properties) (/usr/lib/libgcj.so.5.0.0)
    at java.sql.DriverManager.getConnection(java.lang.String, java.lang.String, java.lang.String) (/usr/lib/libgcj.so.5.0.0)
    The code raising this error is :
    try
                   Class.forName("oracle.jdbc.driver.OracleDriver");
              catch (Exception Exp)
                   System.out.println("Error while getting the class : "+Exp);
    try
                   String url = "jdbc:oracle:thin:@hostname:port:SID";
                   String user = "apps";
                   String password = "password";
                   con = DriverManager.getConnection(url,user,password);
    catch (Exception ex)
                   System.err.println("SQLException: " + ex.getMessage());
    Any help in this is appreciated.
    Regards
    Jujaar

    Why do you have the Class.forName() in a separate try-catch block than the DriverManager.getConnection()?
    Try placing everything in the same try-catch block to see if that resolves your problem.
    You may also want to try using an OracleDataSource.
    OracleDataSource ods = new OracleDataSource();
    String url = "jdbc:oracle:thin:@//hostname:port/SID",
    ods.setURL(url);
    ods.setUser("apps");
    ods.setPassword("password");
    Connection conn = ods.getConnection();
    Refer to http://st-doc.us.oracle.com/11/111/java.111/b31224/getsta.htm#i1008334 for details on how to connect to the database using a Data Source.

  • Class not found error while establishing a jco connection

    Hi
    I am trying to establish a JCo connection in Java class.
    public static void main(String s[])
    try {
    ...// set connection properties
                   connClient.connect();
                   } catch (Exception ex)
                        ex.printStackTrace();
                        System.exit(1);
    It is throwing runtime error on line connClient.connect();
    java.lang.NoClassDefFoundError
    at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:1079)
    at com.sap.mw.jco.JCO$Client.connect(JCO.java:3256)

    Hi Saurabh,
    Please refer to below for calling JCo connection in Java class..
    http://help.sap.com/saphelp_nw04/helpdata/en/b6/55e3952a902447847066a0df27b0d6/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/ed/89746bea5011d6b2e800508b6b8a93/content.htm
    Hope it helps
    Regards
    Arun

Maybe you are looking for

  • Excel service error in sharepoint 2013

    i have sharepont server 2013 installed on 64 bit machine ,i have document center site which have many excel sheets i tried to open an excel sheet xlsx on browser unsing excel web access but it gaves me the following error message Excel Services Sorry

  • How to remove a disk from a logical-drive in a 3510

    Hello SUN masters, I have a 3510 with 4 logical drives and 2 global spares. Logical drive 0 (ld0) has 14 disks and i want to assign 2 of those as global spares and leave ld0 with 12 drives. the other logical-drives have just 2 HDD so I won't touch th

  • Defining Item Category

    In MM01 we will be defining the item category in sales organization tab . Consider for a material i am not going to maintain a sales organization detail then where to specify the item category. My need to create Blanket PO for a material for which Sa

  • Query on Material Ledger

    Hi All, Configuration settings: 1. Movement Type (MT) 201 is assigned to Movement Type Group(MTG) CC to revalue FI/CO accounts 2. MT 202 is not assigned to any MTG Scenario: 1. Post MT 201 to cost center 2. Post MT 202 to cost center(reversal) 3. Run

  • Expdp and impdp

    hi all experts, i want to do full database from PRD TO TST. both are in different server. i did full export to a directory that i created before i did data pump. expdp ran successfully but i do not see .dmp file and logfile in the directory. where do