title: Bea Weblogic - Oracle JDBC Connection failed
body: <p>I am creating a simple JDBC connection data source from Bea Weblogic console, using my mac OS X Macbook (Yosemite). Something does not work.</p>
  
  <p>I'm using the following parameters:</p>
  
  <pre><code>Driver Name: oracle.jdbc.OracleDriver
  URL: jdbc:oracle:thin:@anagrafe:1521:MY_SERVICE_NAME
  </code></pre>
  
  <p><strong>USERNAME</strong> and <strong>PASSWORD</strong> Are right.</p>
  
  <p>Trying to connect from the <strong>jDeveloper IDE</strong>, using the same parameters, <strong>everything is ok</strong>, but doing the connection from Bea WebLogic Server Administration Console 12c, running locally, I register the following connection:</p>
  
  <pre><code>&lt;15-gen-2015 11.33.37 CET&gt; &lt;Error&gt; &lt;Console&gt; &lt;BEA-240003&gt; &lt;Administration Console encountered the following error: 
  java.sql.SQLRecoverableException: Errore di I/O: Invalid argument
      at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:816)
      at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:793)
      at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
      at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:614)
      at weblogic.jdbc.common.internal.DataSourceUtil.testConnection0(DataSourceUtil.java:340)
      at weblogic.jdbc.common.internal.DataSourceUtil.access$000(DataSourceUtil.java:22)
      at weblogic.jdbc.common.internal.DataSourceUtil$1.run(DataSourceUtil.java:254)
      at java.security.AccessController.doPrivileged(Native Method)
      at weblogic.jdbc.common.internal.DataSourceUtil.testConnection(DataSourceUtil.java:251)
      at com.bea.console.utils.jdbc.JDBCUtils.testConnection(JDBCUtils.java:751)
      at com.bea.console.actions.jdbc.datasources.createjdbcdatasource.CreateJDBCDataSource.testConnectionConfiguration(CreateJDBCDataSource.java:479)
  [...........]
  Caused by: java.net.SocketException: Invalid argument
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:152)
      at java.net.SocketInputStream.read(SocketInputStream.java:122)
      at oracle.net.nt.MetricsEnabledInputStream.read(TcpNTAdapter.java:759)
      at oracle.net.ns.Packet.receive(Packet.java:312)
      at oracle.net.ns.NSProtocolStream.negotiateConnection(NSProtocolStream.java:168)
      at oracle.net.ns.NSProtocol.connect(NSProtocol.java:275)
      at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1606)
      at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:539)
  </code></pre>
  
  <p>Looks like it cannot logon... Any Idea?</p>
  
  <p>Tanks a lot, Davide.</p>