Java.text.DecimalFormat Error

I have this import directive in my jsp page.
<%@ page import="java.io.*,java.sql.*;java.text.DecimalFormat" contentType="text/html;charset=windows-1252"%>
I am using Jdeveloper 9i 9.0.3.
When I compile this page from within JDeveloper I get this error for java.text.DecimalFormat
Error: 'class' or 'interface' expected
When I compile outside JDeveloper, I get NO error.
Can somebody tell me what the problem is.

<%@ page import="java.io.*;java.sql.*;java.text.DecimalFormat" contentType="text/html;charset=windows-1252"%>
I think that missing semi-colon is what's creating problems for you.
Sergio Bastos

Similar Messages

  • Please Suggest - new java.text.DecimalFormat Question

    table2.setValueAt(
    "$"+new java.text.DecimalFormat("#.##").format
        ((Double.valueOf(table2.getValueAt(row,1).toString())).doubleValue())*
        ((Double.valueOf(table2.getValueAt(row,2).toString())).doubleValue())
    row,
    3
    );Is there a way to force DecimalFormat to display .00?
    Is there a way to ignore a "$" preceding the value from table2.getValueAt(row,1)?

    Is there a way to force DecimalFormat to display .00?YES: new java.text.DecimalFormat("\u00A40.00").format

  • Java.text.DecimalFormat is parsing '22.3.6' !

    I'm using DecimalFormat to mask a data entry field.
    When I enter something like 22.3.6, it parses!
    String docString = "22.3.6";
    NumberFormat nFormat = new DecimalFormat();
    float value = nFormat.parse(docString).floatValue();
    System.err.println("value: " + value);
    Gives me:
    value: 22.3
    I was expecting a NumberFormatException.
    I'm running
    build 1.5.0_05-b05
    Should I enter this as a bug?

    I tried yout code and it formats the String the way you wanted:
    public class Test
    public static void main ( String[] args )
    java.text.DecimalFormat df2 = new java.text.DecimalFormat("###########0.00");
    System.out.println(df2.format(java.lang.Float.parseFloat("-3.0")));
    } //End Main
    }

  • Java.text.DecimalFormat

    hi folks,
    I'm trying to format a floating point number so that it has exactly two digits after the decimal
    DecimalFormat df=new DecimalFormat("##.00");
    System.err.println(df.format(12.995));
    My desired output is 12.99(truncation, no rounding)
    the actual output is 13.00 (rounding)
    how do I acheive what I what?
    thank you!!

    Since DecimalFormat uses ROUND_HALF_EVEN, you need to use something else. The java.math.BigDecimal class is something you could use:
    double value = 12.995;
    BigDecimal bd = new BigDecimal(value);
    bd = bd.setScale(2, BigDecimal.ROUND_DOWN);
    System.err.println(bd); This would print out 12.99.

  • Force 2 decimal places with java.text.DecimalFormat

    Hi all,
    I am trying to force 2 decimal places for sum of 2 doubles (please see my code below). According to the API javadoc this should always display 2 decimals, however at the moment if the second decimal is zero it gets chopped off:(
    Any ideas what is going wrong?
    Thanks,
    Olli
    public double sum(double valueOne,double valueTwo)
    double sum=valueOne+valueTwo;
    DecimalFormat forceDecimals=new DecimalFormat("0.00");
    total=Double.parseDouble(forceDecimals.format(sum));
    return sum;
    }

    Hi Olli,
    you return sum and not total, but nevertheless returning a double doesn't help as 5.00 will always be 5.0.
    An option would be to return the formatted String.

  • Rounding problem with java.text.DecimalFormat

    I see that the bug reported in relation to this (#4763975) has been closed.
    I'm just wondering when will this bug be fixed or is it even scheduled to be fixed in the future?

    Hi Olli,
    you return sum and not total, but nevertheless returning a double doesn't help as 5.00 will always be 5.0.
    An option would be to return the formatted String.

  • Java:9: '(' expected  error

    could someone please tell me what the problemis and how to fix it
    this is my code and i get this error
    java:9: '(' expected
    import java.io.*;
    import java.text.DecimalFormat;
    public class Grades2
    public void Grades2
    int ai1[] = new int[10];
    float f = 0.0F;
    float f1 = 0.0F;
    String s1 = null;
    BufferedReader bufferedreader = new BufferedReader(new FileReader("grades.dat"));
    DecimalFormat decimalformat = new DecimalFormat("##0.00%");
    System.out.println("Scores Read from the Input File");
    System.out.println("-------------------------------");
    s1 = bufferedreader.readLine();
    int i = Integer.parseInt(s1.substring(0, s1.indexOf(" ")));
    String s = s1.substring(s1.indexOf(" ") + 1);
    s1 = null;
    for(String s2 = bufferedreader.readLine(); s2 != null; s2 = bufferedreader.readLine())
    System.out.println(s2);
    if(s1 == null)
    s1 = s2;
    else
    s1 = (new StringBuilder()).append(s1).append(" ").append(s2).toString();
    System.out.println("");
    String args1[] = s1.split(" ");
    int ai[] = new int;
    for(int j = 0; j < i; j++)
    ai[j] = Integer.parseInt(args1[j]);
    for(int k = 0; k < i; k++)
    f = f += (float)ai[k] / (float)i;
    for(int l = 0; l < i; l++)
    f1 = (float)((double)f1 + Math.pow((float)ai[l] - f, 2D));
    f1 = (float)Math.sqrt(f1 / (float)(i - 1));
    for(int i1 = 0; i1 < 10; i1++)
    ai1[i1] = 0;
    for(int j1 = 0; j1 < i; j1++)
    if(ai[j1] == 100)
    ai1[ai[j1] / 10 - 1]++;
    else
    ai1[ai[j1] / 10]++;
    public class output
    public static void main(String args[]) throws IOExcetption
    System.out.println(s);
    for(int k1 = 0; k1 < s.length(); k1++)
    System.out.print("-");
    System.out.println("");
    System.out.println((new StringBuilder()).append("Number of scores: ").append(i).toString());
    System.out.println((new StringBuilder()).append("Mean Score: ").append(f).toString());
    System.out.println((new StringBuilder()).append("Standard Deviation: ").append(f1).toString());
    System.out.println("");
    System.out.println("Histogram");
    System.out.println("---------");
    for(int l1 = 0; l1 < 10; l1++)
    System.out.print((new StringBuilder()).append(l1 * 10).append("-").append((l1 + 1) * 10 - 1).append("\t").toString());
    for(int i2 = 0; i2 < ai1[l1]; i2++)
    System.out.print("*");
    System.out.println((new StringBuilder()).append(" (").append(decimalformat.format((float)ai1[l1] / (float)i)).append(")").toString());

    there are many many things wrong.
    To start with:
    public void Grades{
    should be
    public Grades(){
    int ai[] = new int;
    should be
    int ai[] = new int[someSize];
    And you eitehr have to deal with the exceptions or throw them. There are a lot of other problems, but start with those.

  • Java.sql.SQLException: Error while trying to retrieve text for error ORA-24

    Hi All,
    Am having serious problem with ORA-24327 and the behavior is very very unpredictable. I have couple of environment where the same error comes in different context. The recent one was surprising. I have describe bellow the environment configuration and the stack trace. The error which surprised me was when I use type � 3 driver while starting weblogic I get ORA �24327 but when I use Type �4 it starts properly. If you could kindly provide solution it would be great help. I would also appreciate if u can provide information which driver to use where performance is the major concern. I would also appreciate if u could provide feed-back from the industry about booth the driver. Apart from that I have couple have environment where it occurs when 10/12 user access simultaneously. All the open connection is closed in program properly still am getting the error.
    Thanks in anticipation.
    Cheers,
    Tapas
    Environment
    OS - SunOS 5.8 Generic_108528-07 sun4u sparc SUNW,Ultra-Enterprise
    JDK - Solaris VM (build Solaris_JDK_1.2.2_07, native threads, sunwjit)
    Weblogic - 5.1.0 Service Pack 9 04/05/2001 14:59:53 #105983
    Oracle � 8.1.6
    Delaying 10 seconds before making a beuatpool pool connection.
    Pool 1 (Type �3 )
    weblogic.jdbc.connectionPool.beuatpool=\
    url=jdbc:weblogic:oracle,\
    driver=weblogic.jdbc.oci.Driver,\
    loginDelaySecs=10,\
    initialCapacity=10,\
    maxCapacity=20,\
    capacityIncrement=2,\
    allowShrinking=true,\
    shrinkPeriodMins=10,\
    refreshMinutes=10,\
    testTable=dual,\
    props=user=xxx;password=xxx;server=xxxx
    Pool 2(Type �4)
    weblogic.jdbc.connectionPool.thinPool=\
    url=jdbc:oracle:thin:@xxx:1521:xxx,\
    driver=oracle.jdbc.driver.OracleDriver,\
    loginDelaySecs=1,\
    initialCapacity=1,\
    maxCapacity=10,\
    capacityIncrement=1,\
    allowShrinking=true,\
    shrinkPeriodMins=15,\
    refreshMinutes=15,\
    testTable=dual,\
    props=user=xxx;password=xxx;server=xxx:1521:xxx
    allow=everyone
    ---------- LOGIN ERROR CODE: 24327
    java.sql.SQLException: Error while trying to retrieve text for error ORA-24327 �
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.sql.SQLException.<init>(SQLException.java:43)
    at weblogic.db.oci.OciConnection.getLDAException(OciConnection.java:143)
    at weblogic.jdbcbase.oci.Driver.connect(Driver.java:157)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
    nectionEnvFactory.java:149)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
    nectionEnvFactory.java:109)
    at weblogic.common.internal.ResourceAllocator.makeResources(Compiled Cod
    e)
    at weblogic.common.internal.ResourceAllocator.<init>(Compiled Code)
    at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
    ava:330)
    at weblogic.jdbc.common.internal.JdbcInfo.initPools(Compiled Code)
    at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
    at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
    at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java
    :62)
    ---------- LOGIN ERROR CODE: 24327
    ---------- LOGIN ERROR CODE: 24327
    Fri Aug 31 00:57:22 GMT-05:00 2001:<I> <JDBC Pool> Sleeping in createResource()
    Fri Aug 31 00:57:23 GMT-05:00 2001:<E> <JDBC Pool> Failed to create connection p
    ool "beuatpool"
    weblogic.common.ResourceException: weblogic.common.ResourceException:
    Could not create pool connection. The DBMS driver exception was:
    java.sql.SQLException: Error while trying to retrieve text for error ORA-24327 -
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.sql.SQLException.<init>(SQLException.java:43)
    at weblogic.db.oci.OciConnection.getLDAException(OciConnection.java:143)
    at weblogic.jdbcbase.oci.Driver.connect(Driver.java:157)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at java.sql.DriverManager.getConnection(DriverManager.java:137)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
    nectionEnvFactory.java:172)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
    nectionEnvFactory.java:109)
    at weblogic.common.internal.ResourceAllocator.makeResources(Compiled Cod
    e)
    at weblogic.common.internal.ResourceAllocator.<init>(Compiled Code)
    at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
    ava:330)
    at weblogic.jdbc.common.internal.JdbcInfo.initPools(Compiled Code)
    at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
    at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
    at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java
    :62)
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at weblogic.common.ResourceException.<init>(ResourceException.java:18)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
    nectionEnvFactory.java:182)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
    nectionEnvFactory.java:109)
    at weblogic.common.internal.ResourceAllocator.makeResources(Compiled Cod
    e)
    at weblogic.common.internal.ResourceAllocator.<init>(Compiled Code)
    at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
    ava:330)
    at weblogic.jdbc.common.internal.JdbcInfo.initPools(Compiled Code)
    at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
    at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
    at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java
    :62)
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at weblogic.common.ResourceException.<init>(ResourceException.java:18)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
    nectionEnvFactory.java:125)
    at weblogic.common.internal.ResourceAllocator.makeResources(Compiled Cod
    e)
    at weblogic.common.internal.ResourceAllocator.<init>(Compiled Code)
    at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
    ava:330)
    at weblogic.jdbc.common.internal.JdbcInfo.initPools(Compiled Code)
    at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
    at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
    at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java
    :62)

    Hi,
    I guess you can try some of these:
    - Make sure you're not missing an entry inside your tnsnames.ora file. Thin driver does not require the information inside that file, as opposed to Weblogic's OCI driver. If you are able to connect to the DB using a thin driver, then the problem is most probably (WL)driver-related.
    - Make sure you've properly configured the DB user / password inside your weblogic.properties (config.xml if WL6+).
    - Make sure you're able to access all drivers and classes required (PATH, CLASSPATH, etc...)
    - Make sure the OCI driver version you are using is fully compatible with the Oracle (server) version you are pointing to.
    - Try to access the DB user through some other client (for instance, SQLPlus*).
    Hope this is of some help,
    Freddy.

  • Java.sql.SQLException: Error while trying to retrieve text for error ORA-12545

    Hi,
    I am getting the following error when i tried to connect to Oracle database from
    a servlet. This exception is coming at the time of getting connection. And the
    same code is working when i used in the standalone java program.
    Oracle 8i database and WLS 6.0 are on the same UNIX machine.
    ---------attempting to connect ------
    java.sql.SQLException: Error while trying to retrieve text for error ORA-12545
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java, Compiled
    Code)
    at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java, Compiled C
    ode)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, Compiled Code)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java, Com
    piled Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va, Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, Compiled C
    ode)
    at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Cod
    e)
    at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Cod
    e)
    at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java, Compiled Code
    at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Cod
    e)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Cod
    e)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java, Compiled Code)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java, Compiled Code)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java, Compiled Code)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, Compiled Co
    de)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
    Can any one help me out.
    Durga

    The problem is solved after exprting the parameter ORACLE_SID=<database_name>
    in Weblogic startup script.
    thank u for the suggestions.
    Durga
    Joseph Weinstein <[email protected]> wrote:
    >
    >
    Durga wrote:
    Hi Joe,
    I have checked the ORACLE_HOME parameter. There was a differnce. Ichanged to
    /oracle/app/product/8.1.7
    Now i am getting different exception. But still the standalone codeis working.
    any clues why I am getting this exception. I will send the code andthe weblogic
    properties file for reference if u need.Good. No, I don't need it. Now make sure the library path that the OS
    uses to find
    Oracle libraries, and our driver libraries etc., is in the same order
    for the
    server as for the shell that is successful on it's own. Make sure your
    Oracle
    client stuff is ahead of any weblogic libraries.
    Joe
    java.sql.SQLException: ORA-12547: TNS:lost contact
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java,Compiled
    Code)
    at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java,Compiled
    C
    ode)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, CompiledCode)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java,Com
    piled Code)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java,Compiled
    C
    ode)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java,Compiled
    C
    ode)
    at java.sql.DriverManager.getConnection(DriverManager.java,Compiled Cod
    e)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java,Compiled Code
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl.getRuntimeName(ServletStubI
    mpl.java, Compiled Code)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java, Compiled Code)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:1631)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java,Compiled
    Co
    de)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, CompiledCode)
    Joseph Weinstein <[email protected]> wrote:
    The environment for the server probably doesn't have the same ORACLE_HOME
    setting as your shell when you succeed in a standalone.
    Also, you should be using our connection pools, and you should avoid
    making DriverManager calls in any multithreaded app such as WebLogic.
    Joe
    Durga wrote:
    Hi,
    I am getting the following error when i tried to connect to Oracledatabase from
    a servlet. This exception is coming at the time of getting connection.And the
    same code is working when i used in the standalone java program.
    Oracle 8i database and WLS 6.0 are on the same UNIX machine.
    ---------attempting to connect ------
    java.sql.SQLException: Error while trying to retrieve text for errorORA-12545
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java,
    Compiled
    Code)
    at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java, CompiledC
    ode)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, Compiled
    Code)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java,Com
    piled Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va, Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, CompiledC
    ode)
    at java.sql.DriverManager.getConnection(DriverManager.java, CompiledCod
    e)
    at java.sql.DriverManager.getConnection(DriverManager.java, CompiledCod
    e)
    at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java, CompiledCode
    at javax.servlet.http.HttpServlet.service(HttpServlet.java, CompiledCod
    e)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java, CompiledCod
    e)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java, Compiled Code)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java, Compiled Code)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java, Compiled Code)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, CompiledCo
    de)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
    Code)
    Can any one help me out.
    Durga

  • Java.sql.SQLException: Error while trying to retrieve text for error ORA-12

    Hi,
    I am getting the following error when i tried to connect to Oracle database from a servlet on HP-UX. I am using wls 6.0. And the same code is working when i used in the standalone java program.
    java.sql.SQLException: Error while trying to retrieve text for error ORA-12545
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java, Compiled
    Code)
    at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java, Compiled C
    ode)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, Compiled Code)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java, Com
    piled Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va, Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, Compiled C
    ode)
    at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Cod
    e)
    at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Cod
    e)
    at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java, Compiled Code
    at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Cod
    e)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Cod
    e)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java, Compiled Code)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java, Compiled Code)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java, Compiled Code)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, Compiled Co
    de)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
    Can any one help me out.
    Durga

    This is the text for ORA-12545, there is a problem in your NET8 somewhere.
    http://technet.oracle.com/doc/network.815/a67440/ch11.htm#440586

  • Java.text.resources.LocaleElements error

    Hi
    Accessing an application through an IE browser runs fine with plugin J2SE 1.3.1 BUT with J2SE 1.4.1 this error is returned.
    java.util.MissingResourceException: Can't find bundle for base name java.text.resources.LocaleElements, locale en_US
    at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
    at java.util.ResourceBundle.getBundleImpl(Unknown Source)
    at java.util.ResourceBundle.getBundle(Unknown Source)
    What has changed in the later version that is causing this? Is there a workaround for this?
    Regards
    Myheadhurts

    http://developer.java.sun.com/developer/bugParade/bugs/
    236976.html
    Merlin=1.4Hi, thanks so much for the info, much appreciated. Other than renaming implementation packages in the program code, is there any way around this issue by using the command line in the java runtime parameters advanced feature for J2SE 1.4.1 plugin?

  • Exception while handling request: deserialization error: java.text.ParseExp

    Hi guys,
    While getting the sales order from the JDE database. It is giving
    Caught exception while handling request: deserialization error: java.text.ParseException: Unparseable date: "-11-JA-01T12:00:00-05".
    can any one of you can guide me about this exception
    Expecting a reply from any one ASAP.
    Regards,
    Chakri

    the schema element for this field is having different datatype than what you are receiving the data. Can you check logs and see on which column it is failing? If we know the exact xsd datatype used for the element and and value that is stored in table then we can correct the xsd accordingly. Are you using dynamic sql query or select options to get values from DB.

  • Parse Exception : java.text.ParseException: Unparseable date

    I have inherited a UDF in some mapping that on the whole, works okay...
    but it throws an error after mapping a few dates:
    Parse Exception : java.text.ParseException: Unparseable date: "2010-03-18T00:00:00.000Z"
    Parse Exception : java.text.ParseException: Unparseable date: "2010-03-23T23:59:00.000Z"
    Parse Exception : java.text.ParseException: Unparseable date: "2010-03-18T00:00:00.000Z"
    Parse Exception : java.text.ParseException: Unparseable date: "2010-03-23T23:59:00.000Z"
    Parse Exception : java.text.ParseException: Unparseable date: "2010-03-18T00:00:00.000Z"
    Parse Exception : java.text.ParseException: Unparseable date: "2010-03-23T23:59:00.000Z"
    the first few map okay...  then i get the exception.
    the UDF is as follows:
    public String convertDateTimeToUTC(String strDate, Container container) throws StreamTransformationException{
    AbstractTrace trace = container.getTrace();
    Date date=null;
    SimpleDateFormat sdfSource = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
    try{
    String dt = strDate;
    date = sdfSource.parse(dt);
    trace.addInfo("Local Date:"+date);
    SimpleDateFormat sdfDestination = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
    strDate = sdfDestination.format(date);
    catch(ParseException pe){
    trace.addInfo("Parse Exception : " + pe);
    return strDate;
    can anyone see why this fails after successfully mapping a few fields???

    the first mapping works correctly...
    then we reuse the same fields to map to the additional segments.
    the context is correct as it is trying to pull the same fields in...  it just throw the error with the same data in the same UDF/Function Library but for different segments! :o(
    http://img199.imageshack.us/img199/3104/dateconversion.jpg
    as you can see from the screenshot above, the mapping works in the first instance, then fails on subsequent nodes.

  • Java.text.ParseException :UnparseableDate

    Hi,
    Iam trying to convert a String into Date and that Date in to a customized Date format...,Here it is what iam doing..
    import java.util.*;
    import java.io.*;
    import java.text.*;
    public class str2date
    public static void main(String[] args)
    try
    String mystr="01-03-2003";
         SimpleDateFormat converttodt=new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss");
         java.util.Date mydt=converttodt.parse(mystr.trim());
         System.out.println("mydt"+mydt);
         String output=converttodt.format(mydt);
         System.out.println(output);
         catch(ParseException e)
         System.out.println(e.toString());
    Error:"java.text.ParseException :UnparseableDate 01-03-2003"
    Can any one help me out... URGENT...,
    Thanks in Advance
    Rao.

    Well, the problem is right in front of you. You're telling it the format of the date is going to be
    yyyy-MM-dd'T'hh:mm:ss
    and then you're giving it the date in a format of
    MM-dd-yyyy
    and wondering why it's not accepting it? If you want to input a date from one format and output it in another you need to create two SimpleDateFormat objects, one to parse the date from a String to a Date object, and a second (or reuse the first with a different parse string) to format the Date and output it as a String.

  • Error while trying to retrieve text for error ORA-24327

    Hi,
    I'm using Weblogic OCI driver to connect to Oracle 9.2.0.3 DB. WLS version
    is 7.0 SP3. I'm encountering an error when I try to start the WLS " Error while
    trying to retrieve text for error ORA-24327".
    I've set the LD_LIBRARY_PATH to $ORACLE_HOME/lib32:$ORACLE_HOME/lib in addition
    to $WL_HOME/lib/solaris/oci_920_8 as I read in other newsgroup.
    Thanks in advance.
    Cheers,
    Kanda.V

    Hi Mitesh,
    Thanks for your suggestion. Looks like ORACLE_HOME and ORACLE_BASE need to
    set in the $CLASSPATH variable. It's working now. Thanks once again.
    Cheers,
    Kanda.
    Mitesh Patel <[email protected]> wrote:
    Hi Kanda!
    Also, use lib32 directory instead of $ORACLE_HOME/lib32:$ORACLE_HOME/lib
    in
    your environment for 920 jDdriver.
    Then try java utils.dbping oracle user passwd databasename to see if
    it is
    successful meaning your environment is set for weblogic 920 jDriver.
    Also,
    make sure you have entry in your tnsnames.ora file for the database.
    Thanks,
    Mitesh
    Kanda wrote:
    Actually I've set it to oci920_8 which is correct isn't ?
    Please advise.
    Thanks.
    Kanda.V
    Mitesh Patel <[email protected]> wrote:
    $WL_HOME/lib/solaris/oci_920_8 as I read in other newsgroup.
    This should be oci920_8.
    thanks,
    Mitesh
    Kanda wrote:
    Hi,
    I'm using Weblogic OCI driver to connect to Oracle 9.2.0.3 DB.
    WLS
    version
    is 7.0 SP3. I'm encountering an error when I try to start the WLS
    Error while
    trying to retrieve text for error ORA-24327".
    I've set the LD_LIBRARY_PATH to $ORACLE_HOME/lib32:$ORACLE_HOME/libin addition
    to $WL_HOME/lib/solaris/oci_920_8 as I read in other newsgroup.
    Thanks in advance.
    Cheers,
    Kanda.V

Maybe you are looking for