Can you SQLPlus into the database? Is the database up and accepting
connections?
--- "Williams, Albert" <[EMAIL PROTECTED]> wrote:
> Hi All,
> Does anyone know why I would be getting the following error:
> No more data to read from socket
> 
> Here's the code (the error is thrown at the line marked with
> ****'s):
> 
>               try
>               {
>                       // Oracle version
>                       DriverManager.registerDriver(new
> oracle.jdbc.driver.OracleDriver());
>                       setUser(username);
>                       setPassword(password);
> 
>                       setUrl("jdbc:oracle:thin:@" + databaseIPAddress +
> ":" + databasePort + ":"  + databaseName);
> ***************** setCon(DriverManager.getConnection(getUrl(),
> getUser(),
> getPassword())); ********************** 
> 
>               } // end of try
>               catch(Exception e)
>               {
>                       //-------------------------TRACE
> CODE-------------------------------------
>                       System.out.println("Exception Caught in init in
> DatabaseManager " + e);
>                       someVar = e.toString() ;
>                       System.out.println("Connection Error: " +
> e.toString()) ;
>                       e.printStackTrace(System.out) ;
>                       //-------------------------TRACE
> CODE-------------------------------------
>               } // end of catch
> 
> 
> The detailed error is:
> 
> Exception Caught in init in DatabaseManager java.sql.SQLException:
> No more
> data to read from socket
> Connection Error: java.sql.SQLException: No more data to read from
> socket
> java.sql.SQLException: No more data to read from socket
>         at
> oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
>         at
> oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
>         at
> oracle.jdbc.dbaccess.DBError.check_error(DBError.java:803)
>         at
> oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:731)
>         at
> oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:690)
>         at oracle.jdbc.ttc7.TTIpro.receive(TTIpro.java:139)
>         at oracle.jdbc.ttc7.v8TTIpro.receive(v8TTIpro.java:97)
>         at
> oracle.jdbc.ttc7.TTC7Protocol.connect(TTC7Protocol.java:1154)
>         at
> oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:199)
>         at
>
oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:200)
>         at
>
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)
>         at
> oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
>         at
> java.sql.DriverManager.getConnection(DriverManager.java:517)
>         at
> java.sql.DriverManager.getConnection(DriverManager.java:177)
>         at DatabaseManager.init(DatabaseManager.java:119)
>         at DatabaseManager.<init>(DatabaseManager.java:56)
>         at RequestCoordinator.<init>(RequestCoordinator.java:42)
>         at SecurityValidator.<init>(SecurityValidator.java:57)
>         at WapProvServlet.getSV(WapProvServlet.java:540)
>         at CheckPasswd.doPost(CheckPasswd.java:63)
>         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
>
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
>         at org.apache.tomcat.core.Handler.service(Handler.java:287)
>         at
>
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>         at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
> 2)
>         at
>
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
>         at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:213)
>         at
>
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> 
> 
> Thanks for any help,
> Al.
> 
> 
> This e-mail and any attachment is for authorised use by the
> intended recipient(s) only.  It may contain proprietary material,
> confidential information and/or be subject to legal privilege.  It
> should not be copied, disclosed to, retained or used by, any other
> party.  If you are not an intended recipient then please promptly
> delete this e-mail and any attachment and all copies and inform the
> sender.  Thank you.
> 
> To change your membership options, refer to:
> http://www.sys-con.com/java/list.cfm


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm

Reply via email to