Java.sql.SQLException: Network error IOException: Connection refused:

hi...i am tryin to connect to sqlserver2000 ....i wanted a dsnless connection...i have downloaded jtds driver...set the classpath..no joy..i'm connecting to sqlserver's default port 1433..i also confirmed that sqlserver tcp is enabled...still gettin the same err:
java.sql.SQLException: Network error IOException: Connection refused: connect
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java
:385)
at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java
:50)
at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:182)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at SQLServerConnect.getConnection(SQLServerConnect.java:27)
at SQLServerConnect.displayDbProperties(SQLServerConnect.java:44)
at SQLServerConnect.main(SQLServerConnect.java:80)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
at java.net.Socket.connect(Socket.java:507)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSoc
ket.java:304)
at net.sourceforge.jtds.jdbc.SharedSocket.<init>(SharedSocket.java:255)
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java
:310)
... 7 more
Error Trace in getConnection() : Network error IOException: Connection refused:
connect
Error: No active Connection
i even tried connecting to the port 1433 thru telnet...err:Could not open connection to the host, on port 1433:connection failed...
i thought it cud b a firewall issue...disabled my windows firewall..no joy..
can ne body help me with this....need to solve this desparately
thanks in advance
jude

Old, but still coming up in google searches. Here's the solution that worked for me:
Dynamic Port Allocation explained:
http://support.microsoft.com/kb/823938
How to: Configure a Server to Listen on a Specific TCP Port (SQL Server Configuration Manager)
http://support.microsoft.com/kb/823938
In case that dissappears:
To assign a TCP/IP port number to the SQL Server Database Engine
1. In SQL Server Configuration Manager, in the console pane, expand SQL Server 2005 Network Configuration, expand Protocols for <instance name>, and then double-click TCP/IP.
2. In the TCP/IP Properties dialog box, on the IP Addresses tab, several IP addresses appear, in the format IP1, IP2, up to IPAll. One of these are for the IP address of the loopback adapter, 127.0.0.1. Additional IP addresses appear for each IP Address on the computer. Right-click each address, and then click Properties to identify the IP address that you wish to configure.
3. If the TCP Dynamic Ports dialog box contains 0, indicating the Database Engine is listening on dynamic ports, delete the 0.
4. In the IPn Properties area box, in the TCP Port box, type the port number you wish this IP address to listen on, and then click OK.
5. In the console pane, click SQL Server 2005 Services.
6. In the details pane, right-click SQL Server (<instance name>) and then click restart, to stop and restart SQL Server.

Similar Messages

  • Error: java.sql.SQLException: Internal Error   Invalid Connect String

    hi,
    facing errror while deploying the process
    A problem occured while connecting to server "sfhyd1.softforce.com" using port "8888": bpel_getCustomerAccounts_1.0.jar failed to deploy. Exception message is: java.sql.SQLException: Internal Error:Invalid Connect String
    at com.collaxa.cube.engine.util.DBUtils.checkIfFatalConnectionError(DBUtils.java:920)
    at com.collaxa.cube.ejb.impl.BaseCubeSessionBean.checkIfFatalConnectionError(BaseCubeSessionBean.java:153)
    at com.collaxa.cube.ejb.impl.BPELDomainManagerBean.deploySuitcase(BPELDomainManagerBean.java:462)
    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:585)
    at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
    at com.evermind.server.ThreadState.runAs(ThreadState.java:693)
    at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
    at DomainManagerBean_RemoteProxy_4bin6i8.deploySuitcase(Unknown Source)
    at com.oracle.bpel.client.BPELDomainHandle.deploySuitcase(BPELDomainHandle.java:319)
    at com.oracle.bpel.client.BPELDomainHandle.deployProcess(BPELDomainHandle.java:341)
    at deployHttpClientProcess.jspService(_deployHttpClientProcess.java:376)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:400)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:414)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.sql.SQLException: Internal Error:Invalid Connect String
    at oracle.lite.poljdbc.POLJDBCErrMsg.throwSQLException(Unknown Source)
    at oracle.lite.poljdbc.LiteThinJDBCConnection.<init>(Unknown Source)
    at oracle.lite.poljdbc.LiteThinJDBCFactory.createConnection(Unknown Source)
    at oracle.lite.poljdbc.POLJDBCConnection.<init>(Unknown Source)
    at oracle.lite.poljdbc.OracleConnection.<init>(Unknown Source)
    at oracle.lite.poljdbc.POLJDBCDriver.connect(Unknown Source)
    at oracle.oc4j.sql.DriverDataSource.getConnection(DriverDataSource.java:116)
    at oracle.oc4j.sql.DriverDataSource.getConnection(DriverDataSource.java:75)
    at oracle.oc4j.sql.DataSourceConnectionPoolDataSource.getPooledConnection(DataSourceConnectionPoolDataSource.java:57)
    at oracle.oc4j.sql.xa.EmulatedXADataSource.getXAConnection(EmulatedXADataSource.java:92)
    at oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createXAConnection(ManagedConnectionFactoryImpl.java:211)
    at oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:170)
    at com.evermind.server.connector.ApplicationConnectionManager.createManagedConnection(ApplicationConnectionManager.java:1398)
    at oracle.j2ee.connector.ConnectionPoolImpl.createManagedConnectionFromFactory(ConnectionPoolImpl.java:327)
    at oracle.j2ee.connector.ConnectionPoolImpl.access$800(ConnectionPoolImpl.java:98)
    at oracle.j2ee.connector.ConnectionPoolImpl$FixedWaitPoolingScheme.getManagedConnection(ConnectionPoolImpl.java:1455)
    at oracle.j2ee.connector.ConnectionPoolImpl.getManagedConnection(ConnectionPoolImpl.java:785)
    at oracle.oc4j.sql.ConnectionPoolImpl.getManagedConnection(ConnectionPoolImpl.java:45)
    at com.evermind.server.connector.ApplicationConnectionManager.getConnectionFromPool(ApplicationConnectionManager.java:1596)
    at com.evermind.server.connector.ApplicationConnectionManager.acquireConnectionContext(ApplicationConnectionManager.java:1541)
    at com.evermind.server.connector.ApplicationConnectionManager.allocateConnection(ApplicationConnectionManager.java:1486)
    at oracle.j2ee.connector.OracleConnectionManager.unprivileged_allocateConnection(OracleConnectionManager.java:238)
    at oracle.j2ee.connector.OracleConnectionManager.allocateConnection(OracleConnectionManager.java:192)
    at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:272)
    at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:200)
    at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:142)
    at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:127)
    at com.collaxa.cube.engine.data.ConnectionFactory$ConnectionFactoryImpl.getConnection(ConnectionFactory.java:336)
    at com.collaxa.cube.engine.data.ConnectionFactory.getConnection(ConnectionFactory.java:140)
    at com.collaxa.cube.engine.adaptors.common.BaseProcessPersistenceAdaptor.storeProcess(BaseProcessPersistenceAdaptor.java:361)
    at com.collaxa.cube.engine.adaptors.olite.ProcessPersistenceAdaptor.storeProcess(ProcessPersistenceAdaptor.java:52)
    at com.collaxa.cube.engine.data.ProcessPersistenceMgr.storeProcess(ProcessPersistenceMgr.java:76)
    at com.collaxa.cube.engine.deployment.DeploymentManager.deployProcess(DeploymentManager.java:937)
    at com.collaxa.cube.engine.deployment.DeploymentManager.deploySuitcase(DeploymentManager.java:792)
    at com.collaxa.cube.ejb.impl.BPELDomainManagerBean.deploySuitcase(BPELDomainManagerBean.java:455)
    ... 45 more

    You may possibly modified the oc4j-ra.xml file in the stand-alone directory instead of the file under the OC4J_BPEL directory in midtier.
    Currently, we are seeing some issues with the sample in midtier. So you may like to wait for the GA release [ mid May] for trying out this sample.
    Otherwise please send a mail to [email protected], you need any early drop of this sample.
    HTH.
    Thanks,
    Rakesh

  • SQL2000 - Network error IOException: Connection refused: connect

    I am having trouble connecting to SQL Server through SQL Developer 1.2.1 Build 32.13.
    I am on XP Profesional SP2, had downloaded and install jtds-1.2.2 and when i try to connect i am getting the error, 'Status Failure - Network Error IOException: Connection Refused: connect'
    my default port is 1433
    i have enabled the TCP/IP at the Sqlserver and also disabled the firewall
    i don't have this problem in sql2005, but sql2000 send me this error..
    Can anyone help me??

    It probably isn't a sqldeveloper problem. Try to pin down the differences between your 2205 installation and your 2000 installation.

  • Java.sql.SQLException: IO Error: The Network Adapter could not establish...

    Hi,
    I know that there are a lot of threads with this error, but I don't know how to solve my situation yet.
    I'm trying to access to the database via JDBC, and the driver return the following error:
    java.sql.SQLException: IO Error: The Network Adapter could not establish the connection
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:419)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:536)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:228)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
    at net.sourceforge.squirrel_sql.fw.sql.SQLDriverManager.getConnection(SQLDriverManager.java:133)
    at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.execute(OpenConnectionCommand.java:97)
    at net.sourceforge.squirrel_sql.client.mainframe.action.ConnectToAliasCommand$SheetHandler.run(ConnectToAliasCommand.java:281)
    - My oracle database is up and I can access to it with locally with TOAD
    - I can do TELNET localhost 1521 in the server that has the DB installed
    - I can do a successful ping from the client computer to the oracle server
    - There aren't any firewalls between the client and the server.
    - When I try to do TELNET <IP Address> 1521 from the client computer to the oracle DB Server, the connection could not be opened
    - I tryed to do a TELNET to another port where I have another service, and the result has been successful. So the problem is related with the port 1521...
    I don't have any knowledge about database administration, so I don't know what to do to solve this.
    Can you help me please?

    java.sql.SQLException: IO Error: The Network Adapter could not establish the connectionThis preposterous error message is Oracle's way of saying either 'Connection refused' or 'Connection timeout' or 'no route to host' or 'unknown host'. However because of the stupidity of making up their own message instead of giving the original exception, it is impossible to say which. The pretentious wording is also stupid: network adapters don't create connections. TCP/IP stacks do that.
    As to your problem, either there is no such host, no route to the host, nothing listening at the IP:port you specified, or there is a firewall in the way. And that includes a possible Windows firewall on the server host itself.

  • Java.sql.SQLException: Internal Error in RowSetReader: no connection or com

    I have yet to find an answer anywhere on the web for this problem of Oracle JNDI failure with the Tomcat 5.5x, has anyone solved it ? Using Tomcat 5.0 is not a solution.
    com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: java.lang.RuntimeException: java.sql.SQLException: Internal Error in RowSetReader: no connection or command.
         com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java:601)
         com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:316)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)

    You may want to check out the following forum threads.
    http://forum.java.sun.com/thread.jspa?threadID=5105081
    If you create a a dataprovider, but the rowset is not in the sessionbean you may run into this problem. Delete the old dataprovider and created a new one and see if that gets rid of your problem.

  • I am getting Error! java.sql.SQLException:General error

    hi every body,
    I struck with this error , can any one suggest in solving this.
    I had a table in oracledatabase ,i have successfully created a table and inserted clob column with an attachment like xxx.txt.
    table format----> id and text columns
    Now my question is to retrieve that data and store it in local disk i am getting this error
    import java.io.*;
    import java.sql.*;
    //import java.sql.SQLException;
    public class Cread {
    public static void main(String[] args) throws ClassNotFoundException,IOException,SQLException {
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection cn=DriverManager.getConnection("jdbc:odbc:sivadsn","scott","tiger");
    Statement s = cn.createStatement();
    ResultSet rs=s.executeQuery("Select text from ram where id=10");
    if(rs.next()){
    FileOutputStream file=new FileOutputStream("c:/store.txt");
    InputStream fin=rs.getBinaryStream(1);
    int c;
    while((c=fin.read())!=-1){
    file.write(c);
    fin.close();
    s.close();
    rs.close();
    catch(IOException e){
    e.printStackTrace();
    System.out.println("Err:"+e);
    I am getting the error as
    java.sql.SQLException: General error
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(Unknown Source)Error! java.sql.SQLException: General error
    at attach.Clobread.main(Clobread.java:30)

    That usually means something is wrong with the syntax of your sql.
    As a guess 'text' is probably a keyword and shouldn't be used as a field name. It is possible that the same is true for 'id'

  • Java.sql.SQLException: E/A-Exception: Connection ended abnormally

    Hi all,
    this strange exception occurs in the communication channel monitoring. I see there was a processing error in the communication channel which inserts data from XI. When I look in audit protocol I can see that after a few minutes the connection is ended with an error which says the following:
    Error processing request in sax parser: Error when executing statement for table/stored proc. 'LVS' (structure 'STATEMENTNAME'): java.sql.SQLException: E/A-Exception: Connection ended abnormally.
    Now my questions are: Why does this error occur? And can someone explain me this error?
    Regards
    Florian

    I think I have the reason for this problem. It's a network problem. The network to this system has a high load. In addition, the JDBC receiver adapter was configured with parameter <i>"Disconnect from Database After Processing Each Message".</i> Now I have deselected the parameter and I have no problems.
    Thanks for your efforts
    Florian

  • Java.sql.SQLException: General error

    Hi i got this error message:
    java.sql.SQLException: General error
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(Unknown Source)
    at PersonFrame.actionPerformed(PersonFrame.java:1155)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
    n Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
    ce)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    my code is:
    while (rs.next())
    String recnumber = rs.getString("Person_ Record_ Number");
    int reccc=Integer.parseInt(recnumber);
    if (Integer.parseInt(FamilyTree.rowselected)==reccc && AddPersonn!=0)
    System.out.println ("record in table "+reccc);
    System.out.println ("record selected "+FamilyTree.rowselected);
    str.executeUpdate("INSERT INTO Person " +
    "VALUES ('"+nameofperson.getText()+"','"+SurnameOfPersonTxt.getText()+"','"+Bday+"','EMPTY','"+DateOfDeathTogether+"','EMPTY','EMPTY','"+phone+"','"+genre+"','"+Country+"','"+FamilyTree.rowselected+"','"+Nicknametxt.getText()+"','"+Filename+"','"+BioFile+"','"+city+"','"+postal+"','EMPTY','empty','"+TimeOfBirth+"','EMPTY')");
    setVisible(false);
    System.out.println(Filename);
    LINE 1155 that the error message says is line :str.executeUpdate("INSERT INTO Person " +
    <<<PersonFrame.actionPerformed(PersonFrame.java:1155)>>>>>
    also note that i didn't include a try statement here (int reccc=Integer.parseInt(recnumber) because recnumber since is created holds the value 5000 so there is no need
    Also the output.. of
    System.out.println("INSERT INTO Person " + "VALUES ('"+nameofperson.getText()+"','"+SurnameOfPersonTxt.getText()+"','"+Bday+"','EMPTY','"+DateOfDeathTogether+"','"+PlaceOfDeath+"','"+address+"','"+phone+"','"+genre+"','"+Country+"','"+FamilyTree.rowselected+"','"+Nicknametxt.getText()+"','"+Filename+"','"+BioFile+"','"+city+"','"+postal+"','"+Causeofdeath+"','"+PlaceBurried+"','"+TimeOfBirth+"','EMPTY')");
    is:
    INSERT INTO Person VALUES ('fgfgff','dfdgfd','2/1/1988','EMPTY','Person Is Alive','null','EMPTY','EMPTY','Male','EMPTY','0560','dasfds','EMPTY','EMPTY','EMPTY','EMPTY','null','null','EMPTY','EMPTY')
    and my table gets only text values...
    Any Help Will Be Greately Appreciated
    Thanks
    Nick .s

    You cannot do two thing at the same time with the same statement (while your ResultSet is open you are making an insert), try using a separate Statement that the one you used for the query for the insert. If that doesn't work, make a new connection, that will do it.
    If you were using a separate statement then I'm sorry, I couldn't tell from your code. I'd had a similar problem and that's the way I solved it.

  • XAConnection java.sql.SQLException: XA error: XAResource.XAER_PROTO start()

    I am getting an error when I am coming out of a method. I am not doing any database operations in the code.
    The error I am getting is
    The activity execution failed.\nCaused by: Activity '/AddNewSubMaster#Default-1.0/DeleteRequests' task 'Confirmation_Router' could not execute successfully.\nCaused by: Process execution engine execution error.\nCaused by: An error occurred while accesing the database.\nTechnical detail:SQL statement: 'unknown'\n\nCaused by: Unexpected exception while enlisting XAConnection java.sql.SQLException: XA error: XAResource.XAER_PROTO start() failed on resource 'ALBPM Engine Database': XAER_PROTO : Routine was invoked in an inproper context\noracle.jdbc.xa.OracleXAException\n\tat oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:938)\n\tat oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:244)\n\tat weblogic.jdbc.wrapper.VendorXAResource.start(VendorXAResource.java:50)\n\tat weblogic.jdbc.jta.DataSource.start(DataSource.java:710)\n\tat weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java:1182)\n\tat ...........

    Are you using studio?
    I see an Oracle DB-connection. In studio without configuration you only have one or two derby databases.

  • Java.sql.SQLException: Internal Error: Inconsistent catalog view

    Hi all,
    I have an Oracle procedure defined like:
    pkgoms.p_oms_audit ( in_tab_oms_audit in tab_oms_audit,out_status out number)
    tab_oms_audit is a collection of t_oms_audit
    Here is the structure for the type (with 16 fileds)
    create or replace type t_oms_audit as object(
    Username_ VARCHAR2(101),
    d_Date_ Date,
    <other fields>) ;
    In my Java code I have:
    // conn is the connections to db
    oracle.sql.StructDescriptor structDesc = oracle.sql.StructDescriptor.createDescriptor("TAB_OMS_AUDIT", conn);
    Object[] attributes = new Object[16];
    // Fill out the array: attributes[] in the same structure that t_oms_audit is defined
    // Receive the following error on the next line:
    // java.sql.SQLException: Internal Error: Inconsistent catalog view
    oracle.sql.STRUCT struct = new oracle.sql.STRUCT(structDesc, conn, attributes);
    anOracleCallableStatement.setObject(1, struct, java.sql.Types.STRUCT);
    anOracleCallableStatement.execute();I searched for the above error and the only thing I could find was that its a permission issue; I can execute select, update, insert, delete, ... on db, so not sure if its in fact a permission issue or I am doing sth. else wrong. Any help is greatly appreciated.

    Hi all
    I have the same problem.
    it's not a GRANT problem because in PL/SQL the object works fine.
    JDBC Release problem?
    Any help is greatly appreciated.

  • Java.sql.SQLException: Internal error: Cannot obtain XAConnection

    Hi,
    I am getting this error .
    I have a multi data source which serves two Data source and is using load balancing
    I get the below error:
    Cannot obtain XAConnection weblogic.common.ResourceException: No good connections available.
    The complete error trace is below:
    GWMDBBean [onMessage(Message)] 09_MAY 16:24:13:165->EXCEPTION
    java.sql.SQLException: Internal error: Cannot obtain XAConnection weblogic.common.ResourceException: No good connections available.
         at weblogic.jdbc.common.internal.MultiPool.findPool(MultiPool.java:187)
         at weblogic.jdbc.common.internal.ConnectionPoolManager.reserve(ConnectionPoolManager.java:87)
         at weblogic.jdbc.common.internal.ConnectionPoolManager.reserve(ConnectionPoolManager.java:61)
         at weblogic.jdbc.jta.DataSource.getXAConnectionFromPool(DataSource.java:1514)
         at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1301)
         at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:426)
         at weblogic.jdbc.jta.DataSource.connect(DataSource.java:383)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:346)
         at com.iflex.fcubs.gwutil.db.GWDBUtil.getConnection(GWDBUtil.java:119)
         at com.iflex.fcubs.gwservices.db.GWMsgProcessor.getConnection(GWMsgProcessor.java:95)
         at com.iflex.fcubs.gwservices.db.inbound.GWMsgSchemaProc.processMsg(GWMsgSchemaProc.java:165)
         at com.iflex.fcubs.gw.mdb.GWMDBBean.processMessage(GWMDBBean.java:1051)
         at com.iflex.fcubs.gw.mdb.GWMDBBean.onMessage(GWMDBBean.java:371)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
         at weblogic.ejb.container.internal.NewJMSMessagePoller.processOneMessage(NewJMSMessagePoller.java:245)
         at weblogic.ejb.container.internal.NewJMSMessagePoller.run(NewJMSMessagePoller.java:121)
         at weblogic.ejb.container.internal.NewJMSMessagePoller.timerExpired(NewJMSMessagePoller.java:204)
         at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
         at com.iflex.fcubs.gw.mdb.GWMDBBean.processMessage(GWMDBBean.java:1060)
         at com.iflex.fcubs.gw.mdb.GWMDBBean.onMessage(GWMDBBean.java:371)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
         at weblogic.ejb.container.internal.NewJMSMessagePoller.processOneMessage(NewJMSMessagePoller.java:245)
         at weblogic.ejb.container.internal.NewJMSMessagePoller.run(NewJMSMessagePoller.java:121)
         at weblogic.ejb.container.internal.NewJMSMessagePoller.timerExpired(NewJMSMessagePoller.java:204)
         at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    The Data Sources Configuration are as below:
    <initial-capacity>15</initial-capacity>
    <max-capacity>15</max-capacity>

    This indicates that none of your datasources have been able to successfully connect to the database.
    Please check the connectivity to your database from the datasources.
    Also, you can login into the console and check if the connections are good, by doing test connection on the datasource.
    http://docs.oracle.com/cd/E21764_01/apirefs.1111/e13952/taskhelp/jdbc/jdbc_datasources/TestDataSources.html
    The error you get when you do test connection will help you to understand any connectivity issues.
    Arun

  • Java.sql.SQLException: Internal Error in RowSet

    I�m getting the following error when running a JSF application on websphere 6.1
    I have a class �MainSessionBean� class which extends AbstractSessionBean and in the init() method of my MainSessionBean class, I�m initializing some values like datasource, command like the following
    pgmPriorityMaxValueRowSet.setDataSourceName("java:comp/env/jdbc/I5Dev");
    pgmPriorityMaxValueRowSet.setCommand("SELECT max(AIPRGPRIO) as PRIORITY FROM TFTS341");
    pgmPriorityMaxValueRowSet.setTableName("TFTS341");
    pgmPriorityMaxValueRowSet.setTransactionIsolation(java.sql.Connection.TRANSACTION_NONE);
    pgmPriorityMaxValueRowSet.setReadOnly(true);
    pgmPriorityMaxValueRowSet.setPrintStatements(true);
    The scope of this bean (MainSessionBean) is defined as �session in the managed-beans.xml.
    So when application starts the init() method of my MainSessionBean class should get called right?
    But the init() method is not getting called and the value of the datasource ,command etc are coming as null.
    I�m trying to access the value �pgmPriorityMaxValueRowSet� in the MainSessionBean� with the following code.
    private CachedRowSetDataProvider pgmPriorityMaxValueDataProvider = new CachedRowSetDataProvider();
    pgmPriorityMaxValueDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{MainSessionBean.pgmPriorityMaxValueRowSet}"));
    What can be the issue?
    This application works fine in TOMCAT. But when I�m trying on websphere6.1 I�m getting the following error.
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R java.lang.RuntimeException: java.sql.SQLException: Internal Error in RowSetReader: no connection or command.
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorRow(CachedRowSetDataProvider.java:343)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorIndex(CachedRowSetDataProvider.java:300)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.sun.data.provider.impl.CachedRowSetDataProvider.getRowKeys(CachedRowSetDataProvider.java:245)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.sun.data.provider.impl.CachedRowSetDataProvider.cursorFirst(CachedRowSetDataProvider.java:351)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.capricorn.ai.allProgramsList.prerender(allProgramsList.java)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.prerender(ViewHandlerImpl.java:860)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:295)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:118)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.capricorn.ai.security.SecurityFilter.doFilter(SecurityFilter.java:60)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:701)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:646)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3129)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R Caused by: java.sql.SQLException: Internal Error in RowSetReader: no connection or command.
         at com.sun.sql.rowset.internal.CachedRowSetXReader.readData(CachedRowSetXReader.java:130)
    Is there difference between the way session is handled in TOMCAT and websphere 6.1?

    I�m getting the following error when running a JSF application on websphere 6.1
    I have a class �MainSessionBean� class which extends AbstractSessionBean and in the init() method of my MainSessionBean class, I�m initializing some values like datasource, command like the following
    pgmPriorityMaxValueRowSet.setDataSourceName("java:comp/env/jdbc/I5Dev");
    pgmPriorityMaxValueRowSet.setCommand("SELECT max(AIPRGPRIO) as PRIORITY FROM TFTS341");
    pgmPriorityMaxValueRowSet.setTableName("TFTS341");
    pgmPriorityMaxValueRowSet.setTransactionIsolation(java.sql.Connection.TRANSACTION_NONE);
    pgmPriorityMaxValueRowSet.setReadOnly(true);
    pgmPriorityMaxValueRowSet.setPrintStatements(true);
    The scope of this bean (MainSessionBean) is defined as �session in the managed-beans.xml.
    So when application starts the init() method of my MainSessionBean class should get called right?
    But the init() method is not getting called and the value of the datasource ,command etc are coming as null.
    I�m trying to access the value �pgmPriorityMaxValueRowSet� in the MainSessionBean� with the following code.
    private CachedRowSetDataProvider pgmPriorityMaxValueDataProvider = new CachedRowSetDataProvider();
    pgmPriorityMaxValueDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{MainSessionBean.pgmPriorityMaxValueRowSet}"));
    What can be the issue?
    This application works fine in TOMCAT. But when I�m trying on websphere6.1 I�m getting the following error.
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R java.lang.RuntimeException: java.sql.SQLException: Internal Error in RowSetReader: no connection or command.
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorRow(CachedRowSetDataProvider.java:343)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorIndex(CachedRowSetDataProvider.java:300)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.sun.data.provider.impl.CachedRowSetDataProvider.getRowKeys(CachedRowSetDataProvider.java:245)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.sun.data.provider.impl.CachedRowSetDataProvider.cursorFirst(CachedRowSetDataProvider.java:351)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.capricorn.ai.allProgramsList.prerender(allProgramsList.java)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.prerender(ViewHandlerImpl.java:860)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:295)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:118)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.capricorn.ai.security.SecurityFilter.doFilter(SecurityFilter.java:60)
    [7/22/08 19:07:46:812 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:701)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:646)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3129)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
    [7/22/08 19:07:46:828 EDT] 0000001e SystemErr R Caused by: java.sql.SQLException: Internal Error in RowSetReader: no connection or command.
         at com.sun.sql.rowset.internal.CachedRowSetXReader.readData(CachedRowSetXReader.java:130)
    Is there difference between the way session is handled in TOMCAT and websphere 6.1?

  • Java.sql.SQLException: Internal Error

    hai all,
    Iam using Oracle 9i.I am getting error When i access the Oracle Type through Java.
    my Code is
    con = connectionFactory.getConnection();
    csmt = con.prepareCall("call PMS_PR_area_SIGN_CONTROL ( ?,?,?,?,?)");
    csmt.setInt(1, groupId);
    csmt.setString(2,startDate);
    csmt.setString(3,endDate);
    csmt.registerOutParameter(4,Types.ARRAY, "PMS_TY_TAB_SG_CNTRL");
    csmt.registerOutParameter(5,Types.VARCHAR);
    csmt.execute();
    oracle.sql.ARRAY.oracleARRAY = (oracle.sql.ARRAY.ARRAY)csmt.getArray(4);
    rs = oracleARRAY.getResultSet();
    while (rs.next())
    below line gives error
    oracle.sql.STRUCT STRUCT struct=(oracle.sql.STRUCT.STRUCT)rs.getObject(2);//getting error at this line
    Object[] resultObj = struct.getAttributes();
    Stack Trace is
    java.sql.SQLException: Internal Error
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:169)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:211)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:274)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.initCollElemTypeName(OracleTypeCOLLECTION.java:949)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.getAttributeType(OracleTypeCOLLECTION.java:996)
    at oracle.jdbc.oracore.OracleNamedType.getFullName(OracleNamedType.java:91)
    at oracle.sql.TypeDescriptor.initSQLName(TypeDescriptor.java:128)
    at oracle.sql.TypeDescriptor.getName(TypeDescriptor.java:103)
    at oracle.sql.StructDescriptor.getClass(StructDescriptor.java:415)
    at oracle.sql.STRUCT.toJdbc(STRUCT.java:365)
    at oracle.jdbc.oracore.OracleTypeUPT.unpickle80rec(OracleTypeUPT.java:236)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle80rec_elems(OracleTypeCOLLECTION.java:553)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle80rec(OracleTypeCOLLECTION.java:383)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle80(OracleTypeCOLLECTION.java:329)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.unlinearize(OracleTypeCOLLECTION.java:218)
    at oracle.sql.ArrayDescriptor.toJavaArray(ArrayDescriptor.java:501)
    at oracle.sql.ARRAY.getArray(ARRAY.java:214)
    at it.sella.pms.dao.TimeSheetReportDAO.getSignControlByGroup(TimeSheetReportDAO.java:409)
    I am getting problem in Converting to STRUTS
    Can any one help me.

    This indicates that none of your datasources have been able to successfully connect to the database.
    Please check the connectivity to your database from the datasources.
    Also, you can login into the console and check if the connections are good, by doing test connection on the datasource.
    http://docs.oracle.com/cd/E21764_01/apirefs.1111/e13952/taskhelp/jdbc/jdbc_datasources/TestDataSources.html
    The error you get when you do test connection will help you to understand any connectivity issues.
    Arun

  • Java.sql.SQLException: XA error: XA_RBROLLBACK

    [Context failure: onAcquire[Unexpected exception while enlisting XAConnection java.sql.SQLException: XA error: XA_RBROLLBACK : Rollback was caused by unspecified reason start() failed on resource "XAConnectionPool";: XA_RBROLLBACK : Rollback was caused by unspecified reason
    oracle.jdbc.xa.OracleXAException
         at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:1045)
         at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:249)
         at weblogic.jdbc.wrapper.VendorXAResource.start(VendorXAResource.java:50)
         at weblogic.jdbc.jta.DataSource.start(DataSource.java:629)
         at weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java:1140)
         at weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerResourceInfo.java:1072)
         at weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerResourceInfo.java:240)
         at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:463)
         at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1392)
         at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1334)
         at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:396)
         at weblogic.jdbc.jta.DataSource.connect(DataSource.java:354)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:305)
         at com.bea.wlw.runtime.core.control.DatabaseControlImpl.getConnection(DatabaseControlImpl.jcs:1424)
         at com.bea.wlw.runtime.core.control.DatabaseControlImpl.context_onAcquire(DatabaseControlImpl.jcs:1316)
         at sun.reflect.GeneratedMethodAccessor561.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:371)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396)
         at com.bea.wlw.runtime.core.container.Invocable.fireEvent(Invocable.java:612)
         at com.bea.wlw.runtime.core.context.WlwThreadContext.sendEvent(WlwThreadContext.java:980)
         at com.bea.wlw.runtime.core.context.WlwThreadContext.raiseEvent(WlwThreadContext.java:910)
         at com.bea.wlw.runtime.core.container.Container.raiseContextEvent(Container.java:556)
         at com.bea.wlw.runtime.jcs.container.JcsContainer.onAcquire(JcsContainer.java:561)
         at sun.reflect.GeneratedMethodAccessor528.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:371)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
         at com.bea.wlw.runtime.core.container.Invocable.sendContextEvent(Invocable.java:533)
         at com.bea.wlw.runtime.jcs.container.JcsContainer.sendContextEvent(JcsContainer.java:512)
         at com.bea.wlw.runtime.core.context.WlwThreadContext.acquireResources(WlwThreadContext.java:676)
         at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:315)
         at $Proxy190.getProductDataByQuery(Unknown Source)
         at campaign.controls.ProductMatrixImpl.getCommonProducts(ProductMatrixImpl.jcs:278)
         at sun.reflect.GeneratedMethodAccessor567.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:371)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396)
         at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:381)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Use the Oracle 9.2.0 Jdbc driver.
    http://otn.oracle.com/software/tech/java/sqlj_jdbc/index.html
    thanks,
    Deepak
    "Kavitha K" <[email protected]> wrote:
    >
    Environment : WLS 6.1sp3, Oracle 9.2.0.1.0, SunSolaris (SPARC - 64 bit)
    We are using thin/XA driver for creating the connection pool. However
    we are getting
    java.sql.SQLException: XA error: XAER_PROTO : Routine was invoked in
    an inproper
    context start() failed on resource 'weblogic.jdbc.jta.DataSource' null.
    We used patch 9.2.0.4 - but we could not proceed as we are using Realm
    instance
    without thin/XA driver.

  • Java.sql.SQLException: Internal Error with oracle.sql.ARRAY getArray()

    hi,
    I am having having problems with the getArray() of oracle.sql.ARRAY.
    Here are the details:
    Oracle Database - 9.2.0.6. The JDBC driver used -10.2.0.1 jar.(the latest available).
    I am calling a stored procedure from java, that has out param as a collection (VARRAY) of a user defined type.
    The stored procedure works fine, if the user/schema used to connect,contains actual type, and i am able to extract the user defined object from the oracle.sql.ARRAY, via getArray().
    But if i use a different user to connect which has public synonyms and execute rights to the actual type, i get the following error:
    java.sql.SQLException: Internal Error
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.initCollElemTypeName(OracleTypeCOLLECTION.java:1026)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.getAttributeType(OracleTypeCOLLECTION.java:1056)
         at oracle.jdbc.oracore.OracleNamedType.getFullName(OracleNamedType.java:110)
         at oracle.jdbc.oracore.OracleTypeADT.createStructDescriptor(OracleTypeADT.java:2262)
         at oracle.jdbc.oracore.OracleTypeADT.unpickle81(OracleTypeADT.java:1656)
         at oracle.jdbc.oracore.OracleTypeUPT.unpickle81UPT(OracleTypeUPT.java:466)
         at oracle.jdbc.oracore.OracleTypeUPT.unpickle81rec(OracleTypeUPT.java:416)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81_imgBody_elems(OracleTypeCOLLECTION.java:979)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81_imgBody(OracleTypeCOLLECTION.java:923)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81(OracleTypeCOLLECTION.java:743)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION._unlinearize(OracleTypeCOLLECTION.java:242)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.unlinearize(OracleTypeCOLLECTION.java:208)
         at oracle.sql.ArrayDescriptor.toJavaArray(ArrayDescriptor.java:963)
         at oracle.sql.ARRAY.getArray(ARRAY.java:370)
    The problem is happening because we have 2 different users to connect to the database. one is the dba user, which contains all the types, packages and other one the application user, which we are supposed to use, to connect via java. This application user does have access to types via public synonym, but it gives the above mentioned error.
    Please help :(.
    Regards,
    Gaurav.

    Hi avi,
    Even I am getting the same error inspite of preceding the type name with the same user who has created the type.
    It has displayed the array length.When I am trying to fetch each array, I am getting the error.
    ARRAY simpleArray = (ARRAY) cs.getObject(3);          
    System.out.println("Array is of length " + simpleArray.length());          ********************** The above stmt prints 2 records ******************
    But it goes to exception in the foll stmt..
    Object [] objArrStructArray = null;
    try{
         objArrStructArray = (Object[]) simpleArray.getArray();
    }catch(SQLException e){
         e.printStackTrace();
    Do u know abt this?
    The foll is the error which I am getting.
    java.sql.SQLException: Internal Error
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.initCollElemTypeName(OracleTypeCOLLECTION.java:1026)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.getAttributeType(OracleTypeCOLLECTION.java:1056)
         at oracle.jdbc.oracore.OracleNamedType.getFullName(OracleNamedType.java:110)
         at oracle.jdbc.oracore.OracleTypeADT.createStructDescriptor(OracleTypeADT.java:2262)
         at oracle.jdbc.oracore.OracleTypeADT.unpickle81(OracleTypeADT.java:1656)
         at oracle.jdbc.oracore.OracleTypeUPT.unpickle81UPT(OracleTypeUPT.java:466)
         at oracle.jdbc.oracore.OracleTypeUPT.unpickle81rec(OracleTypeUPT.java:416)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81_imgBody_elems(OracleTypeCOLLECTION.java:979)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81_imgBody(OracleTypeCOLLECTION.java:923)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81(OracleTypeCOLLECTION.java:743)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION._unlinearize(OracleTypeCOLLECTION.java:242)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.unlinearize(OracleTypeCOLLECTION.java:208)
         at oracle.sql.ArrayDescriptor.toJavaArray(ArrayDescriptor.java:963)
         at oracle.sql.ARRAY.getArray(ARRAY.java:353)
         at com.telstra.plo.data.NetworkDAO.findCablesInBuffer(NetworkDAO.java:730)
         at com.telstra.plo.data.NetworkDAOTest.testFindCablesInBuffer(NetworkDAOTest.java:45)
         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:324)
         at junit.framework.TestCase.runTest(TestCase.java:154)
         at junit.framework.TestCase.runBare(TestCase.java:127)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at junit.framework.TestSuite.runTest(TestSuite.java:208)
         at junit.framework.TestSuite.run(TestSuite.java:203)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
    Thanks
    Archana

Maybe you are looking for

  • Problem with pdf output of an internal table

    Hi, My requirement is to get the internal table out put to be displayed through pdf in a table form. Internal table :        Matter       Matter Description - > Table Head      0011            Standard            - > Table contents      0022         

  • Portrait mode

    I have an imac 24" and I was wanting to add a cinema 24' as an extra screen, problem is Id like to mount it in portrait format. I use adobe photoshop and would like to see the results for those portrait orientated images full size. Is there a solutio

  • Problems with sharing an Address Book via .Mac

    I am trying to share an address book for my company. The address book is on a Mac mini, running it's own .mac account, and there are three .mac users trying to access it. There are over 5,500 entries and the address book size is around 12MB. We can a

  • An Oracle RDBMS In-Memory Mirror

    Hi, We're considering BDB to be our cache for many mostly-read database tables. Our requirements is that we don't want to drop those tables because they have many uses in terms of statistical analysis and other data mining needs. Now in order to achi

  • New laptop - iphone not updating

    hi everyone i just got a new macbook, and i am trying to update my iphone from this itunes. the phone is showing up in itunes, and says syncing on both the phone and laptop for about 10 seconds, then its done but it's not updating my iphone. all my p