FOP and oracle parser

Hi
i developed a web application that takes an xml file which the user specifies and after validating it the application uses FOP to produce a PDF file. But the problem is that by default oc4j uses oracle.xml.parser.v2 parser but FOP need xerces. How can i override the usage of oracle's xml parser.
Please help because i spent quite some time on this project and this is the problem i almost at the end of the project run it to.
thanks,
mate

I did that allready and stil my NullPointerException printout looks like this:
java.lang.NullPointerException
     void oracle.xml.jaxp.JXTransformer.reportXSLException(oracle.xml.parser.v2.XSLException)
          JXTransformer.java:762
     void oracle.xml.jaxp.JXTransformer.transform(javax.xml.transform.Source, javax.xml.transform.Result)
          JXTransformer.java:335
     void oracle.xml.jaxp.JXTransformerHandler.endDocument()
          JXTransformerHandler.java:135
     void oracle.xml.parser.v2.NonValidatingParser.parseDocument()
          NonValidatingParser.java:269
     void oracle.xml.parser.v2.XMLParser.parse(org.xml.sax.InputSource)
          XMLParser.java:147
     void oracle.xml.jaxp.JXXMLFilter.parse(org.xml.sax.InputSource)
          JXXMLFilter.java:91
     void org.apache.fop.apps.Driver.render(org.xml.sax.XMLReader, org.xml.sax.InputSource)
          Driver.java:498
     void srcsi.pdf.PDFPrikazAction.renderXML(org.apache.fop.apps.XSLTInputHandler, javax.servlet.http.HttpServletResponse)
          PDFPrikazAction.java:135
     org.apache.struts.action.ActionForward srcsi.pdf.PDFPrikazAction.execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
          PDFPrikazAction.java:95
     org.apache.struts.action.ActionForward org.apache.struts.action.RequestProcessor.processActionPerform(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.Action, org.apache.struts.action.ActionForm, org.apache.struts.action.ActionMapping)
          RequestProcessor.java:484
     void org.apache.struts.action.RequestProcessor.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
          RequestProcessor.java:274
     void org.apache.struts.action.ActionServlet.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
          ActionServlet.java:1482
     void org.apache.struts.action.ActionServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
          ActionServlet.java:525
     void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
          HttpServlet.java:760
     void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
          HttpServlet.java:853
     void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
          ResourceFilterChain.java:65
     void FilterEncoding.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
          FilterEncoding.java:22
     void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
          ServletRequestDispatcher.java:560
     void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
          ServletRequestDispatcher.java:306
     boolean com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.ApplicationServerThread, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletRequest, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
          HttpRequestHandler.java:767
     void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)
          HttpRequestHandler.java:259
     void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run()
          HttpRequestHandler.java:106
     void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
          PooledExecutor.java:803
     void java.lang.Thread.run()
          Thread.java:484

Similar Messages

  • XPath and oracle parser

    Hi,
    I am using Oracle parser to parse my XML file, as i found that it is faster then IBM and sun parser, But i think it does not support XPath, so how can i use XPath and oracle parser, I can also use Sun parser , but dont know if it has XPath support,
    So please help me out

    I suppose it supports DOM or a saxHandler that can provides you a DOM
    tree. For Xpath, may I suggest you my solution : http://www.japisoft.com/jxpath
    Regards,
    A.brillant

  • PDF PRINTING using Apache FOP and Oracle Containers for J2EE

    Hi,
    I am having major confusion about the pdf printing in Oracle XE and Apex 3.1.2.00.02
    It clearly states that this is an available option on the Oracle website.
    According to Apex there are two options for printing report regions.
    Standard - which is free
    Advanced - which uses BI and requires a licence
    Standard requires me to have Apache FOP (which is provided by Oracle in the Apex release) and Oracle Containers for J2EE (OC4J)
    Where my understanding of all this falls down is the part where I am downloading the Oracle Containers for J2EE and the license agreement states this cannot be used in a production system (only as a protptype). Can anyone clarify this? This is surely a required componenet and for the standard report printing which is supposed to be free.
    My problem is that I need to have a database system on a laptop that will go off site for a number of weeks. We need report printing options.
    Can anyone help with this. im desperate.
    Kind regards
    colin mclay

    no not yet with Application Server.
    I have tried to compare the settings to another installation with a separeted oc4j as described in the howto. But at the moment i found no mistakes.
    If i call the url adresse like:
    http://localhost:18101/fop/apex_fop.jsp
    i get:
    500 Internal Server Error
    Servlet error: java.lang.ClassNotFoundException: fop.apex__fop
    I installed it another time with these settings:
    Web Anwendung= .../fop.war (selected war file from apex install directory)
    Anwendungsname= fop
    URL zuordnen= /fop
    I would like to know if its possible to use the fop.war out of apex install directory with the Application server? In the standalone version (as described in howto) it works. But if you install it there you don't need to define an URL.
    Is the URL /fop correct or what do i have to insert there?

  • Problem in IAS Server with generation of PDF with FOP and XML parsing

    Dear co.forumers :
    We are developing an application that generates a pdf document with FOP Apache utilities, and this PDf is stored in a folder of the server. Firts of all, a DDBB data is retrieved using java ( jdbc) middleware classes ( servlets ), and with these data, the pdf is generated using FOP. In these process, he data retrieved from the DDBB is converted in a XML file , and the with the XSL FOP utility, the pdf is generated.
    In the other hand, we have another application that consults data from a java beans, using a JSP, generates a XML with the data of the beans, and with this XML, and with a XSL file generates and html , with the data and fixed text.
    Both applications have been deployed as a separated WebApp in the IAS. Both use Xalan as XML parser amb Xerces is used aswell.
    So, the problem is , after generating a pdf with the firts application, every html generated via JSP-XML-XSL transformation in the second application is shown completelly bad formated. All fixed text are wrongly composed, and the text that should appear in textFields and ComboBoxes is also bad formated. The XML with the data is well generated, so the problem is in the parsing of these XML and the conversion in html through XSL. We have to re-initiate the server and then everything goes well again. If no pdf is launched, no problem occurs with the other application.
    How an a WEB APP pplication can affect to another, installed both in different folders of the IAS ? We tried to change Xalan version and FOP version, but no result.
    Is this a Poltergeist ?? and X file , maybe ?
    Has anyone had the same problem ?
    Pleae, any help will be very wellcomed.

    A PDF document may be generated in the JDeveloper OC4J server.
    http://www.oracle.com/technology/pub/notes/technote_vohra_fop.html

  • PDF generation , FOP and Oracle Express DB

    Am I right in assuming that you can't use the FOP PDF generation utility with Oracle Express Edition Database? i.e. no oc4j directory etc..
    regards
    Paul P

    Am I right in assuming that you can't use the FOP PDF generation utility with Oracle Express Edition Database? i.e. no oc4j directory etc..
    regards
    Paul P

  • FOP and oracle 9i

    Can FOP be used with other version of oracleDB like 9i instead of 10g. If yes then where to find $oracleHome$\oc4j\j2ee\
    as this directory structure is not available in 9i.
    Message was edited by:
    Syed_Kamran

    Thanks Carl,
    It seems that I am on the right path now. I have succfully completed. When I click on the Print to PDF link I am getting the following errors
    500 Internal Server Error
    OracleJSP: oracle.jsp.provider.JspCompileException:
    Errors compiling:D:\oc4j\j2ee\home\application-
    deployments\default\defaultWebApp\persistence\_pages\\_apex__fop__render.java
    package org.apache.fop.apps does not exist import org.apache.fop.apps.Driver;
    package org.apache.fop.apps does not exist import org.apache.fop.apps.Options;
    [jsp src:line #:38]
    cannot resolve symbol symbol : class Driver location: class apex_fop__render Driver driver = new Driver();
    [jsp src:line #:38]
    cannot resolve symbol symbol : class Driver location: class apex_fop__render Driver driver = new Driver();
    [jsp src:line #:41]
    cannot resolve symbol symbol : variable Driver location: class apex_fop__render
    driver.setRenderer(Driver.RENDER_PDF);

  • Oracle9i: Difference between oraxml and oracle.xml.parser.v2.DOMParser?

    I have parsed the following xml document with the oraxml batch
    and with the sample '..\xdk\demo\java\parser\dom\DOMSample' and
    observed a diffent behavior in Oracle9i:
    <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
    <Document xmlns:n1='urn:example:some-names'
    xmlns:n2='urn:example:some-names'>
    <BadAttrs_XML_1.0 att='1' att='2' />
    <BadAttrs_Namespaces n1:att='1' n2:att='2' />
    <OKAttrs_XML_1.0 att='1' n2:att='2' />
    </Document>
    ----------------------------1.) oraxml
    C:\oracle\ora9011\xdk\demo\java\parser\dom>oraxml -version
    -warning Namespaces2.xml
    Parser version: Oracle XDK Java 9.0.1.0.0 Production
    The input XML file is parsed without errors using partial
    validation mode
    Oraxml does not recognize the two attributes with the same name
    in element 'BadAttrs_XML_1.0' as an error.
    2.) oracle.xml.parser.v2.DOMParser
    C:\oracle\ora9011\xdk\demo\java\parser\dom>java DOMSample
    Namespaces2.xml
    file:Namespaces2.xml<Line 8, Column 38>: XML-0124: (Fata
    l Error) An attribute cannot appear more than once in the same
    start tag.
    oracle.xml.parser.v2.XMLParseException: An attribute cannot
    appear more than once in the same start tag.
    I have modified the DomSample.java. The DomParser just checks for
    well-formed documents and doesn't validate the document anymore.
    (only a comment before
    parser.setValidationMode(DOMParser.DTD_VALIDATION);)
    My question is:
    Is there really a difference between oracle.xml.parser.v2.oraxml
    and oracle.xml.parser.v2.DOMParser or which parameters do I have
    to use to get the same results?
    With Oracle8i, both report an xml error!!
    (Oracle9i, Win2000, JDK1.3)
    Thanx in advance!
    Markus

    It would appear that there is a difference when a loadjava is given a jar vs. the individual class files. When I load the jar, I get the previously described error, but when I load the individual class files (the same class files that the jar contains) the error goes away.
    Why?

  • High parsing with Siebel and Oracle RAC 10gR2

    Hi all,
    I'm working for a company that uses Siebel 8 with a 2 nodes RAC 10gR2. 70GB SGA with assured minimum values for shared pool 16GB, 50GB db buffer cache and the rest distributed among the other pools.
    In the last weeks we are facing a very annoying issue in our production system, at random times we have a very high concurrency peak with contention events like:
    - cursor: pin S wait on X
    - latch: library cache
    and a performance problem as a consequence.
    I have read all the documents on metalink about these types of waiting events and how to troubleshoot it, but I can't get rid of this problem.
    We have dynamic SGA configured, but we haven't had any resizes in the last weeks.
    We didn't have many "version count" for query, we are about <40.
    In the AWR I have noticed that we have very high parsing (in most cases query execute=query parse). We have talked to our Siebel support team to propose them the use of CURSOR_SHARING=FORCE, but they told us that it's unsupported.
    We have increased the parameter session_cached_cursors from 50 to 1000, but in the last days the problem has even got worse.
    I suppose that the solution could be reducing the parse count and elapsed parse time, but without changing the CURSOR_SHARING parameter and not much help from Siebel support, I don't know how to achieve this.
    Does anyone have any idea?

    The only way you can reduce the number of parses is to fix Siebel (in other words - not much you can do).

  • How to relate java and Oracle

    i have to tried to make programs using java and oracle. if i give the values in the 'insert' statement it is getting updated in the original table in oracle but how to take the values from the text fields of java and insert into the tables in oracle. do we have any methods to convert the values into sql type. pl reply.

    Here is a sample of a Java program that uses JDBC and a PreparedStatement. This particular program does a select, but you can also use this for inserts. I'm not 100% this is what you are looking for, but if it isn't just let me know. I'll help if I can.
    Joel
    For inserts, just replace this code:
    ResultSet rs = ps.executeQuery();
    while (rs.next()) {
      System.out.println(rs.getInt(rs.findColumn("CNT")));
    }with this code (and obviously change the Select string to an Insert String):
    int rowcnt = ps.executeUpdate();Here is the whole program:
    import java.sql.*;
    import java.util.*;
    import java.text.*;
    class dbtest {
        public static void main(String args[]) throws SQLException {
            try {
                String timeString = new String("2000-11-01 23:59:59");
                SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd H:m:s");
                java.util.Date date = format.parse(timeString);
                Timestamp timestamp = new Timestamp(date.getTime());
                DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                Connection conn =
                    DriverManager.getConnection(
                        "jdbc:oracle:thin:@riker:1521:mydb",
                        "myusername",
                        "mypassword");
                String sql =
                    "SELECT COUNT(*) CNT FROM SERVICE_ALARM "
                        + "WHERE TRANS_STREAM_NODE_ID = ? "
                        + "AND SERVICE_ID = ? "
                        + "AND ALARM_ID = ? "
                        + "AND RAISED > TO_DATE(?,'YYYY-MM-DD HH24:MI:SS')";
                PreparedStatement ps = conn.prepareStatement(sql);
                ps.setString(1, "ROW1");
                ps.setInt(2, 1);
                ps.setString(3, "ROW1");
                String myDate =
                    timestamp.toString().substring(0, timestamp.toString().length() - 2);
                System.out.println("myDate=(" + myDate + ")");
                ps.setString(4, myDate);
                ResultSet rs = ps.executeQuery();
                while (rs.next()) {
                    System.out.println(rs.getInt(rs.findColumn("CNT")));
                rs.close();
                ps.close();
            } catch (Exception e) {
                System.out.println("Java Exception caught, error message=" + e.getMessage());
    }

  • Compare SQL Server and Oracle syntax

    Hello, I am very new to the Oracle DB as I have been working with MS SQL Server for many years. I have a SQL statement that works fine in MSSQL but seems to not work in Oracle. Is this a syntax problem or do I need to look elsewhere?
    DECLARE @as_master_key varchar(26)
    EXEC [dbo].[GET_UNIQUE_MASTER_KEY]
         @as_project_name = N'CMDEMO',
         @as_database_site = N'CMPL',
         @as_user_initials = N'SK',
         @as_table = N'SUBMITTAL_CATEGORY',
         @as_master_key =
         @as_master_key
    OUTPUT SELECT @as_master_key as N'master_key'
    This is what I use in MSSQL and it works fine - but I am porting this application to an Oracle backend and it fails. Any suggestions?
    Thanks in advance to this newbie. :)

    SQL Server and Oracle are two completely different RDBMS'.
    You'd be best not to try and port SQL Server code to Oracle SQL or PL/SQL directly as it will not favour the power of Oracle's features correctly.
    I'm not sure what your code is supposed to be doing (I find SQL Server code awful to read, and never understand the need for "@" before variable names, that just seems to show a lazy parser (or lazy coder who designed the parser)).
    From what I can guess it's going to be something like...
    SQL code...
    create or replace sequence my_master_key;PL/SQL code...
    DECLARE
      as_master_key number;
      as_project_name varchar2(20) := 'CMDEMO';
      as_database_site varchar2(20) := 'CMPL';
      as_user_initials varckar2(5) := 'SK';
      as_table varchar2(30) := 'SUBMITTAL_CATEGORY';
    BEGIN
      select my_master_key.nextval
      into as_master_key
      from dual;
      -- In 11g you could replace this select with just:
      -- as_master_key = my_master_key.nextval;
    END;This get's a unique sequence value into a variable and declares all the other variables. What you want to do with them after that I don't know.

  • OAS 4.0 and Oracle 8i refuse to exec stored proced with more than 20 params

    Hi,
    I'm programming a web application with stored plsql procedures and Oracle Application Server.
    I started using Oracle 8.0.5 and OAS 4.0. It was working fine until I needed to use dynamic plsql and decided to upgrade to Oracle 8i (8.1.7).
    Some of my stored procedures have more than 20 input parameters and didn't supose any problem in the "old" installation, but now when I try to execute
    them via OAS over Oracle 8i it returns an error as if the number of parameters I gave were incorrect.
    Modifying the procedure so it has less than 20 parameters works fine.
    In resume: with the same input form and the same stored procedure with more than 20 input parameters works under Oracle 8.0.5 but fails under 8i.
    Any ideas why the newest version doesn't accept more than 20 parameters?
    Thank you.
    Miquel Salvà
    [email protected]

    Hi Martin.
    So, as far as i understood is the step where data is loaded into database that is taking too long ?
    Wich one of these is your cenario ??
    Cenario 1
    Step 1) Export product data as CSV fike
    Step 2) 3rd party app parses data (some processing is done in CSV file) generating another (or overwritting the original) CSV file
    Step 3) CSV file generated in step 2 is pushed to database using sqlloadr
    Step 4) Some pos-loading transformation is done
    Cenario 2
    Step 1) Export product data as CSV fike
    Step 2) CSV file is loaded into database using SqlLoader
    Step 3) After sqlloader is finish, some post-load processing is done
    Step 4) 3dr party transformation is done
    I think your problem can be in loading that data into database.
    Is the CSV file big?
    you can fasten sqlloader using direct-mode, destination tables can be in nologging mode (faster) and with the right space allocated (avoiding segment alocattion overhead)
    Best Regards
    Rui Madaleno

  • RsultSet getString(String) returning next row with WL8 and Oracle drivers

    When using the following function with the SQL: SELECT A, B, C FROM D
    WHERE A=E and i call the campoString("A") i received the expected value
    for the campoString("B") and so on.
    public String CampoString(String s) {
    int i = 0;
    String sr;
    try {
    System.out.println("Campo a buscar:"+s);
    sr = rsVentasTotales.getString(s);
    System.out.println("Valor:"+sr);
    catch(SQLException _ex) {
    sr = "vacio";
    if(sr == null)
    sr = "vacio";
    if((i = sr.indexOf('\n')) >= 0) {
    if(i > 0)
    return sr.substring(0, i - 1);
    else
    return "DATO ALTERADO";
    } else {
    return sr;
    Oracle latest drivers, and Oracle Server 7, WebLogic platform (workshop) 8.1
    public int Conectar() {
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    catch(ClassNotFoundException _ex) {
    return 0;
    try {
    con = DriverManager.getConnection(url, usuario, password);
    comando = con.createStatement();

    Carlos de Luna Saenz wrote:
    Same result putting the jar at the beggining of the classpath...:-(
    WLS Production Mode=
    .You need a semicolon after "ojdbc13.jar".
    Joe
    CLASSPATH=C:\bea\weblogic81\samples\workshop\SicPros\SicProsv35\WEB-INF\lib\ojdb
    c14.jarC:\bea\WEBLOG~1\server\lib\weblogic_knex_patch.jar;C:\bea\WEBLOG~1\common
    \lib\log4j.jar;C:\bea\WEBLOG~1\server\lib\debugging.jar;C:\bea\WEBLOG~1\server\l
    ib\knex.jar;C:\bea\WEBLOG~1\javelin\lib\javelin.jar;C:\bea\WEBLOG~1\server\lib\w
    lw-lang.jar;;C:\bea\JDK141~1\lib\tools.jar;C:\bea\WEBLOG~1\server\lib\weblogic_s
    p.jar;C:\bea\WEBLOG~1\server\lib\weblogic.jar;C:\bea\WEBLOG~1\server\lib\ojdbc14
    .jar;C:\bea\WEBLOG~1\server\lib\ant\ant.jar;C:\bea\JDK141~1\jre\lib\rt.jar;C:\be
    a\WEBLOG~1\common\eval\pointbase\lib\pbserver44.jar;C:\bea\WEBLOG~1\common\eval\
    pointbase\lib\pbclient44.jar;;C:\bea\WEBLOG~1\server\lib\webserviceclient.jar;C:
    \bea\WEBLOG~1\server\lib\webserviceclient+ssl.jar;C:\bea\WEBLOG~1\server\lib\xbe
    an.jar;C:\bea\WEBLOG~1\server\lib\xmarshal.jar;C:\bea\WEBLOG~1\server\lib\xqrl.j
    ar;C:\bea\WEBLOG~1\server\lib\netui\netui-compiler.jar;C:\bea\WEBLOG~1\server\li
    b\wli.jar;C:\bea\WEBLOG~1\server\lib\wlxtrt.jar;C:\bea\WEBLOG~1\server\lib\fop.j
    ar;C:\bea\WEBLOG~1\integration\lib\wlai-server.jar;C:\bea\WEBLOG~1\integration\a
    dapters\sample\lib\sample-eis.jar;
    Greetings.
    Joe Weinstein wrote:
    Ok.
    Once you get this working, I will have some suggestions that
    will make this run much faster. For now, I think the issue
    is the driver version. We package an old oracle thin driver
    inside our weblogic.jar, so you need to get oracle's latest
    appropriate driver, and edit the start-weblogic script so
    the driver you want comes before the weblogic.jar in the
    -classpath argument for the java line that starts the server.
    PS:
    I am looking at the code, thank you, but you still haven't
    explicitly said what problem you're having!
    thanks
    Joe
    Carlos de Luna Saenz wrote:
    The problematic class is, there is no weblogic code on it, the
    project i am on is to migrate a iPlanet app to a web logic server:
    If you need the JSP using this class please let me know. The
    application uses not standards, taglibs or anything besides .java
    files and .jsp files.
    package externos;
    import java.io.PrintWriter;
    import java.sql.*;
    import java.util.Date;
    public class sicprosR{
    public String strSQL;
    public String er;
    Connection con;
    private ResultSet rsVentasTotales;
    String url;
    CallableStatement ps;
    Statement comando;
    protected String usuario;
    protected String password;
    public boolean estado;
    public sicprosR() {
    ps = null;
    url="jdbc:oracle:thin:@17.3.5.101:1521:dbx1";
    usuario="xxxxx";
    password="xxxx";
    estado = false;
    public Date CampoDate(String s) {
    Object obj = new Date();
    try {
    obj = rsVentasTotales.getDate(s);
    catch(SQLException _ex) { }
    return (Date)obj;
    public double CampoDouble(String s) {
    double d;
    try {
    d = rsVentasTotales.getDouble(s);
    catch(SQLException _ex) {
    d = 0.0D;
    return d;
    public int CampoInt(String s) {
    int i;
    try {
    i = rsVentasTotales.getInt(s);
    catch(SQLException _ex) {
    i = 0;
    return i;
    public String CampoString(String s) {
    int i = 0;
    String sr;
    try {
    System.out.println("Campo a buscar:"+s);
    sr = rsVentasTotales.getString(s);
    System.out.println("Valor:"+sr);
    catch(SQLException _ex) {
    sr = "vacio";
    if(sr == null)
    sr = "vacio";
    if((i = sr.indexOf('\n')) >= 0) {
    if(i > 0)
    return sr.substring(0, i - 1);
    else
    return "DATO ALTERADO";
    } else {
    return sr;
    public boolean Commit() {
    try {
    con.commit();
    catch(SQLException sqlexception) {
    er = sqlexception.getMessage();
    return false;
    return true;
    public int Conectar() {
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    catch(ClassNotFoundException _ex) {
    return 0;
    try {
    con = DriverManager.getConnection(url, usuario, password);
    comando = con.createStatement();
    catch(SQLException sqlexception) {
    er = sqlexception.getMessage();
    return -1;
    try {
    rsVentasTotales = comando.executeQuery(strSQL);
    catch(SQLException _ex) {
    return -2;
    estado = true;
    return 1;
    public int Conectar(int i) {
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    catch(ClassNotFoundException _ex) {
    return 0;
    try {
    con = DriverManager.getConnection(url,
    Estructura.usuario, Estructura.clave);
    comando = con.createStatement();
    catch(SQLException sqlexception) {
    er = sqlexception.getMessage();
    return -1;
    try {
    rsVentasTotales = comando.executeQuery(strSQL);
    catch(SQLException _ex) {
    return -2;
    estado = true;
    return 1;
    public boolean Ejecuta(int i) {
    if(i == 1)
    try {
    rsVentasTotales = comando.executeQuery(strSQL);
    catch(SQLException _ex) {
    return false;
    else
    try {
    comando.executeUpdate(strSQL);
    catch(SQLException sqlexception) {
    er = sqlexception.getMessage();
    return false;
    return true;
    public int Sig() {
    try {
    if(rsVentasTotales.next()) {
    estado = true;
    return 1;
    } else {
    estado = false;
    return 0;
    catch(Exception _ex) {
    estado = false;
    return -1;
    public boolean Siguiente() {
    try {
    if(rsVentasTotales.next()) {
    estado = true;
    return true;
    } else {
    estado = false;
    return false;
    catch(Exception _ex) {
    estado = false;
    return false;
    public String convierteCantidadLetras(double d, String s) {
    String s1 = Double.toString(d);
    s1 = truncaADosDecimales(s1);
    try {
    ps = con.prepareCall("{ call
    get_Palabra_De_Valor_Numerico(?,?,?) }");
    ps.setString(1, s1);
    ps.setString(2, s);
    ps.registerOutParameter(3, 12);
    ps.execute();
    return ps.getString(3);
    catch(SQLException _ex) {
    return "No se pudo realizar la conversion";
    public String convierteCantidadLetras(double d, String s,
    PrintWriter printwriter) {
    String s1 = Double.toString(d);
    s1 = truncaADosDecimales(s1);
    try {
    ps = con.prepareCall("{ call
    get_Palabra_De_Valor_Numerico(?,?,?) }");
    ps.setString(1, s1);
    ps.setString(2, s);
    ps.registerOutParameter(3, 12);
    ps.execute();
    return ps.getString(3);
    catch(SQLException _ex) {
    return "No se pudo realizar la conversion";
    public boolean inicio() {
    try {
    rsVentasTotales.first();
    return true;
    catch(SQLException _ex) {
    return false;
    public String truncaADosDecimales(String s) {
    int i = 0;
    String s1 = "";
    i = s.indexOf(".");
    if(s.length() <= i + 3) {
    s1 = s.substring(i + 1, s.length());
    } else {
    s1 = s.substring(i + 1, i + 3);
    s1 = s1.substring(0, 2);
    if(s.substring(i + 1, i + 2).equals("0"))
    s1 = "0" + s1;
    s1 = s.substring(0, i) + "." + s1;
    return s1;
    Joe Weinstein wrote:
    Hi! I need two more things from you, please:
    1 - A full statement of what problem you're having.
    2 - More of the code. All I see here is you are getting
    a connection directly from Oracle's driver, and code which
    does a ResultSet.getString() call.
    I need to see the logic from getting the connection, to creating
    the statement, to executing the query, to doing ResultSet.next()
    for each row and getting the row data for each.
    It seems that this is either an application code or jdbc driver
    problem because no weblogic code is being used, so it could probably
    be duplicated in a small stand-alone program (without any weblogic
    stuff).
    Joe
    Carlos de Luna Saenz wrote:
    When using the following function with the SQL: SELECT A, B, C FROM
    D WHERE A=E and i call the campoString("A") i received the expected
    value for the campoString("B") and so on.
    public String CampoString(String s) {
    int i = 0;
    String sr;
    try {
    System.out.println("Campo a buscar:"+s);
    sr = rsVentasTotales.getString(s);
    System.out.println("Valor:"+sr);
    catch(SQLException _ex) {
    sr = "vacio";
    if(sr == null)
    sr = "vacio";
    if((i = sr.indexOf('\n')) >= 0) {
    if(i > 0)
    return sr.substring(0, i - 1);
    else
    return "DATO ALTERADO";
    } else {
    return sr;
    Oracle latest drivers, and Oracle Server 7, WebLogic platform
    (workshop) 8.1
    public int Conectar() {
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    catch(ClassNotFoundException _ex) {
    return 0;
    try {
    con = DriverManager.getConnection(url, usuario, password);
    comando = con.createStatement();

  • IRecruitment: Background Checks and Resume Parsing

    Hi all,
    Does anyone have experience with Background Check and Resume Parsing features in iRecruitment? There is not a lot about it in the implementation guide and Metalink.
    Do we have to make an interface for it? I know that HireRight is the approved Oracle vendor for background checks and we need to send them data in XML format through HTTPS or some other method. I want to have some guidelines regarding this from functional point of view.
    Thanks all.

    I've been involved with the implementation of resume parsing and background checking twice. Both times, the HireRight implementation was very simple. Only a couple of profile options and then some network configuration. (there is a bit of work to be done, however, on the deal with HireRight. e.g. which background checks are your recruiters allow to request, etc)
    Resume parsing on the other hand, can be a bit more tricky. The setups on the IRC functional side are also simple, but the configuration of the wallets and other DMZ related items proved to be very time-consuming.

  • PHP 5.1.4 and Oracle 10G XE ?

    I am using PHP 5.1.4 with OCI8.dll module, and Oracle 10G XE. My question is how to Edit and Delete Record in my table using PHP syntax ?.
    Best Regards,
    /Harso Adjie.

    You use SQL syntax not PHP syntax to UPDATE / DELETE the records and run the query in a similar manner to SELECT statements:
    Parse your Oracle statement: oci_parse()
    Execute your Oracle statement: oci_execute()
    (You will need to commit transaction if not using auto-commit) Commit your transaction: oci_commit()
    http://uk.php.net/manual/en/ref.oci8.php

  • XDK for PL/SQL and XML Parser for PL/SQL

    Is there a difference between the terms:
    XDK for PL/SQL
    and
    XML Parser for PL/SQL V2
    or are they the same thing...?
    cheers,

    XDK stands for XML Developer's Kit. There are Oracle XDKs for Java, C, C++, and PL/SQL. These development kits contain building blocks for reading, manipulating, transforming, and viewing XML documents.
    XML Parser is one component of XDK. Other components of XDK are
    XSLT Processor, XSU, XSQL Servlet, XML Class Generator, etc.
    For more information on XDK and its components please refer to:
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/appdev.920/a96621/adx01bas.htm#1656
    Regards,
    Anupama
    http://otn.oracle.com/sample_code/content.html

Maybe you are looking for

  • How do I set my older version of Pages as the default when opening files?

    I currently have two versions (Pages '08 3.0.3 and Pages '09 4.2) on my computer. I am finding that when others send me a document created in the older version of Pages, when I open it, it converts it to the newer version. If I make changes and send

  • Creation of User id in UME

    Dear All, I am facing with the following problem when I try to create User id using UME, "Current user has user creation permissions in the UME, but cannot create users in the back-end system (data source). The original and possibly untranslated mess

  • PVCS/Headstart revision substitution not working

    We've been following the instructions on p95 of the Headstart documentation, using a string of $Revision::xxxxxxxxxxx$ to get PVCS revision number substitution on our modules. This doesn't seem to be working correctly - sometimes the substitution tak

  • Will ipad 2 be faster in ios 8

    ios 8 is making my ipad 2 slow. will in the future this problem be rectified?

  • Pull your finger out Apple!

    Why is there NOT a version of iTunes that is compatible with WindowsXP Pro 64? When are Apple gonna get their fingers out of their butt and release a 64 version? Anyone else have a similar problem and are just as annoyed as I am? Thanks AMD64 Custom