Connect o8iEE by Java Linux

Hi:
I just come to migrate from 8iSE to EE
I Have problems connecting via ThinConn
My java program try to acces a contCD db by
Connection conn =
DriverManager.getConnection ("jdbc:oracle:thin:@mopti:1521:DBI",
"bpazb", "paz");
But I have this answer:
[paz@mopti java]$ java thinConn
java.sql.SQLException: Broken pipe
at java.lang.Throwable.<init>(Throwable.java:40)
at java.lang.Exception.<init>(Exception.java:21)
at java.sql.SQLException.<init>(SQLException.java:51)
at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:line unknown, pc 0x82cd1ce)
at oracle.jdbc.driver.OracleStatement.close(OracleStatement.java:line unknown, pc 0x82c79d7)
at oracle.jdbc.driver.OracleConnection.initUserName(OracleConnection.java:line unknown, pc 0x828bdc2)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:line unknown, pc 0x81e2b34)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:line unknown, pc 0x81bda74)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:line unknown, pc 0x81f37bc)
at java.sql.DriverManager.getConnection(DriverManager.java:90)
at java.sql.DriverManager.getConnection(DriverManager.java:132)
at thinConn.main(thinConn.java:23)
Any idea please. Thanks. Bernardo Paz
[email protected]

I'm using the oracle 8i EE version for linux
glibc 2.1 (the last one)the JDBC is just 8i.
Could it be usefull.
I had some problems installing no links maked, no ThinConn installed and other but I solved this problems, Oracle SQL is working fine now. But remote connection imposible.
Thanks for your help.
Bernardo
[email protected]

Similar Messages

  • Applet unable to connect to a remote linux machine

    I have an applet running on my system. There is a server running on the linux machine. while trying to connect to this server from my applet the following exception is obtained.
    java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.20.244:5222 connect,resolve)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkConnect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at org.jabber.applet.connection.ContinuousConnection.connect(ContinuousConnection.java:148)
         at org.jabber.applet.communication.JabberComm.connect(JabberComm.java:129)
         at org.jabber.applet.JabberApplet.logonUser(JabberApplet.java:1016)
         at org.jabber.applet.JabberApplet.logonDialog(JabberApplet.java:645)
         at org.jabber.applet.JabberApplet.logonDialog(JabberApplet.java:633)
         at org.jabber.applet.JabberApplet.init(JabberApplet.java:407)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    from the applet can i connect to the remote server?
    how could the connection be obtained
    thanks in advance
    zeta

    There could be compatibility issues. Refer to "WebLogic Server Compatibility".
    Link: [http://download.oracle.com/docs/cd/E12839_01/web.1111/e14529/compatibility.htm#INRMP118]
    Are you using a JMS bridge between the two domains?
    Edited by: Manish Chellappan on Sep 3, 2009 3:35 PM

  • Open connections between AS Java and AS ABAP when using JRA

    Hi, we have a problem with open connections and hope that someone here could give me hint where to find a solution.
    The situation is that we open a connection from a Java application to an AS ABAP. In detail, the application first connects to a statefull session bean on the AS Java by RMI. The bean communicates with the associated AS ABAP by the Java Resource Adapter (JRA).
    All interactions between all components work correctly. But even after we close the application, manually close of the connections (on side of the AS Java) , remove all created and used session beans there are still open connections between the AS ABAP and the AS Java.
    The transaction smgw (Gateway Monitor) shows open connections from jlaunch to our local SAP gateway using the internal communication protocol. Obviously, the established connections are not closed, even when they are open for a week or longer.
    After opening 100 connections, the AS ABAP denies additional connection attempts.
    We have been able to close all open connections by restarting the AS Java or by restarting the Connector over the Visual Administrator (path: Cluster – Server – Services – Connector Container – “select the right connector” – stop / start).
    We have developed our application similar to the tutorial from [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ad09cd07-0a01-0010-93a9-933e247d3ba4]
    Can someone explain to us why the connections stay open for so long? Is there no timeout mechanism? Or is there some way to close the connections from our Java application?

    Hello,
    maybe someone can help us with our problem.
    We have developed our application similar to the tutorial from https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ad09cd07-0a01-0010-93a9-933e247d3ba4 and it was running without problem with the SP12, now we change our system to SP16 and we are having the problem described in note 1083348, but as you can see, for us it was working with SP12 and now it doesn't work with SP16....
    Here is part of our code....
        public List getAll() {
            String functionName = "bla";
            try {
                openConnection();
                MappedRecord response = (MappedRecord) interaction.execute(null, request);
                MappedRecord record = (MappedRecord) response.get("E_S_RETURN_CODE");
                if (((String) record.get("RETURN_CODE")).equalsIgnoreCase("E")) {
                    throw new SQLException((String) record.get("RETURN_TXT"));
            catch (ResourceException exc) {
                throw new EJBException(".");
            catch (SQLException exc) {
                throw new EJBException(".");
            finally {
                closeConnection();
        protected void openConnection() {
            try {
                connection = connectionFactory.getConnection();
                interaction = connection.createInteraction();
            catch (ResourceException exc) {
                interaction = null;
                connection = null;
                throw new EJBException(getExceptionText(exc));
      protected void closeConnection() {
           try {
                if (interaction != null) {
                    interaction.close();
                if (connection != null) {
                    connection.close();
            catch (ResourceException exc) {
                throw new EJBException(".");
    With that code we are getting this error: "Connection handle is already closed and no longer associated with a managed connection" everytime we try to close the connection in the method closeConnection().
    We were thinking that maybe we should not close the connections, because the were already close, and tried not to close the connection (connection.close()), but then after a few time we are getting the following error, because we are not closing the connections:
    Connection to ABAP System could not be opened, because the Connection Factory returns "Cannot get connection for 120 seconds. Possible reasons: 1) Connections are cached within SystemThread(can be any server service or any code invoked within SystemThread in the SAP J2EE Engine), 2) The pool size of adapter "eis/..." is not enough according to the current load of the system or 3) The specified time to wait for connection is not enough according to the pool size and current load of the system. In case 1) the solution is to check for cached connections using the Connector Service list-conns command, in case 2) to increase the size of the pool and in case 3) to increase the time to wait for connection property. In case of application thread, there is an automatic mechanism which detects unclosed connections and unfinished transactions.". Please check the connection defined for the Connection Factory of the Java Resource Adapter with JNDI name...
    Any help?

  • Using an existing connection in a Java Stored Proc

    Hi,
    I have to invoke a Java stored procedure from a PL/SQL stored proc. In the Java stored proc I open a database connection & execute some SQLs. To do this can I use the same connection that is used to invoke the PL/SQL stored proc. In other words can we use the existing PL/SQL connection within a Java stored proc that is being called by the former PL/SQL instead of creating a new connection?
    Thanks in advance.
    Sunitha

    Ok I understood how to get the default connection from http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#05_01
    Connection conn = DriverManager.getConnection("jdbc:default:connection");However, I find that the Java stored proc is running slower in Oracle VM than invoking it from a command line Java program using thick driver from a remote machine.
    Thanks anyway.
    Sunitha.

  • Connecting to desktop Java application from R/3

    I want to connect to a java application program in my desktop and return a parameter to R/3. I have installed Java connector and I want to call the java application from R/3 using Java connector.
    I was able to get few samples to setup the RFC destination for a remote server program, but I was not able to find anything for an application in the client system. How to setup the RFC destination for a Java connector to call the application in the desktop? Can anyone please answer this question.

    Hi Allam,
    1. Why do you need to connect from backend system to your desktop client? Did I understood it correctly that it's exacly what you want to do?
    2. I guess examples you saw are for JCO or JCA which is a part of SAP J2EE server. Simply speaking the server is waiting for a client request and your desktop application probably not. If you still are sure that server->desktop connection is what you need then you have to emulate the server on your self and then depending on what you need JCO/JCA you have to create a kind of container that will implement listening service.
    I'd like to hear your answer for question one to give you more detailed answer.

  • Connecting a Local Java Program with a Mysql Database Hosted on the Interne

    I need help. I want to connect a java program running on local user computers to read and write to a mysql database hosted in my domain by an internet service provider.
    What code do i use?
    How do i connect?

    http://java.sun.com/developer/onlineTraining/Database/JDBC20Intro/JDBC20.html
    You'll ned to downloda the JDBC driver file from MySQL, and check their docs for the format of the connection URL.

  • Error connecting to database - java.sql.SQLException: Io exception: The Net

    Hello friends,
    I know this question has been asked in a lot of other threads; but my problem is quite unique and that's why I'm starting a new thread...
    When I try to access an Oracle 10g database through a Servlet code using a JDBC thin driver (both Tomcat and the database are running on Solaris 9), I get the following error:
    "Error connecting to database - java.sql.SQLException: Io exception: The Network Adapter could not establish the connection"
    However, there is another application running on the same server using the same database server (only the actual databases being used differ) and it is able to access the database without any issues. Both of these are absolutely similar applications and I couldn't think of any reasons why one would work and the other wouldn't. I thought they might be conflicting each other and tried running only the problematic application. But even then, I get the same error.
    I know this might not be too relevant but to provide you some more information on the environment, the applications are running on separate Tomcat instances on the same server and they are connected to an Apache web server through Mod jk.
    Any help in solving this problem is greatly appreciated!
    Thanks!
    Regards,
    Yogaesh

    Yogaesh wrote:
    The 'application' that works is also a Tomcat application... It's exactly same as the problematic application in terms of the configuration and stuff... As for the typo errors, I copied the config info and pasted it... So pretty much it should be the same. And to add an additional note, I'm able to connect to the database from my localhost... I mean if I run the problematic application from localhost (without Apache and directly hitting Tomcat) I'm able to access the screens...
    The second part of that (localhost) usually isn't all that useful. You know it is a connection failure so that means the code is running and technically successfully (since connection failure is a legitimate runtime error.)
    You know it isn't a firewall issue because it connects from another app in tomcat. So it must be a configuration issue.
    So something like one of the following.
    1. It isn't the same (we already know this but this particular item means that it is not in fact exactly the same because you deliberately or accidently modified it.)
    2. It isn't pulling the right config. Maybe you aren't packaging it, maybe it is buffered on the server and it is using that rather than what you think it is.
    3. Java code is referring to the wrong name.
    Do this, change the configuration so it points to a server that does not exist. Repack, redeploy. If the error is the same (no diff) then you know that it is not running the code that you think it is. If it does change then you know that it can only be 1.

  • Connection between webdynpro java and ECC.

    Hi experts,
    I am very new to webdynpro java, I want to learn webdynpro java since I know little bit of java.
    So here is my question,
    I want to connect my webdynpro java to ECC  to get data from ECC and display it on front end and as well i want to send data to ECC, can anyone help me to resolve this one.
    Thanks and Regards,
    Santoshkumar.

    Hi Santosh,
    This is pretty basic stuff in the world of Web Dynpro Java - I'd suggest you search SCN, read content on help.sap.com and then come back here with more specific questions.  All anyone can do to answer your current question is search for you and post links to documents that you could find for yourself.
    Cheers,
    G.

  • Using Windows NT 4.0 client program connecting to oracle 8i linux server

    Dear sir/madam,
    Recently, I have successfully installed Oracle 8i in my red hat linux database server. I am disappointed because I can find client side Oracle Enterprise Manager in my linux server even I have installed client program in my linux database server.
    Next, I install Oracle 8i client side program (windows NT/2000 version) in my Windows NT 4.0 server. I am still disappointed because I find Oracle Enterprise Manager console cannot work.
    For Windows NT 4.0 Enterprise Manager, I have key in default administrator sysman, password oem_temp, and connect to mamagement server hangng (my linux database server). An error message display 'VTK-1000 Unable to connect to the management server hangng. Please verify that you have entered the correct host name and the status of the Oracle Management Server.'.
    What's wrong with both Oracle 8i Management Server in linux database server and windows nt 4.0 server. Is there any problem for Oracle Management server console to connect to red hat linux database server?

    [email protected] wrote:
    I need to confirm that I will be able to connect an Oracle 11g R2 client (administrator install) to an Oracle 8i DB before i bother trying to setup such a scenario?Don't waste your time. It won't work. It simply results in an error.
    I saw another thread that mentioned a patch level required for 8i to let the 10g client connect. Is there such a patch level needed for 11g clients as well?There is no such patch for 8i which allows 11g client to connect.

  • Problem while connecting to oracle in linux

    i connected to oracle in linux as
    "sqlplus ,#sysdba,"
    after that it asked me for password
    and i typed as "oracle"
    after tat message displayed that "connected to IDEAL instance"
    SQL>select * from tab;
    i got an error message staying tat "ORACLE not connected"
    can anyone help me out where the poblem is getting

    hi,
    after tat message displayed that "connected to IDEAL instance"
    i got an error message staying tat "ORACLE not connected"you are connected to an ideal instance.
    you should mount and then open the database
    if you are using spfile
    then issue
    SQL>startup
    database mounted.
    database opened.
    or
    SQL> startup nomount pfile='location'
    database will be in nomount stage
    SQL>alter database mount;
    database mounted.
    SQL>alter database open;
    then you can issue your command..
    regards,
    Deepak

  • : Could not create connection; - nested throwable: (java.sql.SQLException: Access denied for user 'adobe'@'localhost' (using password: YES))

    hi all can anyone help me i am geting Exception while starting LCES server
    : Could not create connection; - nested throwable: (java.sql.SQLException: Access denied for user 'adobe'@'localhost' (using password: YES))

    hi all can anyone help me i am geting Exception while starting LCES server
    : Could not create connection; - nested throwable: (java.sql.SQLException: Access denied for user 'adobe'@'localhost' (using password: YES))

  • Error: SAPinst not connected to AS Java

    Hello,
    i had already installed minisap and want to Run Adobe Form On it.
    so I am installing sap netwevear SDN_Preview_SR_5_CE71.
    JAva Enviorment is already installed on my system and i am installing it on windows server-2003.
    but i am getting error "SAPinst not connected to AS Java" in log
    Feb 18, 2010 3:12:25 PM Info : Starting service "InstallationWizardService" ...
    Feb 18, 2010 3:12:25 PM Info : Version of service "InstallationWizardService" is 710.2
    Feb 18, 2010 3:12:25 PM Info : Service "InstallationWizardService" started.
    Feb 18, 2010 3:12:31 PM Info : Connected to host localhost on port 21200.
    Feb 18, 2010 3:18:58 PM Info : Connection reset
    Feb 18, 2010 3:18:58 PM Info : Reporting failed commlink.
    Feb 18, 2010 3:18:58 PM Error : SAPinst not connected to AS Java.
    installation log gives error like:
    TRACE 2010-02-18 18:24:11.890 synxcfsmgt.cpp:279
    CSyFileSystemMgtImpl::getFSExport(iastring) lib=syslib module=syslib
    Exception thrown near line 119 in file synxcfsmgt.cpp
    Stack trace:
    iaxxejsctl.cpp: 249: EJS_ControllerImpl::executeScript()
    d:\depot\bas\710_rel\bc_710-3_rel\gen\opt\ntintel\ins\sapinst\impl\src\ejs\iaxxejsbas.hpp: 445: EJS_Base::dispatchFunctionCall()
    iaxxejsexp.cpp: 175: EJS_Installer::invokeModuleCall()
    synxcfsmgt.cpp: 82: CSyFileSystemMgtImpl::getFSExport(iastring)
    At line 119 file synxcfsmgt.cpp
    Call stack:
    iaxxejsctl.cpp: 249: EJS_ControllerImpl::executeScript()
    d:\depot\bas\710_rel\bc_710-3_rel\gen\opt\ntintel\ins\sapinst\impl\src\ejs\iaxxejsbas.hpp: 445: EJS_Base::dispatchFunctionCall()
    iaxxejsexp.cpp: 175: EJS_Installer::invokeModuleCall()
    synxcfsmgt.cpp: 82: CSyFileSystemMgtImpl::getFSExport(iastring)
    File system export (share) saploc does not exist.
    Failed action: with parameters
    Error number 2310 error type WIN32_ERROR

    Hi Hardik,
    I am also facing the same error
    can you share the fix
    Regards
    santhose

  • How to make Connection Pooling in JAVA

    Dear Members
    I want to know that how can i make connection pooling in java and also how can i use that pool in my jsp/servlet application.
    Plz Describe in Detail.
    Thanks
    Vasim

    vasim_saiyad2000 wrote:
    Dear Members
    I want to know that how can i make connection pooling in java and also how can i use that pool in my jsp/servlet application.
    Plz Describe in Detail.
    Thanks
    VasimAs the previous poster is trying to suggest, the server you use will have datasource and connection pooling support. so look up in the manual how to set it up, or do a google search. For example if you use Tomcat, look here:
    http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html

  • WebStart support for Firefox Browser using Java Linux AMD64

    I am trying to setup a Firefox browser to use Java WebStart (jnlp).
    I am running Java Linux (AMD64)
    but I have no <JAVA_HOME/jre/plugins directory and no libjavaplugin_oji.so file with the Java installation.
    1) Can I download libjavaplugin_oji.so plugin somewhere?
    2) Will it work in Java Linux (AMD64)?
    3) Can Java Linux (AMD64) be setup to operate Java WebStart Technology?
    If so, How the h--- do I do it?
    Frustrated
    Newbean

    I have the same problem. Downloaded the 64 bit jre and found no libjavaplugin_oji.so in it.
    Then downloaded the 32 bit jre and did the soft link and still no work.
    Has anyone made the 32 bit jre work on the 64 bit linux?

  • Could Not Establish Connection to AS Java with Available Profiles

    Hi All,
    I am installing AS Java on SAP Netweaver 7.4 SR2.
    OS: Windows Server 2008r2 and DB: MSSQLSever 2012
    During the installation I got the below error on 28th Phase out of 29th.
    "Deploy Java Components"
    Below is the Error Log as extracted from SAPINST Log File
    [ Error ] Could not establish connection to AS Java on [WIN-9OD90N7C:50204]. Cannot establish connection with any of the available profiles:
    url=WIN-9OD90N7C:50204 protocol=p4 (None); Reason: com.sap.engine.services.rmi_p4.P4IOException: Cannot open connection to host: 192.168.245.130 and port: 50204
    Check if server is started, access point for the protocol is available, and IP/Host name is accessible on network.. Check if the host and port specified are correct and AS Java is up and running.
    [ LOG EXCEPTION ]  :: Could not establish connection to AS Java on [WIN-9OD90N7C:50204]. Cannot establish connection with any of the available profiles:
    url=WIN-9OD90N7C:50204 protocol=p4 (None); Reason: com.sap.engine.services.rmi_p4.P4IOException: Cannot open connection to host: 192.168.245.130 and port: 50204
    Check if server is started, access point for the protocol is available, and IP/Host name is accessible on network.. Check if the host and port specified are correct and AS Java is up and running.
    javax.naming.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.interfaces.cross.DestinationException: Cannot establish connection with any of the available profiles:
    url=WIN-9OD90N7C:50204 protocol=p4 (None); Reason: com.sap.engine.services.rmi_p4.P4IOException: Cannot open connection to host: 192.168.245.130 and port: 50204
    Check if server is started, access point for the protocol is available, and IP/Host name is accessible on network.]
      at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:386)
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
      at javax.naming.InitialContext.init(InitialContext.java:223)
      at javax.naming.InitialContext.<init>(InitialContext.java:197)
      at com.sap.engine.services.dc.api.session.impl.SessionImpl.getContext(SessionImpl.java:215)
      at com.sap.engine.services.dc.api.deploy.impl.DeployProcessorImpl.reconnectDeployer(DeployProcessorImpl.java:1954)
      at com.sap.engine.services.dc.api.deploy.impl.DeployProcessorImpl.waitResultForOfflineDeploy(DeployProcessorImpl.java:1626)
      at com.sap.engine.services.dc.api.deploy.impl.DeployProcessorImpl.deployItems(DeployProcessorImpl.java:903)
      at com.sap.engine.services.dc.api.deploy.impl.DeployProcessorImpl.deploy(DeployProcessorImpl.java:259)
      at com.sap.engine.services.dc.api.cmd.deploy.DeployCommand.performOperation(DeployCommand.java:208)
      at com.sap.engine.services.dc.api.cmd.deploy.DeployCommand.executeCommand(DeployCommand.java:540)
      at com.sap.engine.services.dc.api.cmd.AbstractCommand.execute(AbstractCommand.java:197)
      at com.sap.engine.services.dc.api.cmd.Runner.execute(Runner.java:37)
      at com.sap.engine.services.dc.api.cmd.Runner.main(Runner.java:61)
    Caused by: com.sap.engine.interfaces.cross.DestinationException: Cannot establish connection with any of the available profiles:
    url=WIN-9OD90N7C:50204 protocol=p4 (None); Reason: com.sap.engine.services.rmi_p4.P4IOException: Cannot open connection to host: 192.168.245.130 and port: 50204
    Check if server is started, access point for the protocol is available, and IP/Host name is accessible on network.
      at com.sap.engine.interfaces.cross.Destination.getNextAvailableBroker(Destination.java:64)
      at com.sap.engine.interfaces.cross.Destination.getRemoteBroker(Destination.java:39)
      at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:298)
      ... 14 more
    Thanks and Regards
    Anurag

    Hi Anurag
    Could you refer the SAP Notes for your issue
    1571274 - Cannot connect to server using message server ms://
    1925352 - How to check the access points (or ports) being used by a live SAP J2EE server
    BR
    SS

Maybe you are looking for

  • HashSet get() and contains() methods, by value or reference?

    All the tutorials I've seen on HashSets use Strings as the object type. With Strings, it seems the get() and contains() methods work by value, not by reference. <CODE> String s1 = "dog"; String s2 = "cat"; String s3 = "dog"; HashSet<String> set = new

  • Movie not showing up in iTunes library

    I recently downloaded a digital copy of a movie, but it won't show up in my iTunes library.  The file shows up in my itunes folder, but not in my library.  Any ideas how to fix this.

  • Upgrade Boot Camp 4 to Boot Camp 5?

    I want to install Windows 8.1 on a mid-2010 iMac (OS X 10.7.5) with Boot Camp 4.0.4.  Do I need to upgrade OS X to Mavericks to get Boot Camp 5.1 since Boot Camp 4 doesn't support Windows 8.1?

  • Skype for Business (Lync) search support?

    S4B was launched a month ago. Skype desktop client was recently updated to support federated Lync contacts search. Any ETA on update for Skype.app hitting the AppStore?

  • Vector file makes Motion crash

    Hi there everyone. I have a question regarding vector files in motion. I have very small pdf file that I saved in Illustrator. I import it in to Motion 3 and turn off fixed resolution so I can see the sharp vector as it should be. Everything is fine