Variable not defined after running for() loop.

Hi,
I have a little problem, I have created a for loop, which seems to work, except that a variable within the for() loop gets lost, because if I try to call the variable after the loop, it says it's not there. anyway, here is my code, followed by the error. Thanks!
<%
Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection("jdbc:odbc:testdb");
Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
String sql_count = "SELECT COUNT(*) FROM users";
ResultSet cn = stmt.executeQuery(sql_count);
cn.first();
int row_count = cn.getInt(1);
int num = (int)(Math.random() * (row_count));
int inum;
for (inum=0; inum<row_count; inum++)
int jnum = inum + num;
if (jnum >= row_count) { jnum = 1; }
String sql = "SELECT * FROM users WHERE ID = "+jnum+"";
ResultSet rs = stmt.executeQuery(sql);
int ce = rs.getInt("cr_earned");
int cu = rs.getInt("cr_used");
if ((ce-cu) > 0) { inum = row_count + 1; }
String sql = "SELECT * FROM users WHERE ID = "+jnum+"";
ResultSet rs = stmt.executeQuery(sql);
rs.first();
String url = rs.getString("url");
con.close();
%>
***********************ERROR***********************
Generated servlet error:
C:\tomcat\jakarta-tomcat-4.0\work\localhost\examples\gtt\surf$jsp.java:93: Undefined variable or class name: rs
rs.first();
^
An error occurred between lines: 17 and 43 in the jsp file: /gtt/surf.jsp
Generated servlet error:
C:\tomcat\jakarta-tomcat-4.0\work\localhost\examples\gtt\surf$jsp.java:94: Undefined variable or class name: rs
String url = rs.getString("url");
^

now i've defined them all before the loop and I get this error. Error is following modified code below.
<%
Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection("jdbc:odbc:testdb");
Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
String sql_count = "SELECT COUNT(*) FROM users";
ResultSet cn = stmt.executeQuery(sql_count);
cn.first();
int row_count = cn.getInt(1);
int num = (int)(Math.random() * (row_count));
int inum;
int jnum;
ResultSet rs;
for (inum=0; inum<row_count; inum++)
jnum = inum + num;
if (jnum >= row_count) { jnum = 1; }
String sql = "SELECT * FROM users WHERE ID = "+jnum+"";
rs = stmt.executeQuery(sql);
int ce = rs.getInt("cr_earned");
int cu = rs.getInt("cr_used");
if ((ce-cu) > 0) { inum = row_count + 1; }
rs.first();
String url = rs.getString("url");
con.close();
%>
***********ERROR***************
An error occurred between lines: 17 and 45 in the jsp file: /gtt/surf.jsp
Generated servlet error:
C:\tomcat\jakarta-tomcat-4.0\work\localhost\examples\gtt\surf$jsp.java:95: Variable rs may not have been initialized.
rs.first();
^
Thanks anyone.... ;-)

Similar Messages

  • Server goes into constant Full GC loop after running for a day

    This is a servlet application running under Resin, with Java hotspot 1.5_13 on Linux 64bit OS. JVM args are:
    -verbosegc -Xms8G -Xmx8G -XX:NewSize=512m -XX:MaxNewSize=512m -XX:+TraceClassUnloading -XX:+UseParallelGC -XX:PermSize=512M -XX:MaxPermSize=512M -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:+DisableExplicitGC
    After running for a day or so, the server goes in to constant Full GC every few seconds, essentially hanging the server. Here is an excerpt of the JVM log:
    127731.579: [Full GC [PSYoungGen: 156635K->0K(352576K)] [PSOldGen: 7751937K->2260734K(7864320K)] 7908573K->2260734K(8216896K) [PSPermGen: 62855K->62855K(524288K)], 5.2972428 secs]
    127737.596: [GC [PSYoungGen: 179328K->157147K(351040K)] 2440062K->2417881K(8215360K), 0.1275439 secs]
    127739.066: [GC [PSYoungGen: 336475K->155824K(355136K)] 2709605K->2683786K(8219456K), 0.1729460 secs]
    127740.502: [GC [PSYoungGen: 340464K->169143K(353792K)] 2980821K->2836693K(8218112K), 0.1914048 secs]
    127741.562: [GC [PSYoungGen: 353783K->166305K(345344K)] 3021333K->2860977K(8209664K), 0.1367291 secs]
    127742.973: [GC [PSYoungGen: 340908K->153430K(349568K)] 3147976K->3124907K(8213888K), 0.1970560 secs]
    127743.946: [GC [PSYoungGen: 328278K->156065K(349568K)] 3299755K->3277928K(8213888K), 0.1868634 secs]
    127745.498: [GC [PSYoungGen: 330183K->156854K(349568K)] 3564442K->3545105K(8213888K), 0.1836370 secs]
    From the log it seemed that the memory usage jumped by 150M to 250M within 1.5 second, even when the user traffic was very light (a couple of page views a second, vs. 10 page views a second at peak). The same app was running fine for many hours on a Windows dev machine in load testing condition with about 300M heapsize. No memory leakage was found so far. (it would be pretty unlikely to have such a large memory leakage without being noticed in dev and testing)
    Thanks for any help.
    Edited by: tuxzilla on Nov 16, 2008 11:43 PM
    Edited by: tuxzilla on Nov 16, 2008 11:46 PM

    A NewSize of 512m seems small for an 8G heap. This would probably cause most objects to be rapidly tenured into the OldGen heap space. (Ultimately depends on your application.) You might consider either using a NewRatio in place of NewSize/MaxNewSize or not use either and instead see how the jvm handles things itself with"-XX:+UseAdaptiveSizePolicy"
    VisualVM is a good graphical tool for watching gc activity.
    NewRatio=1 is the largest you can go for Eden, which will set (Eden and survivor spaces) equal to oldGen space. ie, for 8G, 4g each.
    Watch activity in the gc tool, you will see "sawtooth" activity. If your sawtooth pattern does not maintain a flat profile, then you have in fact have a memory leak.

  • Variable not defined: '_XDOXSLTCTX'

    Hi,
    This is Rama krishna. I have implemented a prototype for barcode generation service using BI Publisher API. I am using Jdeveloper 11g. I have created a small ADF Fusion application to consume the webservice.
    My application is working fine when I run it in Jdeveloper 11g.
    When I run it after deploying to standalone Weblogic server 10.3, I am getting the following error while generating the XSL. I found that RTFProcessor did not generate xsl:params and xsl:variables.
    020609_111410132http://oracle.apps.xdo.common.xml.XSLTWrapperEXCEPTION XSL error:
    <Line 11, Column 170>: XML-22031: (Error) Variable not defined: '_XDOXSLTCTX'.
    Any idea why RTFProcessor is not generating XSL properly when deployed to Oracle WLS 10.3?
    Thanks in advance.
    Thanks & Regards,
    Rama Krishna. P

    Are you trying to use _XDOCTX?
    Use the following syntax to declare/set a variable value:
    <?xdoxslt:set_variable($_XDOCTX, 'variable name', value)?>
    Use the following syntax to retrieve a variable value:
    <?xdoxslt:get_variable($_XDOCTX, 'variable name')?>

  • Variable not defined: '_MR'.

    Dear all,
    I developped an RTF-template that runs fine locally.
    If I upload it to the eBusinessSuite and try to run it there, I receive the following error in the OPP log:
    [UNEXPECTED] [24862:RT391458] java.lang.reflect.InvocationTargetException at ....
    Caused by: oracle.xdo.parser.v2.XPathException: Variable not defined: '_MR'.
    I did not define any variable _MR in my template.
    However if I export my template to an XSL-FO Style Sheet, I can find this variable.
    It is defined twice as: <xsl:variable name="_MR" select="number(89.85)" xdofo:alt="internal"/>
    If I use an image in the heading, variable $_MR is used once in a statement that I don't understand.
    If I remove the image, the variable is only declared, but never used.
    In the eBS he is always wrong: with or without image.
    Any help in this would be very appreciated.
    Little update:
    In the XSL-FO are several variables defined for each section in the template:
    _PW = page with
    _PH = page height
    _ML = margin left
    _MR = margin right
    _MT = margin top
    _MB = margin bottom
    _HY ? something to do with header ?
    _FY ? something to do with footer ?
    May be this does ring a bell.

    Hi
    I have a RTF template wherein I am calling a sub-template.
    Whether I invoke the sub-template RTF directly (import:file) or convert it to XSL and import that (import:xsl), I always get this error
    Caused by: oracle.xdo.parser.v2.XPathException: Variable not defined: '_MR'.
    This happens in my local desktop, I have not even copied the files to server.
    My Template Builder version is '5.6 Build 45'
    Please help.
    Ritu
    Edited by: Rits on Oct 15, 2008 12:42 AM

  • HELP - ABAP Program Cancelled After Running for 2.5 Hours in Background

    I have an ABAP report program that was being tested in our QA system and it died after running for 2.5 hours with the status of "Cancelled" (which, I assume, means it was terminated by SAP for exceeding some type of governor).
    I ran Code Analyzer and no performance issues were recognized.
    I am running several SELECT statements during program execution.  These are a list of all the SELECT statements used in my program.  Also, I'm using PNPCE to get a list of pernrs for which to pull data at the beginning of the program.
    SELECT *
          INTO CORRESPONDING FIELDS OF TABLE gt_p0167
          FROM pa0167
          WHERE pernr EQ gt_selected_pernrs
            AND bplan IN s_bplan
            AND begda LE pn-endda
            AND endda GE pn-begda.
              SELECT SINGLE fgbdt fasex
                INTO (lv_dob, lv_gender)
                FROM pa0021
                WHERE pernr EQ gt_selected_pernrs
                  AND subty EQ <fs_dtyxx>
                  AND objps EQ <fs_didxx>
                  AND begda LE pn-endda
                  AND endda GE pn-begda.
      SELECT SINGLE agency ansvh
        INTO (p_agency_out, lv_ansvh)
        FROM pa0001
        WHERE pernr EQ p_pernr_in
          AND begda LE pn-endda
          AND endda GE pn-begda.
      SELECT SINGLE vorna nachn gbdat perid gesch
        INTO (gt_control_table-fname, gt_control_table-lname, gt_control_table-dob, gt_control_table-mskssn, gt_control_table-gender)
        FROM pa0002
        WHERE pernr EQ p_pernr_in
          AND begda LE pn-endda
          AND endda GE pn-begda.
      SELECT SINGLE perid
        INTO (lv_ssn)
        FROM pa0106
        WHERE pernr EQ p_pernr_in
          AND subty EQ p_subty_in
          AND objps EQ p_objps_in
          AND begda LE pn-endda
          AND endda GE pn-begda.
      SELECT SINGLE smoke
        INTO (p_smoker_out)
        FROM pa0376
        WHERE pernr = p_pernr_in
          AND begda LE pn-endda
          AND endda GE pn-begda.
      SELECT SINGLE state pstlz zcounty
        INTO (p_state_out, lv_zip, p_county_out)
        FROM pa0006
        WHERE pernr EQ p_pernr_in
          AND begda LE pn-endda
          AND endda GE pn-begda.
      SELECT SINGLE werks btrtl
        INTO (lv_werks, lv_btrtl)
        FROM pa0001
        WHERE pernr EQ p_pernr_in
          AND begda LE pn-endda
          AND endda GE pn-begda.
        SELECT SINGLE region
          INTO (p_region_out)
          FROM zpat_county_code
          WHERE county EQ p_county_in.
          SELECT SINGLE pernr
            INTO lv_pernr
            FROM pa0002
            WHERE perid EQ gt_cobra_table-l_essn.
      SELECT SINGLE eecst ercst
        INTO (lv_eecst, lv_ercst)
        FROM t5ubi
        WHERE barea EQ '01'
          AND bplan EQ lv_bplan
          AND bcost EQ p_bcost_in
          AND cstv1 EQ '0001'
          AND smoke EQ p_smoker_in
          AND begda LE pn-endda
          AND endda GE pn-begda.
        SELECT SINGLE kwert
          INTO lv_kwert
          FROM t511k
          WHERE molga EQ '10'
            AND konst EQ 'ZCOB1'
            AND begda LE pn-endda
            AND endda GE pn-begda.

    The screen shot the tester sent me only says that it was canceled.  However, the log shows the following:
    09/17/2008 16:54:32 Job Started
    09/17/2008 16:54:32 Step 001 started (program ZBNI001...
    09/17/2008 19:22:09 ABAP/4 processor: DATASET_NOT_OPEN
    09/17/2008 19:22:09 Job cancelled
    I'm not sure it was an error, per se, but maybe SAP canceled it because it had been running too long?  The "DATASET_NOT_OPEN" is curious although I've no idea what it means.
    Thanks for your help.

  • Variable not defined: '_MR' error when using sub template

    Hi,
    I am creating a check print report. When I had the check layout and the invoice layout on the same template it worked fine. But when I moved the check layout to a sub template then I started getting the error Variable not defined: '_MR' but I dont have any variable '_MR' can some please help me on this.
    Thanks a ton in advance
    Lakshmanan a.

    Hi Lakshmanan
    Its probably worth running the XML Publisher template regenerator program. somehow, I think your templates are out of sync
    Regards
    Tim
    http://blogs.oracle.com/xmlpublisher

  • Variable not defined

    Hi All,
    we are currently upgrading the addon that created using VB6 from B1 2004A to 2007A. When compiling or make project dll file, there is an error message : "Compile Error : variable not defined"
    then the system shows or highlight
    Private Sub Form_Load()
    CRViewer.Top = 0
    CRViewer.Left = 0
    etc
    How to resolve this problem ? Pls give advice.
    Rgd,
    Steve

    Hi,
    Thx for your answer. yes, you are correct. It is CRViewer91in the properties of the CRViewer form meanwhile in the source code CRViewer.
    Rgd,
    Steve

  • HT3964 My computer freezes after running for about 15 min even after setting the energy saving to 3 hours

    My Mac computer freezes after running for 15 min even after seeting the energy saving to 3 hours. Any ideas how to stop the freezing/

    Hi Teodorafrombc,
    Thanks for visiting Apple Support Communities.
    If your computer is becoming unresponsive, you may want to see if specific applications are causing this behavior. Try using the Force Quit menu to check for unresponsive applications:
    Using the Force Quit feature of OS X makes an application close, even when it is not responsive.
    Important: Normally you should not need to force quit an app to close it. When an app is forced to quit, any unsaved changes to open documents are not saved, so try these methods to normally close the app first:
    Choose Quit from the app menu. For example, in Safari, choose Safari > Quit Safari.
    Choose Quit by right-clicking or control-clicking on an app's icon in the Dock
    You can find the article with these steps here:
    OS X: How to quit an unresponsive application using Force Quit
    http://support.apple.com/kb/ht3411
    If your display is going blank or seems to be going to sleep unexpectedly, try these steps first:
    Reset the system
    You can reset the Mac's parameter RAM and SMC.
    You can find the article with these steps and more information here:
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/ht1573
    If these steps don't resolve the issue, feel free to reply with more information about the symptoms you are experiencing.
    Best,
    Jeremy

  • "CJS-30199 The CTC classes were not found after waiting for 900 seconds."

    Here's the snippet of the sapinst_dev.log
    I am trying to install Central Instance on a RedHat Enterprise 4 server (32bit). But stuck at
    this stage.
    TRACE      [iaxxejsexp.cpp:188]
               EJS_Installer::writeTraceToLogBook()
    2007-05-10 20:19:48.093 FSPath(/usr/sap/LN1/DVEBMGS02/j2ee/cluster/server0/apps/sap.com/tclmctcutilbasic_ear/servlet_jsp/ctc/root/WEB-INF/classes/com/sap/ctc/util/ConfigMainExt.class).isExisting() done: false
    TRACE      [iaxxejsexp.cpp:188]
               EJS_Installer::writeTraceToLogBook()
    2007-05-10 20:19:48.093 NWJavaInstance._waitForFile() - elapsed time = 910 timeout = 900
    TRACE      [iaxxejsexp.cpp:188]
               EJS_Installer::writeTraceToLogBook()
    NWException thrown: nw.usageTypes.ctcSyncWaitTimeout:
    The CTC classes were not found after waiting for 900 seconds.
    ERROR      2007-05-10 20:19:48
               CJSlibModule::writeError_impl()
    CJS-30199  The CTC classes were not found after waiting for 900 seconds.
    TRACE      [iaxxejsbas.hpp:460]
               EJS_Base::dispatchFunctionCall()
    JS Callback has thrown unknown exception. Rethrowing.
    ERROR      2007-05-10 20:19:48 [iaxxgenimp.cpp:736]
               showDialog()
    FCO-00011  The step configCAF with step key |NW_Doublestack_CI|ind|ind|ind|ind|0|0|SAP_Software_Features_Configuration|ind|ind|ind|ind|15|0|NW_Usage_Types_Configuration_AS|ind|ind|ind|ind|0|0|NW_CONFIG_CAF|ind|ind|ind|ind|1|0|configCAF was executed with status ERROR .
    Your help is much appreciated.
    Thanks and Regards,
    Satish/

    Hello Satish
    Please do following checklist:
    1. Check that the J2EE engine is up and running (e.g. log in with Admin)
    2. Check that the following application is running:
         Visual Admin => Cluster => Server => Services => Deploy
         Select "Application" and look for "sap.com/tclmctcutilbasic_ear
    3. Try to continue installation
    It could be helpful to apply the patch for CTC as per note # 938261
    before restarting.
    and also try to add more memory allocation.
    If issue persists,
    - I'd like to know which installation DVD/CD number being using ?
    - The contents of the LABEL.ASC file.
    - The installation guide reference and title used for this install ?
    - SAPINST version ?
    - Oracle version/patch level ?
    - Operating system version/patch level ?
    See also:
    Note # 851251 - SAP NetWeaver 2004s Installation on UNIX
    Thanks
    Kenny

  • Firefox 3.6.13 on Mac 10.6 I lose the "mouseover" capability after running for a while. Only a REBOOT of the MAC will restore.

    After running for a while (hours ? days?) I lose the ability to "mouseover" data on a website and get info. Specifically on Yahoo's
    portal page, I can't mouse over a news item and get a summary.
    Restarting Firefox, in safe mode or normal mode, does not restore the function. Rebooting the MAC (unheard of !!) restores. What gives ?

    See if this works.
    Type '''about:config''' in the URL bar and hit enter.
    Filter = '''print.print''' <br />
    There are 6 prefs for headers / footers. <br />
    '''print.print_header...''' center, left, & right <br />
    and <br/>
    '''print.print_footer...''' center, left, & right <br />
    You can add what you want in the '''''Value''''' column and then Restart Firefox to effect the change. <br />

  • Mail quits after running for a few minutes

    Mail quits after running for a couple of minutes, started doing it yesterday. I have looked at the advice given for similar problems, disk utility can find no problem with my drive, I repaired permissions anyway. No change.
    Also ran the 'plutil' on the plist which came out as 'OK'.
    I don't 'think' it is immediately the result of updating to 10.4.7 as it ran happily for some time after the update.
    Is the only solution to trash the plist and redo all my mail accounts?
    20' iMac 2.1 Ghz PowerPC G5   Mac OS X (10.4.7)   1 GB RAM

    Mail probably is crashing when new junk mail arrives. Try the following in order to identify the problem:
    1. Either tell Mail to go offline immediately after opening it, or shut down your Internet connection and open Mail afterwards.
    2. Disable junk mail filtering in Mail > Preferences > Junk Mail.
    3. Go online again.
    If Mail doesn't crash now, then you know for sure there is something wrong with the junk filter. In that case, the following procedure should fix the problem:
    1. Quit Mail if it's running.
    2. In the Finder, go to ~/Library/Mail/.
    3. Locate LSMMap2 and move it to the Trash -- deleting this file is what clicking the Reset button in Preferences > Junk Mail does. If you see an LSMMap file there, move it to the Trash too.
    4. Locate DefaultCounts and move it to the Trash. This file keeps statistics about the number of messages that have been marked as junk, either automatically by the junk filter or manually by the user.
    5. Locate MessageRules.plist and move it to the Desktop. This is where Mail 2.x stores all rules, including those used by the junk filter. If there is a file called MessageRules.plist.backup, move it to the Desktop too. You may also see MessageSorting.plist files there; this is where Mail 1.x stored the rules, and they are no longer used by Mail 2.x, so just move them to the Trash if you see them.
    6. Look for the account folders. The name of each account folder starts with the account type (POP, IMAP, Mac), followed by the account username and the incoming mail server. Open each of the account folders, locate the Junk.mbox or Junk.imapmbox folder within it, and move it to the Trash if present.
    7. Go to ~/Library/Mail/Mailboxes/. Locate any Junk.mbox folders there (their name may include the account name in parenthesis), and move them to the Trash.
    Note: Messages in Junk folders with an .mbox suffix are stored locally, and will be lost forever as a result of doing steps 6 and 7. If there is a chance that you have legit messages there and you want to preserve them, move them to another mailbox in Mail first (you may prevent Mail from crashing by shutting down the Internet connection or telling Mail to go offline immediately after opening it). Messages in Junk folders with an .imapmbox suffix are stored on the server and can be ignored (Mail will rebuild those mailboxes automatically).
    8. Open Mail. As a result of removing the rules file, the junk filter will be disabled now. You may want to either tell Mail to go offline immediately after opening it, or shut down the Internet connection before opening Mail, to prevent it from downloading anything until the junk mail filter has been enabled again.
    9. Go to Mail > Preferences > Junk Mail, enable junk filtering, and configure it however you wish.
    10. Go online again if you went offline in step 8.
    If the above solves the problem and you don't have any rules you'd like to preserve or recreating them is not a daunting task, just delete the MessageRules.plist files that were moved to the Desktop and be done with it.
    Note: For those not familiarized with the ~/ notation, it refers to the user's home folder. You can easily locate any of the folders referred to in this post by copying the file path here, doing Go > Go to Folder in the Finder, and pasting the file path there.

  • Run for loop inside event node

    Hi all, 
              We want to run for loop inside event node with 50ms delay. But when i am doing it the Labview is crashing. Please let me know if somebody did this.
    Thanks in advance,
    Regards,
    Harish. G
    Thanks & Regards,
    Harish. G.

    harishg92 wrote:
    Hi all, 
              We want to run for loop inside event node with 50ms delay. But when i am doing it the Labview is crashing. Please let me know if somebody did this.
    Thanks in advance,
    Regards,
    Harish. G
    You're implementing a For loop inside an event structure? (I don't know of any event "node" in which you can run a For loop)
    If so, that's a bad idea because LabVIEW won't be able to process any events while waiting for your For loop to get done, which might be why its crashing.
    There are tricks to accomplishing what you're trying to do without putting any for loops inside event structure. See what I have  attached and if it helps. "N" is number of times you run your For loop, timeout is whatever delay you want in each loop. This can be done in many ways without adding delays in events, another way could be to fire a separate subVI using Asynchronous call (without waiting for the VI to finish) during those delays, just make sure that such subVI finishes processing within your allocated time (that's how I'd ideally implement things). That method is better because you're doing minimal work inside events structure while using wait period wisely in a separate/parallel process.
    I hope that I understood you correctly and did not go off on a tangent.
    -BTC
    New Controls & Indicators made using vector graphics & animations? Click below for Pebbles UI
    Attachments:
    ForLoop inside Event Structure.vi ‏11 KB

  • Fiscal year variant V3 not defined or maintained for date 01.01.2011

    Hi  Team,
    While doing "ABUMN" we are getting below error message"
    Fiscal year variant V3 not defined or maintained for date 01.01.2011
    Message no. GMMASTERDATA108
    if we change asset value date 02.01.2011, there is no error message.
    we are getting error message only when asset value date is 01.01.2011.
    Please let us know is there any problem 01.01.?
    Thanks and Regards,
    Ram

    Hi Ashwin,
    Yes I have maintained 31 days for JAN in OB29. Even though I'm getting the same information.
    Could you give some other solution.
    Thanks & Regards
    SK.

  • Oracle.xdo11g.xpath.XPathException: Variable not defined

    Hello,
    I got two pivot tables in the RTF Word PlugIn, when I take the second one out, the HTLM output shows fine, when I out the second one in, I get the error "oracle.xdo11g.xpath.XPathException: Variable not defined". I used the wizard to create the tables.
    If I upload the layout and try to execute the report online, I get this error" oracle.xdo.XDOException: java.lang.reflect.InvocationTargetException"
    anyone an Idea how I can add two pivot tables to my template without causing xml errors?

    I got those two in a WORD table and as soon as I put the second one in the table (a word layout table by putting my pivot table in it) the error comes.

  • XSQL variable not defined

    Hallo,
    with the new XSQL-Version 9.2.0.4.0 I get this error:
    XSL-1031: (Error) Variable not defined: 'colspan'.
    transforming a XML File like:
    <ingroup >
    <INPUT />
    </ingroup>
    with an XSL-File like:
    <xsl:template match="ingroup">
    <xsl:variable name="colspan">something</xsl:variable>
    <xsl:apply-templates/>
    </xsl:template>
    <xsl:template match="INPUT" >
    <xsl:value-of select="$colspan"/>
    </xsl:template>
    In the former versions it happens correct:
    A variable defined in one scope is usable in all templates called in this scope.
    What do You do? And what shall I do?
    Greetings from Roland Minde

    You can't share XSL variable across templates. It likes a local variable.

Maybe you are looking for

  • Using imageio to convert .gif to .jpg gives bad image

    Hi, I'm looking at the 1.4 javax.imageio API, and wrote a naive program to convert images from one format to another. It will read .gif, .jpg or .png and correctly write .gif and .png images, but when I try to write a .jpg from a .gif or .png the res

  • Zen Vision M 30Gb Install Probl

    So I just got my Zen Vision M 30Gb today and I plugged it into my computer. It started charging and then my computer finally recognized it and tried to do the normal driver install, but for some reason it doesn't seem to have completely installed the

  • What is this space and how do I get rid of it?

    I usually create a template for my sites with the standard DW CSS templates and then alter them as needed. I always seem to have this space between the header and main content divs, and unless I do a negative margin on the main content div, I can nev

  • ME23N Import PO

    Hi gurús,               I have a problem with the tab "IMPORT" in a PO. In the field "container" doesn´t appear all the options in the matchcode. Just 2. Where I can configure more options? Regards enzo

  • Doc Raster Effects on gaussian blur

    CS5, Mac 10.8.4. We inherited a design at doc raster effects of 72 dpi, using a light blue PMS 291 arch shape that was gaussian blurred to make a soft arched gradient. Changed doc raster effects to 300 dpi, and the gradient turned into a solid of PMS