Problems with cached rowsets:  execute() not called

I'm using sun studio creator and am trying to use a cached rowset. The code for creating it and accessing it has been created by studio creator.
The CachedRowSetXImpl is created by the session bean _init method (see below) and is accessed via the jsf web page via a value= attribute on a data table.
The problem is is that the first time the cached rowset is accessed, it generates the error 'java.sql.SQLException execute() never called. After this is works properly. I've already posted this iin the JSF forum, but didn't get a response. Any ideas?
private void _init() throws Exception {
System.err.println ( ClassName + " _init start");
arg_info_prvdrRowSet.setDataSourceName("java:comp/env/jdbc/isisdev1");
arg_info_prvdrRowSet.setCommand("SELECT * FROM ISIS_APP.ARG_INFO_PRVDR");
arg_info_prvdrRowSet.setTableName("ARG_INFO_PRVDR");
System.err.println ( ClassName + " _init end");
private CachedRowSetXImpl arg_info_prvdrRowSet = new CachedRowSetXImpl();
public CachedRowSetXImpl getArg_info_prvdrRowSet() {
System.err.println ( ClassName + " getArg_info_prvdrRowSet start*****");
try {
System.err.println ( ClassName + " Table Name = " +
arg_info_prvdrRowSet.getMetaData().getTableName(1));
arg_info_prvdrRowSet.first();
} catch (Exception Err) {
System.err.println ( ClassName + " Error is " + Err.getClass().getName() + " " + Err.getMessage() );
System.err.println ( ClassName + " getArg_info_prvdrRowSet end");
return arg_info_prvdrRowSet;
}

Did you get the solution for this. if you can get please, tell me .
i m struggling like hell. everything ok. I cannot get the rows. when i deploy in Tomcat 5.5
con = DriverManager.getConnection("jdbc:mysql://localhost/seafood?user=root&password=");
categoryRowSet.setDataSourceName("java:comp/env/jdbc/sea");
//categoryRowSet.getConnection("jdbc:mysql://localhost/seafood?user=root&password=");
categoryRowSet.setUrl("jdbc:mysql://localhost:3306/seafood");
categoryRowSet.setUsername("root");
categoryRowSet.setPassword("");
//categoryRowSet.execute(con);
categoryRowSet.setCommand("SELECT * FROM category");
categoryRowSet.setTableName("category");
categoryRowSet.execute();

Similar Messages

  • ADOBE BRIDGE SAYS HAVE PROBLEM WITH CACHE.  WILL NOT WORK AND I TRIED TO GO TO

    DownLoaded yetserday 2200 new pictures into my mac book por.
    now adobe bridge freezes up and says error in cache settings.
    but when i attempt to open preferences, and clear out cache, it does not work.@

    hnz5758 wrote:
    i attempt to open preferences, and clear out cache, it does not work.@
    Supply pertinent information for quicker answers
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.

  • Problem with f:ajax , setters not called

    Hi,
    I have this jsf
    <ui:define name="content">
    <h:form>
    <h:selectOneRadio value="#{chargeMenuBacking.inputMethod}">
    <f:selectItem itemValue="#{chargeMenuBacking.COMMUNITY}" itemLabel="Community" />
    <f:selectItem itemValue="#{chargeMenuBacking.FILE}" itemLabel="File" />
    <f:ajax event="click" render="myGroup" />
    </h:selectOneRadio>
    <h:panelGroup id="myGroup">
    <h:panelGroup id="CommunityGroup" rendered="#{chargeMenuBacking.inputMethod==chargeMenuBacking.COMMUNITY}">
    <h:selectManyListbox value="#{chargeMenuBacking.communitiesSelections}">
    <f:selectItems value="#{chargeMenuBacking.communities}" var="u" itemValue="#{u.id}" itemLabel="#{u.name}"/>
    </h:selectManyListbox>
    </h:panelGroup>
    <h:panelGroup id="FileGroup" rendered="#{chargeMenuBacking.inputMethod==chargeMenuBacking.FILE}">
    <h:inputText value="#{chargeMenuBacking.filename}" />
    </h:panelGroup>
    </h:panelGroup>
    <h:commandButton value="OK" action="#{chargeMenuBacking.doCharge}"/>
    <h:commandButton value="Cancel" action="#{chargeMenuBacking.doCancel}"/>
    </h:form>
    </ui:define>
    and I have this backing bean
    @Named(value = "chargeMenuBacking")
    @RequestScoped
    public class ChargeMenu implements Serializable ... (blah blah)
    When the bean is RequestScoped the setter for chargeMenuBacking.communitiesSelections is not called.
    However if the bean is SessionScoped or if I do not use the <f:ajax> tag (thus always rendering the component) the setter is called.
    Do you have any ideas why this is happening?
    I am using Glassfish v3 with netbeans 6.9.1 and JSF 2.0

    The solution seams to be declaring the bean as having view scope.

  • Viewing Excel Files using Tomcat - Problem with caching

    Hi all,
    A small part of an application I'm writing has links to Excel files for users to view/download. I'm currently using Tomcat v5 as the web/app server and have some very simple code (an example is shown below) which calls the excel file.
    <%@ page contentType = "application/vnd.ms-excel" %>
    <%
    response.setHeader("Pragma", "no-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);
    response.sendRedirect("file1.xls");
    %>
    This all works except but I'm having one big problem.
    The xls file (file1.xls) is updated via a share on the server so each month, the xls file is overwritten with the same name but with different contents. I'm finding that when an update is made to the xls file and the user then attempts to view the new file in the browser they recieve only the old xls file. It's caching the xls file and I don't want it to. How can I fix this so that it automatically gives the user the new updated file.
    The only way I've managed to get Tomcat to do this is to delete the work directory and delete the file from my IE temp folder and then restart Tomcat - this is a bit much!
    Any help would be greatly appreciated.
    Thanks.

    I'd a problem with caching a few years back, for a servlet request which returned an SVG file.
    As a workaround, I ended up putting appending "#" and a timestamp / random number after it. The browser assuming each request was new, and didn't use the cache.
    Eg.
    http://myserver/returnSVG.do#1234567
    where 1234567 is a timestamp / random.
    Not sure whether you can do this on a file based URL... but maybe worth a shot...
    regards,
    Owen

  • Problems with cache.clear()

    Hello!
    We are having some problems with cache clears in our production cluster that we do once a day. Sometimes heaps "explode" with a lot of outgoing messages when we do a cache.clear() and the entire cluster starts failing.
    We had some success with a alternate method of doing the cache clear where we iterate cache.keySet() and do a cache.remove(key) with a pausetime of 100 ms after 20000 objects until the cache is empty. But today nodes started failing on a cache.size() before the removes started (the first thing we do is to log the size of the cache we are about to clear before the remove operations start).
    We have multiple distributed caches configured with a near cache. The nearcache has 10k objects as high units and the back caches vary in size, the largest is around 300k / node.
    In total the DistributedCache-service is handling ~20 caches.
    The cluster consists of 18 storage enabled nodes spread across 6 servers and 31 non storage enabled nodes running on 31 servers.
    The invalidation stategy on the near caches is ALL (or, its AUTO but it looks like it selects ALL since ListenerFilterCount=29 and ListenerKeyCount=0 on a StorageManager?)
    Parition count is 257, backup count 1, no changes in thread count on the service, service is DistributedCache.
    Coherence version 3.6.1.0.
    A udp test sending from one node to another displays 60 megabyte/s.
    Heapsize for the Coherence JVMs, 3gb. LargePages is used.
    Heapsize for the front nodes JVMs, 6gb. LargePages is used.
    No long GC-times (until the heaps explode), 0.2-0.6 seconds. CMS-collector.
    JDK 1.6 u21 64-bit.
    Windows 2k8R2.
    We are also running CoherenceWeb and some Read/Write-caches, but on different coherence services. We are not doing any clear/size-operations against caches owed by these services.
    Looking at some metrics from the last time we had this problem (where we crashed on cache.size()).
    The number of messages sent by the backing nodes went from <100/s to 20k-50k/s in 15 s.
    The number of messages resent by the backing nodes went from ~0/s to 1k-50k/s depending on the node in 15 s.
    At the time the total number of requests against the DistributedCache-service was around 6-8/s and node.
    To my questions, should it be a problem to do a cache clear with this setup (where the largest cache is around 5.4 million entires) ? Should it be a problem to do a cache.size()?
    What is the nicest way to do a cache.clear()? Any other strategy?
    Could a lock on a entry in the cache cause this problem? Should it really cause a problem with cache.size()?
    Any advice?
    BR,
    Carl
    Edited by: carl_abramsson on 2011-nov-14 06:16

    Hi Charlie,
    Thank you for your answer! Yes, actually we are using a lot of expiry and many of the items are created at roughly the same time! We haven't configured expiry in the cache configuration, instead we do a put with a expire.
    Regarding the workload, compared to our peak hours it has been very low when had problems with the size and clear operations. So the backing tier isn't really doing much at the time. That's what has been so strange with this problem.
    The release going live today has PRESENT as near cache invalidation strategy. We remove as much of the expire as possible in the next.
    BR,
    Carl

  • Has anyone ever had a problem with their iphone 4 not syncing and/or writing a backup file?

    Has anyone ever had a problem with their iphone 4 not syncing and/or writing a backup file?  Itunes locks up when i attempt a sync as well as when I transfer my purchases from my phone to Itunes. I'm running Itunes 10.4.1 on iOS 4.3.5.  All of this is running on an 8 year old hp pavillian laptop running XP Pro that is fully updated. Could my phone have a bug or a hardware problem. Are there any known problems with  iOS 4.3.5?  Pretty frustrating problem so I'm hoping that someone has heard of this and can offer some suggestions on a solution.  Thanks a bunch.

    Did you used to have service and now suddenly you don't?
    This happened to me a few years back, and several other iPhone users in my neighborhood, and after a while on the phone with AT&T they figured out that a technician had recently adjusted the receiver/sender on the tower and it was slightly off. They sent them back up and I actually had a better signal after than I did before it went out.
    I would call AT&T and explain the issue you are having and see if they can fix it.
    If you never had service there then like wjosten said it's probably just a bad zone.
    Hope you get it sussed out.
    -PM

  • I recently upgraded to iTunes 11.1.5 and now my iPod Nano is not recognized in iTunes. I also upgraded my iPhone 5s to iOS 7.1. i Tunes on my computer does recognize my iPhone. What is the problem with my iPod Nano not being recognized?

    I recently upgraded to iTunes 11.1.5 and now my iPod Nano is not recognized in iTunes. I also upgraded my iPhone 5s to iOS 7.1. i Tunes on my computer does recognize my iPhone. What is the problem with my iPod Nano not being recognized?

    I would think, Twins1995, that if we are having the problem, others are as well. Hopefully, Apple will shortly issue a follow-up software release to fix the problem. Or is that just wishful thinking on my part.
    It would be helpful, if there were some kind of work-around in the interim, so we can use our devices. Pretty frustrating when you consider that all of the hardware and software is produced by Apple.

  • I have a problem with itunes account did not find a solution.

    Good morning
    I have a problem with itunes account did not find a solution.
    The problem: your apple id has been Dasabld
    I can not if download applications from the iTunes store
    Hoping to help me solve the problem
    Note my English is very weak
    I want to re-activate the iTunes account
    Thank you

    To Contact iTunes Customer Service Use this Link...
    Apple  Support  iTunes Store  Contact

  • I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?

    I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?

    By doing a Google search. 

  • ITunes needs to fix the problem with there gift cards not being activated this is not up to the retailer and they will not return scratched coded cards! There is thousands of people having this problem please fix it

    iTunes needs to fix the problem with there iTunes cards not activating properly! This is not the retailers fault and they will not return iTunes cards that have had the code area scratched there for apple needs to credit and or activated the cards there is thousands of people having this problem please bite the bullet and fix it already I will not be using iTunes until this is corrected...

    If you haven't received the item then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Who else has a problem with parental controls enabled not being able to run Firefox on the Mac?

    Who else has a problem with parental controls enabled not being able to run Firefox on the Mac? (Any solutions?) (BTW. Chrome doesn't work either)

    Although FF4 is so nice I'm almost ready to ditch iGoogle!
    Please fix what appears to be an RSS/iGoogle issue with FF4...
    Gmail is fine, but titles dont show in most RSS feed gadgets and no stories, strangely, apart from this one:
    http://www.google.com.au/ig/directory?hl=en&url=www.google.com/ig/modules/builtin_news_technology.xml
    Which if you enter the last part of the url reports that
    "<Content type="html">
    This is a builtin module, so the UserPrefs and Content are ignored."
    Any ideas?

  • Having problem with primary sever will not connect, my internet connection is working

    Having problem with primary sever will not connect, my internet connection is working

    Hello pp585,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Troubleshoot issues on a Mac
    If you haven't been able to connect to the iTunes Store, a software conflict or your Internet service provider (ISP) may be blocking your access.
    Update iTunes and Safari to the latest version.
    If you have a firewall, your settings may be preventing you from connecting to the iTunes Store. Follow these steps to configure your firewall.
    You may need to reset your keychain. Connection issues are occasionally caused by keychain issues. Learn how to use Keychain First Aid to resolve any issues with your keychain.
    If you're receiving a specific error message, follow these steps.
    If the issue still persists, contact your Internet service provider and confirm that these ports and servers are enabled over your network.
    Have a nice day,
    Mario

  • SOLMAN 7.0 problem with Stack16-question on note#1231975

    SOLMAN 7.0 problem with Stack16-question on note#1231975    
    I'm importing Stacks 16&17 into our Solution Manager 7.0 system
    and getting errors when importing the Java part in JSPM after the ABAP
    went in with no errors. The error matches OSS note 1231975 but we are
    having problems understanding what this note is advising to fix the
    issue. "SAPJTECHS SP16 component needs to be applied before proceeding
    with the whole SP16 stack. It should fix the usages on the systems
    fixing missing rows at BC_SL_PARTS table." Each time we start JSPM it
    gives the errors mentioned in this note. How are we to import
    SAPJTECHS before the rest of the Java Support Packs if we can't get
    JSPM to come up due to this error? About half of the Java Support
    Packs were imported before this error occured.

    You can deploy that component manually using SDM (instead of JSPM).
    Markus

  • I have a problem with the device does not accept 5 slot after work and survey content is not possible activation of the device and iTunes

    I have a problem with the device does not accept 5 slot after work and survey content is not possible activation of the device and iTunes imei: 01******206
    <Personal Information Edited by Host>

    لدي جهاز ترقفت الشبكه ويعطي جاري البحث وتم تحديثه ولم يتم حل المشكلهة  والان الجهاز لايقبل التنشيط والايتونز لايتعرف عليه امل تنشيطه 013619004986206

  • Is anyone having problems with the program MacKeeper not runing a full scan in Mavericks?

    Is anyone having problems with the program MacKeeper not runing a full scan in Mavericks?

    Do not install MacKeeper (and how to uninstall it if you have):
    https://discussions.apple.com/docs/DOC-6221
    by Klaus1
    (Please note that references to the original developers, Zeobit, also now refer to Kromtech Alliance Corp, who acquired MacKeeper and PCKeeper from ZeoBit LLC in early 2013.
    And Here  >  Beware MacKeeper
    In General 3rd Party AV Software is Not Required as Mac OS X tends to look after itself.
    Read Here  > https://discussions.apple.com/thread/4545776?tstart=0
    See Here  >  Antivirus Discussion

Maybe you are looking for

  • Can't get video's to play on macbook

    This message is relating to a problem my boss is having while trying to view a CD with video on it. He viewed the CD on a different MAC and was able to view the contents- he brought it home and put it in his PC and was able to view it there also, but

  • I get a strange behavior of the tab bar and of the location bar in Firefox 29.0 for Mac.

    I have just installed Firefox 29.0 for Mac. I get a strange behavior of the tab bar and of the location bar with this new version. Instead of the location bar, I get two rows of symbols. And it's impossible to write anything in the location bar. (I'd

  • File uploads stalling when using mac browsers?!

    Im having a recurring issue where i cannot complete file uploads to popular sites such as YouTube, SendSpace, FileLodge, DropLoad and YouSendIt. On all mac browsers (safari, firefox, netscape etc) the upload starts as normal and (via a network monito

  • Detecting changes

    hi folks, I have a swing application that has a functionality to save the input. I want to know what is the common way to detect modification of input. If there's modification, i want to prompt the user to save if he/she is closing down the app. I'm

  • OT: Hold off on deleting your posts and replies

    Hi all, We have been seeing missing posts, replies, and discussions today, and we are  hoping that this will fix the problem. Meanwhile, the tech team has been alerted to check for any other issues that could be causing this problem. Thanks in advanc