Error with paging action handler

We are using the proposed action handler from Steve Muench's book for stateless paging to our highest confidence.
The problem is that after some days the paging parameter p gets always a wrong value. We think it is the total rowcount, because we implemented a test-parameter.
From then displaying a page starts always (?) with the last page. If this situation occurs it happens in different (!) applications, so it isn't a parameter side effect.
There is not p session or cookie parameter who could override the silent work of the action handler.
We are using the XSQL servlet 1.0.4.1 under Red Hat Linux 7.0 with an Oracle 8.1.7 database. Servlet container is Tomcat 3.2 with JDK 1.3 from Sun.
Stopping Tomcat and restarting it solves the problem (for some time).
Do you have any hint for us ?
Best regards
Andreas Saake
null

As I can see it's an error from Paging.jar.
I do an initial call to a XSQL page with a select resultset of 38 rows, for example. With a pagesize of 20 rows I should get 2 pages and having current-page set to 1.
But what I get is a corrected value (by Paging.jar) of current-page, which starts with page 2. The further paging in my application is ok.
I've extended the paging handler with a variable called test-paged, which reads the paramater p and stores it in the output tree. Then I dislay the XSQL-page without any stylesheet and get a value of 38 in test-page.
Below is an excerpt of my paging.jar:
---- Start excerpt
import oracle.xml.xsql.*;
import oracle.xml.parser.v2.*;
import org.w3c.dom.*;
import java.net.*;
import java.util.StringTokenizer;
import java.sql.SQLException;
public class Paging extends XSQLActionHandlerImpl {
private static final String PAGE_PARAM_NAME = "p";
private static final String ROWSPERPAGE = "rows-per-page";
private static final String TARGETPAGEARGS = "url-params";
private static final String TARGETSORTARGS = "sort-params";
public void handleAction(Node root) throws SQLException {
XSQLPageRequest req = getPageRequest();
Element actElt = getActionElement();
// Get the count query from the action element content
String query = getActionElementContent();
// Get the number of rows per page, defaulting to 10
long pageSize = longVal(getAttributeAllowingParam(ROWSPERPAGE,actElt),10);
long totalRows = longVal(firstColumnOfFirstRow(root,query),0);
long curPage = longVal(variableValue(PAGE_PARAM_NAME,actElt),1);
long testPage = longVal(variableValue(PAGE_PARAM_NAME,actElt),1);
// Get the name of the current page to use as the target
String pageName = curPageName(req);
// Get any URL parameter names that need to be echoed into paging URL's
String pageArgs = getAttributeAllowingParam(TARGETPAGEARGS,actElt);
// Get any URL parameter names that need to be echoed into paging URL's
// FOR SORTING
String sortArgs = getAttributeAllowingParam(TARGETSORTARGS,actElt);
// Calculate the total number of pages
long totalPages = totalRows / pageSize;
long fract = totalRows % pageSize;
if (fract > 0) totalPages++;
// Make sure current page is between 1 < cur < totalPages
if (curPage < 1) curPage = 1;if (curPage > totalPages) curPage = totalPages;
// Create the <paging> fragment to add to the "data page"
Document d = actElt.getOwnerDocument();
Element e = d.createElement("paging");
root.appendChild(e);
addResultElement(e,"total-rows",Long.toString(totalRows));
addResultElement(e,"total-pages",Long.toString(totalPages));
addResultElement(e,"test-page",Long.toString(testPage));
addResultElement(e,"current-page",Long.toString(curPage));
--- END Excerpt
Thanks,
Andreas
null

Similar Messages

  • I have received an error message when trying to install 13 new apps for Creative Cloud. It reads: "Error There was an error with this action. Try again later.  7b1f5f56-79b3-4a0d-8fd2-137b1a3e6b67" I don't know what to do.

    I have received an error message when trying to install 13 new apps for Creative Cloud. It reads: "Error There was an error with this action. Try again later.  7b1f5f56-79b3-4a0d-8fd2-137b1a3e6b67" I don't know what to do.

    AppTrial1 where are you seeing this error exactly?  For information on how to install the Adobe Creative applications included with the Creative Cloud please see Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html.

  • I just got the following message fro Adobe when I try to update:  "Error There was an error with this action. Try again later.  3cde7ed8-ce06-45ae-8fa8-58cc80a9d1ec"

    I just got the following message fro Adobe when I try to update:  "Error There was an error with this action. Try again later.  3cde7ed8-ce06-45ae-8fa8-58cc80a9d1ec"

    Link for Download & Install & Setup & Activation problems may help
    -Online Chat http://www.adobe.com/support/download-install/supportinfo/

  • Sign in error 'There was an error with this action. Try again later.'

    Get an error message when trying to log into CC to download my initial apps.
    Purchased from Amazon and the process completed successfully until I attempted to log in and down load from adobe.com. had to create new adobe account just to post this question.
    The error message appears repeatedly 'There was an error with this action. Try again later.'
    The error message is followed by a series of 5 groups of numbers and letters with dashes between each group.
    Windows 7 rig. Attempted 3 different browsers. same error.. 'There was an error with this action. Try again later.'
    attempted fix posted by another forum member recommending the removal of a .db file in the appData folder. No .db file existed as described.
    Thank you for any suggestions.

    Adobe contact information - http://helpx.adobe.com/contact.html may help
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • Error with get(Home)Handle

    Hello
    i have deployed an ejb on the sun one server and l can invoke all the methods i need on this EJB . But when i try to invoke the method getHandle or getHomeHandle or getEJBMetaData, i have this error on the server : (this error is with getHandle but it is the same with the two others methods)
    org.omg.CORBA.BAD_OPERATION: The delegate has not been set! vmcid: 0x0
    minor c
    ode: 0 completed: No
    at org.omg.CORBA.portable.ObjectImpl._get_delegate(ObjectImpl.java:53)
    at com.sun.corba.ee.internal.iiop.CDROutputStream_1_0.write_Object(CDROu
    tputStream_1_0.java:571)
    at com.sun.corba.ee.internal.iiop.CDROutputStream.write_Object(CDROutput
    Stream.java:227)
    at com.sun.org.omg.CORBA.IDLTypeHelper.write(IDLTypeHelper.java:70)
    at com.sun.org.omg.CORBA.ValueMemberHelper.write(ValueMemberHelper.java:
    140)
    at com.sun.org.omg.CORBA.ValueMemberSeqHelper.write(ValueMemberSeqHelper
    .java:83)
    at com.sun.org.omg.CORBA.ValueDefPackage.FullValueDescriptionHelper.writ
    e(FullValueDescriptionHelper.java:193)
    at com.sun.org.omg.SendingContext._CodeBaseImplBase._invoke(_CodeBaseImp
    lBase.java:85)
    at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch(ServerDelegat
    e.java:379)
    at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:275)
    at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProces
    sor.java:83)
    at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(Serv
    icableWrapper.java:25)
    at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(F
    astThreadPool.java:283)
    at java.lang.Thread.run(Thread.java:536)
    and on the client :
    java.rmi.MarshalException: CORBA MARSHAL 1398079699 Maybe; nested exception
    is:
    org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : Can't
    skip sender's custom marshaled class:
    RMI:com.sun.ejb.portable.HandleImpl:7969D1B587E037EF:27329270E7B1269F
    vmcid: SUN minor code: 211 completed: Maybe
    at com.sun.corba.se.internal.iiop.ShutdownUtilDelegate.mapSystemException
    (ShutdownUtilDelegate.java:97)
    at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
    at Test02Stub.getHandle(Unknown Source)
    at Test01.main(Test01.java:48)
    Caused by: org.omg.CORBA.MARSHAL: Unable to read value from underlying
    bridge : Can't skip sender's custom marshaled class:
    RMI:com.sun.ejb.portable.HandleImpl:7969D1B587E037EF:27329270E7B1269F
    vmcid: SUN minor code: 211 completed: Maybe
    at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_value
    (CDRInputStream_1_0.java:944)
    at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_abstract_interface
    (CDRInputStream_1_0.java:850)
    at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_abstract_interface
    (CDRInputStream_1_0.java:842)
    at com.sun.corba.se.internal.iiop.CDRInputStream.read_abstract_interface
    (CDRInputStream.java:309)
    at Test02Stub.getHandle(Unknown Source)
    ... 1 more
    It seems that there is a probleme with serialization ...
    I have the same JDK on the server and on the client.
    Can someone explain me please the problem ?
    Thank you very mutch
    olivier

    Hi,
           For advanced search view, you should manually specify the super class to your view controller as the advanced search controller class. I'm not exactly sure what the name is, but you can find it out from the standard search view components. Do not pick the immediate super class from the standard components, dog through and pick the basic advanced search controller. This class will contain the methods that you mentioned.
    Regards,
    Arun Prakash

  • Can't open Desktop app. "There was an error with this action.  Try again later."  How do I solve this?

    I've been trying to open "Desktop App" for a couple of days now.  I get the above error message.  "Later" obviously isn't going to work.  I've signed out of my account and signed back in, but that hasn't helped. 
    I can reach the App Mgr from PS, and I assume I could download a new program from the apps site.  But the Desktop app should work, so I'd appreciate suggestions on how to solve this.  Thanks.
    Gail

    Thanks for the prompt response.  Up till a week or so ago, the app worked
    fine, and I was able to do the latest updates. The chat option is always
    there, but it's a nuisance, so I'm hoping someone will have another
    suggestion.
    G
    On Thu, Sep 4, 2014 at 3:46 PM, John T Smith <[email protected]>

  • "There was an error with this action. Try again later. " In CC log in.

    Hi there,
    I forgat to verify after signing up and entered my password several times. So now it's blocked. I changed my password afterwords but nothing seems to help. I also waited for a while in case there's a limit on entering the (wrong) password.
    Hope you can help me out?
    Greets!

    Hi Isabel,
    You should be able to sign in now, there was a problem which is fixed
    Kindly check Creative Cloud Status in case you are still facing the issue then kindly contact our support here: Contact Customer Care
    -Ankit

  • To Luca Re: action handler print to file

    Luca--
    I would have emailed you privately but can't find your email address.
    We've been playing with your action handler "GetPostedDocument" on writing a file and have run into a snag that we can't figure out. It compiles and runs and even gets as far as creating the file, but the file is always empty and we come up with an action-error each time.
    Does it make a difference where the action handler is inserted into the XSQL?
    We'd appreciate any advice you have to offer.
    Thanks.

    Dear Karen,
    a) Java is not a script
    In your message you refer twice about the code I wrote as "Script". I would like to inform you that Java code is usually referred to as a "code" and
    not as a "script". The term "script" is usually restricted to text which is interpreted by a runtime executable, while Java is first compiled into bytecode
    and only the latter is "interpreted" by the Java Virtual Machine. The bytecode itself is not a script since is not text but "binary data". Referring therefore
    to my code as "script" could raise the question wether it has been compiled with javac or not and so on. Clearly that is not the case since it is generating
    an output although the latter is empty.
    b) You have applied changes to GetPostedDocument.java
    It would be useful if instead of the whole code you would have simply posted the "diff" between the version I posted to the discussion list and the version that
    you have modified. Nevertheless, I had a look at it and noticed that the major difference you have applied is adding the 2 following lines to it
    myPrintWriter.close();
    myOutputStream.close();
    in the "try/catch" part.
    I would suggest you to remove those 2 lines, compile it, place it in the right place, stop and restart the server
    and then have a look at what happens.
    Would that still fail, I suggest you to modify the code so that the following code
    } catch (IOException iex) {
    looks something like
    } catch (IOException iex) {
    System.err.println(iex.toString());
    Regards
    Luca
    p.s. did the system work with the version of the code I posted which was not making use of File but simply printing
    to stdout ?

  • Still receiving errors with CC packager

    I'm still receiving the following: "An error has occured during download. Please try again later." message when attempting to download apps for a package.
    Am using version 1.1.

    Every time I log in CCdesktop and I try open new app (acrobat or IDCC or illus) AAM appear on desktop saying to accept condition, after that ask me again log in and finally the message below forces me to exit...
    Error
    There was an error with this action. Try again later.
    0a9b7a44-f310-410e-bf68-32915b0f43d7
    It's very a big problem this upadte!

  • Terminated with error: REP-300: service handle not initialized == select h

    Hello sir,
    Here there is one problem. Actually, there is one job and it will run end of the day(EOD) and that job should generate a report for the particular branch, but every day that job is failing, that job should generate a report daily. But that failed job is displayin an error as "Terminated with error: REP-300: service handle not initialized ==> select hdr . cus_mst_no , cus . name_1
    so, daily morning, we are manually runnning the script file and generating a report.
    ". Can you please let me know what to do...it is very urgent

    From the Oracle documentation: "A service context handle defines attributes that determine the operational context for OCI calls to a server."
    Now, I have no idea what that is, but it looks like you are doing more (OCI calls) than just running a report. Post this also on the database forum.

  • PDF Preview handler error with outlook 2013 on RDS 2012R2

    Anyone had any issues with outlook x64 2013 office and "PDF Preview handler", we are running adobe 11 with server 2012 R2. CHecked all the recommended reg settings are correct:
    "Change the AppID value to {534A1E02-D58F-44f0-B58B-36CBED287C7C}"
    However still prompted with "this file cannot be previewed because of an error with the following previewer: PDF Preview handler"
    Also causes a popup box to say an internal error has occurred.
    Loads fine when you double click the attachement.

    Hello i got nearly the same problem. Selecting the .pdf attachment in outlook. error code says that no preview can be showed, because the needed preview isn't installed.
    Server 2012 R2 as Terminalserver, Outlook 2013, newest version of adobe reader XI.
    I've already checked the following:
    - outlook>options>trustcenter>trustcenter settings>attachment handling .. the box disable preview is clear .. furthermore outlook>options>trustcenter>trustcenter settings>attachment handling>attachment and documentpreview .. all
    boxes including pdf preview handler are filled.
    - adobe reader XI>edit>presettings?>e-mail-account ... outlook is standart.
    - Registryentry: "Change the AppID value to {534A1E02-D58F-44f0-B58B-36CBED287C7C}"
    - also i repaired the adobe installation and i reinstalled it a few times.
    - even checked the access-rights on the temp. directorys outlook uses for attachments and the users have full access.
    i have no more clue what it can be..
    so may you have the solution for me or at least some tips.
    Thanks,
    Nikolai

  • RE: [Adobe Reader] when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? i

    HelloThank's for your helpsI hope this document is helpfulBest Regards,
    Date: Sun, 22 Jun 2014 17:10:17 -0700
    From: [email protected]
    To: [email protected]
    Subject:  when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th
        when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help m
        created by Anoop9178 in Adobe Reader - View the full discussion
    Hi,
    Would it be possible for you to share the document?
    Regards,
    Anoop
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6485431#6485431
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
         To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Reader by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

    thank's for reply and your help
    i did the step's that you told me but  i still have the same problem
                                     i have the latest v.11.0.7
    i
    i disable the protected mode

  • How to get selected values from datatable with paging

    hi all
    here is my problem
    I have a datatable with paging size of 2 and first column as checkbox.
    now i have total record of 5 data,2 row on each page.
    Now i m selecting 1-1 row from each page.
    When i m clicking Command button to display all the selected row from different page ,i m only able to display values selected from last page.
    Through debug i can see that only last page value is set to TRUE OR FALSE and every other value is neither true nor false.
    any help???
    thanks

    <f:facet name="footer">
    <h:panelGroup binding="#{Page1.groupPanel1}" id="groupPanel1"
    style="display: block; text-align: center" styleClass="list-paging-footer">
    <h:commandButton action="#{Page1.dataTable1_firstPageAction}" binding="#{Page1.dataTable1FooterFirstButton}" id="dataTable1FooterFirstButton" image="resources/paging_first.gif" immediate="true"/>
    <h:commandButton action="# Page1.dataTable1_previousPageAction}" binding="#{Page1.dataTable1FooterPreviousButton}"
    id="dataTable1FooterPreviousButton" image="resources/paging_previous.gif" immediate="true"/>
    <h:commandButton action="#{Page1.dataTable1_nextPageAction}" binding="#{Page1.dataTable1FooterNextButton}"
    id="dataTable1FooterNextButton" image="resources/paging_next.gif" immediate="true"/>
    <h:commandButton action="#{Page1.dataTable1_lastPageAction}" binding="#{Page1.dataTable1FooterLastButton}"
    id="dataTable1FooterLastButton" image="resources/paging_last.gif" immediate="true"/>
    </h:panelGroup>
    </f:facet>
    Above is the code which i m using for paging which is command button
    Any problem with it.???
    thanks

  • Error with Loading Device Software on 8700 AT&T phone.

    Hi. I would like some help with my 8700 AT&T refurb blackberry phone.  When I tried to download the device software (v4.5) to my already downloaded DTM (v4.6), it gave me an error message I did not know what to do with.  
    I want to synch my organizer data (calendar, contacts) from older desktop (Outlook 2002) to my new laptop (Outlook 2007, Windows 7).  I am having trouble downloading the supporting device software.  I keep getting an error message that reads "Error with the Application Loader.  Cannot update software using this system as device is currently activated on a blackberry Enterprise Server or professional software.  Contact administrator or check with service provider."  I do not use Enterprise.  I don't have an internet service plan for my phone as I use it only for calendar and contacts.  AT&T gives the software option for AT&T 8700 in English device software as v4.1.0.175 as the only option that is supported by my current platform (2.0.0.90).  Is this right? 
    All I really want to update my phone with the latest software that supports Outlook 2007 on my new laptop.  What do I need to make that happen? 
    Thanks in advance.

    Hi there!
    Refurbs can be problematic. If a BB was ever activated on BES, then it has an IT Policy. IT Policies are not removed by the standard WIPE actions. Rather, they take additional steps to clean off the Policy.
    Just to check, please go to this screen:
    Homescreen > Options > Security Options > (Information) or (General Settings) or (something similar)
    On that screen will be some selection boxes plus other sections (divided by horizontal lines). If, on that screen, there is any discussion about IT Policy (even if it says "Default"), then you indeed have an IT Policy on your BB. (The screen may also have a section for "Services").
    If you don't have an IT Policy, then something else is going on...in which case, stop here and report back exactly what you found on that screen.
    If you do have an IT Policy, then, in my view, you have two choices.
    1) Since this refurb was provided to you by ATT, they did not deliver to you a "clean" device. You could take it back to them and have them clean the IT Policy off.
    2) You can remove the Policy yourself. The process is 100% destructive to the data on the BB, so you'll want to be sure you've already taken a good full backup. Then use Method 3 in this KB.
    As for what device OS to install, you have more choices than you indicated. See this page:
    https://www.blackberry.com/Downloads/browseSoftwar​e.do;jsessionid=0A15EC28AEC181D3F3F9C5235D9F166A.n​...
    Select, from the drop-down, your model (8700). The resulting screen shows that ATT is currently supporting 4.5.0.182 (MultiLanguage) for your BB model. The MultiLanguage pack will include English, so you don't have to fall all the way back to the English only version. So, you have choices. The best advice is to use the most recent version -- bug fixes, enhancements, and all of that.
    What I advise, since you want to use Outlook 2007, is to use that 4.5.0.182 package for your BB and the most recent RIM desktop package (5.0.1.28). That way, you will have full compatibility for what you are looking for.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • PSCS4 Memory Error with Image Processor

    When I use the image processor in PSCS4 to process a large number of raw files using ACR 5.1 (Nikon D3 NEFs), I consistently receive an error message after about 10-11 files have been processed that the instruction at 0x696336ab tried to read memory at 0x6C (or thereabouts) and the memory could not be read. I am saving as JPEGs with the color space set to sRGB.
    I de-installed and reinstalled PSCS4, but the error persists. The image processor worked fine with PSCS3. A workaround that solves the problem is to process the files as a batch using a simple action to accomplish the task.
    I am running Windows XP Pro Service Pack 3 with a dual Xeon processor and 2G of error correcting memory.

    Hmm.. I was getting a similar error with CS3 and was very happy to find that it appeared to be cured in CS4. The CS3 issue would appear if I tried to process more then 100 NEFs. My workaround was to do them in smaller batches (60-75). Perhaps you might try reducing the memory alotted to PS or run it without any other apps running?
    Russell

Maybe you are looking for

  • Opening RAW files in Bridge - not recognized as "Camera RAW files"

    I would appreciate any help with this as I am frustrated after spending hours trying to figure this out: I use a Mac OS X laptop I have a Panasonic (DMC FZ8) camera that I've been taking RAW pictures with. I plug my camera into my computer and try an

  • Runtime problem

    Excute the program it will take more time its urgent for me REPORT ZRPT_MM_006. TYPE-POOLS: slis. tables : likp, lips, bseg, bkpf, mara, t001w, makt,ekko,ekpo. DATA : gt_fieldcat TYPE slis_t_fieldcat_alv. DATA : heading TYPE slis_t_listheader. DATA :

  • Cannot load mod_bonjour.so in apache2

    * I am running apache2 on tiger. I copy mod_bonjour.so from /private/....(cant remember) to /opt/local/apache2/modules/ * sudo apachectl restart, then it cannot find the mod_bonjour.so. Error: no such symbol... * I assume I need to recompile the mod_

  • Link to re-download Thinkvantage Toolbox T420

    The Lenovo Thinkvantage Toolbox recently quit working on my T420 Win 7 laptop. It would not open and when it did, it would not show any information. After 2 weeks of this, I decided to just delete the program and re-download it from Lenovo's website.

  • SSID set on specific access points

    Hi All, I have an installation of 1 wireless controller at a head office and some access points distributed to two locations. One of these locations has requested a guest wireless access. Please advise if i can setup the guest wireless ssid to only b