Problem using jsf  connection db

i have this problem:
I have defined a connection as a variable in a jsfbean with scope session scope.
Clicking very quicly on a field on the form I get the message: sql result set closed and my connection variable is null.
It seems a thread problem ; only one browser is open and I click inside the only form that I have.
How may I resolve the problem ?
I use Myfaces 1.1.5 and Tomahawk 1.1.5

i have this problem:
I have defined a connection as a variable in a jsfbean with scope session scope.
Clicking very quicly on a field on the form I get the message: sql result set closed and my connection variable is null.
It seems a thread problem ; only one browser is open and I click inside the only form that I have.
How may I resolve the problem ?
I use Myfaces 1.1.5 and Tomahawk 1.1.5

Similar Messages

  • Problem using HP Connect with my HP Photosmart C410

    I am trying to use HP Connect apps with my HP Photosmart C410 printer. I can add the device, but none of the apps seem to work with my printer It'a not THAT old. Any suggestions?
    This question was solved.
    View Solution.

    HI beachgrl,
    Welcome back to the HP Support forums.  I understand that you would like to learn what printables are available for your Photosmart C410 printer in HP Connected.
    Once you are signed into your HP Connected account, if you type the link listed below into the address bar on your browser it should take you to a page that shows the printables you already have on your printer. Below the "Recommended Printables" section there is a search function.  If you type in your printer model it will list the printables available for the Photosmart C410a. The results will be grouped by category.  I have included a screen shot.
    The address you need to type into your browser address bar is  https://printables.hpconnected.com
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Problem using JDBC connection

    I'am using 9iAS R2 and I have a entity bean using a DataSource with out any problem, but I also have a client program using the same datasource. I can lookup the datasource without any problems, I get a connection, but when I try to createStatement() on the connection I get an Exception see below.
    I hope some one can help me!
    Regards
    Morten
    java.lang.NullPointerException
         at com.evermind.sql.OrionPooledDataSource.addUsedConnection(OrionPooledDataSource.java:539)
         at com.evermind.sql.OrionPooledDataSource.getPooledInstance(OrionPooledDataSource.java:290)
         at com.evermind.sql.OrionCMTConnection.setConnection(OrionCMTConnection.java:189)
         at com.evermind.sql.OrionCMTConnection.intercept(OrionCMTConnection.java:127)
         at com.evermind.sql.FilterConnection.getMetaData(FilterConnection.java:75)
         at com.evermind.sql.FilterConnection.getMetaData(FilterConnection.java:76)
         at dk.modulus.regelmaskine.RegelParamDAO.getRegelParametre(RegelParamDAO.java:33)

    Hi Morten,
    Have you tried running OC4J in "debug" mode? This web page has more details:
    http://kb.atlassian.com/content/atlassian/howto/orionproperties.jsp
    You may also like to try "P6Spy"
    http://www.theserverside.com/home/thread.jsp?thread_id=8337
    And here is a web page from Oracle's "Technet" site regarding debugging
    OC4J:
    http://otn.oracle.com/tech/java/oc4j/htdocs/oc4j-logging-debugging-technote.html
    Hope this helps you.
    Good Luck,
    Avi.

  • Problem using JSF + ajax4jsf:poll component

    I have the following problem.
    I have JSF page and ajax4jsf:poll component on it for polling the server.
    There are also couple links and buttons on the page,
    At first, when polling is not enabled the links and buttons work fine.
    But after enabling polling and its' work, links and buttons stop working and the page is only reloaded when I click on them. Accoring to the logs action methods, binded to that links and buttons, are not invoked at all. And log shows that page is rerendered using ajax. But not pure JSF which we use in general case.
    Does anybody have any ideas, why this can be? I looked through the internet and I could not find similar problems.
    I will appreciate any ideas. Thanks.

    I have never used it, but did you try the example as given at the related developer guide? Please note the a4j:region and the placement at its own form instead of in another/shared form.
    [http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/poll.html]

  • Timeout problem using HTTP connection in MIDP

    Hi,
    I have one thread that does a HTTP connection (StreamConnection)with the server. In some cases, the connection is established to the server and request is sent to server, then connection hangs. I cannot check the response code since the response doesn't return back. In this case, my app also hangs on the progress bar screen. Is there any way to handle timeouts in these circumstances? How do I know if the response object doesn't return back?
    Has anyone faced this problem before? Any help is appreciated.
    Thanks in advance.

    Hi,
    i am getting the same problem. my application hangs when i close the connection when the request has been sent to the server and before the data starts downloading on the client. i mean if i cancel the connection with in that time span it hangs otherwise if i close the connection while the data is being downloaded from the sever then it works fine.
    if you have sloved this problem before please explain how to slove it.
    thanks,
    Omar Rehman

  • Problems using CONNECT BY

    Hi. I'm having problems using the CONNECT BY feature in oracle 9.
    I need to check which codes are causing loop between parent and child. In 10G I could use CONNECT_BY_ISCYCLE, but it is not available in 9i; so what I did was the following (if there's a better solution please let me know).
    parent_id | child_id
    111 | 777
    777 | 111
    this should cause a loop and I should be able to tell the user that code 111 or 777 (either) is causing the problem.
    procedure check_for_loops(op_class_code OUT MY_TABLE.PARENT_ID%type)
    IS
    class_parent_id2 MY_TABLE.PARENT_ID%type;
    BEGIN
    for c1 in ( SELECT distinct parent_id FROM MY_TABLE )
    ->loop
    ->->SELECT parent_id
    ->->INTO class_parent_id2
    ->->FROM MY_TABLE
    ->->WHERE parent_id = c1.parent_id
    ->->CONNECT BY PRIOR parent_id = child_id
    ->->start with parent_id = c1.parent_id;
    ->end loop;
    ->exception
    ->when NO_DATA_FOUND then
    ->return;
    ->when others then
    ->if SQLCODE = -1436 THEN
    ->->for c2 in ( select distinct parent_id from MY_TABLE
    ->->where parent_id = c1.parent_id )
    ->->loop
    ->->->->op_class_code := c2.parent_id;
    ->->end loop;
    ->->else
    ->->->->raise;
    ->->end if;
    end check_for_loops;
    If there's a loop (the exception code is -1436), then I get the code and return it to the client.
    However, in some situations the exception thrown is the following:
    java.sql.SQLException: ORA-01422: exact fetch returns more than requested number of rows
    is the connect by used correctly? Is there any other better way to retrieve the offending code that is causing the circular loop?
    thanks

    The code is working ok at the moment. I have a similar problem. I have two tables:
    - stage_table (parent_id, child_id)
    - active_table (parent_id, child_id)
    (they both have the same structure)
    stage_table is populated with data that will eventually be stored in active_table, once the validations are succesful.
    What I'm trying to do is loop thru the stage table,and for every row I want to call the function to see if that row causes loop. my function is:
    ->FUNCTION check_for_loops_stage_table()
    ->RETURN EMPARRAY
    ->AS
    ->->l_codes EmpArray := EmpArray();
    ->->CURSOR c1 IS
    ->->->->select distinct parent_id
    ->->->->from stage_table
    ->->->->where my_iscycle( parent_id ) = 1;
    ->->BEGIN
    ->->->for rec in c1 LOOP
    ->->->->l_codes.extend;
    ->->->->l_codes(l_codes.last) := rec.parent_id;
    ->->->end loop;
    ->->RETURN l_codes;
    ->END check_for_loops_stage_table;
    the cursor c1 is basically
    (am I using EMPARRAY correctly?). As you can see, I want to put all the codes that are failing into an EMPARRAY, so I can later on retrieve that emparray from java and deal with it.
    the my_iscycle function is:
    FUNCTION my_iscycle(p_parent_id IN stage_table.parent_id%type)
    RETURN stage_table.parent_ID%type
    AS
    -> v_count NUMBER;
    ->BEGIN
    ->->SELECT COUNT (*)
    ->->INTO v_count
    ->->FROM (SELECT parent_id
    ->->->->FROM active_table
    ->->->->START WITH parent_id = p_parent_id
    ->->->->CONNECT BY PRIOR parent_id = child_id);
    ->->->RETURN 0;
    ->->EXCEPTION
    ->->->->WHEN OTHERS THEN
    ->->->->IF SQLCODE = -1436 THEN
    ->->->->->RETURN 1;
    ->->->->END IF;
    ->END my_iscycle
    If I have in my active_table
    parent_id | child_id
    111 | 777
    and then in my stage_table I have
    parent_id | child_id
    777 | 111
    the result I get from EMPARRAY is empty. So it doesn't seem to find the loop, don't know why. Any ideas?

  • SAP Crystal Reports data source connection problem using sap business one

    Hi,
    I m facing a problem regarding: SAP Crystal Reports data source connection problem using sap business one
    I am trying to create a Crystal report but when I try to configure a new connection it does not work.
    I select Sap Business One data source and try to complete the information required to connection but it does not list my companies databases, what is the problem?
    Our Current SAP related software details are as follows:
    OS: Windows Server 2008
    SAP B1 Version: SAP B1 9 (902001) Patch 9
    SAP Crystal Report Version: 14.0.4.738 RTM
    Database: MS SQL Server 2008 R2
    I have also added some screenshots of the issues.
    Please have a look and let me know if you have any questions or any further clarifications.
    I m eagerly waiting for a quick and positive reply.

    Hi,
    There is problem with SAP Business One date source.
    I had faced same problem, I used OLEDB Data-source, and it worked fine for me.
    So, try to use OLEDB.
    Regards,
    Amrut Sabnis.

  • Problem using javascript to submit jsf form, values not submitted

    Greetings!
    I have a t:selectOneMenu where I want the page to be submitted when they change the selected value. At this point, I am able to get the form to submit and reload the page, which is all fine. The problem is that none of the values from the page are not set in the backing bean. I have break points on the setter methods that are not being hit.
    I have tried a number of things from searching multiple forums, but here are snippets from my latest version...
    <h:form>
    <t:commandLink id="hiddenLink" forceId="true" value="test link"
    action="#{pc_PageX.doBtnHiddenLinkAction}"></t:commandLink>
    <t:selectOneMenu id="pageList_top" forceId="true" value="#{pc_PageX.ValueX}"
         onchange="jspellSync(); submitPageX();">
         <f:selectItems value="#{pc_PageX.ListX}" />
    </t:selectOneMenu>
    </h:form>
    function submitPageX(){
         var hiddenLink = document.getElementById("hiddenLink");
         hiddenLink.click();
    }Note that the <t:commandLink> is not hidden, though it will be in the final version if I can get this to work.
    If I click the commandLink myself, the page is submitted with all the page values as expected. If I change the list value, thus using javascript to fire the commandLink's click event, the page is submitted with NO values.
    Can anyone come up with an explanation for this behavior? Or better yet, a solution?
    A couple other things I've tried...
    - Not using a commandLink and using jsf's submit function -> onchange="jspellSync(); submit();"
    - Clicking the link using other ways -> hiddenLink.fireEvent('onclick');
    If all else fails, I'll just add a button that they have to click to submit the form.

    snotmare wrote:
    BalusC wrote:
    I recall this problem in one of the ancient JSF versions. Which JSF version do you use? Do you have any room to upgrade to latest? We're using an IBM implementation of JSF, which is at version 7.0. The IBM implementation appears to be built on the JSF base 1.1.That's not an IBM JSF implementation, they do not have any one, they just have some component libraries which runs on top of some JSF implementation. RAD/WSAD ships by default with Sun JSF RI. Try upgrading to at least 1.1_02 which you can download from the aforementioned link. There's a gap of 2 years (and inherently a lot of bugfixes) compared to 1.1. If the application server used supports Servlet 2.5, you could even upgrade to the latest 1.2.
    We've had other issues with the IBM implementation, which could be the cause in this case too. We've been talking about switching to MyFaces, but there is one feature of the IBM version that we like. It's basically a script collector (hx:scriptCollector) that allows us to do pre-processing on the page.As said before, IBM does not have a JSF implementation. So replacing RI by MyFaces wouldn't make any difference.

  • Problem with Progress DB while using to connect using JDBC Adapter

    Hi,
      I am facing Problem with Progress DB while using to connect using JDBC Adapter. I am getting the following error in auditlog file like,
    Error during database connection to the database URL  jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.db using the  JDBC driver "com.progress.sql.jdbc.JdbcProgressDriver" : com.sap.aii.adapter.jdbc.sql.DriverManagerException: Unable to locate a suitable JDBC driver to establish a connection to URL " jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.db "
    I tried using the following all URLs,
    1. jdbc:JdbcProgress:T:156.5.31.65:2545:i_apoext.       
    2. jdbc:JdbcProgress:T:156.5.31.65:2545:i_apoext.db     
    3.                                                      
    jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.                                      
    4.                                                      
    jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.db.                                  
    Can anyone please help me out in solving this issue.
    May be the cause for this is :
    1) The Wrong URL  format
    2) CLASSPATH is not setted properly..
    Can you look more into this stuff.
    Thanks,
    Soorya.

    Hi,
    To access any database fromm XI, using the JDBC adapter, the corresponding drivers have to be installed on the XI server.
    Just check this note 831162.
    Also, check this PDF to install Drivers in XI,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10

  • Query SQL database using JSF problem!! Using CachedRowSet

    I'm using JSF and want to query data from SQL by using CachedRowSet like this,
    rowset.setCommand("SELECT * FROM dbo.SomeTable WHERE SomeField='"+ xyz +"'");
    then check if the record does exist by using
    *if(rowset.next()) {/ do something with the retrieved data}*
    but i get SQLException telling that execute() never called.
    Anyone can tell me what i'm missing? or is there any better way to check the existence of a record ?
    Thanks in advance :-)

    Hi grzegorz,
    1. If your sap application server is unix/aix
      (and not a microsoft OS),
    2. then this kind of secondary databse connection,
       to MS SQL (which is microsoft system),
       is at present not possible.
      (BCOS the required system files, for such
       cross - platform connection is not delivery by sap)
    regards,
    amit m.

  • Hi, I recently got myself an apple iphone 5s (factory unlocked) phone from the US. However on using the same in India with Vodafone, i am facing a problem where the connectivity keeps switching to EDGE most of the time. Any solutions??

    Hi,
    I recently got myself an apple iphone 5s (factory unlocked) phone from the US. However on using the same in India with Vodafone, i am facing a problem where the connectivity keeps switching to EDGE most of the time. I have a 3G plan but most of the time it switches automatically to EDGE. Thats when i have to either switch Airplane mode - On/Off and then it acts normal. Any permanant solutions to fix this problem?

    Return the iPhone personally or via friend/relative/co-worker who is in
    the US. The warranty is valid only in the country of original purchase - the USA
    in this case. Apple will not accept international shipments for evaluation nor
    will Apple ship out of the country after repair/replacement.
    How did the iPhone from the US get to you in India? Reverse that process to
    get it back to the US so someone can take it into Apple.

  • Read/Write problems with multiple connections using MySQL & Tomcat

    hello all,
    I am developing a web-based java application that runs on a 4.1 tomcat server and uses MySQL 3.23.52 as db server.
    this program uses hundreds of tables with hundreds of rows each.
    when two or more users are connected, we are experiencing several problems:
    1. when a query is started, they get cross-results that come from both connections.
    2. when inserting/updating (most queries are long and take a few seconds), sometimes data are crossed too, sometimes they are saved incorrectly but get no error message, sometimes they are not saved and get 'null pointer' sqlexception (but tables and queries are correct).
    3. using SHOW PROCESSLIST and SHOW STATUS, we saw that MySQL server hosted no more than 3 max_used_connections, even when my.cnf parameters where set with more. when 3 or more users try to access the database, they get a bad handshake error until other connections are freed.
    any suggestions?
    thanks
    alessandro bonanni
    university of udine

    I am not using a connection pool. I read that when two different connections try to access the same data simultaneously, mysql is not secure. maybe a connection pool could solve that? or maybe is it a mysql limit?
    alessandro

  • Problems using connection pooling

    I'm having problems configuring connection pooling in oc4j. Have specified my datasource/connection pool in my data-sources.xml. I always get the following error when I try to access it with an instance of OracleConnectionPoolDataSource within my apps. The app server dosen't seem to create the connections when started 'cos its not displayed within Oracle dba studio. Can anyone tell what I need to do pls.
    regards!
    dyzke
    //-- error displayed
    Exception in thread "main" java.sql.SQLException: Io exception: The Network Adap
    ter could not establish the connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:260)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java
    :111)
    // -- extract
    <data-source
              class="com.evermind.sql.DriverManagerDataSource"
    name="MYDS"
              location="jdbc/XXX"      
    xa-location="jdbc/xa/OracleXADS"
              ejb-location="jdbc/OracleDS"
    pooled-location="xxx/xxxx"
              max-connections="10"
              min-connections="3"                    
              connection-driver="oracle.jdbc.driver.OracleDriver"
              username="admin"
              password="admin"
              url="jdbc:oracle:thin:@localhost:xxx"
              inactivity-timeout="30"
         />

    see my answer in the other newsgroup.
    please don't cross post.
    "M. Hammer" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    We have problems using connection pooling in a WLS 5.1.x - Cluster. Is it
    possible to use CP in such a cluster at all ? The problem is, connections
    will be opened and never been closed. How can I configure a cluster forCP?
    >
    I have a WLS-Cluster with 2 instances and my webApp uses connectionpooling.
    By the way I get a connection on Instance 1, Instance 2 gets a connection
    also, but never releases it.
    In my opinion, the reference to the connection in the partner-instancewill
    be lost.
    How do I have to configure my cluster to work well with that stuff ?
    Thank a lot,
    Markus.

  • Midi connecting problems: using Logic Express 9 with MBox 2 interface and a Mac OSX 10.6.8

    I have a Mac OSX and I use Logic Express 9 on it. I also use an MBox 2 digidesign. Im having trouble connecting midi and getting it to work from my Roland Keyboard Midi, to the back of my Mbox 2 Midi. Its just not working at all. Does anyone know how to make Midi work with the Mbox 2 using Logic Express 9 on my OSX 10.6.8

    Troubleshooting Wi-Fi issues in OS X
    Wireless Connection Problems - Fix
    Wireless Connection Problems - Fix (2)
    Wireless Connection Problems - Fix (3)
    Wireless Connection Problems - Fix (4)
    Also try turning off Bluetooth

  • Problems on measuring temperature using thermocouples connected to SCB-68 terminal block

    I have problems on measuring temperature using thermocouples connected to SCB-68 terminal block.The thermocouples were connected to the differential channel 1 and a return path for the instrumentation amplifier bias currents and a 4 Hz low pass filter were both developed. But the readings were floating and jumped randomly between 0 and 200 Deg Cel abnormally.The CJC on the terminal block was disabled and a new one was developed by myself. However, the readings for the CJC were accurate and quite stable. So what is the reason for the floating of thermocouple readings? Did I miss anything that I need to do? Thanks.

    Are your TCs floating or grounded? Basically, if your TCs are mounted to a metal test article and the object is grounded to earth, then, the TCs are grounded -- and very likely contaminated with ground loops. You will need to reference the TC inputs accordingly. These ground loops will cause the TC data readings to float - recall that TC readings are in the millivolt level. It does not take much of a ground loop to ruin a TC measurement.
    Also, try this... first, set the filter to 10KHz and sample for a few seconds at 20 KHz (take 32768 data points). Now subtract the mean value from the trace and perform an FFT on the data. Look for the dominant frequency. Is it 60 Hz or some multiple? If yes, the likely cause is a ground reference problem.

Maybe you are looking for

  • Motion 4 crashes every time when I try to use the color wheel, after upgraded to Snow Leopard

    Every time I try to access the color wheel in Motion, it crashes (like changing the bakcground color in edit>project profile, or changing the color of a text element in text>style>face>color). This happened when I upgraded to snow leopard. I have kep

  • SAP PI 7.1 BPM Condition Editor: use EX

    Hi everybody, does anybody know how my condition has to look, if I'd like to use the EX function? This seems not to be korrekt: MY_VARIABLE EX Thanks regards Mario

  • How can I put in a cd in my new iMac?

    I bought the new imac and i don´t know how to put in a cd. Should I buy something or is just i´m not looking in the right side of it? Thank you

  • Bizzare Color Issue With JPEGs In RGB

    Recently when I've imported any jpegs from either the web or from my Thinkstock account I get strange color issues when it opens the image. Mostly the distortion happens in the whites. By default it opens in RGB mode (figure 1) and the issue goes awa

  • Stop dynamic updating of ldap from radius

    We use iPlanet v.4.12 ldap server with radius extensions. At some point in time we have started dynamic updating of the ldap server with session information from the radius server and now I can't find out how to turn off this dynamic updating. I have