Mysteries of Java number 32,194

Mysteries of Java number 32,194:
Why the class URL has methods marked "protected", even though it is itself marked "final".
Drake

Hey they are thinking about it... for 3 years now http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4880778
These things take time.

Similar Messages

  • Java number calculation.

    hi, i am doing java encryption/decryption and my key is 128 bits. i need to times multiple keys and thus, the value is far exceed the integer and long value.
    thus i decide to use math.biginteger.
    however, the calculation is weird.
    here is my code
    BigInteger biPdi = new BigInteger(bPdi); //bPdi is a bytearray
    BigInteger biKey = new BigInteger(groupKey);//group key is a bytearray
    BigInteger bicKey = new BigInteger(bicGroupKey));//bicgroupkey is a bytearray
    System.out.println("derivationkey: " + biPdi.toString(16));
    System.out.println("child group key: " + bicKey.toString(16));
    b = biPdi.add(bicKey).toByteArray();     
    BigInteger bit2 = new BigInteger(b);
    System.out.println("derivationkey: " + bit2.toString(16));
    this is the result i am getting back.
    derivationkey: 30
    child group key: 3938393951128f27c3da559f36ea62de
    derivationkey: 3938393951128f27c3da559f36ea630e
    i know the derivationkey has value "0" which is encode as "30" b/c it is based on 16. thus, the byte value is "48" which is the value of "0".
    when i add derviationkey with child group key, i expect to my new diviationkey is same as childgroup key b/c it is childgroup plus 0. however, i am getting a different value. i think the reason is because java byte array try to add 30 to childgroup.
    in this case, how can i do a large number calculation? can someone give me any advice??
    Thanks in advance.

    There's a button what says "code." Hit it and put your code inside the tags.
    i know the derivationkey has value "0" which is
    encode as "30" b/c it is based on 16. thus, the byte
    value is "48" which is the value of "0".0 is zero no matter what the base. And 48 != 0 no matter how much paint you sniff (though it can seem that way).
    when i add derviationkey with child group key, i
    expect to my new diviationkey is same as childgroup
    key b/c it is childgroup plus 0. however, i am
    getting a different value. i think the reason is
    because java byte array try to add 30 to childgroup.If it's 30 and you add it, the answer will come out as 30 more than the number you added to 30.
    in this case, how can i do a large number
    calculation? can someone give me any advice??BigInteger works like it should. derivationkey is 30.
    ~Cheers

  • Java number formats?

    Hi.
    I am writing a program which contains a simple division code. The operation divides a word's frequency in a file by the number of words in that file. This is a code strip
    wordCount = wordsInFile(file2); //number of words in file is obtained from a static method
    String w = wordFreq.get(i).toString(); // I get the frequency of the word from an array list
    double wf = Double.parseDouble(w);
    double normalFreq = wf/wordCount;problem is that sometimes this program produces numbers like this : 8.025682182985554E-4
    I have no idea what this means and how to fix it. Is there a specific number format that I should use to avoid this?
    Thanks!
    Message was edited by:
    Yorae

    Hi.
    I am writing a program which contains a simple
    division code. The operation divides a word's
    frequency in a file by the number of words in that
    file. This is a code strip
    wordCount = wordsInFile(file2); //number of
    words in file is obtained from a static method
    String w = wordFreq.get(i).toString(); // I get the
    frequency of the word from an array list
    double wf = Double.parseDouble(w);
    double normalFreq = wf/wordCount;problem is that sometimes this program produces
    numbers like this : 8.025682182985554E-4
    I have no idea what this means and how to fix it. Is
    there a specific number format that I should use to
    avoid this?
    Thanks!
    Message was edited by:
    YoraeTake a look at java.text.DecimalFormat
    double normalFreq = wf/wordCount;
    DecimalFormat df = new DecimalFormat("#.##");
    String output = df.format(normalFreq);
    System.out.println("The formatted double is " + output);This should truncate any digits after the second decimal place (I think it rounds it for you but I havent checked).

  • Java number game confused help any1!

    The following simple game is played between a player and the computer. At the
    start the player enters either the number one or two on the keyboard (the computer will also
    choose either one or two at random). Then the computer draws two numbers between one and
    one hundred at random. The human player wins if the number in position corresponding to the
    number he selected is bigger than the number in position corresponding to the number chosen by
    the computer. If the two numbers are the same (either because the player and the computer chose
    the same value or because the random numbers in the chosen positions are the same) the game
    ends in a draw. The code doen't work properly it etiher comes up with computer wins and draw at the same time! Also i need to display the numbers that are generated randomly can anyone help my code:
    import java.lang.Object;
    import java.lang.System;
    import java.io.InputStream;
    import java.util.Scanner;
    class javataex1 {
    public static void main(String[] args) {
    // declarations
    Scanner input = new Scanner (System.in);
    int human ;
    int computer;
    int Number1;
    int Number2;
    //instructions
    Number1=(int) Math.ceil(100*Math.random());
    Number2=(int) Math.ceil(100*Math.random());
    computer=(int) Math.ceil(2*Math.random());
    System.out.print("Enter number 1 or 2: ");
    human = (input.nextInt());
    if (human!=1 && human!=2)
    System.out.println("you entered wrong number");
    else
    if (human==computer)
    System.out.print("Draw");
    else
    human=Number1;
    computer=Number2;
    if (human==computer)
    System.out.print("Draw");
    else
    if (human>computer)
    System.out.print("Human wins");
    else
    if (computer>human)
    System.out.print("Computer wins");
    }

    Crosspost
    http://forum.java.sun.com/thread.jspa?threadID=5245168&tstart=0
    Only post on one forum at a time, please. I think someone answered you in the other thread anyway.
    Illu

  • Java & NUMBER type

    How can I get a NUMBER(5, 7) from a db Oracle.
    I've tried with rs.getDouble, but i don't get espected result!
    I have jdk1.2.2 and I use a thin driver.

    useoracle.jbo.domain.Number Number n = new Number(100);
    java.lang.float f = n.floatValue();Timo

  • EPOS Java Number Rounding Problem

    I am developing a java EPOS system and am having a strange issue with number accuracy that doesnt make any sense to me.
    On a till system you have a user display of the form
    0000000.00
    When you type into this for example the number 7 then the number 8 it goes
    0000000.07
    0000000.78
    Moving along the screen.
    I cant figure out how to represent this accurately (ie using floats) but still have the functionality to append onto the float, not add to it.
    i have come up with the following
            Float tempNum = currentNum*10;
            StringBuffer sb = new StringBuffer(tempNum.toString());
            sb.append(i);
            String s = sb.toString();
            currentNum = Float.valueOf(s).floatValue();
            updateOutputs();With the basic idea being casting to a string buffer, appending then casting back of sorts but i get accuracy issues...
    Pressing 7 a whole bunch of times gives 7777.9995 not 7777.77 etc
    I know there must be a simple and more elegant way to solve this problem but i just cant seem to think around it right now.
    Thanks

    This is an input panel on an EPOS system, but as im designing it for touch screen it has an on screen number pad and display of the number.
    When the buttons are pressed for the numbers that number is appended to the internal integer storage value. Also the output string is updated.
    Most till systems allow you to enter up to X digits until then ignore what you type or print an error, so i am happy to follow this behavior but require the digit count.
    I hope that makes sense but if not my gui is similar to these...
    http://www.tillrollshop.co.uk/asps/uploads/big/1205-1.jpg
    http://www.mi-store.com/mi-store/Till_Main.jpg
    The second image shows a number pad and label just like mine.
    Thanks

  • Java number format exception for BI Publisher query

    I have a data model thats working using one rtf template. Then I created a cross tab query rtf template and when the same data model is executed with the same parameter value, it errors out.
    here is my simple rtf template that I defined:
         for: ITEM_KEY end -->1
    for: ITEM_KEY-->2 for: ITEM_KEY end end --> 3
    For better understanding, 1 is defined as columns of my cross tab, 2 as rows of my cross tab and 3 is the data. I am using version 10.1.3.4ver BIP
    Any help regarding the error is appreciated..
    Thanks in advance
    [011410_035941034][][STATEMENT] Skip migration for cookie (ORA_XDO) is not found
    [011410_035941034][][STATEMENT] /Configuration/xdo.cfg not found.
    [011410_035941064][][STATEMENT] /Configuration/xdo.cfg not found.
    [011410_035941120][][STATEMENT] Logger.init(): *** DEBUG MODE IS ON. ***
    [011410_035941120][][STATEMENT] Logger.init(): LogDir=C:\OracleBI\xmlp\xmlplogs
    [011410_035941430][][STATEMENT] [ PDF GENERATOR ]---------------------------------------------
    [011410_035941430][][STATEMENT] XDO version = Oracle BI Publisher 10.1.3.4.1
    [011410_035941430][][STATEMENT] java.home = C:\Program Files\Java\jdk1.6.0_12\jre
    [011410_035941431][][STATEMENT] XDO_TOP = null
    [011410_035941431][][STATEMENT] Config Path = null
    [011410_035941431][][STATEMENT] Debug Cfg Path= C:\Program Files\Java\jdk1.6.0_12\jre\lib\xdodebug.cfg
    [011410_035941431][][STATEMENT] Font dir = C:\Program Files\Java\jdk1.6.0_12\jre\lib\fonts\
    [011410_035941432][][STATEMENT] Locale = en-US
    [011410_035941432][][STATEMENT] Fallback font = type1.Helvetica
    [011410_035941432][][STATEMENT] [ PDF GENERATOR PROPERTIES ]----------------------------------
    [011410_035941432][][STATEMENT] digit-substitution=null(not set)
    [011410_035941433][][STATEMENT] font.ALBANY WT J.normal.normal=truetype.C:\Program Files\Java\jdk1.6.0_12\jre\lib\fonts\ALBANWTJ.ttf
    [011410_035941433][][STATEMENT] font.ALBANY WT K.normal.normal=truetype.C:\Program Files\Java\jdk1.6.0_12\jre\lib\fonts\ALBANWTK.ttf
    [011410_035941433][][STATEMENT] font.ALBANY WT SC.normal.normal=truetype.C:\Program Files\Java\jdk1.6.0_12\jre\lib\fonts\ALBANWTS.ttf
    [011410_035941434][][STATEMENT] font.ALBANY WT TC.normal.normal=truetype.C:\Program Files\Java\jdk1.6.0_12\jre\lib\fonts\ALBANWTT.ttf
    [011410_035941434][][STATEMENT] font.ALBANY WT.normal.normal=truetype.C:\Program Files\Java\jdk1.6.0_12\jre\lib\fonts\ALBANYWT.ttf
    [011410_035941434][][STATEMENT] font.ANDALE DUOSPACE WT J.normal.bold=truetype.C:\Program Files\Java\jdk1.6.0_12\jre\lib\fonts\ADUOJB.ttf
    [011410_035941434][][STATEMENT] font.ANDALE DUOSPACE WT J.normal.normal=truetype.C:\Program Files\Java\jdk1.6.0_12\jre\lib\fonts\ADUOJ.ttf
    [011410_035941435][][STATEMENT] font.ANDALE DUOSPACE WT K.normal.bold=truetype.C:\Program Files\Java\jdk1.6.0_12\jre\lib\fonts\ADUOKB.ttf
    [011410_035941435][][STATEMENT] font.ANDALE DUOSPACE WT K.normal.normal=truetype.C:\Program Files\Java\jdk1.6.0_12\jre\lib\fonts\ADUOK.ttf
    [011410_035941435][][STATEMENT] font.ANDALE DUOSPACE WT SC.normal.bold=truetype.C:\Program Files\Java\jdk1.6.0_12\jre\lib\fonts\ADUOSCB.ttf
    [011410_035941435][][STATEMENT] font.ANDALE DUOSPACE WT SC.normal.normal=truetype.C:\Program Files\Java\jdk1.6.0_12\jre\lib\fonts\ADUOSC.ttf
    [011410_035941436][][STATEMENT] font.ANDALE DUOSPACE WT TC.normal.bold=truetype.C:\Program Files\Java\jdk1.6.0_12\jre\lib\fonts\ADUOTCB.ttf
    [011410_035941436][][STATEMENT] font.ANDALE DUOSPACE WT TC.normal.normal=truetype.C:\Program Files\Java\jdk1.6.0_12\jre\lib\fonts\ADUOTC.ttf
    [011410_035941436][][STATEMENT] font.ANDALE DUOSPACE WT.normal.bold=truetype.C:\Program Files\Java\jdk1.6.0_12\jre\lib\fonts\ADUOB.ttf
    [011410_035941436][][STATEMENT] font.ANDALE DUOSPACE WT.normal.normal=truetype.C:\Program Files\Java\jdk1.6.0_12\jre\lib\fonts\ADUO.ttf
    [011410_035941437][][STATEMENT] font.CG TIMES.italic.bold=type1.Times-BoldItalic
    [011410_035941437][][STATEMENT] font.CG TIMES.italic.normal=type1.Times-Italic
    [011410_035941437][][STATEMENT] font.CG TIMES.normal.bold=type1.Times-Bold
    [011410_035941437][][STATEMENT] font.CG TIMES.normal.normal=type1.Times-Roman
    [011410_035941438][][STATEMENT] font.COURIER NEW.italic.bold=type1.Courier-BoldOblique
    [011410_035941438][][STATEMENT] font.COURIER NEW.italic.normal=type1.Courier-Oblique
    [011410_035941438][][STATEMENT] font.COURIER NEW.normal.bold=type1.Courier-Bold
    [011410_035941438][][STATEMENT] font.COURIER NEW.normal.normal=type1.Courier
    [011410_035941439][][STATEMENT] font.COURIER.italic.bold=type1.Courier-BoldOblique
    [011410_035941439][][STATEMENT] font.COURIER.italic.normal=type1.Courier-Oblique
    [011410_035941439][][STATEMENT] font.COURIER.normal.bold=type1.Courier-Bold
    [011410_035941439][][STATEMENT] font.COURIER.normal.normal=type1.Courier
    [011410_035941440][][STATEMENT] font.DEFAULT.italic.bold=type1.Helvetica-BoldOblique
    [011410_035941440][][STATEMENT] font.DEFAULT.italic.normal=type1.Helvetica-Oblique
    [011410_035941440][][STATEMENT] font.DEFAULT.normal.bold=type1.Helvetica-Bold
    [011410_035941440][][STATEMENT] font.DEFAULT.normal.normal=type1.Helvetica
    [011410_035941441][][STATEMENT] font.GLFALLBACK.normal.normal=truetype.C:\Program Files\Java\jdk1.6.0_12\jre\lib\fonts\ALBANWTJ.ttf
    [011410_035941441][][STATEMENT] font.HELVETICA.italic.bold=type1.Helvetica-BoldOblique
    [011410_035941441][][STATEMENT] font.HELVETICA.italic.normal=type1.Helvetica-Oblique
    [011410_035941441][][STATEMENT] font.HELVETICA.normal.bold=type1.Helvetica-Bold
    [011410_035941442][][STATEMENT] font.HELVETICA.normal.normal=type1.Helvetica
    [011410_035941442][][STATEMENT] font.MONOSPACE.italic.bold=type1.Courier-BoldOblique
    [011410_035941442][][STATEMENT] font.MONOSPACE.italic.normal=type1.Courier-Oblique
    [011410_035941443][][STATEMENT] font.MONOSPACE.normal.bold=type1.Courier-Bold
    [011410_035941443][][STATEMENT] font.MONOSPACE.normal.normal=type1.Courier
    [011410_035941443][][STATEMENT] font.SANS-SERIF.italic.bold=type1.Helvetica-BoldOblique
    [011410_035941443][][STATEMENT] font.SANS-SERIF.italic.normal=type1.Helvetica-Oblique
    [011410_035941444][][STATEMENT] font.SANS-SERIF.normal.bold=type1.Helvetica-Bold
    [011410_035941444][][STATEMENT] font.SANS-SERIF.normal.normal=type1.Helvetica
    [011410_035941444][][STATEMENT] font.SERIF.italic.bold=type1.Times-BoldItalic
    [011410_035941444][][STATEMENT] font.SERIF.italic.normal=type1.Times-Italic
    [011410_035941445][][STATEMENT] font.SERIF.normal.bold=type1.Times-Bold
    [011410_035941445][][STATEMENT] font.SERIF.normal.normal=type1.Times-Roman
    [011410_035941445][][STATEMENT] font.SYMBOL.normal.normal=type1.Symbol
    [011410_035941445][][STATEMENT] font.TIMES NEW ROMAN.italic.bold=type1.Times-BoldItalic
    [011410_035941446][][STATEMENT] font.TIMES NEW ROMAN.italic.normal=type1.Times-Italic
    [011410_035941446][][STATEMENT] font.TIMES NEW ROMAN.normal.bold=type1.Times-Bold
    [011410_035941446][][STATEMENT] font.TIMES NEW ROMAN.normal.normal=type1.Times-Roman
    [011410_035941446][][STATEMENT] font.TIMES.italic.bold=type1.Times-BoldItalic
    [011410_035941447][][STATEMENT] font.TIMES.italic.normal=type1.Times-Italic
    [011410_035941447][][STATEMENT] font.TIMES.normal.bold=type1.Times-Bold
    [011410_035941448][][STATEMENT] font.TIMES.normal.normal=type1.Times-Roman
    [011410_035941448][][STATEMENT] font.ZAPFDINGBATS.normal.normal=type1.ZapfDingbats
    [011410_035941449][][STATEMENT] pdf-changes-allowed=0
    [011410_035941450][][STATEMENT] pdf-compression=true
    [011410_035941450][][STATEMENT] pdf-enable-accessibility=true
    [011410_035941451][][STATEMENT] pdf-enable-copying=false
    [011410_035941451][][STATEMENT] pdf-encryption-level=0
    [011410_035941452][][STATEMENT] pdf-font-embedding=true
    [011410_035941452][][STATEMENT] pdf-hide-menubar=false
    [011410_035941453][][STATEMENT] pdf-hide-toolbar=false
    [011410_035941453][][STATEMENT] pdf-no-accff=false
    [011410_035941454][][STATEMENT] pdf-no-cceda=false
    [011410_035941454][][STATEMENT] pdf-no-changing-the-document=false
    [011410_035941454][][STATEMENT] pdf-no-printing=false
    [011410_035941455][][STATEMENT] pdf-open-password=
    [011410_035941456][][STATEMENT] pdf-permissions=0
    [011410_035941456][][STATEMENT] pdf-permissions-password=
    [011410_035941457][][STATEMENT] pdf-printing-allowed=0
    [011410_035941457][][STATEMENT] pdf-replace-smartquotes=true
    [011410_035941458][][STATEMENT] pdf-security=false
    [011410_035941458][][STATEMENT] ------------------------------------------------------
    [011410_035941462][][STATEMENT] WARNING: Old RTF version detected, nested table disabled
    [011410_035941466][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] Type1 font created: Helvetica
    [011410_035941468][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] TrueType font created: C:\Program Files\Java\jdk1.6.0_12\jre\lib\fonts\ALBANWTJ.ttf(0)
    [011410_035941469][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] Type1 font created: Times-Roman
    [011410_035941481][][ERROR] java.lang.NumberFormatException: For input string: ""
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
         at java.lang.Integer.parseInt(Integer.java:468)
         at java.lang.Integer.parseInt(Integer.java:497)
         at oracle.apps.xdo.template.rtf.table.RTFTable.parseColumnContext(Unknown Source)
         at oracle.apps.xdo.template.rtf.table.RTFTable.getTransformedFO(Unknown Source)
         at oracle.apps.xdo.template.rtf.RTF2XSLParser.closeTable(Unknown Source)
         at oracle.apps.xdo.template.rtf.RTF2XSLParser.publishText(Unknown Source)
         at oracle.apps.xdo.template.rtf.RTF2XSLParser.begingroup(Unknown Source)
         at oracle.apps.xdo.template.rtf.io.RTFFilter.write(Unknown Source)
         at oracle.apps.xdo.template.rtf.io.Filter.write(Unknown Source)
         at oracle.apps.xdo.template.rtf.RTF2XSLParser.write(Unknown Source)
         at oracle.apps.xdo.template.rtf.io.Filter.readFromStream(Unknown Source)
         at oracle.apps.xdo.template.rtf.RTFParser.generate(Unknown Source)
         at oracle.apps.xdo.template.rtf.RTF2XSLParser.generateXSL(Unknown Source)
         at oracle.apps.xdo.template.RTFProcessor.process(Unknown Source)
         at oracle.apps.xdo.servlet.RTFCoreProcessor.getXSLFOFile(RTFCoreProcessor.java:155)
         at oracle.apps.xdo.servlet.RTFCoreProcessor.transform(RTFCoreProcessor.java:65)
         at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:276)
         at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:82)
         at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:552)
         at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:255)
         at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)
         at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)
         at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)
         at oracle.apps.xdo.servlet.XDOServlet.doPost(XDOServlet.java:201)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:94)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:619)
    [011410_035941485][][ERROR] [Line 41.172] Internal exception
    [011410_035941486][oracle.apps.xdo.common.font.FontFactory][STATEMENT] type1.Helvetica closed.
    [011410_035941487][oracle.apps.xdo.common.font.FontFactory][STATEMENT] type1.Times-Roman closed.
    [011410_035941487][oracle.apps.xdo.common.font.FontFactory][STATEMENT] truetype.C:\Program Files\Java\jdk1.6.0_12\jre\lib\fonts\ALBANWTJ.ttf closed.
    [011410_035941491][][EXCEPTION] oracle.apps.xdo.XDOException: For input string: ""
         at oracle.apps.xdo.template.rtf.RTFParser.generate(Unknown Source)
         at oracle.apps.xdo.template.rtf.RTF2XSLParser.generateXSL(Unknown Source)
         at oracle.apps.xdo.template.RTFProcessor.process(Unknown Source)
         at oracle.apps.xdo.servlet.RTFCoreProcessor.getXSLFOFile(RTFCoreProcessor.java:155)
         at oracle.apps.xdo.servlet.RTFCoreProcessor.transform(RTFCoreProcessor.java:65)
         at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:276)
         at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:82)
         at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:552)
         at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:255)
         at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)
         at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)
         at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)
         at oracle.apps.xdo.servlet.XDOServlet.doPost(XDOServlet.java:201)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:94)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:619)
    Edited by: user566193 on Jan 14, 2010 2:10 PM

    Drop me the template , 2 templates and xml.. to FUSIONdotOBJECTatGMAILdotCOM
    Something wrong in template or data

  • Java number question

    If result is initially equal to 5, what would its value be after the following statement has executed:
    result *=3;

    (a *= b) is a short way of writing (a = a*b). You multiply the left side by the right side, then assign the result to the left side.
    http://java.sun.com/docs/books/tutorial/java/nutsandbolts/operators.html

  • Webdynpro-Java Number/Amount Formats as per Locale

    Hi,
    I tried searching for this in the forum but couldn't get a clear answer to my requirement.
    Is setting the Locale in the code ( NumberFormat.getCurrencyInstance(locale) etc...) the only way to show the numbers and amounts (dots and commas) display in webdynpro application accordingly to locale?
    Or is there any other setting in visual admin or webdynpro DC or iView settings or any other place where we can set this and it automatically takes care of it? If yes, can you please give the details..
    I tried adding the sap-locale=de parameter to the webdynpro application URL but it is still showing the dates in MM/DD/YYYY format.
    We want to show all the data displayed on the webdynpro application in locale specific format automatically without much coding.
    Can anyone please advise?

    Thanks for the reply Robin.... Yes we are running a portal. But specifying a default locale in the portal or application properties will always make the application display the values in that specific locale format...no? What i want is the application should automatically adapt to the specific locale settings depending on the user's locale.
    If my user is in Germany, it should show the comma as the delimiter for decimals and dates should be in DD/MM/YYYY format
    And if my user is in USA. the date should be in MM/DD/YYYY format automatically without any additional coding. 
    The way it works in ECC.... If i set my date and amounts setting in myProfile (trx SU3) in ECC, it automatically displays all the values in that specific format. Is there anything like that in Webdynpro or Portal?

  • Java formatting (This case occur only EVEN NUMBERS)

    This case only occur EVEN NUMBERS)
    I am using java number format class for formatting data. I have a double value 222.325 and I will be going to formatting this value. Formatting pattern is (#.00) after formatting final result is not getting 222.33,but I am getting 222.32.
    We have test cases:
    But similar cases I have a double value 222.335 after I am getting correct result 222.34
    I have a 222.315 after formatting I am getting 222.32.
    I have given my code below. Please advise me
    Is this java formatting class error or my code error pleased correct? ASAP
    see below example:
    import java.text.DecimalFormat;
    import java.text.NumberFormat;
    double d2 = 222.325;
    df.applyPattern("#.00");
    DecimalFormat df =
    (DecimalFormat)NumberFormat.getInstance();
    System.out.println("d2..."+df.format(d2));

    Please explain:
    - Why you had to spawn a new thread,
    - Where the behaviour of the code does not match [url http://forum.java.sun.com/thread.jspa?threadID=685964]Annie's description.

  • Java Formating (As soon as posible)

    I am using java number format class for formatting data. I have a double value 222.325 and I will be going to formatting this value. Formatting pattern is (#.00) after formatting final result is not getting 222.33,but I am getting 222.32.
    We have test cases:
    But similar cases I have a double value 222.335 after I am getting correct result 222.34
    I have a 222.315 after formatting I am getting 222.32.
    I have given my code below. Please advise me
    Is this java formatting class error or my code error pleased correct? ASAP
    see below example:
    import java.text.DecimalFormat;
    import java.text.NumberFormat;
    double d2 = 222.325;
    df.applyPattern("#.00");
    DecimalFormat df =
         (DecimalFormat)NumberFormat.getInstance();
    System.out.println("d2..."+df.format(d2));

    From the API:
    DecimalFormat</code> uses half-even rounding (see {@link java.math.BigDecimal#ROUND_HALF_EVEN ROUND_HALF_EVEN}) for formatting.Also, in general, please be aware of:
    What Every Computer Scientist Should Know About Floating-Point Arithmetic
    http://docs.sun.com/source/806-3568/ncg_goldberg.html

  • Number Format in Grid Cell

    I can't get a SQLDataType=8 cell to format with comma separators (ie, 9,999,999).  Have the number format options changed in 12.0?  I can't find the reference table in the Help Docs.  The table in the 11.5 help docs is here (file:///C:/Inetpub/wwwroot/LighthammerCMS/Help/popups/NumberFormatPopup.htm).

    Nothing changed much other than the WB, it's still the basic java number formatting options (which is probably why the help doc popup looks a bit like a javadoc).
    I believe the WB has a bug when setting and retrieving a nested comma in the ColumnFormats property, which itself is a comma separated DT property.
    Use something like this in your PARAM's:
    0.00,#^^#0.00,MM/dd/yy  (just use the double carat for any nested comma and leave the commas to denote column breaks in the list).

  • Print out of report

    hi experts ,,,,
      1)...i am taking the print out of report.
      i given the horizantal and vertical lines......
    i did not want them in output(lines)....
    how can i do this, any option is available.
    2) how to delete the leading zeroes...
      i jave number like this 00000876. i need only 876.
    how can i get it. any command u can suggest me..
    thanks in advance.
    Message was edited by:
            dasr r

    hi,
    U can either use this function module also
    CONVERSION_EXIT_ALPHA_OUTPUT
    or
    SHIFT <yourField> LEFT DELETING LEADING '0'
    or
    try NO-ZERO option of WRITE statement
    or
    Another way is to create another variable of type I and assign the value into it
    example:
    DATA: L_NUMC(08) TYPE N.
    DATA: L_INT TYPE I.
    L_NUMC = '00000018'.
    L_INT = L_NUMC.
    Result will be = 18.
    Hope this helps
    regards.

  • Help with Borders Please?

    Hi, I am currently working through some Java Tutorials ( the MageLang Ones )
    and I'd like something cleared up 'cos its a Mystery and bugging my curiosity..
    One of the exaples has you adding borders to Buttons & etc thus:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    // Import the border package
    import javax.swing.border.*;
    b = new JButton( "Four" );
         b.setBorder(new TitledBorder(LineBorder.createBlackLineBorder(),
                   "Press Me",
                   TitledBorder.CENTER,
                   TitledBorder.TOP,
                   new Font ("Serif", Font.ITALIC, 10),
                   Color.blue));
         content.add( b );
    - Now that works Fine....
    But this does not work:
    b = new JButton( "Four");
         Border Tb = new TitledBorder( "Press Me " );
         Border Lb = new LineBorder( Color.black );
         Tb.setBorder( Lb );
         Tb.setTitleColor( Color.blue );
         Tb.setTitlePosition( TitledBorder.TOP );
         Tb.setTitleJustification( TitledBorder.CENTER );
         Tb.setTitleFont( new Font ("Serif", Font.ITALIC, 10) );
         b.setBorder(Tb);
    content.add(b);
    So why doesn't the second form work, the API docs seem to indicate that it should,
    but on compilation you get this....
    Borders.java:65: cannot resolve symbol
    symbol : method setBorder (javax.swing.border.Border)
    location: interface javax.swing.border.Border
         Tb.setBorder( Lb );
    ^
    Borders.java:66: cannot resolve symbol
    symbol : method setTitleColor (java.awt.Color)
    location: interface javax.swing.border.Border
         Tb.setTitleColor( Color.blue );
    ^
    Borders.java:67: cannot resolve symbol
    symbol : method setTitlePosition (int)
    location: interface javax.swing.border.Border
         Tb.setTitlePosition( TitledBorder.TOP );
    ^
    Borders.java:68: cannot resolve symbol
    symbol : method setTitleJustification (int)
    location: interface javax.swing.border.Border
         Tb.setTitleJustification( TitledBorder.CENTER );
    ^
    Borders.java:69: cannot resolve symbol
    symbol : method setTitleFont (java.awt.Font)
    location: interface javax.swing.border.Border
         Tb.setTitleFont( new Font ("Serif", Font.ITALIC, 10) );
    ^
    I am confused about this and would rather not have too many mysteries about JAVA
    any help will be appreciated
    Oh yeah I hot Java 1.3.1_01 having downloaded it a couple of days before 1.4 appeared

    Change this line :
    Border Tb = new TitledBorder( "Press Me " );
    to this :
    TitledBorder Tb = new TitledBorder( "Press Me " );
    Noah

  • SDO_UTIL.FROM_WKTGEOMETRY doing some odd math

    Hello,
    Can anyone explain simply what's going on here with the WKT transformation? Why are the coordinates snapping to some kind of grid? How do I control this and where is this documented? Why would I want my coordinates to go from 14 digits of precision to 38 digits? I get the same results with the straightforward use of FROM_WKTGEOMETRY where the fucntion
    {color:#008000}SELECT
    MDSYS.SDO_GEOMETRY(
    'GEOMETRYCOLLECTION(POLYGON((
    -76.57573699951172 38.91845748333781,
    -76.57571822404861 38.91807558545071,
    -76.57517105340957 38.918440788391166,
    -76.57573699951172 38.91845748333781
    ',8265)
    from dual{color}
    results in
    {color:#008000}SDO_GEOMETRY
    2004,
    8265,
    NULL,
    SDO_ELEM_INFO_ARRAY
    1,
    1003,
    1
    SDO_ORDINATE_ARRAY
    -76.57573699951171875,
    38.91845748333781074279613676480948925018,
    -76.575718224048614501953125,
    38.91807558545070833133650012314319610596,
    -76.575171053409576416015625,
    38.9184407883911660519515862688422203064,
    -76.57573699951171875,
    38.91845748333781074279613676480948925018
    {color:#000000}Thanks,
    Paul{color}
    {color}

    Hello Siva,
    Thanks for answering my question, I appreciate your time. I would argue that the primary problem here is the utter lack of any documentation concerning this issue by Oracle. I am glad that Oracle will correct this in "the next version". Does that include 10g or just 11g? Does that mean that these utilities will be converted from java into the core database or just rewritten better in java?
    My organization serves basically as data middlemen and processors. We take data from various sources and then host it for services and analysis by our clients. The expectation is that we are not changing the source data beyond our documented processes (reprojection, etc). It not uncommon for a client to compare our output with the original data to see if we are following their specifications. As GIS professionals we value our ability to pass this scrutiny. I would argue that this java number jumble creates the impression of sloppiness. I do understand that this is meaningless in spatial terms.
    Lets look at my triangle again:
    Original valid WKT triangle from source
    {color:#008000}-76.57418668270113{color} {color:#000080}38.91891450597657{color}
    {color:#008000}-76.57484114170074{color} {color:#000080}38.91758725401061{color}
    {color:#008000}-76.57661139965057{color} {color:#000080}38.91881851059802{color}
    {color:#008000}-76.57418668270113{color} {color:#000080}38.91891450597657
    {color}
    After SDO_GEOMETRY conversion (results in invalid geometry)
    {color:#008000}-76.57418668270112505069846520200371742249{color} {color:#000080}38.91891450597657353682734537869691848755{color}
    {color:#008000}-76.57484114170074462890625{color} {color:#000080}38.91758725401061269622005056589841842651{color}
    {color:#008000}-76.57661139965057373046875{color} {color:#000080}38.91881851059802244208185584284365177155{color}
    {color:#008000}-76.57418668270112505069846520200371742249{color} {color:#000080}38.91891450597657353682734537869691848755
    {color}
    After correction via SDO_UTIL.RECTIFY_GEOMETRY
    {color:#008000}-76.5741866827011{color} {color:#000080}38.9189145059766{color}
    {color:#008000}-76.5766113996506{color} {color:#000080}38.918818510598{color}
    {color:#008000}-76.5748411417007{color} {color:#000080}38.9175872540106{color}
    {color:#008000}-76.5741866827011{color} {color:#000080}38.9189145059766
    {color}
    {color:#000000}So if we institute a test and autocorrection of badly converted geometries:
    {color}<ul><li>geometries which convert properly get nutty precision added (out to 38 places in many case)</li>
    <li>geometries which fail conversion and then are rectified actually lose precision</li>
    </ul>
    The issue here is explaining and documenting this so that clients are confident that we know what we are doing. If I pass someone two geometries with 14 digits of precision and they send me back one with 38 digits and a second with 12 digits I might wonder what the heck they are doing to my data. Is there any place where these issues are documented in depth by Oracle?
    Thanks again for your time,
    Paul

Maybe you are looking for

  • Inventory Report for actuals  and  projected?

    Hi, currently i am doing APO-BI Project. I have a requirement to extract the Opening stock from ECC and Projected(Forecasted) Opening stock from APO. both are 2 different key figures 1 is from ECC and another one is from APO. I need to display in Bex

  • How can I delete a corrupted old sessionstore file (it's affecting my restore session feature)?

    On 2/29/12, Windows reported that sessionstore-38.js was corruput and unreadable and requested I run CHKDSK. I run it but this file was not deleted. Also, it has resulted in my Firefox session restores to be "frozen" (same windows and tabs) to back o

  • Problem with Windows 7 jpg display

    Using Elements 9 in my Vista-based system I created, by cutting and pasting, a jpg text & graphics image to use on a web page (www.yesatlanta.org). This looks fine on my computer. However, I discovered that, on Windows 7 computers, in all gaps create

  • Nokia N900 Ringtone 'internal error

    Since a few days i have the N900. I'd like to select an iTunes-song as a ringtone but keep getting the 'internal error'. Following it closes the 'profiles' application. Can anyone explain this error to me and pherhaps give me a solution?

  • How do I install .PFM and .PFB fonts on my mac?

    So that they are available to all applications?