XQuery with recuesive function and instance of operation gives problem

Hi,
<< Using Oracle 11g .06. release >>
I have an Xquery that has recursive functions and "instance of" operation.
I facing the following problem
"error raised during evaluation: oracle.xquery.XQException: XPTY0004: It is a type error if, during the static analysis phase, an expression is found to have a static type that is not appropriate for the context in which the expression occurs, or during the dynamic evaluation phase, the dynamic type of a value does not match a required type as specified by the matching rules in 2.5.4 SequenceType Matching.
Detail: empty sequence encountered where a sequence of length one is expected
The same xQuery works on Berkely DB, Altova XML and Oxygen. I could able to figure out the problem in oracle, where i need an help from you people.
The below is the XQuery Function
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
SELECT XMLQuery('xquery version "1.0";
declare default element namespace "WiMax_CAPC_XML";(: :)
declare namespace HHP="HHP";(: :)
declare namespace AtomicXQuery="AtomicXQuery";(: :)
declare function AtomicXQuery:filter-modifier($element as element(), $attribute-name as xs:string*) {
element {node-name($element)}
for $child in $element/node()
return if ($child instance of element())
then (("deepa instance"),$child,"45",name($child),$attribute-name,
if($child/node() instance of element())
then ("it is an instance of element")
else($child),
AtomicXQuery:filter-modifier($child, $attribute-name))
else $child
let $i:= ora:view("NECB")/node()/child::*[2]/HHP:HHP/HHP:hapNe/HHP:maxCageCount
let $m:=element HHP:deepa {element HHP:deepa1 {"deepa1"}} return AtomicXQuery:filter-modifier($m,"modifier")'
RETURNING CONTENT) AS RESULT
FROM DUAL;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
The XML data is available in XMLType table NECB.
The XMLData is as follows
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<?xml version="1.0" encoding="UTF-8"?>
<ConfigDataFile xmlns="WiMax_CAPC_XML" xmlns:HHP="HHP" xmlns:SWM="SWM" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<fileHeader cfgMinorVersion="0" cfgSavedMinorVersion="0" cfgVersion="0" fileFormatVersion="CAPC_I1" fileName="NECB.xml" fileType="necb" senderName="CNEOMI" swVersion="D00.00.01.05" vendorName="Motorola"/>
<configData dnPrefix="String">
<HHP:HHP>
<HHP:hapNe>
<HHP:maxCageCount>3</HHP:maxCageCount>
<HHP:minLogLevel>1</HHP:minLogLevel>
</HHP:hapNe>
<HHP:hapCageTable>
<HHP:hapCageEntry cageId="1">
<HHP:numOfModems>1</HHP:numOfModems>
<HHP:numOfBackupModems>1</HHP:numOfBackupModems>
<HHP:hapCagemaxModemCount>1</HHP:hapCagemaxModemCount>
<HHP:minModemLogLevel>1</HHP:minModemLogLevel>
<HHP:hapModemTable>
<HHP:hapModemEntry cageId="1" modemId="1">
<HHP:maxServiceTypeCount>1</HHP:maxServiceTypeCount>
<HHP:hapModemLogLevel>1</HHP:hapModemLogLevel>
<HHP:maxBlackboxCount>1</HHP:maxBlackboxCount>
<HHP:minBlackboxLogLevel>1</HHP:minBlackboxLogLevel>
<HHP:hapBlackboxTable>
<HHP:hapBlackboxEntry cageId="1" modemId="1" blackboxId="1">
<HHP:hapBlackboxLogLevel>1</HHP:hapBlackboxLogLevel>
</HHP:hapBlackboxEntry>
</HHP:hapBlackboxTable>
</HHP:hapModemEntry>
</HHP:hapModemTable>
</HHP:hapCageEntry>
</HHP:hapCageTable>
<HHP:serviceTypeTable>
<HHP:serviceTypeEntry serviceTypeId="1">
<HHP:priority>1</HHP:priority>
<HHP:serviceTypemaxModemCount>1</HHP:serviceTypemaxModemCount>
</HHP:serviceTypeEntry>
</HHP:serviceTypeTable>
<HHP:serviceMappingTable>
<HHP:serviceMappingEntry cageId="1" modemId="1" serviceTypeId="1">
</HHP:serviceMappingEntry>
</HHP:serviceMappingTable>
</HHP:HHP>
     <SWM:SWM>
<SWM:wmanIfBsPagingGroupTable>
<SWM:wmanIfBsPagingGroupEntry ifIndex="1" wmanIfBsPagingGroupIndex="1">
<SWM:wmanIfBsPagingGroupId>1</SWM:wmanIfBsPagingGroupId>
<SWM:wmanIfBsPagingControllerId>9</SWM:wmanIfBsPagingControllerId>
<SWM:wmanIfBsPagingCycle>100</SWM:wmanIfBsPagingCycle>
<SWM:wmanIfBsPagingOffset>1</SWM:wmanIfBsPagingOffset>
<SWM:wmanIfBsPagingRetryCount>3</SWM:wmanIfBsPagingRetryCount>
<SWM:wmanIfBsPagingBcastRetryCount>3</SWM:wmanIfBsPagingBcastRetryCount>
<SWM:wmanIfBsPagingControllerAddress>aabbccddeeffaabbccddeeffaabbccddeeffaabbccddeeffaabbccddeeffaabb</SWM:wmanIfBsPagingControllerAddress>
<SWM:wmanIfBsPagingControllerAddressType>1</SWM:wmanIfBsPagingControllerAddressType>
<SWM:wmanIfBsPagingControllerAsnMmId>aabbccddeeff</SWM:wmanIfBsPagingControllerAsnMmId>
</SWM:wmanIfBsPagingGroupEntry>
</SWM:wmanIfBsPagingGroupTable>
<SWM:wmanIfAsnMmTable>
<SWM:wmanIfAsnMmEntry ifIndex="1">
<SWM:wmanIfAsnMmId>AAffFFAAAAFF</SWM:wmanIfAsnMmId>
<SWM:wmanIfAsnMmId/>
</SWM:wmanIfAsnMmEntry>
</SWM:wmanIfAsnMmTable>
<SWM:wmanIfNeighborAsnMmTable>
<SWM:wmanIfNeighborAsnMmEntry ifIndex="1" wmanIfNbrAsnMmId="AAffFFAAAAFFFFFF">
<SWM:wmanIfNbrAsnMmAddress>AAffFFAAAAFFFFFF</SWM:wmanIfNbrAsnMmAddress>
<SWM:wmanIfNbrAsnMmAddressType>1</SWM:wmanIfNbrAsnMmAddressType>
<SWM:wmanIfNbrAsnMmControlSecurityProtocol>1</SWM:wmanIfNbrAsnMmControlSecurityProtocol>
</SWM:wmanIfNeighborAsnMmEntry>
</SWM:wmanIfNeighborAsnMmTable>
</SWM:SWM>
</configData>
<fileFooter dateTime="2007-11-07T09:30:47.0Z" update="2007-11-07T09:30:47.0Z"/>
</ConfigDataFile>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
The expected output XML is as follows
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<HHP:deepa xmlns="WiMax_CAPC_XML" xmlns:HHP="HHP">deepa instance<HHP:deepa1>deepa1</HHP:deepa1>45 HHP:deepa1 modifier<HHP:deepa1>deepa1</HHP:deepa1>
     <HHP:deepa1>deepa1</HHP:deepa1>
</HHP:deepa>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Thanks in advance!

Ashwin,
Please try it with 11.1.0.7 instead and let us know if it works.
Regards,
Geoff

Similar Messages

  • Form with Folder Functionality and Tab Pages

    Refering here the original link to increase the visibility:
    Apps Form with Folder Functionality and Tab Pages

    DT1977,
    In your referenced post, you indicate that you are trying to create an "APPS Form". Perhaps, you should post your question to the Enterprise Business Suite (EBS) forums. This forum is for non-EBS Forms questions.
    Craig...

  • Why is my Snow Leopard 10.6.8 suddenly giving me a gray screen and progress bar after I've turned it on? The progress bar takes 4-5 minutes to complete then signing on with my password and all other operations are normal. Solution? Many thanks.

    Why is my Snow Leopard 10.6.8 suddenly giving me a gray screen and progress bar after I've turned it on? The progress bar takes 4-5 minutes to complete then signing on with my password and all other operations are normal. Solution? Many thanks.

    It's starting in safe mode > http://support.apple.com/kb/HT1564
    First of all, do a PRAM reset. If it doesn't help, open Terminal and type:
    sudo nvram boot-args=""

  • Hello apple I have the problem with my iPhone and my friends have this problem too. My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it bu

    Hello apple
    I have the problem with my iPhone and my friends have this problem too.
    My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it but when answer both of us can't hear anything and when I put my iPhone to my face the screen is still on and when I quit the phone application and open it again it will automatic call my recent call. And when my friends call me my iPhone didn't show anything even the missed call I'm only know that I missed the call from messages from carrier. Please check these problem I restored my iPhone for 4 time now in this week. I lived in Hatyai, Songkhla,Thailand and many people in my city have this problem.
    Who have this problem??

    Apple isnt here. this is a user based forum for technical questions. The solution is to restart, reset, and restore as new which is in the manual after that get it replaced for hard ware failure. if your within your one year warranty its replaced if it is out of the warranty then it is 199$

  • When I plug in my headphones into my imac only the right side plays music. I tried with other headphones and still has the same problem. I tried the headphones with other devices and they work properly. Can anyone help me with my problem please?

    When I plug in my headphones into my imac only the right side plays music. I tried with other headphones and still has the same problem. I tried the headphones with other devices and they work properly. Can anyone help me with my problem please?

    Macs have crazy headpne jacks in different models.
    So we know more about it...
    At the Apple Icon at top left>About this Mac, then click on More Info, then click on Hardware> and report this upto but not including the Serial#...
    Hardware Overview:
    Model Name: iMac
    Model Identifier: iMac7,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.4 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache: 4 MB
    Memory: 6 GB
    Bus Speed: 800 MHz
    Boot ROM Version: IM71.007A.B03
    SMC Version (system): 1.21f4

  • Creating a  query with group function and non group function

    Could anyone help me with creating a query that contain single row function and multiple row function in Report6i.
    what i want to do basically is to create a query that will display sum of certain columns according to a column in that table

    You can either calculate a sum yourself, or let Reports do it for you.
    1. select sum(column) from table where ....
    This will just display the sum, not the records.
    2. Make a query: select column from table where ...
    Create a summary field. You can do it manually or with the report wizard.
    That will create a report like this:
       Column
           10
           20
           15
       ======
    Sum    45                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • "SCR24 style lid with window function".And only one adaptor for DK48

    I recently purchased the product "SCR24 style lid with window function". The contents of the box is the adapter for the "dock" DK48, the problem that I find is that I have two DK48 and only one adapter. Is official that the Sony's answer is:" every time you want to charge, remove from the dock and put on the other. There is no spare part, cant purchase it separately"?.

    I've searched the places I use for parts and cases etc but no adaptors - The only thing I can think of doing is to buy a magnetic charging cable and use that
    For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled.   Richard P. Feynman

  • Can't open Gmail with Windows 8.1 (still works with I.E., and this wasn't a problem on Windows XP)

    Hi! I've switched from Windows XP to 8.1. I've installed Firefox, but when I try to access gmail, I get a message that says gmail can't be opened because I need to disable cookies. I don't want to disable cookies, and this was never a problem before. Gmail still works through Internet Explorer, which is not as good a browser. How do I get gmail and firefox to play nicely together in the sandbox and still share cookies? Thanks!

    You can try these steps in case of issues with web pages:
    You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and cookies only from websites that cause problems.
    "Clear the Cache":
    *[[Image:new fx menu]] > Options/Preferences> Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *[[Image:new fx menu]] > Options/Preferences > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"

  • I am using Photoshop CS5 extended and I have tried to get an update to be able to use raw with my D600 and it won't give me any options. Any recommendations othere than to go to PSCC and LRCC?

    Is there a way to update PS CS5 extended to allow me to use raw with my D600. It works with my D300 and D90 raw but not with my D600.

    CS5 Adobe Camera Raw stopped at 6.7 and the D600 support was introduced in 7.2 for CS6.
    You are eligible to upgrade to Photoshop CS6 for $200 Standard or $400 Extended if you do not want the Cloud.
    Creative Suite 6
    Gene

  • ABAP Objects with Workflows / Classes and Instances

    Hello,
    I am currently designing a workflow using an ABAP-Objects. So far I have been been able to get my Workflow to run with my class, but I have a couple of problems:
    - I am using the Function 'SAP_WAPI_START_WORKFLOW' to start other subflows, which enables me to decide which subflow to start at runtime. All of the subflows have standart importing-parameters in their containers, such as the key of my class. In each workflow I instantiate my class using a self-written method, which checks the table T_INSTANCES in my object, and then either returns the object reference to an existing instance or creates a new one. Obviously all of the subflows that I call from my main workflow should be able to find the instance. As far as I can see in their protocolls, this happens without any problems. The problem starts when I make changes to the instance. For example the changing of attributes (with setter methods) seems not to work. After the subflows are finished, in my main workflow, I do not see (with getter methods) any changes that has been made to the object. Is local persistence really limited to one workflow ?
    - My second problem is basically about the workflow container in workflow protocoll. In the same workflow, I can change the attributes of my object. Nevertheless, the protocoll always show the initial attribute, even though, my task with the getter-method returns the new value of the attribute.
    I appreciate any help and thanks a lot in advance.

    Hello Pauls,
    Thank you for your answer. I think we are misunderstanding each other. The problem occurs (I think) because my class is not a singleton class. Or am I mistaken ?
    When I directly start a subflow from my main workflow, then the instance that I have created in my main workflow is also visible to the subflow. As well as the static table which actually keeps track of the instances. So, in this case the subflows finds the instance and then can use the object as is.
    When I start a subflow from my main workflow using the function I mentioned above, then even though the same object key is used, there is a new instance. And the static table (I assume that you mean a static variable from type table, when you say "class table") is completely empty. In this case, my "new" instance is created which overwrites every attribute that I have set in the main workflow, before I started the subflow. More interestingly, my main workflow instantiates another new object, as soon as the subflow has finished. (I am using an event to wait for the subflow to finish.)
    On the other hand, I am not quite sure that I understood your approach with refresh and how it could help me. This method is not well documented anywhere, and all of the examples that I have found are about "leave it empty"
    As far as I understood, this method is called by the workflow between the steps, when an object is used. I slowly start to think that I need advanced information about Workflows and Memory Management.
    Thanks a lot again. Apparently, I am the only person who came across such a problem
    Greetz
    G.Fendoglu

  • 2.1.0.62: Problem with Package.Functions and Unit Tests

    I like the new Sqldeveloper - I startet trying Unit Tests as described here: Link: [http://www.oracle.com/technology/obe/11gr2_db_prod/appdev/sqldev/sqldev_unit_test/sqldev_unit_test.htm#t4]
    It worked with a test-procedure. Now i am trying to test my package functions, but all i get is this:
    Die folgende Prozedur wurde ausgeführt.
    Ausführungsaufruf
    BEGIN
    :1 := "PKG_MYPACK"."CREATEFUNCTION"(IN_PROGRAMMEID=>:2,
    IN_AMOUNT=>:3,
    IN_SWS=>:4);
    END;
    Bind-Variablen verwendet
    1 INTEGER OUT (null)
    2 INTEGER IN 1
    3 INTEGER IN 10
    4 INTEGER IN 11
    Ausführungsergebnisse
    ERROR
    Ungültige Konvertierung angefordert
    oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:439)
    oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:7723)
    oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:7496)
    oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:7978)
    oracle.jdbc.driver.OracleCallableStatement.setObject(OracleCallableStatement.java:4063)
    oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:221)
    oracle.dbtools.raptor.datatypes.strategies.callablestatement.CallableBindingDatum.customBindIN(CallableBindingDatum.java:135)
    oracle. ...
    what can i do?

    Created
    Bug 8976245 - EA1: UNIT_TEST: INVALID CONVERSION ERROR USING INTEGER PARAMETER
    and have asked bug responder to keep you updated on status here in the forum.
    Bad news is that any INTEGER parameter for which you specify a non-null value will fail.
    Possibly helpful news is that if you create a 'clone' of you function using NUMBER as the data type, you can continue to experiment with how unit testing may be of use to you.
    Sorry no instant answer. :(
    Brian
    SQL Developer Team

  • Help with quit function and elapsed time function.

    I have this annoying assignment game here and I am almost finished with it. I got two problems, the first is that the quit function partly works it quits from the game but it is giving me a "Guess is to high" message. I've tried so many things but nothing seems to work.
    The other problem is that the elapsed time " *(long f = System.currentTimeMillis()/1000;)* " starts to count before you actually write something for example if you run the program without writing something for 5 minutes, the highscore list will show your time you finished the game + these 5 minutes.
    If somebody could give me a hint or could explain to me how I could fix these problems I would be very thankful.
    import java.util.*;
    class Game  {
         public static void main(String[] arg) {
              int RAN,Entered_number=0,count=0;
              String guess1[] = new String[1];
              int guess2[] = new int[1];
              int time[] = new int[1];
              String NP1[];
              int NP2[];
              int NP3[];
              int j=0;
              Scanner scan=new Scanner(System.in);
              Scanner kb = new Scanner(System.in);
              Random myRandomizer = new Random();
              RAN= Math.abs(myRandomizer.nextInt() % 1000) + 1;
              System.out.println("\t\t\t"+"Hello and welcome to this guessing game!");
              System.out.println("\t\t\t"+"Start guessing, it's a number between 1 and 1000...");
              System.out.print("--------------------------------------------------");
              System.out.println("-----------------------------");
              System.out.println("please enter your number:");
              String control="";//control is just a name for the variable. it's used to read in the whole line if you have written something that is not a number.
              String name="";
              String answer="";
              boolean okgame=true;//is used so that you can play the game as long as the variable okgame is true.
              long f = System.currentTimeMillis()/1000;
              while((Entered_number!=RAN) && okgame)//controls if the number is different then RAN and that okgame is true.
                   System.out.print(RAN);
                   System.out.print(">");
                   if(scan.hasNextInt())//checks in advance that what you have written is a number, if so then it can read it as Entered_number.
                        Entered_number=scan.nextInt();
                   else
                        control=scan.nextLine();//Reads int the whole line to control what has been written in.
                        if(control.equalsIgnoreCase("quit"))//if control is = quit, then compare to will return 0.
                             okgame=false; //if you have written quit okgame, you put in false to quit the game.
                             // Entered_number=0;//initiates entered_number all over again to show message stupid guess i wont count that.
                   if(okgame)//as long as okgame is true it will show the result otherwise you go to else to show that the game is finished.
                        if((Entered_number>RAN)&&(Entered_number>=1)&&(Entered_number<=1000))
                             System.out.println("Guess is too high!");
                             count++;
                        else if((Entered_number<RAN)&&(Entered_number>=1)&&(Entered_number<=1000))
                             System.out.println("Guess is too low!");
                             count++;
                        else if((Entered_number>1000)||(Entered_number<1))
                             System.out.println("Stupid guess! I won't count that...");
                        else if (Entered_number==RAN)
                             long p = System.currentTimeMillis()/1000;
                             count++;
                             System.out.println("****Guess is CORRECT!");
                             System.out.print("****You guessed it in"+" "+count+" guesses and ");
                             System.out.print(p - f);
                             System.out.println(" seconds.");
                             System.out.println("please enter your name:");
                             System.out.print(">");
                             name=kb.next();
                             System.out.println("Do you want to play again ?(y/n)"); 
                             System.out.print(">");
                             answer=kb.next();
                             if(answer.equalsIgnoreCase("n"))
                                  System.out.println("**** The game is over.");
                                  okgame=false;
                             if(answer.equalsIgnoreCase("y"))
                                  Random myRandom = new Random();
                                  RAN = Math.abs(myRandom.nextInt() % 1000) + 1;
                                  System.out.println("current high score list:");
                                  long ttime = p-f;
                                  int ta = (int)ttime;
                                  j++;
                                  if (j > 1){
                                       NP1 = new String[j];
                                       NP2 = new int[j];
                                       NP3 = new int[j];
                                       for (int n = 1; n < j; n++){
                                            NP1[n-1] = guess1[n-1];
                                            NP2[n-1] = guess2[n-1];
                                            NP3[n-1] = time[n-1];
                                       NP1[j-1] = name;
                                       NP2[j-1] = count;
                                       NP3[j-1] = ta;
                                       guess1 = new String[j];
                                       guess1 = NP1;
                                       time = new int[j];
                                       guess2 = new int[j];
                                       guess2 = NP2; 
                                       time = NP3;
                                       for (int w = 1; w < guess2.length; w++) {
                                            for (int x = 1; x < guess2.length; x++) {
                                                 if (guess2[x] < guess2[x-1]) {
                                                      int z4, z5,z6,z7;
                                                      String z2, z3;
                                                      z4 = guess2[x];
                                                      z5 = guess2[x-1];
                                                      guess2[x] = z5;
                                                      guess2[x-1] = z4;
                                                      z2 = guess1[x];
                                                      z3 = guess1[x-1];
                                                      guess1[x] = z3;
                                                      guess1[x-1] = z2;
                                                      z6 = time[x];
                                                      z7 = time[x-1];
                                                      time[x] = z7;
                                                      time[x-1] = z6;
                                       for (int al = 1; al < time.length; al++) {
                                            for (int o = 1; o < time.length; o++) {
                                                 if (guess2[o] == guess2[o-1]) {
                                                      if (time[o] < time[o-1]) {
                                                           int z4, z5, z6 ,z7;
                                                           String z2, z3;
                                                           z2 = guess1[o]; z3 = guess1[o-1];
                                                           z4 = guess2[o]; z5 = guess2[o-1];
                                                           z6 = time[o]; z7 = time[o-1];
                                                           guess1[o] = z3; guess1[o-1] = z2;
                                                           guess2[o] = z5; guess2[o-1] = z4;
                                                           time[o] = z7; time[o-1] = z6;
                                  else {
                                       guess1[j-1] = name;
                                       guess2[j-1] = count;
                                       time[j-1] = ta;
                                  System.out.println("Number\t\tName\t\tHigh Score\tTime (Seconds)");
                                  System.out.println("------\t\t----\t\t----------\t--------------");
                                  for (int h = 0; h < j; h++) {
                                       System.out.println(" " + (h+1) + "\t\t" + guess1[h] + "\t\t" + guess2[h] + "\t\t" + time[h]);
                                  System.out.println("");
                                  System.out.println("Start guessing, it's a number between 1 and 1000...");
                             count=0;
    //-----------------------------------------------------------------------------------------------------------------------------------------------------PS I'm not done with the comments yet so that could be a little confusing for you guys =P
    Thanks!
    /chill

    else {
                                       guess1[j-1] = name;
                                       guess2[j-1] = count;
                                       time[j-1] = ta;
                                  System.out.println("Number\t\tName\t\tHigh Score\tTime (Seconds)");
                                  System.out.println("------\t\t----\t\t----------\t--------------");
                                  for (int h = 0; h < j; h++) {
                                       System.out.println(" " + (h+1) + "\t\t" + guess1[h] + "\t\t" + guess2[h] + "\t\t" + time[h]);
                                  System.out.println("");
                                  System.out.println("Start guessing, it's a number between 1 and 1000...");
                                                                                               f=System.currentTimeMillis()/1000;////////////include this line here
                             count=0;
                   }

  • How to restart an entire J2EE Cluster - With multiple hosts and instances

    I am looking for a definitive answer on the right way of Restarting an SAP Enterprise Portal CLUSTER without an ABAP stack.
    Currently the process is to use ssh into each box and either jcmon pf=<profile> then restart instance, or ssh into each host and run startsap/stopsap on each.
    Is there a better way?
    -Tim

    Hi,
    Please find the below SAP notes to understand the startup sequences.
    897933  Start and stop sequence for SAP systems
    936273  sapstartsrv for all platforms
    I would recommend you to check the below SAP link for more information.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60e24f7b-1ba1-2b10-c0a0-e514b855624b?quicklink=index&overridelayout=true
    Regards,
    Naveen.

  • Printer compatible with Windows 2000 and Windows 8 operating system?

    My office needs to access a terminal server hosted offsite.  The terminal server uses Windows 2000.  My laptop is Windows 8.   Since I upgraded my laptop I am no longer able to print.  Do they make a computer that is compatible with both versions of Windows?  Is there a fix?  I should also mention, I purchased a new HP and it wouldn't work either.  augh!

    Windows 2000 has been successfully tested with the AT interface card. The file: "Win2000Issues.rtf" (located in the "nifbus" directory) illustrates how to install the AT-FBUS interface card under the Windows 2000 platform. However, the PCMCIA-FBUS card is not supported at this time. In order to use the software under Windows 2000 the "MFC42.dll" file must be in the same folder as the Configurator, otherwise display problems may be experienced.
    Windows ME has also been tested with both the AT and PCMCIA interface boards and appears to work well. Additionally, the Configurator software has proven to be stable under ME.

  • How to avoid full tablescan with max() function and group by

    Hi Exports,
    This is my query:
    Select max(dID) as dID
    from stellent.Revisions
    Group by dDocName
    Plan
    SELECT STATEMENT CHOOSECost: 3,154 Bytes: 2,336,150 Cardinality: 93,446           
         2 SORT GROUP BY Cost: 3,154 Bytes: 2,336,150 Cardinality: 93,446      
              1 TABLE ACCESS FULL STELLENT.REVISIONS Cost: 632 Bytes: 5,501,700 Cardinality: 220,068
    How can I tune the query ?
    Thanks a lot!

    So I'm assuming it's slow and that's why you're asking for help and not just because it says full table scan. The problem is that you are reading every single row in the table regardless, so the best option is full tablescan. If you don't want to read every row in the table then I would suggest starting with a where clause.

Maybe you are looking for