Why must I call DBMS_XDB.cfg_get() to avoid ORA-19030 error?

I am getting error: "ORA-19030: Method invalid for non-schema based XML Documents" when trying to validate an XML document. I'm on Oracle 10.2.0.4.0.
If I log on to Oracle and execute the following anonymous block:
declare
l_xml XMLTYPE;
tempXML XMLTYPE;
BEGIN
SELECT XMLTYPE (xml_data)
INTO l_xml
FROM pr_interactive_import
WHERE interactive_import_id = 1440;
tempXML := l_xml.createSchemaBasedXML ();
tempXML.schemavalidate ();
END;
Then I receive the above error. Note that table pr_interactive_import has a valid XML document for the specified record. However, if I issue:
select DBMS_XDB.cfg_get()
from dual;
from the same session and then execute the anonymous block above, the xml document correctly validates.
Some time ago I had modified xdbconfig.xml so that Oracle would properly resolve XML documents (stored in this table) to their registered schemas as the documents in question did not specify a schemaLocation attribute. My question though, is why do I have to call DBMS_XDB.cfg_get() every time I start a new session in order to validate these XML documents as in the code above? As far as I know there is only one xdbconfig.xml in the system, so I would expect it to be loaded or looked up automatically when calling schemavalidate().
Is there a database setting that would load xdbconfig.xml for all sessions when they connected? Or am I missing something obvious?
Thanks,
Alan

You have a point, however the design was simply not intended to work that way. The createSchemaBasedXML function is designed to allow the developer to cast the XML Instance to a speciofied XML Schema. It was not designed to try to determine what the XML schema in question is...
That said you could write a PL/SQL function that would use the mapping infromation in xdbConfig to cast the XML schema...
SQL> create or replace package XMLSCHEMA_UTILITIES
  2  as
  3    function createSchemaBasedXML(P_XML XMLTYPE) return XMLType;
  4  end;
  5  /
Package created.
SQL> show errors
No errors.
SQL> --
SQL> create or replace package body XMLSCHEMA_UTILITIES
  2  as
  3  function createSchemaBasedXML(P_XML XMLTYPE)
  4  return XMLType
  5  as
  6    V_SBXML XMLType;
  7    V_SLH   VARCHAR2(700);
  8  begin
  9    select XMLCAST
10           (
11             XMLQuery
12             (
13               'declare default element namespace "http://xmlns.oracle.com/xdb/xdbconfig.xsd"; (: :)
14                for $i in $CFG/xdbconfig/sysconfig/schemaLocation-mappings/schemaLocation-mapping[element=fn:local-name($XML) and namespace=fn:namespace-uri($XML)]/schemaURL
15                return $i'
16               passing dbms_xdb.cfg_get() as "CFG",
17               P_XML as "XML"
18               returning content
19             )
20             as VARCHAR2(700)
21           )
22      into V_SLH
23      from dual;
24
25    return P_XML.createSchemaBasedXML(V_SLH);
26  end;
27  --
28  end;
29  /
Package body created.

Similar Messages

  • Need help to avoid ORA-04030 error

    Oracle version : 11.1.0.6.0
    OS - Solaris 64bit Sparc
    Hi All,
    Today we have recieved the below error messeges in the alert log.
    ORA-04030: out of process memory when trying to allocate 56 bytes (callheap,kghscAllocDataElem:dataElem)
    ORA-04030: out of process memory when trying to allocate 184 bytes (callheap,temporary memory)
    ORA-04030: out of process memory when trying to allocate 56 bytes (callheap,temporary memory)
    Trace dumping is performing id=[cdmp_20110222134605]
    Tue Feb 22 13:46:52 2011
    Sweep Incident[104533]: completed
    Sweep Incident[104532]: completed
    Sweep Incident[104531]: completed
    Sweep Incident[104530]: completed
    Sweep Incident[104528]: completed
    Tue Feb 22 17:04:25 2011
    SYS@MYDB>!oerr ora 4030
    04030, 00000, "out of process memory when trying to allocate %s bytes (%s,%s)"
    //*Cause:  Operating system process private memory was exhausted.
    //*Action:I came to know that it was due to the operating system prvate memory exhausted. Database memory configuration is as below
    SYS@MYDB>show parameter sga
    NAME                                 TYPE        VALUE
    lock_sga                             boolean     FALSE
    pre_page_sga                         boolean     FALSE
    sga_max_size                         big integer 2000M
    sga_target                           big integer 0
    SYS@MYDB>show parameter pga
    NAME                                 TYPE        VALUE
    pga_aggregate_target                 big integer 521658240
    SYS@MYDB>OS Memory information
    load averages:  1.58,  1.82,  2.13;                    up 196+10:43:15                                                         20:55:35
    408 processes: 406 sleeping, 2 on cpu
    CPU states: 80.0% idle, 15.6% user,  4.4% kernel,  0.0% iowait,  0.0% swap
    Memory: 32G phys mem, 18G free mem, 43G total swap, 42G free swapThere are other 2 more databases are running on this server, one is 10g and another one is 9i and its memory configuration have given below respectivly
    SQL>show parameter sga
    NAME                                 TYPE        VALUE
    lock_sga                             boolean     FALSE
    pre_page_sga                         boolean     FALSE
    sga_max_size                         big integer 4G
    sga_target                           big integer 4G
    RPT>show parameter pga
    NAME                                 TYPE        VALUE
    pga_aggregate_target                 big integer 4G
    SQL> show parameter sga
    NAME                                 TYPE        VALUE
    lock_sga                             boolean     FALSE
    pre_page_sga                         boolean     FALSE
    sga_max_size                         big integer 1135171060
    SQL> show parameter pga
    NAME                                 TYPE        VALUE
    pga_aggregate_target                 big integer 2147483648
    SQL>Could you please suggest me how to avoid this error in future ? Looks like i need to fine tune the memory parameters, could you please suggest how can i do so ? I also noticed SGA Target is set to 0 (Automatic Memory managment is not enabled), If i set SGA target will resolve the issue ?
    Kindly advise ..
    Thanks in advance
    Nishant

    I just took the plan by setting set autotrace traceonly explain. Please check this will help, I will check and update you the table's statistics soon.
    Execution Plan
    Plan hash value: 1841079096
    | Id  | Operation                               | Name               | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT                        |                    |   210M|    96G|       |    29M  (1)| 99:12:47 |
    |   1 |  SORT ORDER BY                          |                    |   210M|    96G|       |    29M  (1)| 99:12:47 |
    |   2 |   HASH UNIQUE                           |                    |   210M|    96G|  1000K| 41115   (2)| 00:08:14 |
    |   3 |    CONCATENATION                        |                    |       |       |       |            |          |
    |   4 |     NESTED LOOPS                        |                    |       |       |       |            |          |
    |   5 |      NESTED LOOPS                       |                    |   980 |   470K|       | 34365   (2)| 00:06:53 |
    |   6 |       NESTED LOOPS                      |                    |   980 |   455K|       | 33384   (2)| 00:06:41 |
    |   7 |        NESTED LOOPS                     |                    |   980 |   445K|       | 32893   (2)| 00:06:35 |
    |*  8 |         HASH JOIN                       |                    |   980 |   434K|  7968K| 31912   (2)| 00:06:23 |
    |   9 |          NESTED LOOPS                   |                    | 19606 |  7735K|       | 28804   (2)| 00:05:46 |
    |* 10 |           HASH JOIN                     |                    |     1 |   306 |    11M| 27300   (2)| 00:05:28 |
    |  11 |            TABLE ACCESS FULL            | VERSION_FILE_MAP   |   517K|  6064K|       |  2275   (3)| 00:00:28 |
    |* 12 |            HASH JOIN                    |                    |   296K|    83M|    11M| 20121   (2)| 00:04:02 |
    |* 13 |             HASH JOIN                   |                    |   296K|  8401K|  7168K|  4103   (4)| 00:00:50 |
    |  14 |              INDEX FAST FULL SCAN       | ATTACHMENT_PK      |   407K|  2389K|       |   280   (3)| 00:00:04 |
    |* 15 |              HASH JOIN                  |                    |   296K|  6663K|  8408K|  2966   (4)| 00:00:36 |
    |  16 |               TABLE ACCESS FULL         | ATTACHMENT_MAP     |   296K|  4925K|       |  1810   (5)| 00:00:22 |
    |  17 |               INDEX FAST FULL SCAN      | VERSION_PK         |   482K|  2829K|       |   317   (3)| 00:00:04 |
    |  18 |             TABLE ACCESS FULL           | FILES              |   509K|   128M|       |  8744   (1)| 00:01:45 |
    |* 19 |           TABLE ACCESS FULL             | ATTACHMENT         | 31967 |  3059K|       |  1504   (2)| 00:00:19 |
    |  20 |          TABLE ACCESS FULL              | VERSION            |   482K|    23M|       |  1290   (2)| 00:00:16 |
    |* 21 |         TABLE ACCESS BY INDEX ROWID     | VERSION            |     1 |    12 |       |     1   (0)| 00:00:01 |
    |* 22 |          INDEX UNIQUE SCAN              | VERSION_PK         |     1 |       |       |     1   (0)| 00:00:01 |
    |* 23 |        INDEX UNIQUE SCAN                | PAGE_THREE_PK      |     1 |    10 |       |     1   (0)| 00:00:01 |
    |* 24 |       INDEX UNIQUE SCAN                 | PAGE_TWO_PK        |     1 |       |       |     1   (0)| 00:00:01 |
    |  25 |      TABLE ACCESS BY INDEX ROWID        | PAGE_TWO           |     1 |    16 |       |     1   (0)| 00:00:01 |
    |  26 |     NESTED LOOPS                        |                    |       |       |       |            |          |
    |  27 |      NESTED LOOPS                       |                    |     1 |   492 |       |  6644   (2)| 00:01:20 |
    |  28 |       NESTED LOOPS                      |                    |     1 |   227 |       |  6643   (2)| 00:01:20 |
    |  29 |        NESTED LOOPS                     |                    |     1 |   215 |       |  6641   (2)| 00:01:20 |
    |  30 |         NESTED LOOPS                    |                    |     1 |   209 |       |  6640   (2)| 00:01:20 |
    |  31 |          MERGE JOIN CARTESIAN           |                    |     1 |   192 |       |  6639   (2)| 00:01:20 |
    |  32 |           NESTED LOOPS                  |                    |       |       |       |            |          |
    |  33 |            NESTED LOOPS                 |                    |     1 |   186 |       |  6359   (2)| 00:01:17 |
    |  34 |             NESTED LOOPS                |                    |     1 |   170 |       |  6358   (2)| 00:01:17 |
    |  35 |              NESTED LOOPS               |                    |     1 |   158 |       |  6357   (2)| 00:01:17 |
    |* 36 |               HASH JOIN                 |                    |     1 |   148 |    28M|  6356   (2)| 00:01:17 |
    |  37 |                TABLE ACCESS FULL        | VERSION            |   482K|    23M|       |  1290   (2)| 00:00:16 |
    |* 38 |                TABLE ACCESS FULL        | ATTACHMENT         |   407K|    38M|       |  1504   (2)| 00:00:19 |
    |* 39 |               INDEX UNIQUE SCAN         | PAGE_THREE_PK      |     1 |    10 |       |     1   (0)| 00:00:01 |
    |* 40 |              TABLE ACCESS BY INDEX ROWID| VERSION            |     1 |    12 |       |     1   (0)| 00:00:01 |
    |* 41 |               INDEX UNIQUE SCAN         | VERSION_PK         |     1 |       |       |     1   (0)| 00:00:01 |
    |* 42 |             INDEX UNIQUE SCAN           | PAGE_TWO_PK        |     1 |       |       |     1   (0)| 00:00:01 |
    |  43 |            TABLE ACCESS BY INDEX ROWID  | PAGE_TWO           |     1 |    16 |       |     1   (0)| 00:00:01 |
    |  44 |           BUFFER SORT                   |                    |   407K|  2389K|       |  6638   (2)| 00:01:20 |
    |  45 |            INDEX FAST FULL SCAN         | ATTACHMENT_PK      |   407K|  2389K|       |   280   (3)| 00:00:04 |
    |* 46 |          TABLE ACCESS BY INDEX ROWID    | ATTACHMENT_MAP     |     1 |    17 |       |     2   (0)| 00:00:01 |
    |* 47 |           INDEX RANGE SCAN              | ATTACHMENTMAP_IDX3 |     1 |       |       |     1   (0)| 00:00:01 |
    |* 48 |         INDEX UNIQUE SCAN               | VERSION_PK         |     1 |     6 |       |     1   (0)| 00:00:01 |
    |  49 |        TABLE ACCESS BY INDEX ROWID      | VERSION_FILE_MAP   |     1 |    12 |       |     2   (0)| 00:00:01 |
    |* 50 |         INDEX RANGE SCAN                | VERSION_FMAP_IDX2  |     1 |       |       |     1   (0)| 00:00:01 |
    |* 51 |       INDEX UNIQUE SCAN                 | FILES_PK           |     1 |       |       |     1   (0)| 00:00:01 |
    |* 52 |      TABLE ACCESS BY INDEX ROWID        | FILES              |     1 |   265 |       |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       8 - access("A"."ID"="VERSION"."ATTACH_ID" AND "A"."LATEST_VSN"="VERSION"."ID")
           filter("A"."LATEST_VSN">="VERSION"."ID")
      10 - access("C"."ID"="D"."VERSION_ID" AND "D"."FILE_ID"="E"."ID")
      12 - access("E"."ID"="A"."FILE_ID")
      13 - access("A"."ATTACH_ID"="B"."ID")
      15 - access("A"."LATEST_VSN"="C"."ID")
      19 - filter(NVL("A"."DELETE_FLAG",0)=0 AND ("CTXSYS"."CONTAINS"("A"."DESCRIPTION",'EHS%')>0 OR
                  "CTXSYS"."CONTAINS"("E"."CONTENT_URL",'EHS%')>0 AND "E"."CONTENT_URL" IS NOT NULL))
      21 - filter("A"."ID"="D"."ATTACH_ID")
      22 - access("A"."LATEST_VSN"="D"."ID")
      23 - access("A"."ID"="C"."ID" AND "A"."CLASS"="C"."CLASS")
      24 - access("A"."ID"="B"."ID" AND "A"."CLASS"="B"."CLASS")
      36 - access("A"."ID"="VERSION"."ATTACH_ID" AND "A"."LATEST_VSN"="VERSION"."ID")
           filter("A"."LATEST_VSN">="VERSION"."ID")
      38 - filter(NVL("A"."DELETE_FLAG",0)=0)
      39 - access("A"."ID"="C"."ID" AND "A"."CLASS"="C"."CLASS")
      40 - filter("A"."ID"="D"."ATTACH_ID")
      41 - access("A"."LATEST_VSN"="D"."ID")
      42 - access("A"."ID"="B"."ID" AND "A"."CLASS"="B"."CLASS")
      46 - filter("A"."FILE_ID"=0)
      47 - access("A"."ATTACH_ID"="B"."ID")
      48 - access("A"."LATEST_VSN"="C"."ID")
      50 - access("C"."ID"="D"."VERSION_ID")
      51 - access("D"."FILE_ID"="E"."ID")
           filter(LNNVL("E"."ID"="A"."FILE_ID"))
      52 - filter("CTXSYS"."CONTAINS"("A"."DESCRIPTION",'EHS%')>0 OR
                  "CTXSYS"."CONTAINS"("E"."CONTENT_URL",'EHS%')>0 AND "E"."CONTENT_URL" IS NOT NULL)

  • Question on using Distinct operator and avoiding ORA-00936 error

    I may have answered my own question, by searching the OTN forums, but I just want to confirm what I've learned.
    I'm trying to use a distinct on one of my columns, where I am pulling multiple columns, and trying to avoid duplicate entries. From most of my textbook example, when an example is using a distinct, they were only pulling one column.
    From my example below, when I try to use a distinct, I get the following error: ORA-00936: missing expression:
    select p.list_id, distinct(p.associate_id), d.first, d.last, c.street1, c.street2, c.city, c.state, c.country, c.postal_code, c.email
    from sf.profiles p, demographics d, contact_info c
    where p.entity_id = d.entity_id
    and p.entity_id = c.entity_id
    and p.list_id = 111
    and associate_id in (insert associate_id in here
    );Once I searched OTN, I saw some examples, where they had the distinct operator as the first column. So I switched it with p.list_id, and the query ran find.
    select distinct p.associate_id, p.list_id, d.first, d.last, c.street1, c.street2, c.city, c.state, c.country, c.postal_code, c.email
    from sf.profiles p, demographics d, contact_info c
    where p.entity_id = d.entity_id
    and p.entity_id = c.entity_id
    and p.list_id = 111
    and associate_id in (insert associate_id in here);So, does the distinct operator have to go first, if using multiple columns?
    thanks
    Message was edited by:
    cmmiller

    With or without parenthesis, it's a distinct clause for all columns in select statement:
    SQL> select * from tt1;
            ID T
         10203 1
         10203 2
    SQL> select distinct(id), text from tt1;
            ID T
         10203 1
         10203 2
    SQL> select id, text from tt1;
            ID T
         10203 1
         10203 2
    SQL> Nicolas.

  • How can i avoid ora-01706 error in Oracle 9i db?

    Can someone help me with the error ora-01706 user function result value was too large in Oracle 9i ?
    I am trying to parse the xml with namespace and CDATA tags. The example of the query i have used is as follows.
    select extractvalue(
    xmltype(
    extractvalue(xmltype(col1),'/SubmitPart/OrderRequest/OrderXML','xmlns="http://www.w3schools.com/ravi/srpf"')
    ),'/OrderRetrieval/OrderDetails/Locations/Location/L2_Is/I/IProperties/Edge/RAG','xmlns="http://www.w3schools.com/ravi/srpf"')
    from table;
    I am getting the error
    ora-01706 user function result value was too large
    Please let me know how can i get rid of this. my db is Oracle 9.2.0.1.0

    You are probably better off posting this question in the XML DB forum. You are hitting a 64K limit in 9i. You'll have to come up with a way to reduce the data you need to extract to under 64K.

  • Why java is called java2

    why java is called java2 and another thing that i would like to know is why it was renamed to java from its previous name OAK
    Thanx
    Manish

    why java is called java2Not to sure about this one, but I think it was a marketing decision - I guess 'Welcome to the Java 2 platform' sounds better than saying 'Welcome to the JDK 1.2.1 platform' :=)
    and another thing that i
    would like to know is why it was renamed to java from
    its previous name OAKThere was already a patented product named 'OAK', so they had to rename it to something else to avoid the law.
    >
    Thanx
    ManishA brief history of Java:
    http://java.sun.com/features/1998/05/birthday.html
    http://www.ils.unc.edu/blaze/java/javahist.html

  • Why java is called as true object oriented language?

    HI Friends,
    Though few oops concepts is not supported , why java is called as truly object oriented language and C++ as not a purely object oriented language???? Please, if any one know , give me the answer.
    Thanks to all.

    few oops concepts is not supportedwhich concepts?
    as far as i know...to be OO, you must supports
    encapsulation, abstraction, inheritancxe, composition (aggretration, et all) and polymorphism. Java supports all those comcept..now..Java is a hybrid due to what Jverd has pointed out.
    the only pure OO language that i know of is SmallTalk. they have Meta class that can create Class object. and all their primitaives are object.
    C# comes close, but their Class are not object.

  • Error: You must successfully call Init

    Howdy All
    Im getting an error when trying to create a remote session. Perhaps there is something I changed, but it seems like this just started happening.
    I make the call as always:
    IRemoteSession session = RemoteSessionFactory.getExplicitLoginContext(
    new URL("http://portalserver/ptapi/services/QueryInterfaceAPI"),
    "administrator","");And then get the error:
    System.Web.Services.Protocols.SoapException:
    java.rmi.RemoteException: Error in PortalObjectsFactory.CreateSession:
    Init has not been called.
    You must successfully call Init before calling CreateSession
    at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse
    (SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
    at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
    at com.plumtree.remote.prc.soap.SessionAPIService.login(String sUsername, String sPassword)
    at com.plumtree.remote.prc.soap.SessionProcedures.Login(String sUsername, String sPassword)Any idea why this is occurring? Any help is appreciated.
    Thanks,
    Harrison

    Thanks Lillian,
    Looks like it was the API service, the "Axis" screen was showing but viewing the logs showed an error. Once that was corrected, it worked.
    FYI: Here is the link to the previous thread:
    [url http://forums.bea.com/bea/message.jspa?messageID=300002061&tstart=0]http://forums.bea.com/bea/message.jspa?messageID=300002061&tstart=0
    - Harrison

  • Why cant I call a getResultSet method more than 1

    Why cant I call the getRSS method more than 1 time from my page?
    I have a class called methods class, here is the code:
    public class methodsClass {
        public java.sql.Connection objConn = null;
        public String query = null;
        public java.sql.PreparedStatement statement = null;
        public java.sql.ResultSet objRS = null;
        /** Creates a new instance of methodsClass */
        public methodsClass() {}
         public ResultSet getRSS(String sql)
            String strSQL = sql;
            try
                Class.forName("oracle.jdbc.driver.OracleDriver");
                objConn = java.sql.DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:CCD","system", "Abcd1234");
                statement = objConn.prepareStatement(strSQL,ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
                objRS = statement.executeQuery();
            catch (Exception e)
                System.err.println("Error in getRSS method");
                e.printStackTrace();
            return objRS;
        public void killConn()
            try
                    objRS.close();
                    System.out.println("Resultset is closed");
                    statement.close();
                    System.out.println("Statement is closed");
                    objConn.close();
                    System.out.println("Connection is closed");
                catch(Exception e)
                System.err.print("Unable to kill all objects");
                e.printStackTrace();
    //END OF CLASS***************************************** I call the method from the following jsp:
    <%
    String eqCat = "Tracked Vehicle";
    String strSQL = "SELECT DISTINCT * FROM robert WHERE eqcategory = '"+eqCat+"'";
    methodsClass mc = new methodsClass();
    ResultSet objRS = mc.getRSS(strSQL);
    java.lang.System.out.println(strSQL);
    %>
         <select name="selectBox">
         <% while(objRS.next()){
             out.println("<option value='"+objRS.getString("eqtype")+"'>"+objRS.getString("eqtype")+"</option>");
               mc.killConn();
    %> The above works fine.
    If I try to call the getRSS function again on this page I get the following error:javax.servlet.ServletException: Exhausted Resultset
    I tried to call it like so:
    newNameSQL = "Select * from robert where eqtypes = 'someVariable'";
    newNameRS = mc.getRSS(strSQL);
    <%=newNameRSS.getString("something");%>I cant understand why I get this error, I am closing the rs,conn and statement in the killConn method.
    TIA!

    I did that but still the same error. The problem is when I attempt to open up another resultset on the same page I get the Exhausted ResultSet error. I have even eliminated the class file altogether by doing this:
      String eqCat = "Tracked Vehicle";
      String strSQL = "SELECT DISTINCT eqtype FROM robert WHERE eqcategory = '"+eqCat+"'";
      Class.forName("oracle.jdbc.driver.OracleDriver");
      Connection objConn = java.sql.DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:CCD","system", "Abcd1234");
      PreparedStatement statement = objConn.prepareStatement(strSQL,ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
      ResultSet objRS = statement.executeQuery();
      System.out.println(strSQL);
    //The above works fine and then below I add this and the error comes back
         <select name="cs_popup_name_1" onchange="CSURLPopupShow(/*CMP*/'cs_form_name_1', /*CMP*/'cs_popup_name_1', 'Main');">
         <% while(objRS.next()){
            String eq = objRS.getString("eqtype");
             out.println("<option value='"+eq+"'>"+eq+"</option>");
    objRS.close();
    objConn.close();
    statement = null;
    strSQL = null;
    strSQL = "SELECT * FROM robert";
      Class.forName("oracle.jdbc.driver.OracleDriver");
      objConn = java.sql.DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:CCD","system", "Abcd1234");
      statement = objConn.prepareStatement(strSQL,ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
      ResultSet rs = statement.executeQuery();
      System.out.println(strSQL);
    //If I leave the field below commented out I get no errors, but if I comment it out I get the error
    <a href="#" onmouseover="showImg('<%=rs.getString("img1")%>')">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Why must I return a device I own?

    I have a device I have had for 2 years and am NOT on the edge program. Why must I return it if I want to upgrade early on the edge? I can understand going from edge to edge but I OWN my device and it is NOT on the edge program currently.

    If you have had the phone for 2 years as you say, you DON'T need to return it if you want to go on Edge. You say you want to "upgrade early", though, which means you HAVE NOT had the phone for 2 years. If you want to keep your phone, simply complete the contract you agreed to before switching to Edge. Then you DON'T have to return your phone when going on Edge.
    Yes, you may OWN your device but Verizon OWNS a contract you agreed to in order to get your phone at hundreds of dollars off the retail price of that phone. Verizon is simply making you trade the item you own for the item they own. You don't want to make the trade, simply complete the contract and you won't have to.

  • Why must the number of states on all pages be equal?

    Hi,
    I'm building a complete interactive website in Fireworks CS5 using Master Pages, States and Behaviors for some neat interactivity on the mockup.
    My question is why must the number of states be equal on all pages? I have a Master Page with a simple rollover effect on all the links, but on the Profile page I have a popup where you can insert tags. To create an interactive popup on the Profile page I need a couple of states for that popup on the Profile page. As soon as I add more states to the Profile page it loses the content from the Master Page, even if I tell all the layers in the Master page to "share on all states", when forcing the Profile page get's disconnected from the Master page.
    There has to be a simpler way of doing this!
    Thanks!

    There is no way of doing what you want in Fireworks. It's not an HTML editor and can't generate more than rudimentary interactive objects. To create more sophisticated interactive objects you need have some knowledge of coding and use software like Dreamweaver or Flash.

  • Why JNDI is called an Interface?

    Why JNDI is called as Java Naming and Directory Interface, question is why
    interface ? when it is not a interface ?

    It is an interface because it is defined as an abstract set of APIs, not actually implementation. The actually implementation is done by service providers.
    Defining an abstract set of APIs without actually implementation can isolate the implemenation of service provide and client application code, thus make them more independently from each other. i.e, a client application would not need to know what changes made by any particular vendor.
    Hope this helps.

  • Why doesn't calls to my iPhone ring through to my Mac?

    Why doesn't calls to my iPhone ring through to my Mac?

    The following have the requirements and settings and some troubleshooting information:
    Connect your iPhone, iPad, iPod touch, and Mac using Continuity - Apple Support
    Get help using Continuity with iOS 8 and OS X Yosemite - Apple Support

  • HT1245 Why does my caller I.D. photos show as a small thumbnail in the upper right corner and not full screen? I have used both photos I have synced and photos I have taken, yet others have full screen photo I.D.'s.

    Why does my caller I.D. photos show as a small thumbnail in the upper right corner and not full screen? I have used both photos I have synced and photos I have taken, yet others have full screen photo I.D.'s. I have looked onlime at several threads and there are no real answers as to what I need to do or am doing wrong.

    I am also having this issue.
    I've just spoken to someone in the Apple Support Centre who advised me that since the product is in beta, he is unable to assist. I wanted to find out whether someone was able to delete the data for me, or 'reset' the photos app somehow. This apparently cannot be done. He suggested I provide feedback via the feedback page, which I will do, but to be honest doesn't fill me with a lot of confidence in the issue being fixed.
    I also deactivated the service and waited the 30 days for the pictures to be deleted - this should have been completed in mid-January. Instead, my iCloud.com Photos page is now showing the photos that should have been deleted as grey squares, just as you described. I am also unable to delete these photos; every time I try, I get the same message about a server error.
    I am also unable to disable the service by enabling and then disabling it on my iPhone. Each time I have tried this it hangs on uploading for several hours, with the progress bar not moving at all. When I disable it on my iPhone, the web app remains unchanged.
    If anyone has had this issue and has managed to fix it, PLEASE share your wisdom. I am out of patience!

  • Why must I close safari in order to open mail?

    why must I close safari in order to open mail?

    You don't.  What makes you think you do?

  • Why must I provide payment details for FREE aps?

    Why must I provide payment details for Free Aps?

    To prove you are in the country whose app store you are trying
    to use. Not all apps are available in all countries, and some
    countries have no AppStore. Also some apps have in-app
    purchases and information is necessary to make those purchases.
    Purchase an iTunes card and redeem it in your account -
    that will allow you to download free apps without credit
    info. Check to see if available in your country.

Maybe you are looking for

  • #NULL# passed in url resolves to %23NULL# after 4.2 upgrade

    URL target of a branch f?p=&APP_ID.:12:&SESSION.::&DEBUG.::P12_ID,P12_CALC_AP,P12_FLAG,P12_STATUS:#NULL#,&P7_CALC_AP.,7,Planned was working fine until 4.2 upgrade and post upgrade, url resolves the #NULL# to %23NULL# (f?p=18761:12:8013234343420::NO::

  • Why can't I return to a previous story on Yahoo News and have to log out?

    When I am on a news story on Yahoo I often find I cannot return to the previous one and the only way I can is to log out and log back in again..this is one reason I keep deleting Firefox ..it is a real irritation. Please advise Thank you john pulling

  • Need free Oracle Applications 11i technical Tutorials

    Hi All, I've been learning Oracle Application (technical) and need some pointers from you regarding Technical Tutorials. I've gone through some of the basic tutorials of Oracle Applications and now looking for websites/resources for techical tutorial

  • ActionPerformed not working ??

    Hi all, I have written this program to display a box for user to enter a value and display the computed value :- import java.awt.*; import javax.swing.*; import java.text.*; import java.awt.event.*; public class ConvertMachine extends JFrame implemen

  • Weblogic Spring MDP consumer unable to receive message

    Hi, we have a weblogic cluster(2 machine, 2 instance per machine) I have configured JMS server in each instance and a distributed Queue DominName : hmidomain Weblogic 10.0MP1 And four instance of managed server and JMS server gdmsdomain(admin) instan