Error: XSQL-007

I'm trying to get the Oracle XSQL servlet to work with MySQL (through
the mm.mysql.jdbc-1.2c driver) under Solaris but I keep getting the
following error message (using the xsql command-line tool):
%> sh $XSQL/bin/xsql test.xsql test.htm
Oracle XSQL Command Line Page Processor 1.0.4.1 (Production)
XSQL-007: Cannot acquire a database connection to process page.
Cannot disable AUTO_COMMIT
My configuration is:
test.xsql
<?xml version="1.0"?>
<DbTest elt="query" xmlns:xsql="urn:oracle-xsql"
connection="xsqlDsin">
<xsql:query>
SELECT * AS text
FROM text
</xsql:query>
</DbTest>
XSQLConfig.xml
<connection name="xsqlDsin">
<username>USER_NAME</username>
<password>PASSWORD</password>
<dburl>jdbc:mysql://host:3306/xsqlDsinTest</dburl>
<driver>org.gjt.mm.mysql.Driver</driver>
</connection>
jserv.conf
ApJServAction .xsql /servlets/oracle.xml.xsql.XSQLServlet
jserv.properties
wrapper.classpath=/xsql/mm.mysql.jdbc-1.2c/org/gjt/mm/mysql/
Driver.class
null

Download the XSQL 1.0.4.3 release that is part of the XDK for Java 8.1.7.1.
It has a new feature that allows you to control the auto-commit setting of any connection (or not specifically declare it and use the default for your driver). See the XSQL 1.0.4.3 release notes.

Similar Messages

  • XSQL-007 and list of XSQL error codes.

    I have a situation where I need to replay a request if I cannot acquire a database connection, and to not replay a request otherwise. Is the XSQL-007 code the only code that deals with database connections?
    XSQL-007: Cannot acquire a database connection to process page.
    Do you have a published list of XSQL codes? Is there a method in java code to generate the full list of XSQL codes? For example to get a list of database error codes, one can in PL/SQL use:
    set serveroutput on size 2000
    begin
    for i in 1..9999 loop
    dbms_output.put_line ( sqlerrm(-i) ) ;
    end loop ;
    end ;
    Steve.

    There's not a way to loop through the errors in Java. Here's the list.
    XSQL-001: Cannot locate requested XSQL file. Check the name.
    XSQL-002: Cannot acquire database connection from pool: {0}
    XSQL-003: Failed to find 'XSQLConfig.xml' file in server CLASSPATH.
    XSQL-004: Could not acquire a database connection named: {0}
    XSQL-005: XSQL page is not well-formed.
    XSQL-006: XSLT stylesheet is not well-formed: {0}
    XSQL-007: Cannot acquire a database connection to process page.
    XSQL-008: Cannot find XSLT Stylesheet: {0}
    XSQL-009: Missing arguments on command line
    XSQL-010: Error creating: {0}\nUsing standard output.
    XSQL-011: Error processing XSLT stylesheet: {0}
    XSQL-012: Cannot Read XSQL Page
    XSQL-013: XSQL Page URI is null or has an invalid format.
    XSQL-014: Resulting page is an empty document or had multiple document elements.
    XSQL-015: Error inserting XML Document
    XSQL-016: Error parsing posted XML Document
    XSQL-017: Unexpected Error Occurred
    XSQL-018: Unexpected Error Occurred processing stylesheet {0}
    XSQL-019: Unexpected Error Occurred reading stylesheet {0}
    XSQL-020: XSQLConfig.xml file is not well-formed.
    XSQL-021: Serializer {0} is not defined in XSQLConfig.xml
    XSQL-022: Cannot load serializer class {0}
    XSQL-023: Class {0} is not an XSQL Serializer
    XSQL-024: Attempted to get response Writer after getting OutputStream
    XSQL-025: Attempted to get response OutputStream after getting Writer

  • Xsql-007 Error

    Oracle 9.0.1 on Solaris 9, SPARC hardware. XDK is the one that came on the CD with the original install.
    Had XSQL queries working fine, then had to change the nodename of the machine when we got a domain.
    Now all DB queries return "XSQL-007: Cannot acquire a database connection to process page.
    Io exception: The Network Adapter could not establish the connection"
    Apparently the Servlet doesn't get it's DB connection from Localhost, but from the nodename defined in /etc/nodename.
    Anybody know how to redirect from the old nodename to Localhost or the new nodename? Also, does anybody know where all the XSQL error messages are documented? I've searched OTN, no luck.
    Thanks,
    Ben

    Thanks for your reply!
    You got me on the right track! TNSNAMES.ORA had the correct hostname, but I still had the wrong hostname in $ORACLE_HOME/network/admin/listener.ora.
    What had me confused was the fact that Windows SQLPlus clients could connect just fine but the server couldn't find it's own database.
    Thank you!!!
    Regards,
    -Ben

  • XSQL-007 Database connection error.

    I got following message when click sample heloworld.xsql:
    Oracle XSQL Servlet Page Processor 0.9.9.1 (Technology Preview)
    XSQL-007: Cannot acquire a database connection to process page.
    Invalid Oracle URL specified: OracleDriver.connect
    We're using RH Linux 6.1, Apache Tomcat 3.1 Beta and XSQL 0.9.9.1. The database connection string in XSQLConfig.xml is:
    <connection name="demo">
    <username>scott</username>
    <password>tiger</password>
    <dburl>jdbc:oracle:jdbc:@home:1521:home</dburl>
    <driver>oracle.jdbc.driver.OracleDriver</driver>
    </connection>
    null

    <dburl> as posted is incorrect.
    A sample that is correct for the JDBC thin
    driver is:
    <connection name="demo">
    <username>scott</username>
    <password>tiger</password>
    <dburl>jdbc:oracle:thin:@localhost:1521:xml</dburl>
    <driver>oracle.jdbc.driver.OracleDriver</driver>
    </connection>
    Note "jdbc:oracle:thin" and not "jdbc:oracle:jdbc"
    hope this helps.

  • Unable to get demo's working, "XSQL-007: Cannot acquire...."

    I must be missing something simple but when I try to run the demo's I get the following error...
    XSQL-007: Cannot acquire a database connection to process page.
    Io exception: The Network Adapter could not establish the connection
    My XSQLConfig file has the following connection information:
    <connection name="demo">
    <username>scott</username>
    <password>tiger</password>
    <dburl>jdbc:oracle:thin:@localhost:1521:ORCL</dburl>
    <driver>oracle.jdbc.driver.OracleDriver</driver>
    <autocommit>true</autocommit>
    Do I need to upload anything to an ORACLE table to get the demo's working?
    Thanks in advance...
    Stephen

    - Can you connect your database using your JDBC connection string?
    "jdbc:oracle:thin:@localhost:1521:ORCL"
    - What is your SQL query?
    null

  • 9.0.4: XSQL-003/XSQL-007

    My colleague is creating XSQL/XSL pages to return query results from an XML Schema in the DB. I have some JSPs that provide front-end UIs for these queries. We devoloped this in 9.0.3.3 and it worked fine. She sent the XSQL files and I included them into my project and called them from a JSP. Everything worked fine. I was forced to upgrade to 9.0.4 due to a bug and now when I call her XSQL files I get a connection not found error like follows:
    Oracle XSQL Servlet Page Processor 9.0.3.0.0 (Production)
    XSQL-004: Could not acquire a database connection named: iidev
    XSQL-007: Cannot acquire a database connection to process page.
    The connection iidev exists and I use it in the JSP that calls this xsql. I tried creating a new connection and a basic XSQL page like this:
    <?xml version="1.0" encoding='windows-1252'?>
    <page xmlns:xsql="urn:oracle-xsql" connection="TestConnection">
    </page>
    Which throws the same error.

    If you don't have an XSQLConfig.xml file, then XSQL won't work, so you must have one. :-)
    JDeveloper will include one in your classpath at runtime automatically. It also manages to keep your XSQLConfig.xml up to date with your IDE's connections. However, here's probably what's happening.
    You upgraded from 9.0.3 to 9.0.4
    In 9.0.3, each time you defined a new database connection in the JDeveloper IDE, JDeveloper fixed up your XSQLconfig.xml file to match, so that there was a corresponding entry in the XSQLConfig.xml file for each connection you defined in the IDE.
    When you migrate, even if you migrated all your settings, we don't migrate the XSQLConfig.xml file, so you're basically starting with a "fresh" one, which only has a "demo" connection defined for scott/tiger.
    What I'd recommend is to:
    1. Look at the top of your XSQL pages, and find the connection="XXXX" attribute in the file. It will be on the root element of the document.
    2. You probably have a connection named XXXX under your Jdeveloper connections node.
    3. Delete that "XXXX" connection in JDeveloper, and recreate a new "XXXX" connnection with the same information.
    Doing this, JDeveloper will add the newly created "XXXX" connection to your XSQLConfig.xml file.
    Then, it should work.

  • XSQL-007: Database connection refused

    I am running Demos on JavaWebServer, IE 5.0, Oracle Lite database. When I am trying to access http://Computer:port/xsql/demo/helloworld.xsql
    it is giving me this error, any thoughts...
    XSQL-007: Cannot acquire a database connection to process page.
    Connection refused
    null

    Now my XSQLConfig.xml settings are:
    <connectiondefs dumpallowed="no">
    <connection name="demo">
    <username>SYSTEM</username>
    <password>234khan</password>
    <dburl>jdbc:Polite:POlite</dburl>
    <driver>oracle.lite.poljdbc.POLJDBCDriver</driver>
    </connection>
    <connection name="lite">
    <username>system</username>
    <password>manager</password>
    <dburl>jdbc:Polite:POlite</dburl>
    <driver>oracle.lite.poljdbc.POLJDBCDriver</driver>
    </connection>
    </connectiondefs>
    and I am getting this error:
    500 Internal Server Error
    The servlet named oracle.xml.xsql.XSQLServlet at the requested URL
    http://nw601250:8080/xsql/demo/helloworld.xsql
    reported this exception: java/util/HashMap. Please report this to the administrator of the web server.
    java.lang.NoClassDefFoundError: java/util/HashMap at oracle.lite.poljdbc.OracleConnection.(Unknown Source) at oracle.lite.poljdbc.POLJDBCDriver.connect(Compiled Code) at java.sql.DriverManager.getConnection(Compiled Code) at java.sql.DriverManager.getConnection(DriverManager.java:126) at oracle.xml.xsql.XSQLConnectionPool.newConnection(XSQLConnectionPool.java:256) at oracle.xml.xsql.XSQLConnectionPool.(Compiled Code) at oracle.xml.xsql.XSQLConnectionManager.getPool(XSQLConnectionManager.java:270) at oracle.xml.xsql.XSQLConnectionManager.getPool(XSQLConnectionManager.java:250) at oracle.xml.xsql.XSQLConnectionManager.getConnection(XSQLConnectionManager.java:63) at oracle.xml.xsql.XSQLPageRequestImpl.setConnectionName(XSQLPageRequestImpl.java:189) at oracle.xml.xsql.XSQLPageProcessor.process(Compiled Code) at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:124) at javax.servlet.http.HttpServlet.service(HttpServlet.java:715) at javax.servlet.http.HttpServlet.service(Compiled Code) at com.sun.server.ServletState.callService(Compiled Code) at com.sun.server.ServletManager.callServletService(Compiled Code) at com.sun.server.ProcessingState.invokeTargetServlet(Compiled Code) at com.sun.server.http.HttpProcessingState.execute(Compiled Code) at com.sun.server.http.stages.Runner.process(Compiled Code) at com.sun.server.ProcessingSupport.process(Compiled Code) at com.sun.server.Service.process(Compiled Code) at com.sun.server.http.HttpServiceHandler.handleRequest(Compiled Code) at com.sun.server.http.HttpServiceHandler.handleRequest(Compiled Code) at com.sun.server.HandlerThread.run(Compiled Code)
    I hope this would be the final step. Please reply thanks
    null

  • XSQL-007: Protocol violation

    Oracle XSQL Servlet Page Processor 1.0.0.0 (Production)
    XSQL-007: Cannot acquire a database connection to process page.
    Protocol violation
    ^^^^^^^^^^^^^^^^^^
    what is it?????????????

    The issue got resolved.The reason behind the error was the user schemas which ever we tried were about to expire and throwing an warning message before getting the connection,
    Regards
    Keerthivasan V

  • XSQL-007: Cannot acquire a database connection to process page.

    Just getting started with XSQL with Oracle 8.1.7. Ran the
    helloworld demo and got XSQL-007 error. How do I map
    connection="demo" to a database service or SID name?

    I ran into somthing similar earlier. Checked an article off
    ORAMAG, january 01 called 'Generating XSQL Server Pages'.
    (http://www.oracle.com/oramag/oracle/01-jan/o11xml.html)
    I found that if I verified the settings in the jserv.properties
    file under Apache, and also verified the connetion info in the
    XSQLConfig.xml file (Do a search) that you can eliminate the
    issue. (I was using JDeveloper 3.2.3, and have some trouble with
    JDev 9i, but I assume you can get some good info none-the-less
    from this article).
    Best of luck.
    Scott Rappoport, OCP
    AT&T Enhanced Network Services

  • Is possible to run XDK 9i on AIX? Error  XSQL-027 comes up!

    Running a simple XSQL file with the command-line utility xsql
    against the database (8.1.7 Standard) ends in:
    xsql-027: Failed to load
    oracle.xml.actions.XSQLIncludeOWAHandler class for built-in
    xsql: include-owa action
    xsql-004: Could not acquire a database connection named: xml
    xsql-007: Cannot acquire a databae connection to process page.
    The example works fine from a windows client with the same
    XSQLConfig.xml file.
    Configuration:
    Java JRE: 1.2.2/1.1.8 --> both were tested, same result
    AIX: 4.3.3
    XDK: 9.0.2.0.0C (Beta)
    Database: 8.1.7 Standard
    Any idea?

    The display driver keeps crashing saying error and is in an infinite loop. I have the latest driver from the Toshibas website but make no difference. There is a lot of people with this A6O laptop who have said on this forum they had the same problem and tried different things, but they do say when they up-date the bios version touch wood it seems to be ok. I just need to now get the downloaded file to run, but it keeps saying error-failed to load driver...HELP PLEASE!

  • XSQL-007 using Personal Oracle 8.1.6

    I get
    XSQL-007: Cannot acquire a database connection to process page.
    Io exception: The Network Adapter could not establish the connection
    message when running hello world demo.
    I have set up Oracle 8i on Windows 98, installed Oracle 8.1.6 for Windows 98, installed XSQL.
    Here is the tnsnames entry for the 8.1.6 database:
    TEST.GLOBAL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dcmli)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = test.global)
    I changed the word "demo" to "test" in helloworld.xsql and xsqlconfig.xml. xsqlconfig.xml now reads:
    <connection name="test">
    <username>scott</username>
    <password>tiger</password>
    <dburl>jdbc:oracle:thin:@localhost:1521:ORCL</dburl>
    <driver>oracle.jdbc.driver.OracleDriver</driver>
    </connection>
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    Is your database SID the four upper-case letters 'ORCL' ?
    The demos are looking for a connection named "demo" (unless you edited the demo directories' XSQL files, too).
    Can you ping your "localhost" from a DOS box?<HR></BLOCKQUOTE>
    How do I check whether the SID is ORCL and if not, can I change it? I did a default database installation.
    When I look at the tnsnames.ora their is no mention of SID=ORCL - I don't know where to look or how to make the SID=ORCL. I added it after CONNECT_DATA =
    CONNECT_DATA =
    (SID=ORCL) <== added line
    following example of another database, restarted database, but it did no good. Another aspect I don't understand - I can start SQLPLUS without specifying a database, but if I specify test or test.global, which is in the tnsnames.ora, it does not work. So what connect string is it using when I don't provide one? When I look in the Oracle home for the database, it says ORACLE_SID=test, but neither test or test.global works as connect strings.
    I can ping local host.
    null

  • Billing type F2 not defined error vf 007

    in Billing transaction this error happend
    Billing type F2 not defined error Vf 007
    and the billing type f2 is deleted from the system and it's not assigned in the sales order type
    why the system determined billing type F2 for this sales order ??

    you mean delivery relevant billing field is blank in transaction code VOV8 for your sales doc type?
    if that's the case..I think system always defaults F2 for invoices, based on some parameters like sales doc type, screen sequence group etc..
    Regards,
    Raghu.

  • Error indicate 007 when run F110proposal

    Hi,
       Yesterday I runned F110 for down payment request against PO of vendor 10000 with error message "No valid payment method " before vendor 10000 master data was maintained. And today I runned another F110 proposal  which also include this vendor with indicator error 007 shown up "error in creating payment document" .  Then I re-run proposal with ticket additional log and restrict to that vendor and got the information that "maitain default cost element in controlling area". This is the first time we met since we have used F110 for several years. I have checked vendor master data , F110 configure required and they are ok. Additionally I tested in QA and no issue happen. I felt this error is wierd and I don't know  which cost element should be maintained. How to deactive it?  Thanks.

    The easiest way will be to create the default cost element. Then run the proposal again and check the postings. I assume you have a discount procedure in place, and since we are treating a down payment, the system generates an automatic cost posting. This must be due to your customizing.
    Kind regards,
    Rudolf

  • Error XSQL-017 Running XML Document Demo

    Environment: Oracle 8.1.6 (NT 4.0)
    XSQL 1.0.4.1
    JDK 1.1.8
    While running the XML Document Demo, I enter the Author, Title, Stylesheet and XML Document fields, and click the "Validate and Insert" button. Then I get the messages shown below. Any ideas? Thanks.
    ===== ===== Start Of Messages ===== =====
    XSQL-017: Unexpected Error Occurred
    java.lang.NoClassDefFoundError: java/sql/Clob
    at
    oracle.jdbc.driver.OracleStatement.get_clob_value(OracleStatement.java:4447)
    at
    oracle.jdbc.driver.OracleStatement.getCLOBValue(OracleStatement.java:3025)
    at
    oracle.jdbc.driver.OracleCallableStatement.getCLOB(OracleCallableStatement.java:439)
    at
    oracle.xml.sql.dml.OracleXMLSave.createTempCLOBFromString(Compiled
    Code)
    at
    oracle.xml.sql.dml.OracleXMLSave.getLobVal(OracleXMLSave.java:765)
    at
    oracle.xml.sql.dml.OracleXMLSave.getObjectVal(OracleXMLSave.java:690)
    at oracle.xml.sql.dml.OracleXMLSave.getStructVal(Compiled
    Code)
    at
    oracle.xml.sql.dml.OracleXMLSave.setBindValue(OracleXMLSave.java:1206)
    at oracle.xml.sql.dml.OracleXMLSave.saveNodeVal(Compiled
    Code)
    at
    oracle.xml.sql.dml.OracleXMLSave.saveNode(OracleXMLSave.java:2146)
    at oracle.xml.sql.dml.OracleXMLSave.saveNodes(Compiled
    Code)
    at
    oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:1954)
    at
    oracle.xml.sql.dml.OracleXMLSave.insertXML(OracleXMLSave.java:1060)
    at
    oracle.xml.xsql.actions.XSQLInsertRequestHandler.handleAction(XSQLInsertRequestHandler.java:126)
    at oracle.xml.xsql.XSQLDocHandler.getDocument(Compiled
    Code)
    at oracle.xml.xsql.XSQLPageProcessor.process(Compiled Code)
    at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:60)
    at oracle.xml.xsql.XSQLServlet.doPost(XSQLServlet.java:81)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at oracle.lite.web.JupServlet.service(JupServlet.java:186)
    at oracle.lite.web.MimeServletHandler.handle(Compiled Code)
    at oracle.lite.web.JupApplication.service(Compiled Code)
    at oracle.lite.web.JupHandler.handle(Compiled Code)
    at oracle.lite.web.HTTPServer.process(Compiled Code)
    at oracle.lite.web.HTTPServer.handleRequest(Compiled Code)
    at oracle.lite.web.JupServer.handle(Compiled Code)
    at oracle.lite.web.SocketListener.process(Compiled Code)
    at oracle.lite.web.SocketListener$ReqHandler.run(Compiled
    Code)
    ===== ===== End Of Messages ===== =====
    null

    Using JDK 1.1.8 you must use the JDBC 1.x driver in classes111.zip and the companion version of the XML SQL Utility xsu111.jar.
    You'll need to download these from OTN from http://otn.oracle.com/tech/xml and then replace them in your classpath for the classes12.zip and xsu12.jar that you're using.

  • XSQL und BEA Weblogic  ERROR:XSQL-013

    We develop an web-application using XSQL to generate XML, which is further transformed via XSL to HTML or PDF.
    As IDE we use JDeveloper 9.0.3.1.
    Running and debugging in JDeveloper works fine.
    We deploy the application as war-file on bea weblogic 7.2.
    When starting the xsql-servlet / calling the xsql file we get the following error:
    Oracle XSQL Servlet Page Processor 9.0.3.0.0 (Production)
    XSQL-013: XSQL Page URI is null or has an invalid format.
    XSQLConfig is located in:
    WEB-INF\classes\XSQLConfig.xml</li>
    XSQLConfig remains untouched and holds the right connection (OCI)
    <connection name="KimOci">
    <username>...</username>
    <password>...</password>
    <dburl>jdbc:oracle:oci8:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=...)(PORT=...)))(CONNECT_DATA=(SID=...)))</dburl>
    <driver>oracle.jdbc.driver.OracleDriver</driver>
    </connection>
    XSQL-File starts with
    <?xml version = "1.0" encoding = "ISO-8859-1"?>
    <page xmlns:xsql="urn:oracle-xsql" connection="KimOci">
    <xsql:include-request-params/>
    <xsql:include-param name="ImageUrl"/>
    <xsql:include-param name="BaseUrl"/>
    <xsql:include-param name="LocalUrl"/>
    <xsql:query max-rows="-1" null-indicator="no" tag-case="lower" rowset-element="global" row-element="date">
    select ...
    Whats wrong or missing?
    Thanks

    Trying to check whats going on within the XSQL-Prozessor we tried the programmatic approach.
    First step is to call XSQL from within an action /jsp .
    <%
    String baseUrl = request.getScheme()
    + "://"
    + request.getServerName()
    + ":"
    + request.getServerPort()
    //+ "/"
    + request.getContextPath()
    + "/"
    URL pageUrl = new URL(baseUrl+"report/untitled2.xsql");
    XSQLRequest req = new XSQLRequest(pageUrl);
    PrintWriter of = new PrintWriter( new FileOutputStream("./report.xml"));
    PrintWriter ef = new PrintWriter( response.getOutputStream());
    Hashtable params = new Hashtable(0);
    req.process(params, of, ef );
    %>
    But still there is an error.
    This time we got:
    Oracle XSQL Programmatic Page Processor 9.0.3.0.0 (Production) XSQL-005: XSQL page is not well-formed. XML parse error at line 2, char 1 Expected 'EOF'
    The code of untitled2.xsql
    <?xml version = "1.0" encoding = "ISO-8859-1"?>
    <page xmlns:xsql="urn:oracle-xsql" connection="KimOci">
    <amen>leer</amen>
    </page>

Maybe you are looking for