PosixSocketMuxer: unexpected exception in poll: (22) Invalid argument

I'm running JDeveloper 12.x using WLS 12.1.1.0.0. The server starts fine, but when I launch the WLS console, the web browser appears (deploying WLS console...) then goes blank. The WLS console has repeated this exception:
<Oct 10, 2011 6:03:32 PM MDT> <Error> <Socket> <BEA-000421> <Uncaught Throwable in processSockets
java.io.IOException: unexpected exception in poll: (22) Invalid argument.
java.io.IOException: unexpected exception in poll: (22) Invalid argument
     at weblogic.socket.PosixSocketMuxer.poll(Native Method)
     at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:106)
     at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
     at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
     Truncated. see log file for complete stacktrace
I'm running Mac OS 10.6.7 in 64-bit mode.
There is no additional stack trace information in the server or the default domain log.
Is there any way around this? Can I edit something in config.xml or startWebLogic.sh as a workaround?

Some notes concerning running WebLogic on Max OS are presented, maybe they help - http://blogs.oracle.com/wahmed/entry/installing_weblogics_10_3_1
Looking at the error "java.io.IOException: unexpected exception in poll: (22) Invalid argument at weblogic.socket.PosixSocketMuxer.poll(Native Method)"
which is related to the socket muxer. By default, a native socket muxer is used - could be this is not working on MAC.
What you can try to do is enable the Java based muxer, by editing the config.xml, for example,
<server>
    <name>AdminServer</name>
    <reverse-dns-allowed>false</reverse-dns-allowed>
    <native-io-enabled>false</native-io-enabled>
    <thread-pool-percent-socket-readers>33</thread-pool-percent-socket-readers>
    <ssl>
      <login-timeout-millis>25000</login-timeout-millis>
    </ssl>
    <max-open-sock-count>-1</max-open-sock-count>
    <stuck-thread-max-time>600</stuck-thread-max-time>
    <stuck-thread-timer-interval>60</stuck-thread-timer-interval>
    <gathered-writes-enabled>false</gathered-writes-enabled>
    <scattered-reads-enabled>false</scattered-reads-enabled>
    <listen-address></listen-address>
    <accept-backlog>300</accept-backlog>
    <login-timeout-millis>5000</login-timeout-millis>
    <low-memory-time-interval>3600</low-memory-time-interval>
    <low-memory-sample-size>10</low-memory-sample-size>
    <low-memory-granularity-level>5</low-memory-granularity-level>
    <low-memory-gc-threshold>5</low-memory-gc-threshold>
</server>The native-io-enabled element controls is the native muxer is enabled or not.
The thread-pool-percent-socket-readers element tells how may threads from the execute queue
are used by the muxer; the default is 33%.

Similar Messages

  • Java.sql.SQLException: invalid arguments in call

    Hi
    I am getting the following exception
    java.sql.SQLException: invalid arguments in call
    Please send me a soln.
    Thanks in advance

    I had to switch the classes12.jar file that I was using with Tomcat to the one that came packaged with JDeveloper. Thanks for the quick reponse though.

  • Invalid Argument Exception on Java API's DB Close

    When closing the database via the Java API's close method, I am getting an invalid argument exception... how can this be fixed... subsequent access to the DB causes the JVM to crash??
    ERROR: An exception has occurred: java.lang.IllegalArgumentException: Invalid argument
    java.lang.IllegalArgumentException: Invalid argument
    at com.sleepycat.db.internal.db_javaJNI.DbEnv_close0(Native Method)
    at com.sleepycat.db.internal.DbEnv.close0(DbEnv.java:217)
    at com.sleepycat.db.internal.DbEnv.close(DbEnv.java:77)
    at com.sleepycat.db.Environment.close(Environment.java:39)
    at com.sleepycat.dbxml.XmlManager.closeInternal(XmlManager.java:301)
    at com.sleepycat.dbxml.XmlManager.delete(XmlManager.java:33)
    at com.sleepycat.dbxml.XmlManager.close(XmlManager.java:310)
    at com.iconnect.data.adapters.BerkleyXMLDBImpl.insert(BerkleyXMLDBImpl.java:827)
    at com.iconnect.data.DataManagerFactory.insert(DataManagerFactory.java:182)
    at Xindice2Berkley.main(Xindice2Berkley.java:99)

    I had the same problem. I could fix it by carefully calling the delete() function on all those DBXML Xml..xyz objects that you create when you perform queries etc. It seems that those Java objects have some 'shadow' object in the underlying DLL and by calling delete() you free resources that remain otherwise assigned (maybe somebody with a C++ background who programmed this stuff?). Call delete() before the Java object gets out of scope. For instance:
    results = mgr.query(collection,context,null);
    XmlValue value;
    try {
    while ((value = results.next()) != null) {
    XmlValue c = value.getFirstChild();
    String ref = c.getNodeValue();
    c.delete(); c = null;
    value.delete(); value = null;
    catch (Exception e) {
    finally {
    if (results != null) {
    results.delete();
    results = null;
    Once i did this on all possible dbxml objects i used in my code, the java.lang.IllegalArgumentException: Invalid argument disappeared.
    Message was edited by:
    user562374

  • Socket Exception Invalid argument create on Windows service in process mode

    Please help , Iam getting SocketException Error on connecting with mysql using jdbc also when connect to Activemq jms. Strange thing is this is only
    happening on Windows Server(2008) and when i run the application as Windows service with 'jvm' (in-process) option. Program can connect
    when i run as Java exe in the Windows Service.
    Java JDK version - jdk1.6.0_26.
    Thanks in advance, please ask if any more info needed.
    -- mysql connect--
    Database Driver="com.mysql.jdbc.Driver" Host="jdbc:mysql://localhost:3306/mydb?useUnicode=true&amp;characterEncoding=UTF8" User="admin" Password="password"
    Java.net.SocketException
    MESSAGE: Invalid argument: create
    STACKTRACE:
    java.net.SocketException: Invalid argument: create
    at java.net.Socket.createImpl(Socket.java:397)
    at java.net.Socket.<init>(Socket.java:371)
    at java.net.Socket.<init>(Socket.java:189)
    at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:124)
    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:225)
    at com.mysql.jdbc.Connection.createNewIO(Connection.java:1779)
    at com.mysql.jdbc.Connection.<init>(Connection.java:450)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at myapp.JDBCLoader.JDBCConnect(JDBCLoader.java:129)
    ----on activemq connect ---
    javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616?connectionTimeout=0&keepAlive=true&wireFormat.maxInactivityDuration=0. Reason: java.net.SocketException: Invalid argument: create
    at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)
    at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:286)
    at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:230)
    at org.apache.activemq.ActiveMQConnectionFactory.createQueueConnection(ActiveMQConnectionFactory.java:193)
    at sen.connector.queue.ConnectionFactory.createQueueConnection(ConnectionFactory.java:60)
    at sen.connector.queue.ConnectionFactory.createQueueConnection(ConnectionFactory.java:36)
    at sen.connector.queue.HostConnection.connectToHost(HostConnection.java:147)
    at sen.connector.queue.HostConnection.run(HostConnection.java:127)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: java.net.SocketException: Invalid argument: create
    at java.net.Socket.createImpl(Socket.java:397)
    at java.net.Socket.connect(Socket.java:527)
    at org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:484)
    at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:447)
    at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:53)
    at org.apache.activemq.transport.InactivityMonitor.start(InactivityMonitor.java:127)
    at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
    at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
    at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
    at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
    at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:266)
    Edited by: 891207 on Oct 12, 2011 8:14 PM
    Edited by: 891207 on Oct 12, 2011 8:17 PM

    I'm sure that exception can be caused by the firewall.The exception below is what is caused by a firewall. Anyway the OP said that it worked fine running as a windows service, so that would rule-out a firewall. Also connections to 'localhost' don't go through the firewall.
    Expecting people to know that 'try a different JVM' I already explained that
    my initial diagnosis was incorrectHave a nice day.
    - Mike
    java.sql.SQLException: IO Error: The Network Adapter could not establish the connection
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:512)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
    554)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:232)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:28)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:553)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:154)
    at JDBCTest4.main(JDBCTest4.java:53)
    Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
    at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:388)
    at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:430)
    at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:871)
    at oracle.net.ns.NSProtocol.connect(NSProtocol.java:264)
    at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1598)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:360)
    ... 7 more
    Caused by: java.net.ConnectException: Connection timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)
    at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:146)
    at oracle.net.nt.ConnOption.connect(ConnOption.java:129)
    at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:366)

  • Unexpected exception : java.sql.SQLException

    I tried to execute a query by reading it from the console and passing it as an argument to executeQuery( ) method.
    It is giving the following error message
    Unexpected exception : java.sql.SQLException: [Microsoft][ODBC Microsoft Access
    Driver] Syntax error in FROM clause. , sqlstate = 37000
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in
    FROM clause.
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6031)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188)
    at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:2494)
    at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:314)
    at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:2
    29)
    at assignment1.main(assignment1.java:63)
    Can anyone help me to get rid of this error.
    Thanks,
    Suma

    It's telling you that the query you read in from the console is not valid SQL, in particular that there is an error somewhere in the FROM clause of the query. To solve this problem, only type valid queries into this program. Or if you can't guarantee that -- and you can't -- report the error to the person typing in the invalid queries.

  • Linux performance pack IOException: unexpected revents in poll

    I have the unsupported Linux performance pack running with WLS 5.1 +
    SP5. And because it is unsupported, all questions are to be on this ng.
    When garbage collecting (either via weblogic console or shutting down
    wls), I always get the exception shown below. Note that it always happen
    between the "Before" and "After" figures for the garbage collection:
    Mon Sep 18 10:47:26 GMT+10:00 2000:<I> <GC> GC: Before
    free/total=58111800/67108856 (86%)
    Mon Sep 18 10:47:26 GMT+10:00 2000:<E> <Posix Performance Pack> Failure
    in processSockets()
    java.io.IOException: unexpected revents in poll
    at weblogic.socket.PosixSocketMuxer.poll(Native Method)
    at
    weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java,
    Compiled Code)
    at
    weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java,
    Compiled Code)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
    Compiled Code)
    Mon Sep 18 10:47:26 GMT+10:00 2000:<I> <GC> GC: After
    free/total=63428680/67108856 (94%)
    Mon Sep 18 10:47:26 GMT+10:00 2000:<I> <WebLogicServer> Invoking garbage
    collection
    Regards,
    John Salvo

    Yes, the server does not seem to be affected.
    Here is my config:
    WLS 5.1 SP5
    Blackdown JDK 1.2.2 FCS
    RH 6.0 with the following updated:
    2.2.16 kernel
    glibc 2.1.3
    Rob Woollen wrote:
    >
    Interesting, I suspect that this message is benign. Does the server
    continue to function properly after the message?
    Also, what java vm are you using on Linux? I believe only the native
    threads jvms will work correctly with the performance pack. IBM's 118,
    IBM's 130, sun's 130, and Blackdown's 122 are all native thread
    implementations.
    -- Rob
    [email protected] wrote:
    I have the unsupported Linux performance pack running with WLS 5.1 +
    SP5. And because it is unsupported, all questions are to be on this ng.
    When garbage collecting (either via weblogic console or shutting down
    wls), I always get the exception shown below. Note that it always happen
    between the "Before" and "After" figures for the garbage collection:
    Mon Sep 18 10:47:26 GMT+10:00 2000:<I> <GC> GC: Before
    free/total=58111800/67108856 (86%)
    Mon Sep 18 10:47:26 GMT+10:00 2000:<E> <Posix Performance Pack> Failure
    in processSockets()
    java.io.IOException: unexpected revents in poll
    at weblogic.socket.PosixSocketMuxer.poll(Native Method)
    at
    weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java,
    Compiled Code)
    at
    weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java,
    Compiled Code)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
    Compiled Code)
    Mon Sep 18 10:47:26 GMT+10:00 2000:<I> <GC> GC: After
    free/total=63428680/67108856 (94%)
    Mon Sep 18 10:47:26 GMT+10:00 2000:<I> <WebLogicServer> Invoking garbage
    collection
    Regards,
    John Salvo

  • Invalid arguments in call for an Application Module

    We are writing a web-app which has two packages in our BC4J project, each with an Application Module. One of these app modules contains business components for objects owned by the user ILOGNET and the other for objects owned by the user EAGLE. We are allowing users to logon and connect to the database as themselves by specifying username and password dynamically as attributes of each instance of both application modules.
    The problem we are having is that for a particular JSP sometimes when we deploy, we get an "invalid arguments in call" error. Other times, it doesn't seem to be a problem. The user I am testing with has Oracle roles that have privileges to view all the necessary objects. I'm just not sure why it seems to be temperamental like this. Does anyone have any ideas ? The code for the problem JSP is shown below.
    Thanks for any help :
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
    <link rel="stylesheet" type="text/css" href="../style/style.css">
    <TITLE>
    Commenting Subject Administration Portlet
    </TITLE>
    <script language="JavaScript">
    var g_valid = false;
    function get_validate()
    var el_subject = document.getElementById("id_subject");
    el_subject.value = pro_trim(el_subject.value);
    if (el_subject.value == "")
    alert("Subject is a required field");
    g_valid = false;
    else
    g_valid = true;
    function pro_trim(p_in)
    var s_remaining = p_in;
    while (s_remaining.charAt(s_remaining.length - 1) == ' ')
    s_remaining = s_remaining.substring(0, s_remaining.length - 1);
    while (s_remaining.charAt(0) == ' ')
    s_remaining = s_remaining.substring(1, s_remaining.length);
    return s_remaining;
    </script>
    </HEAD>
    <body class="portlet">
    <jbo:ApplicationModule id="am_subjectAdmin" configname="eagle.EagleModule.EagleModuleLocal" releasemode="Stateful" username="<%=request.getRemoteUser()%>" password='<%=(String)session.getValue("PASSWORD")%>' />
    <jbo:DataSource id="ds_enditems" orderbyclause="eiacodxa" rangesize="4" appid="am_subjectAdmin" viewobject="EIACSELECTView" />
    <table class="portlet" width="100%" cellpadding=10 cellspacing=0>
              <tr class="portlet-title">
              <td>
    Commenting Subject Administration Portlet
              </td>
              </tr>
              <tr class="portlet-body" height="100%">
              <td>
    <table width="100%" align="center">
    <tr>
    <td height="50"></td>
    </tr>
    <tr>
    <td>
    <form name="frm_subject" action="cls_comment_subject" method="post" onSubmit="get_validate();return g_valid;">
    <table>
    <tr>
    <td width="150">End Item :</td>
    <td align="left">
    <jbo:InputSelect datasource="ds_enditems" dataitem="Eiacodxa" displaydatasource="ds_enditems" displaydataitem="Eiacodxa" displayvaluedataitem="Eiacodxa" ></jbo:InputSelect>
    </td>
    <td align="right">Subject Type :</td>
    <td align="left">
    <select name="type">
    <option value="C">Comment
    <option value="R">Response
    </select>
    </td>
    <td width="250"></td>
    </tr>
    <tr>
    <td width="150">Subject Title :</td>
    <td colspan="3">
    <input id="id_subject" type="text" name="subject" size="100" maxlength="255">
    </td>
    </tr>
    <tr>
    <td colspan="4" align="right">
    <input type="Submit" value="Submit Subject">
    <input type="Reset" value=" Clear ">
    </td>
    </tr>
    <tr>
    <td height="250">
    </td>
    </tr>
    </table>
    </form>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </body>
    </HTML><jbo:ReleasePageResources />
    Regards,
    Joe Mellors

    I'd forgotten all about this until now when it just happened again. Seems strange that it works fine a lot of the time. It only seems to happen with one of the two Application Module's in the project.
    Here is the call stack. I'd appreciate any help.
    Thanks,
    Joe
    JBO-30003: The application pool (eagle.EagleModule.EagleModuleLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:193)
         at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:116)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:290)
         at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:208)
         at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:63)
         at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:53)
         at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:615)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:815)
         at oracle.jbo.server.NullDBTransactionImpl.initTxn(NullDBTransactionImpl.java:489)
         at oracle.jbo.server.NullDBTransactionImpl.connect(NullDBTransactionImpl.java:367)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:201)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.connect(ApplicationPoolImpl.java:2304)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1096)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:1669)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:289)
         at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:181)
         at org.apache.jsp.mp_0005fdt$jsp._jspService(mp_0005fdt$jsp.java:83)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:531)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:536)
    ## Detail 0 ##
    java.sql.SQLException: invalid arguments in call
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:185)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:227)
         at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:973)
         at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:197)
         at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:353)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:457)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:332)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:140)
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:162)
         at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:116)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:290)
         at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:208)
         at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:63)
         at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:53)
         at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:615)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:815)
         at oracle.jbo.server.NullDBTransactionImpl.initTxn(NullDBTransactionImpl.java:489)
         at oracle.jbo.server.NullDBTransactionImpl.connect(NullDBTransactionImpl.java:367)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:201)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.connect(ApplicationPoolImpl.java:2304)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1096)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:1669)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:289)
         at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:181)
         at org.apache.jsp.mp_0005fdt$jsp._jspService(mp_0005fdt$jsp.java:83)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:531)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:536)

  • Oracle.jms.AQjmsException: invalid arguments in call

    Hi
    Has anyone seen this error before?
    Environment Configuration:
    APP SERVER 9.0.4 (OUT 0F BOX CONFIG)
    JDK 1.4
    RED HAT ENTERPRISE SERVER 3.0
    COMPAC DL380
    ON VM SOFTWARE
    DB 9.2.0.4
    HP-UX 11i
    SUPERDOME
    Error logs:
    [18-06-04 10:27:20] [AJPRequestHandler-ApplicationServerThread-137] - [bcc.sde.common.jms.pool.QueueConnectionPool]
    [getQueueConnection] :Using pooled queue connection for factory:
    java:comp/resource/SDEJMS/QueueConnectionFactories/SDEQUEUETAB
    [18-06-04 10:27:20] [AJPRequestHandler-ApplicationServerThread-137] - [bcc.sde.common.jms.pool.QueueSessionPool]
    [createQueueSession] :Failed to create queue session: oracle.jms.AQjmsException: invalid arguments in call
    [18-06-04 10:27:20] [AJPRequestHandler-ApplicationServerThread-137] - [bcc.sde.common.jms.BytesMessageWriter]
    [writeBytesMessage] :Failed to write message onto queue: java:comp/resource/SDEJMS/Queues/SDEDEV_LOGQUEUE using queue
    factory: java:comp/resource/SDEJMS/QueueConnectionFactories/SDEQUEUETAB - bcc.sde.common.jms.pool.JMSPoolException:
    QueueSessionPool.createQueueSession() failed to create queue session - oracle.jms.AQjmsException: invalid arguments in call
    [18-06-04 10:27:20] [AJPRequestHandler-ApplicationServerThread-137] - [bcc.sde.sil.common.log.silInteractionLogger] [log]
    :silInteractionLogger.log() Exception writing ServiceExecutionRecord to JMS queue: bcc.sde.common.exception.SDEException:
    Failed to write message onto queue: java:comp/resource/SDEJMS/Queues/SDEDEV_LOGQUEUE using queue factory:
    java:comp/resource/SDEJMS/QueueConnectionFactories/SDEQUEUETAB - bcc.sde.common.jms.pool.JMSPoolException:
    QueueSessionPool.createQueueSession() failed to create queue session - oracle.jms.AQjmsException: invalid arguments in
    call: QueueSessionPool.createQueueSession() failed to create queue session - oracle.jms.AQjmsException: invalid arguments
    in call;
    ---> nested: bcc.sde.common.jms.pool.JMSPoolException: QueueSessionPool.createQueueSession() failed to create queue
    session - oracle.jms.AQjmsException: invalid arguments in call
    [18-06-04 10:27:20] [AJPRequestHandler-ApplicationServerThread-137] - [bcc.sde.sil.bids.api.sql.BidsSQLInterface]
    [logInteractionRecord] :Failed to log interaction record: bcc.sde.common.exception.SDEException: silInteractionLogger.log()
    Exception writing ServiceExecutionRecord to JMS queue: bcc.sde.common.exception.SDEException: Failed to write message onto
    queue: java:comp/resource/SDEJMS/Queues/SDEDEV_LOGQUEUE using queue factory:
    java:comp/resource/SDEJMS/QueueConnectionFactories/SDEQUEUETAB - bcc.sde.common.jms.pool.JMSPoolException:
    QueueSessionPool.createQueueSession() failed to create queue session - oracle.jms.AQjmsException: invalid arguments in
    call: QueueSessionPool.createQueueSession() failed to create queue session - oracle.jms.AQjmsException: invalid arguments
    in call;
    ---> nested: bcc.sde.common.jms.pool.JMSPoolException: QueueSessionPool.createQueueSession() failed to create queue
    session - oracle.jms.AQjmsException: invalid arguments in call
    Database error with same error message:
    ORA-17433 - invalid arguments in call
    http://www.doc.gold.ac.uk/oracle/doc/java.817/a83724/ermesap3.htm
    Code causing problem:
    queueConnection = queueConnectionPool.getQueueConnection(queueConnectionFactoryName, runningExternal);
    queueSession = queueConnection.createQueueSession(TRANSACTIONAL, AUTO_ACK_MODE);

    I am facing the same problem. Have you figured out what the cause was? Thanks,

  • Invalid argument(s) in call: SetRowBufferAt

    The following exception is produced because resultSet.next() was
    called on an empty resultSet why ??
    Driver = Oracle 8.1.7 thin (current version 8/30/01) for NT.
    Thanks
    try
    m_resultSet = m_statement.executeQuery("SELECT
    CODE_DECODE.* FROM CODE_DECODE WHERE 0 = 1");
    // NOTE If this statement is not called the code works
    fine.
    while( m_resultSet.next())
    // Does nothing as the resultset is empty
    // NOTE If the above statement is not called the code
    works fine
    // Insert a row
    m_resultSet.moveToInsertRow();
    m_resultSet.updateObject
    ("CODE_DECODE.CODE_DECODE_ID",new Double(100000001d));
    // Next statement causes the exception
    m_resultSet.insertRow();
    catch(Exception e)
    e.printStackTrace();
    gives the following stack trace
    java.sql.SQLException: Invalid argument(s) in call:
    setRowBufferAt
    at oracle.jdbc.dbaccess.DBError.throwSqlException
    (DBError.java:168)
    at oracle.jdbc.dbaccess.DBError.throwSqlException
    (DBError.java:210)
    at oracle.jdbc.driver.UpdatableResultSet.setRowBufferAt
    (UpdatableResultSet.java:1803)
    at oracle.jdbc.driver.UpdatableResultSet.setRowBufferAt
    (UpdatableResultSet.java:1785)
    at oracle.jdbc.driver.UpdatableResultSet.updateObject
    (UpdatableResultSet.java:1574)
    at oracle.jdbc.driver.OracleResultSet.updateObject
    (OracleResultSet.java:2787)

    Hi, same problem with insert.
    A path exist for Oracle database jdbc support.
    see this link for doc.
    http://jpsunf01.oracle.co.jp/PATCH/PSR/IBM_RS6000/90PATCHSETS/90130_64/README.html#JDBC
    No way to find the patch file !!!!!
    See you ...

  • Insert error SQLException: Invalid argument(s) in call:

    The following exception is produced because resultSet.next() was
    called on an empty resultSet why ??
    Driver = Oracle 8.1.7 thin (current version 8/30/01) for NT.
    Thanks
    try
         m_resultSet = m_statement.executeQuery("SELECT
    CODE_DECODE.* FROM CODE_DECODE WHERE 0 = 1");
         // NOTE If this statement is not called the code works
    fine.
         while( m_resultSet.next())
              // Does nothing as the resultset is empty
         // NOTE If the above statement is not called the code
    works fine
         // Insert a row
         m_resultSet.moveToInsertRow();
         m_resultSet.updateObject
    ("CODE_DECODE.CODE_DECODE_ID",new Double(100000001d));
         // Next statement causes the exception
         m_resultSet.insertRow();
    catch(Exception e)
    e.printStackTrace();
    gives the following stack trace
    java.sql.SQLException: Invalid argument(s) in call:
    setRowBufferAt
         at oracle.jdbc.dbaccess.DBError.throwSqlException
    (DBError.java:168)
         at oracle.jdbc.dbaccess.DBError.throwSqlException
    (DBError.java:210)
         at oracle.jdbc.driver.UpdatableResultSet.setRowBufferAt
    (UpdatableResultSet.java:1803)
         at oracle.jdbc.driver.UpdatableResultSet.setRowBufferAt
    (UpdatableResultSet.java:1785)
         at oracle.jdbc.driver.UpdatableResultSet.updateObject
    (UpdatableResultSet.java:1574)
         at oracle.jdbc.driver.OracleResultSet.updateObject
    (OracleResultSet.java:2787)
         at com.aceva.tool.toolbox.dbtool.JDBCAdapter.insertRow
    (JDBCAdapter.java:440)
         at com.aceva.tool.toolbox.dbtool.DBToolPanel.doInsert
    (DBToolPanel.java:289)
         at
    com.aceva.tool.toolbox.dbtool.DBToolPanel$4.actionPerformed
    (DBToolPanel.java:102)
         at javax.swing.AbstractButton.fireActionPerformed
    (AbstractButton.java:1450)
         at
    javax.swing.AbstractButton$ForwardActionEvents.actionPerformed
    (AbstractButton.java:1504)
         at javax.swing.DefaultButtonModel.fireActionPerformed
    (DefaultButtonModel.java:378)
         at javax.swing.DefaultButtonModel.setPressed
    (DefaultButtonModel.java:250)
         at
    javax.swing.plaf.basic.BasicButtonListener.mouseReleased
    (BasicButtonListener.java:216)
         at java.awt.Component.processMouseEvent
    (Component.java:3717)
         at java.awt.Component.processEvent(Component.java:3546)
         at java.awt.Container.processEvent(Container.java:1164)
         at java.awt.Component.dispatchEventImpl
    (Component.java:2595)
         at java.awt.Container.dispatchEventImpl
    (Container.java:1213)
         at java.awt.Component.dispatchEvent(Component.java:2499)
         at java.awt.LightweightDispatcher.retargetMouseEvent
    (Container.java:2451)
         at java.awt.LightweightDispatcher.processMouseEvent
    (Container.java:2216)
         at java.awt.LightweightDispatcher.dispatchEvent
    (Container.java:2125)
         at java.awt.Container.dispatchEventImpl
    (Container.java:1200)
         at java.awt.Window.dispatchEventImpl(Window.java:912)
         at java.awt.Component.dispatchEvent(Component.java:2499)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:319)
         at java.awt.EventDispatchThread.pumpOneEvent
    (EventDispatchThread.java:103)
         at java.awt.EventDispatchThread.pumpEvents
    (EventDispatchThread.java:93)
         at java.awt.EventDispatchThread.run
    (EventDispatchThread.java:84)

    The stack trace was:
    06/09/06 09:02:52 java.sql.SQLException: Invalid argument(s) in call
    06/09/06 09:02:52 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBErro
    r.java:189)
    06/09/06 09:02:52 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBErro
    r.java:231)
    06/09/06 09:02:52 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBErro
    r.java:294)
    06/09/06 09:02:52 at oracle.sql.CLOB.createTemporary(CLOB.java:527)
    After that I change a code little bit:
    clob = oracle.sql.CLOB.createTemporary(c, true, 1);
    Ant it pass through, but it fails with CastException. Then I upgraded JDBC driver, because I'm using Java 1.4
    So, now I have this kind of error:
    at oracle.jdbc.driver.OracleConnection.physicalConnectionWithin(OracleConnection.java:5174)
         at oracle.sql.CLOB.createTemporary(CLOB.java:1009)
         at oracle.sql.CLOB.createTemporary(CLOB.java:956)
         at my.pack.db.impl.ImportDatabaseDAO_JDBC.execute(ImportDatabaseDAO_JDBC.java:68)
    It fails when I'm creating temporaryClob:
    clob = oracle.sql.CLOB.createTemporary(c, true, 1);
    The problem occurs, because my connection driver is:
    com.evermind.sql.OrclCMTConnection and it can't be converted into oracle.jdbc.driver.OracleConnection.
    It is datasource config:
    <data-source location="jdbc/oooDS"
         class="com.evermind.sql.DriverManagerDataSource"
         password="iate"
         xa-location="jdbc/xa/oooXADS"
         connection-driver="oracle.jdbc.driver.OracleDriver"
         username="ooo"
         url="jdbc:oracle:thin:@192.168.45.14:1526:ooo"
         inactivity-timeout="30"
         name="oooDS"
         ejb-location="jdbc/oooDS"
         pooled-location="jdbc/oooPoolDS"
         min-connections="3"
         max-connections="200"/>
    Could you advise, how can I convert my Connection class?

  • Invalid arguments in call

    Good Day,
    i am using oracle driver to test a small application and i am getting these Error:
    oracle.jdbc.driver.OracleDriver od = new oracle.jdbc.driver.OracleDriver();
    properties p = new properties();
    p.load("new FileInputStream("c:\\filename.properties");
    connection con = od.connect("jdbc:oracle:thin:@localhost:1521:sid",p);
    Statement st = con.createStatement();
    ResultSet rs = st.executeQuery("select user from dual");
    while(rs.next()) {
    System.out.println(rs);
    rs.close();
    Error Message is showing at od.connect("url",p);
    java.sql.SQLException: invalid arguments in call
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1160)
    at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:183)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
    Exception in thread "main"

    Hi user,
    try to do that:
    import java.sql.CallableStatement;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public void method() {
    try {
         Connection connection;
    String driver = "oracle.jdbc.driver.OracleDriver";
    String url = "jdbc:oracle:thin:@localhost:1521:Sid";
         Class.forName(driver).newInstance();
         connection = DriverManager.getConnection(url, your_user, your_password);
         PreparedStatement st = connection.prepareStatement("select user from dual");
         ResultSet rs = st.executeQuery();
         while(rs.next()) {
              System.out.println(rs);
         rs.close();
    } catch (ClassNotFoundException e) {
    } catch (IllegalAccessException e) {
    } catch (InstantiationException e) {
    } catch (SQLException e) {
    }

  • ERROR Internal Error: Received unexpected exception processing connection

    Hi,
    I am observing A INTERNAL Error within the JMS Open MQ server with a connection failing:
    Thanks.!
    Java Runtime: 1.6.0_01 Sun Microsystems Inc. /usr/jdk/instances/jdk1.6.0/jre
    [08/Nov/2007:12:07:49 MST] IMQ_HOME=/zpool1/OpenMQ4-1/mq
    [08/Nov/2007:12:07:49 MST] IMQ_VARHOME=/zpool1/OpenMQ4-1/mq/var
    [08/Nov/2007:12:07:49 MST] SunOS 5.10 x86 vdev4th (4 cpu) root
    [08/Nov/2007:12:07:49 MST] Max file descriptors: 65536 (65536)
    [08/Nov/2007:12:07:49 MST] Java Heap Size: max=191168k, current=34304k
    [08/Nov/2007:12:07:49 MST] Arguments: -loglevel DEBUG
    [08/Nov/2007:12:07:50 MST] [B1060]: Loading persistent data...
    [08/Nov/2007:12:07:50 MST] Using built-in file-based persistent store: /zpool1/OpenMQ4-1/mq/var/instances/imqbroker/
    [08/Nov/2007:12:07:50 MST] [B1039]: Broker "imqbroker@vdev4th:7676" ready.
    [08/Nov/2007:19:19:35 MST] ERROR Internal Error: Received unexpected exception processing connection closing connection:
    java.lang.NullPointerException
         at com.sun.messaging.jmq.util.lists.NFLPriorityFifoSet.internalRemove(NFLPriorityFifoSet.java:1069)
         at com.sun.messaging.jmq.util.lists.NFLPriorityFifoSet$FilterSet.removeNext(NFLPriorityFifoSet.java:583)
         at com.sun.messaging.jmq.jmsserver.core.Consumer.getMoreMessages(Consumer.java:556)
         at com.sun.messaging.jmq.jmsserver.core.Consumer.getAndFillNextPacket(Consumer.java:798)
         at com.sun.messaging.jmq.jmsserver.core.Session.fillNextPacket(Session.java:675)
         at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.fillNextPacket(IMQIPConnection.java:2039)
         at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.writeData(IMQIPConnection.java:1678)
         at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.process(IMQIPConnection.java:650)
         at com.sun.messaging.jmq.jmsserver.service.imq.OperationRunnable.process(OperationRunnable.java:170)
         at com.sun.messaging.jmq.jmsserver.util.pool.BasicRunnable.run(BasicRunnable.java:493)
         at java.lang.Thread.run(Thread.java:619)

    This this from a new install or on that been running for awhile?

  • I am getting an error [Microsoft][ODBC Driver Manager] invalid argument val

    My code is :
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.Hashtable.*;
    import java.sql.*;
    public class LoginServlet extends HttpServlet
         Connection con;
         PreparedStatement ps;
         HttpSession session;
    public void init(ServletConfig sc) throws ServletException
    try
         super.init(sc);
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         }catch(ClassNotFoundException e)
    {System.out.println("SQLException"+e.getMessage());}
    try
         con=DriverManager.getConnection("jdbc:odbc:aaa","scott","tiger");
    }catch(SQLException e)
         System.out.println("SQLException caught" +e.getMessage());
    public void service(HttpServletRequest req, HttpServletResponse res)
         res.setContentType("text/html");
         try
         String ulogin=req.getParameter("login").trim();
         String upass=req.getParameter("pass").trim();
         ps=con.prepareStatement("select pass from Userdetails where login='"+ulogin+"'");
         session=req.getSession(true);
         session.putValue("n1",ulogin);
         ps.setString(1,upass);
         ResultSet rs=ps.executeQuery();
         if(rs.next())
              if(upass.equals(rs.getString(1)))
              res.sendRedirect("http://localhost:8080/Welcome.html");
              session.putValue("login",ulogin);
              else
              PrintWriter pw=res.getWriter();
              pw.println("Sorry your password is incorrect,Reenter your password
    <html><center>");
              pw.println(" <form input type=password name=pass>");
              pw.println("<input type=hidden name=login value="+ulogin+">");
              pw.println("<input type=submit value=submit>");
              pw.println("</form></center></html>");
         else
         System.out.println("your are not a registered user,please register");
         res.sendRedirect("http://localhost:8080/Register.html");
         rs.close();
         catch(Exception e)
              System.out.println(e);
    When i compile, it is well but when i run through displaying my html and passing the data to test,then i am getting an error [Microsoft][ODBC Driver Manager]invalid argument value,
    I was set all my DSN correctly,the same pieve of code worked in another program but now i am getting an error.can any one clear this.
    Thanks in advance

    You have created a PreparedStatement with zero parameters in this statement:
    ps=con.prepareStatement("select pass from Userdetails where login='"+ulogin+"'");so "ps.setString(1, ulogin)" fails because there is no place to put parameter 1. Try this instead:
    ps=con.prepareStatement("select pass from Userdetails where login=?");and your program will work better. Better still, create the PreparedStatement in your init() method, there's no reason for creating it more than once.

  • Crystal reports 10 - Invalid Argument Provided Error obtained

    Post Author: p8***8
    CA Forum: General
    I have a report that takes a USERID value(int) as a parameter(user supplied).  This report works for all parameter values except one(so I know this has nothing to do with stored procedure permissions).  If I run the associated stored procedure independently for this parameter value, it returns the complete result set.  Also, the data obtained from the database tables is validated, so I doubt that the report encountered some invalid value.  The Stored Procedure that the report uses does not call any other procedure.  I don't understand what invalid argument the report comes across causing it to throw this error.  The only thing I can think of is the enormous result set that is returned for this particular parameter(over 8000 records).  Is there a limit to the report size in Crystal Reports version 10?

    can you run it locally outside the viewer?

  • Invalid Argument Error

    I am getting above error on load of the JNLP file. When I access the URL for the JNLP, the JNLP file downloads (I can see the content using Ethereal) and WebStart does launch. So, I assume MIME type is OK and the download servlet is working, at least enough to serve up the JNLP.
    What makes this more curious is that it is a working configuration in Jetty. I can take the exact same application - drop it in Jetty, it works; drop the SAME file in Tomcat 4.1.27, it doesn't work.
    Anyone seen this?
    WS 1.2
    J2SDK 1.4.1_01 on both ends.
    Tomcat 4.1.27
    The error and log information is as follows.
    Error dialog/General Tab:
    An error occurred while launching/running the application.
    Category: Invalid Argument error
    Could not load file/URL specified: C:\Documents and Settings\mjf860\Local Settings\Temporary Internet Files\Content.IE5\2DQR21KT\cwms[1].jnlp
    The JNLP file does in fact NOT exist (the directory does, no JNLP files are in in it), despite the fact that I saw it go over the network to my box.
    The JNLPServetLog stuff:
    JnlpDownloadServlet(3): Request: /cwms/app/cwms.jnlp
    JnlpDownloadServlet(3): User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; H010818)
    JnlpDownloadServlet(4): DownloadRequest[path=/app/cwms.jnlp isPlatformRequest=false]
    JnlpDownloadServlet(4): Basic Protocol lookup
    JnlpDownloadServlet(4): JnlpResource: JnlpResource[WAR Path: /app/cwms.jnlp lastModified=Tue Sep 09 17:14:51 EDT 2003]]
    JnlpDownloadServlet(3): Resource returned: /app/cwms.jnlp
    JnlpDownloadServlet(4): lastModified: 1063142091684 Tue Sep 09 17:14:51 EDT 2003
    TIA,
    Mike

    I just found out by searching tomcat list that in your
    dynamic jnlp file you can set the cache-control to
    public using
    response.setHeader("Cache-Control", "public")
    This will allow Internet Explorer to cache the jnlp
    file and you won't get the exception.
    This way you can keep your jnlp file under a security
    constraint.I wasn't sure what was meant by "dynamic JNLP" or how to follow the above procedure, so I created a servlet (a JSP, actually) to implement the above workaround. It will serve JNLP files from a password-protected directory in a way that works for the Tomcat-to-Internet Explorer combination. It's posted below in case it can help anyone else.
    There are still a few things to watch out for: (1) the protection (the <auth-method> tag in your web.xml file) for the JNLP file must be BASIC--FORM will not work. (2) you will have to enter the password twice--once for the browse and again for Web Start.
    The servlet itself is enclosed below. If you have questions about it, please post them to this forum.
    Bob Pollack
    Gestalt, LLC
    <%@ page import="java.io.*" %>
    <%
    // This is a fetch program to retrieve a JNLP file from a
    // password-protected directory. Java Webstart has problems
    // doing this directly, so this program must be used instead.
    // That is, instead of a link that points to "xxx.jnlp", make
    // a link that points to "fetchJNLP.jsp?name=xxx.jnlp".
    // Even with this program, the only kind of authentication
    // that Webstart understands is basic authentication.
    // You cannot use form-based authentication and Webstart together.
    String jnlpName = request.getParameter ("name");
    String myPath = request.getServletPath ();
    String myURL = request.getRequestURL ().toString ();
    String dirPath = null;
    String dirURL = null;
    String jnlpPath = null;
    String jnlpRealPath = null;
    boolean abort = false;
    // Screen the name parameter to make sure that hackers
    // cannot use this program to fetch any old thing
    // The current criteria are that the name must be a JNLP file
    // in this directory
    if (jnlpName == null)
    abort = true;
    else if (! jnlpName.endsWith (".jnlp"))
    abort = true;
    else if (jnlpName.indexOf ("/") >= 0)
    abort = true;
    if (abort)
    response.sendError (response.SC_FORBIDDEN);
    return;
    int pos = myPath.lastIndexOf ("/");
    if (pos < 0)
    pos = myPath.length ();
    dirPath = myPath.substring (0, pos);
    pos = myURL.lastIndexOf ("/");
    if (pos < 0)
    pos = myURL.length ();
    dirURL = myURL.substring (0, pos);
    if (jnlpName.startsWith ("/"))
    jnlpPath = jnlpName;
    else
    jnlpPath = dirPath + "/" + jnlpName;
    out.clear ();
    response.setContentType ("application/x-java-jnlp-file");
    // The following line is the reason this servlet exists.
    // If a JNLP file is in a protected directory, Tomcat will
    // send it out with a Cache-Control header of "no-cache",
    // which keeps the client end of JNLP from working.
    // See Java Developer Forum,
    // "Java Web Start & JNLP: Invalid Argument Error",
    // at http://forum.java.sun.com/spider.jsp?f=38&t=442995
    // for a rambling discussion of this issue.
    response.setHeader ("Cache-Control", "public");
    jnlpRealPath = application.getRealPath (jnlpPath);
    File jnlpFile = new File (jnlpRealPath);
    FileReader fr = new FileReader (jnlpFile);
    BufferedReader br = new BufferedReader (fr);
    while (true)
    String line = br.readLine ();
    if (line == null)
    break;
    // As long as we're doing this anyway, we'll add a service
    // that substitutes the full URL for this directory into
    // the codebase of the outgoing JNLP file. This will make it
    // possible for the files to be moved from machine to machine
    // without changes.
    // For example, instead of saying
    // codebase="http://myhost:8080/home/protected"
    // the JNLP file can say
    // codebase="$BASE"
    String base = "$BASE";
    pos = line.indexOf (base);
    if (pos < 0)
    out.println (line);
    else
    out.print (line.substring (0, pos));
    out.print (dirURL);
    out.print (line.substring (pos + base.length ()));
    out.println ();
    out.flush ();
    out.close ();
    %>

Maybe you are looking for

  • Pages won't open Pages document created last week

    Having created a pages doc last week in Pages 09, OSX 10.7.5, I find that this week I can see it in Finder, see a thumbnail, open it with Quick Look but cannot open it in Pages for some reason ?

  • IMac + Canon pixma mp 500

    Hi, I cannot get my IMac to connect to my Canon Pixma MP500. I went to the canon site and it says: There is no driver for the OS Version you selected. The driver may be included in your OS or you may not need a driver. And the options my Mac provides

  • Lightroom does not create a background layer when editing in Photoshop - on Mac.

    Thought this was a Photoshop problem.  When I select a portion of an image in Photoshop (which has come from Lightroom) and press Delete, it no longer brings up the Fill dialog; it just deletes the pixels. After some discussion on the Photoshop forum

  • How do I maintain a single iTunes library for two separate iMac user accounts?

    How do I maintain a single iTunes library for two separate iMac user accounts?...without having to manually do something every download?

  • Strange JFRAME behaviour under Jdk 1.5

    I have the following extracted code : import java.util.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.*; import java.awt.geom.*; public class DrawPie extends JFrame{      private HashMap ColourMap=new H