Java.sql.SQLException: Non supported SQL92 token at position: 377:

hi,
i have to create oracle-java source from java program. my code is :
( In Java which create java source in oracle)
strQuery = "CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED
\"ASCOMPONENT\" AS ";
strQuery += "import javax.xml.parsers.DocumentBuilderFactory; ";
strQuery += "import javax.xml.parsers.DocumentBuilder; ";
strQuery += "import org.xml.sax.SAXException; ";
strQuery += "import org.xml.sax.SAXParseException; ";
strQuery += "import org.w3c.dom.Document; ";
strQuery += "import org.w3c.dom.*; ";
strQuery += "import java.io.*; ";
strQuery += "import oracle.jdbc.driver.*; ";
strQuery += "import java.sql.*; ";
strQuery += "public class ASComponent ";
strQuery += "\n ";
strQuery += "{ "; // error here.../
strQuery += "\n ";
strQuery += "public static void readXML(String strXML,String
strTable) ";
strQuery += "\n ";
strQuery += "{ ";
strQuery += "\n ";
strQuery += " } ";
strQuery += "\n ";
strQuery += " } ";
strQuery += "\n ";
System.out.println("Query = " + strQuery);
stmt.executeQuery(strQuery);
i am getting error :
java.sql.SQLException: Non supported SQL92 token at position: 377:
so, what is that error ?
i think when it is getting '{ ' it is giving error...?
how we can use token '{}' in jdbc.
so, what is the error..?
please help me its urgent..
Thanks in advance...

thanks for reply.
according to my project requirement i have to execute that script using my java program.
java source which i am creating in oracle is :
CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "ASCOMPONENT" AS
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
import org.w3c.dom.Document;
import org.w3c.dom.*;
import java.io.*;
import oracle.jdbc.driver.*;
import java.sql.*;
public class ASComponent
public static void readXML(String strXML,String strTable)
// code here
when i am creating above program from sql prompt, it works fine.
but when i am creting that from java program, it is giving me exception.
my java code to create above script is :
conn = getConnection();
stmt = conn.createStatement();
strQuery = "CREATE OR REPLACE AND RESOLVE JAVA SOURCE
NAMED \"ASCOMPONENT\" AS ";
strQuery += "\n ";
strQuery += "import javax.xml.parsers.DocumentBuilderFactory; ";
strQuery += "\n ";
strQuery += "import javax.xml.parsers.DocumentBuilder; ";
strQuery += "import org.xml.sax.SAXException; ";
strQuery += "import org.xml.sax.SAXParseException; ";
strQuery += "import org.w3c.dom.Document; ";
strQuery += "import oracle.jdbc.driver.*; ";
strQuery += "import java.sql.*; ";
strQuery += "public class ASComponent ";
strQuery += "\n ";
strQuery += " { ";
strQuery += "\n ";
strQuery += "public static void readXML(String strXML,String strTable) ";
strQuery += "\n ";
strQuery += " { ";
strQuery += "\n ";
strQuery += " } ";
strQuery += "\n ";
strQuery += " } ";
strQuery += "\n ";
System.out.println("Query = " + strQuery);
stmt.executeQuery(strQuery);
so, how we can create above sql script from java program ?
i think token " { } " is not supporting that...
please reply , its urgent....

Similar Messages

  • Non supported SQL92 token at position: 887: Message -regarding javamail api

    I executed a procedure in java for sending mail.
    But ended in exception which is shown below.
    " 17034 : null : java.sql.SQLException: Non supported SQL92 token at position: 887: Message
    java.sql.SQLException: Non supported SQL92 token at position: 887: Message
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.ja "
    how to add more api's in Odi.
    is it the jar files to store in ODI\jre\lib directory .
    I did it but again exception .
    plz reply a suggestion,
    thanks in advance
    sanal

    I Think U need to set the path of jar files in classpath Enviroment variable

  • Java.sql.SQLException: Non supported character set: oracle-character-set-17

    Hi,
    i am trying to execute an Oracle procedure from JDBC. The procedure accepts a Nested table as an input parameter. Definition of the nested table is given below.
    Database – Oracle 10g.
    Application Server – JBOSS 4.2.1
    I get the following exception._
    java.sql.SQLException: Non supported character set: oracle-character-set-178
    at oracle.gss.util.NLSError.throwSQLException(NLSError.java:46)
    I.  JDBC  Code_
    Session s = HibernateUtil.getSession();
    Transaction tr = s.beginTransaction();
    con=s.connection();
    oraConn = (OracleConnection) con.getMetaData().getConnection();
    TableObject obj=new TableObject();
    obj.setId(new Integer(123));//Tested ok, stroing in DB
    obj.setDescr("test"); // this line throwing error
    obj.setCre_user(new Integer(456));
    obj.setUpd_user(new Integer(789));
    obj.setXfr_flag("Y");
    ArrayList al=new ArrayList();
    al.add(obj);
    Object[] objAray = al.toArray();
    ArrayDescriptor arrayDescriptor =ArrayDescriptor.createDescriptor("T_TEST_SYN", oraConn);
    ARRAY oracleArray = new ARRAY(arrayDescriptor, oraConn, objAray);
    cs = (OracleCallableStatement)oraConn.prepareCall("call PKG_OBJ_TEST.accept_ui_input(?) ");
    cs.setArray(1, oracleArray);
    cs.execute();
    tr.commit();
    public class TableObject implements SQLData{
    private String sql_type = "T_OBJ_TEST";
    private int id;
    private String descr;
    //private Date cre_date;
    private int cre_user;
    //private Date upd_date;
    private int upd_user;
    private String xfr_flag;
    public TableObject()
    public TableObject (int id,String descr,int cre_user,int upd_user,String xfr_flag)
    // this.sql_type = sql_type;
    this.id = id;
    this.descr = descr;
    // this.cre_date=cre_date;
    this.cre_user=cre_user;
    //this.upd_date=upd_date;
    this.upd_user=upd_user;
    this.xfr_flag=xfr_flag;
    public String getSQLTypeName() throws SQLException {
    return "T_OBJ_TEST";
    public void readSQL(SQLInput stream, String typeName) throws SQLException {
    //sql_type = typeName;
    id=stream.readInt();
    descr=stream.readString();
    //cre_date=stream.readDate();
    cre_user=stream.readInt();
    //upd_date=stream.readDate();
    upd_user=stream.readInt();
    xfr_flag=stream.readString();
    public void writeSQL(SQLOutput stream) throws SQLException {
    try {
    stream.writeInt(this.id);
    System.out.println("Iddddd");
    stream.writeString(this.descr);
    System.out.println("Desccccccccccccccc"+":"+descr);
    //stream.writeDate(cre_date);
    stream.writeInt(this.cre_user);
    System.out.println("userrrrrrrrrrrr");
    //stream.writeDate(upd_date);
    stream.writeInt(this.upd_user);
    System.out.println("upd uiserrrrrrrrrrr");
    stream.writeString(this.xfr_flag);
    System.out.println("flagggggggggggggggggggg"+xfr_flag);
    }catch (SQLException se) {
    System.out.println("Table object sql exception");
    se.printStackTrace();
    catch (Exception e) {
    System.out.println("Table object exception");
    * @return the id
    public int getId() {
    return id;
    * @param id the id to set
    public void setId(Object obj) {
    Integer iobj= (Integer)obj;
    this.id =iobj.intValue();
    * @return the descr
    public String getDescr() {
    System.out.println("getDescr "+descr);
    return descr;
    * @param descr the descr to set
    public void setDescr(Object obj) {
    System.out.println("setDescr "+obj);
    String sobj = (String)obj;
    this.descr=sobj.toString();
    System.out.println("setDescr "+obj);
    * @return the cre_user
    public int getCre_user() {
    return cre_user;
    * @param cre_user the cre_user to set
    public void setCre_user(Object obj) {
    Integer iobj=(Integer)obj;
    this.cre_user = iobj.intValue();
    * @return the upd_user
    public int getUpd_user() {
    return upd_user;
    * @param upd_user the upd_user to set
    public void setUpd_user(Object obj) {
    Integer iobj=(Integer)obj;
    this.upd_user = iobj.intValue();
    * @return the xfr_flag
    public String getXfr_flag() {
    return xfr_flag;
    * @param xfr_flag the xfr_flag to set
    public void setXfr_flag(Object obj) {
    this.xfr_flag = (String)xfr_flag;
    II.  Oracle database object details
    Details of Object and Nested table created in the database.
    T_TEST_SYN is a public synonym created for t_tab_obj_test
    CREATE OR REPLACE TYPE t_obj_test as object (
    id number(10),
    descr varchar2(100),
    --cre_date  date,
    cre_user number(10),
    --upd_date  date,
    upd_user number(10),
    xfr_flag varchar2(1),
    CONSTRUCTOR FUNCTION t_obj_test ( id IN NUMBER DEFAULT NULL,
    descr IN varchar2 default null,
    --cre_date  in date      default null,
    cre_user in number default null,
    --upd_date  in date      default null,
    upd_user in number default null,
    xfr_flag in varchar2 default null ) RETURN SELF AS RESULT ) ;
    CREATE OR REPLACE TYPE BODY t_obj_test as
    CONSTRUCTOR FUNCTION t_obj_test ( id IN NUMBER DEFAULT NULL,
    descr IN varchar2 default null,
    --cre_date  in date      default null,
    cre_user in number default null,
    --upd_date  in date      default null,
    upd_user in number default null,
    xfr_flag in varchar2 default null ) RETURN SELF AS RESULT IS
    BEGIN
    SELF.id := id ;
    SELF.descr := descr ;
    --SELF.cre_date  := cre_date ;
    SELF.cre_user := cre_user ;
    --SELF.upd_date  := cre_date ;
    SELF.upd_user := cre_user ;
    SELF.xfr_flag := xfr_flag ;
    RETURN ;
    END ;
    END ;
    CREATE OR REPLACE TYPE t_tab_obj_test AS TABLE OF t_obj_test ;
    CREATE OR REPLACE PACKAGE BODY PKG_OBJ_TEST AS
    PROCEDURE accept_ui_input ( p_tab_obj_test in T_TAB_OBJ_TEST ) IS
    BEGIN
    FOR row IN p_tab_obj_test.First .. p_tab_obj_test.LAST
    LOOP
    INSERT INTO OBJ_TEST ( ID,
    DESCR,
    CRE_DATE,
    CRE_USER,
    UPD_DATE,
    UPD_USER,
    XFR_FLAG )
    VALUES ( p_tab_obj_test(row).ID,
    p_tab_obj_test(row).DESCR,
    NULL,
    p_tab_obj_test(row).CRE_USER,
    NULL,
    p_tab_obj_test(row).UPD_USER,
    p_tab_obj_test(row).XFR_FLAG ) ;
    END LOOP ;
    COMMIT ;
    END accept_ui_input ;
    END PKG_OBJ_TEST;
    /

    Check your CLASSPATH enviroment variable. Try to add something like c:\Ora10g\jlib\orai18n.jar.
    From "JDBC Developer’s Guide and Reference":
    orai18n.jar
    Contains classes for globalization and multibyte character sets support
    This solved the same error in my case.

  • Java.sql.SQLException: Non supported character set: oracle-character-set-860

    Hi,
    I am working on resultset.updateRow() and found some problem.
    I've tried the same jsp page on 2 WebLogic server
    one is on a Solaris Platfoem and another is on a NT platform
    On NT Platform it seems to be OK and update the database successfully.
    On Solaris, on error message on WebLogic log but error found in the JDBC log
    java.sql.SQLException: Non supported character set: oracle-character-set-860
    P.S. both jsp page connection to the same database server Oracle 8
    The testing JSP page:
    <%@ page language="java" import="java.sql.*, oracle.jdbc.driver.*,
    java.util.*, javax.sql.*" %>
    <html>
    <head>
    <title>Weblogic Oracle Testing - Store Procedure</title>
    <meta http-equiv="Content-Type" content="text/html; charset=big5">
    </head>
    Oracle Connection Testing
    <br>
    <body bgcolor="#FFFFFF">
    <%
    Connection conn = null;
    Statement stmt = null;
    ResultSet rs = null;
    String sql;
    Driver myDriver =
    (Driver)Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    try {
    conn=DriverManager.getConnection("jdbc:oracle:thin:sa/z0y1z2y3@oradev01:1521
    :DEV01a");
    DatabaseMetaData DBMetaData = conn.getMetaData();
    boolean support1 =
    DBMetaData.supportsResultSetType(ResultSet.TYPE_SCROLL_SENSITIVE);
    boolean support2 =
    DBMetaData.supportsResultSetType(ResultSet.CONCUR_UPDATABLE);
    %>
    <p><%=support1%></p>
    <p><%=support2%></p>
    <%
    //create a statement
    stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_UPDATABLE);
    //execute a query
    rs = stmt.executeQuery("SELECT tbl_web_trx_hdr.* FROM tbl_web_trx_hdr");
    int concurrency = rs.getConcurrency();
    int type = rs.getType();
    %>
    <p>concurrency: <%=concurrency%></p>
    <p>type: <%=type%></p>
    <%
    rs.moveToInsertRow();
    rs.updateString("org_idx", "CCC");
    rs.updateString("trx_num", "ABC2");
    rs.updateDate("trx_dte", java.sql.Date.valueOf("2001-06-01"));
    rs.updateString("description", "123");
    rs.insertRow();
    rs.updateRow();
    } catch (SQLException e)
    { System.out.println("SQLMessage: " + e.getMessage());
    finally
    { rs.close();
    stmt.close();
    conn.close(); }
    %>
    </body>
    </html>
    Please help
    regards,
    Fannie

    yupp finally i got the solution. . .
    I was using connection from tomcat connection pooling.
    Hence, even though i was setting the classes12.jar and nls_charset12.jar in the classpath and compiling, -In runtime tomcat was using its own classes in the common/lib folder. . .(which might not support oracle-character-set-178.)
    So just added this jars into the common/lib of tomcat instead of web-inf/lib of my project
    and things began working. . .
    Thanks for the hint jshell. . .

  • Non supported SQL92 token at position: 32531: OVERFLOW

    While using Jdevloper9i to edit/create Oracle PL/SQL stored procedure Web Application that has { or } bracket in it gives me the following error:
    Non supported SQL92 token at position: 32531: OVERFLOW
    I know internally Jdevloper uses JDBC to connect to database and if you have setEscapeProcessing turned on then it craps out. The question is how am I going to turn that off on Jdeveloper or can I?
    Thanks!

    Just to confirm, can you state what version of JDeveloper you're using? (9.0.2 Production, or 9.0.3 Developer's Preview?)
    Reading this reminded me of a bug I filed (#2237101) that is fixed in 9.0.3 Dev Preview, but might not be the same issue. Here is the bug report for that particular problem.
    [OTN Thread: Re: Optimistic Locking and web-based transaction
    Pressing [Ctrl]-[Shift]-[F9] to "Make" a PL/SQL package corrupts
    the source code of the PL/SQL package by turning question mark
    characters into JDBC bind variable place holders.
    In the user's testcase, the line:
    d := utl_tcp.write_line(c, '<?xml version=' || DQUOTE || '1.0' || DQUOTE ||
    '?>');
    Is turned into:
    d := utl_tcp.write_line(c, '<:1xml version=' || DQUOTE || '1.0' || DQUOTE
    || ':2>');
    which corrupts the test and ruins the functionality of his routine that's
    trying to output XML.
    Using the OTN user's testcase, I'm able to reproduce the problem
    he is reporting, however, with a smaller testcase the problem
    does not reproduce.
    WORKAROUND: Define a constant for the question mark character, and use
    ----------  the constant instead of the literal question mark.

  • Non supported SQL92 token error

    DB: 9.2.0.6.0
    SQLDev 1.0.0.15.57
    Error 'Non supported SQL92 token at position: xxxx: APL was raised because I had braces '{ }' in my comments:
    eg
    -- stuff {APL, STUFF}
    Weird thing is that an error raised when running statement (ie. using F9) but was NOT raised when running as script (ie using F5).
    Removing the braces worked.

    I am using 9.2 on Sun OS and get a similiar error when trying to compile in Enterprise Manager. I am using the Web Server Generator to gen html with some java script in it...the braces seem to be causing the parser to revolt!
    My code is as follows
    BEGIN
    WSGL.OpenPageHead(''||' : '||'Texas Register');
    regviewer$ext.TemplateHeader(TRUE,0);
    htp.p('<SCRIPT>');
    htp.p('<!-- Hide from old browsers');
    htp.p('function backbu() {');
    htp.p('history.back()');
    htp.p('return null;');
    htp.p('}');
    htp.p('function forwardbu() {');
    htp.p('history.forward()');
    htp.p('return null;');
    htp.p('}');
    htp.p('//-->');
    htp.p('</SCRIPT>');
    proctac.jlib(3);
    WSGL.ClosePageHead;
    Has this been resolved? Our db should be up to date on any patches. Going to transition to 10 or 11 at the end of the year but I am just trying to do some edits on a package and can't get past the parser.
    Thanks for any help.
    Bryan
    Edited by: ca106255 on Sep 29, 2008 4:03 PM

  • SQLException: Non supported character set: oracle-character-set-178

    Hello,
    I run a j2ee application on the Sun J2EE Application server.
    I migrated to 0racle 9.2.0.3.
    I have an ejb making a connexion with the oci driver
    and in it I manipulate XMLType:
    PreparedStatement pst = cnx.prepareStatement(sql);
    XMLType xt = XMLType.createXML(cnx, "<ENTETE></ENTETE>");
    pst.setObject(1, xt);
    I've got an exception on the setObject method :
    java.sql.SQLException: Non supported character set: oracle-character-set-178
    at oracle.gss.util.NLSError.throwSQLException(NLSError.java:46)
    at oracle.sql.CharacterSetUnknown.failCharsetUnknown(CharacterSetFactory
    Thin.java:171)
    at oracle.sql.CharacterSetUnknown.convert(CharacterSetFactoryThin.java:1
    35)
    at oracle.xdb.XMLType.getBytesString(XMLType.java:1687)
    at oracle.xdb.XMLType.getBytesValue(XMLType.java:1623)
    at oracle.xdb.XMLType.toDatum(XMLType.java:431)
    at oracle.jdbc.driver.OraclePreparedStatement.setORAData(OraclePreparedS
    tatement.java:2745)
    at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedSt
    atement.java:3208)
    I have the nsl_charset12.zip , ojdbc14.jar,xdb.jar,xmlparserv2.jar in the J2EE_CLASSPATH of my server.
    Does any one have an idea.
    Thanks , Edwige

    (*bump*)
    Almost the exact same problem here...
    "conn" is an object of type OracleConnection
    "cst" is an object of type "CallableStatement"
    "xml" is a String holding a well-formed XML document (say, "<foo><bar>value</bar></foo>")
    XMLType xt = XMLType.createXML(conn, xml);
    cst.setObject(1, xt); // BOOM! Non supported character set: oracle-character-set-178
    Other relevant details:
    Using the 9.2.0.3 JDBC thin client (ojdbc14.jar)
    Using the newest nls_charset12.zip (in the 9.2.0.3 download section under the "1.2/1.3" heading.
    JDK1.4.1_03 (04?)
    Oracle itself is 9.2.0.3
    database charset is 'WE8MSWIN1252' (yeah, I fought with the DBA and lobbied for UTF-8, but obviously he won that battle... sigh...)
    Also relevant... prior to a few days ago, it worked. Then, the DBA did an upgrade and the charset errors began. It's hard to get a straight answer from him because his English isn't very good, but my guess is that he updated it from 9.2.0.1 to 9.2.0.3.

  • Java.sql.SQLException: Unexpected token: IN in statement

    I use Toplink 2.0-b41-beta2 (03/30/2007) and have a problem with the following JPQL query:
    “SELECT DISTINCT OBJECT(e) FROM Entry e WHERE e.location IN (SELECT loc From View v JOIN v.viewLocs vl JOIN vl.location loc where v.code = :code)”
    “Entry” is a subclass of “TrainElement”, location points to Entity Location. Entity View has a one-to-many relationship to ViewLoc whereas each ViewLoc has a relationship to a Location object.
    Toplink creates the following incorrect sql statement – I inserted some CRLF for better readability::
    Local Exception Stack:
    Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Unexpected token: IN in statement
    [SELECT DISTINCT t0.TELEM_TRAINELEM_ID, t0.TRAINELEMENT_TYPE, t0.TELEM_INDEX, t0.TTELEM_TRAIN_ID, t0.ENTRY_TYPE, t0.ENTRY_ARRIVAL, t0.DISPLAY, t0.ENTRY_ORDERED_STOP, t0.ENTRY_DEPARTURE, t0.ENTRY_ORDER_CODE, t0.ENTRY_PREV_SEC_ID, t0.ENTRY_NEXT_SEC_ID, t0.ENT_LOC_ID FROM TRAINELEMENT t0, LOCATION t1
    WHERE (( IN ((SELECT DISTINCT t2.LOC_ID, t2.LOC_GPSY, t2.LOC_GRX, t2.LOC_CODE, t2.LOC_GRY, t2.LOC_GPSX, t2.LOC_LOCAL_RADIO, t2.LOC_NAME, t2.DELETED, t2.LOC_CLASS_ID FROM VIEW t4, VIEWLOC t3, LOCATION t2 WHERE ((t4.VIEW_CODE = ?) AND ((t3.VIEWLOC_VIEW_ID = t4.VIEW_ID) AND (t2.LOC_ID = t3.VIEWLOC_LOCACTION_ID))))) AND (t0.TRAINELEMENT_TYPE = ?)) AND (t1.LOC_ID = t0.ENT_LOC_ID))]
    Error Code: -11
    Call: SELECT DISTINCT t0.TELEM_TRAINELEM_ID, t0.TRAINELEMENT_TYPE, t0.TELEM_INDEX, t0.TTELEM_TRAIN_ID, t0.ENTRY_TYPE, t0.ENTRY_ARRIVAL, t0.DISPLAY, t0.ENTRY_ORDERED_STOP, t0.ENTRY_DEPARTURE, t0.ENTRY_ORDER_CODE, t0.ENTRY_PREV_SEC_ID, t0.ENTRY_NEXT_SEC_ID, t0.ENT_LOC_ID FROM TRAINELEMENT t0, LOCATION t1 WHERE (( IN ((SELECT DISTINCT t2.LOC_ID, t2.LOC_GPSY, t2.LOC_GRX, t2.LOC_CODE, t2.LOC_GRY, t2.LOC_GPSX, t2.LOC_LOCAL_RADIO, t2.LOC_NAME, t2.DELETED, t2.LOC_CLASS_ID FROM VIEW t4, VIEWLOC t3, LOCATION t2 WHERE ((t4.VIEW_CODE = ?) AND ((t3.VIEWLOC_VIEW_ID = t4.VIEW_ID) AND (t2.LOC_ID = t3.VIEWLOC_LOCACTION_ID))))) AND (t0.TRAINELEMENT_TYPE = ?)) AND (t1.LOC_ID = t0.ENT_LOC_ID))
         bind => [ROMAN W-Pb, ENT]
    There sould be a “t0.ENT_LOC_ID” before the IN in the WHERE clause and the implicit join “ID FROM TRAINELEMENT t0, LOCATION t1” seems incorrect to me. At any rate the database (HSQLDB) rejects that incorrect sql statement.
    How can I circumvent that problem?
    A add the relevant mapping part of the involved classes.
    @Entity
    @DiscriminatorValue("ENT")
    public class Entry extends TrainElement implements IEntry {
         @ManyToOne(cascade = CascadeType.ALL)
         @JoinColumn(name = "ENT_LOC_ID", nullable = true)
         private Location location;
    @Entity
    @Table(name = "LOCATION")
    public class Location implements ILocation {
         // persistent part
         // primary key field
         @Id
         @GeneratedValue
         @Column(name = "LOC_ID")
         private Long id;
         @Column(name = "LOC_CODE", nullable = false)
         private String code;
         @Column(name = "LOC_NAME", nullable = false)
         private String name;
    @Entity
    @EntityListeners(EntityListener.class)
    @Table(name = "VIEW")
    public class View implements IView {
         // persistent
         // primary key field
         @Id
         @GeneratedValue
         @Column(name = "VIEW_ID")
         private Long id;
         @OneToMany(mappedBy = "view", cascade = CascadeType.ALL)
         private List<ViewLoc> viewLocs = new ArrayList<ViewLoc>();
    @Entity
    @Table(name = "VIEWLOC")
    @EntityListeners(EntityListener.class)
    public class ViewLoc implements IViewLoc {
         // persistent fields
         // primary key field
         @Id
         @GeneratedValue
         @Column(name = "VIEWLOC_ID")
         private Long id;
         @ManyToOne(cascade = CascadeType.ALL)
         @JoinColumn(name = "VIEWLOC_VIEW_ID", nullable = false)
         private View view;
         // direct Linking to the infrastrucutre location
         @ManyToOne(cascade = CascadeType.ALL)
         @JoinColumn(name = "VIEWLOC_LOCACTION_ID")
         private Location location;
    ….

    IN doesn't support objects, only state_field_path_expression that must have a string, numeric, or enum value.
    Try using
    “SELECT DISTINCT OBJECT(e) FROM Entry e WHERE e.location.id IN (SELECT loc.id From View v JOIN v.viewLocs vl JOIN vl.location loc where v.code = :code)”
    Best Regards,
    Chris

  • Sql.Blob:   java.sql.SQLException: Funzione non supportata   .....help me

    Hello,
    I hope you can help me :-) !!!!!!
    I have a EJB, in a metod of EJB i would update a object blob in a database. So i get a old blob from database by
    resultSet rs = ****query****
    ((oracle.jdbc.oracleSet) rs ).getBLOB(1);
    but throws ClassCastException on the cast oracleSet......
    i try withthis code:
    ResultSet rs = ****query****
    Blob b = rs.getBlob(1);
    OutputStream out = b.setBinaryStream(1);
    but throws java.sql.SQLException: Funzione non supportata
    Why?????
    what's can i do?
    help me!!!!!!!
    thanks

    Hello,
    I hope you can help me :-) !!!!!!
    I have a EJB, in a metod of EJB i would update a object blob in a database. So i get a old blob from database by
    resultSet rs = ****query****
    ((oracle.jdbc.oracleSet) rs ).getBLOB(1);
    but throws ClassCastException on the cast oracleSet......
    i try withthis code:
    ResultSet rs = ****query****
    Blob b = rs.getBlob(1);
    OutputStream out = b.setBinaryStream(1);
    but throws java.sql.SQLException: Funzione non supportata
    Why?????
    what's can i do?
    help me!!!!!!!
    thanks

  • "java.sql.SQLException: The url cannot be null"

    Hi,
    I started to use the torque in my last project but when I try to insert new data to the db(i am using MySQL) I get the following error "java.sql.SQLException: The url cannot be null".
    Is that error familiar to anybody ?
    Regards
    RCY

    Hi,
    Sorry for the lack of info.
    1) This is my Torque.properties :
    #  T O R Q U E  P R O P E R T I E S
    #Torque has the ability to use multiple databases. This property
    #specifies which database is to be used as the default
    torque.database.default=rcy
    # Torque has the ability to deal with multiple database systems.
    # This property specifies the database adapter to use.
    torque.database.rcy.adapter=mysql
    #torque.database.jd.rcy=mysql
    # The factory class that will be used to provide database connections.
    torque.dsfactory.rcy.factory=org.apache.torque.dsfactory.SharedPoolDataSourceFactory
    #torque.dsfactory.rcy.factory=org.apache.torque.dsfactory.TorqueDataSourceFactory
    # The JDBC database driver to use when connecting to your database.
    torque.dsfactory.rcy.connection.driver org.gjt.mm.mysql.Driver
    # The URL that will be used to access your database. Torque's generated
    # object model will perform all database operations using this URL.
    # This value should reflect the database name specified in your database schema file
    #torque.dsfactory.rcy.connection.url jdbc\:mysql\://localhost\:3306/rcy
    torque.dsfactory.rcy.connection.url jdbc\:mysql\://127.0.0.1\:3306/rcy
    #torque.dsfactory.rcy.connection.user user
    #torque.dsfactory.rcy.connection.password password
    torque.dsfactory.rcy.connection.user chen
    torque.dsfactory.rcy.connection.password 1qazI created the db with torque and then copied the file(Torque.properties ) to my project.
    2) This is my build.properties file :
    # T O R Q U E  C O N F I G U R A T I O N  F I L E
    # This file contains the most commonly used properties. For a
    # a complete list of build properties, please refer to:
    #   http://jakarta.apache.org/turbine/torque/properties-reference.xml
    #  P R O J E C T
    # This is the name of your Torque project. Your non-Java generated
    # files will be named using the project name selected below. If your
    # project=killerapp then you will have a generated:
    #   killerapp-schema.sql
    # The custom is then to also rename your project XML schema from
    # project-schema.xml to killerapp-schema.xml. This is required
    # for a few targets such as datasql, datadump, and datadtd.
    torque.project = rcy
    #  T A R G E T  D A T A B A S E
    # This is the target database, only considered when generating
    # the SQL for your Torque project. Your possible choices are:
    #   axion, cloudscape, db2, db2400, hypersonic, interbase, mssql,
    #   mysql, oracle, postgresql, sapdb, sybase
    torque.database = mysql
    #  O B J E C T  M O D E L  I N F O R M A T I O N
    # These settings will allow you to customize the way your
    # Peer-based object model is created.
    # addGetByNameMethod
    #   If true, Torque adds methods to get database fields by name/position.
    # addIntakeRetrievable
    #   If true, the data objects will implement Intake's Retrievable
    #   interface
    # addSaveMethod
    #   If true, Torque adds tracking code to determine how to save objects.
    # addTimeStamp
    #   If true, Torque true puts time stamps in generated om files.
    # basePrefix
    #   A string to pre-pend to the file names of base data and peer objects.
    # complexObjectModel
    #   If true, Torque generates data objects with collection support and
    #   methods to easily retreive foreign key relationships.
    # targetPackage
    #   Sets the Java package the om files will generated to, e.g.
    #   "com.company.project.om".
    # useClasspath
    #   If true, Torque will not look in the <code>templatePath</code> directory,
    #   for templates, but instead load them from the classpath, allowing you to
    #   use Torque without extracted it from the jar.
    # useManagers
    #   If true, Torque will generate Manager classes that use JCS for caching.
    #   Still considered experimental.
    torque.targetPackage = com.base
    torque.addGetByNameMethod = true
    torque.addIntakeRetrievable = false
    torque.addSaveMethod = true
    torque.addTimeStamp = true
    torque.basePrefix = Base
    torque.complexObjectModel = true
    torque.useClasspath = false
    torque.useManagers = false
    #  D A T A B A S E  S E T T I N G S
    # JDBC connection settings. This is used by the JDBCToXML task that
    # will create an XML database schema from JDBC metadata. These
    # settings are also used by the SQL Ant task to initialize your
    # Torque system with the generated SQL.
    # sameJavaName
    #   If true, the JDBC task will set the javaName attribute for the tables
    #   and columns to be the same as SQL name.
    torque.database.createUrl = jdbc:mysql://127.0.0.1/mysql
    torque.database.buildUrl = jdbc:mysql://127.0.0.1/rcy
    torque.database.url = jdbc:mysql://127.0.0.1/rcy
    torque.database.driver = org.gjt.mm.mysql.Driver
    torque.database.user = chen
    torque.database.password = 1qaz
    torque.database.host = 127.0.0.1
    torque.sameJavaName = falseI hope that will help you to help me :)
    Thank's

  • Java.sql.SQLException: ORA-03135: connection lost contact

    In the whesphere portal i foun a lot of "ORA-03135: connection lost contact" errors but i cant find this error in the oracle client or oracle database.
    Oracle Client 10.2.0.1
    Oracle RDBMS 10.2.0.3 -- in Rac with 3 nodes
    I have a fragment of the trace:
    [20-NOV-2009 23:38:52:338] --- TRACE CONFIGURATION INFORMATION FOLLOWS ---
    [20-NOV-2009 23:38:52:338] New trace stream is /opt/oracle/product/10.2.0/network/trace/cli_22293.trc
    [20-NOV-2009 23:38:52:338] New trace level is 16
    [20-NOV-2009 23:38:52:338] --- TRACE CONFIGURATION INFORMATION ENDS ---
    [20-NOV-2009 23:38:52:338] --- PARAMETER SOURCE INFORMATION FOLLOWS ---
    [20-NOV-2009 23:38:52:338] Attempted load of system pfile source /opt/oracle/product/10.2.0/network/admin/sqlnet.ora
    [20-NOV-2009 23:38:52:338] Parameter source loaded successfully
    [20-NOV-2009 23:38:52:338]
    [20-NOV-2009 23:38:52:338] Attempted load of local pfile source /home/wasadm/.sqlnet.ora
    [20-NOV-2009 23:38:52:338] Parameter source was not loaded
    [20-NOV-2009 23:38:52:338]
    [20-NOV-2009 23:38:52:338] -> PARAMETER TABLE LOAD RESULTS FOLLOW <-
    [20-NOV-2009 23:38:52:338] Successful parameter table load
    [20-NOV-2009 23:38:52:338] -> PARAMETER TABLE HAS THE FOLLOWING CONTENTS <-
    [20-NOV-2009 23:38:52:338] trace_level_Server = 16
    [20-NOV-2009 23:38:52:338] trace_level_client = 16
    [20-NOV-2009 23:38:52:338] trace_directory_client = /opt/oracle/product/10.2.0/network/trace
    [20-NOV-2009 23:38:52:338] trace_file_server = server
    [20-NOV-2009 23:38:52:338] trace_timestamp_client = ON
    [20-NOV-2009 23:38:52:338] trace_timestamp_Server = ON
    [20-NOV-2009 23:38:52:338] trace_file_client = cli
    [20-NOV-2009 23:38:52:338] trace_unique_client = TRUE
    [20-NOV-2009 23:38:52:338] trace_directory_server = /opt/oracle/product/10.2.0/network/trace/server
    [20-NOV-2009 23:38:52:338] --- PARAMETER SOURCE INFORMATION ENDS ---
    [20-NOV-2009 23:38:52:338] --- LOG CONFIGURATION INFORMATION FOLLOWS ---
    [20-NOV-2009 23:38:52:338] Log stream will be "/home/wasadm/sqlnet.log"
    [20-NOV-2009 23:38:52:338] Log stream validation not requested
    [20-NOV-2009 23:38:52:338] --- LOG CONFIGURATION INFORMATION ENDS ---
    [20-NOV-2009 23:38:52:338] nlstdipi: entry
    [20-NOV-2009 23:38:52:338] nlstdipi: exit
    [20-NOV-2009 23:38:52:338] nigini: entry
    [20-NOV-2009 23:38:52:339] nigini: Count in the NL global area is now 1
    [20-NOV-2009 23:38:52:339] nigini: Count in NI global area now: 1
    [20-NOV-2009 23:38:52:339] nrigbi: entry
    [20-NOV-2009 23:38:52:339] nrigbni: entry
    [20-NOV-2009 23:38:52:339] nrigbni: Unable to get data from navigation file tnsnav.ora
    [20-NOV-2009 23:38:52:339] nrigbni: exit
    [20-NOV-2009 23:38:52:339] nrigbi: exit
    [20-NOV-2009 23:38:52:339] nigini: exit
    [20-NOV-2009 23:38:52:339] niqname: Using nnfsn2a() to build connect descriptor for (possibly remote) database.
    [20-NOV-2009 23:38:52:339] nnfgiinit: entry
    [20-NOV-2009 23:38:52:339] nncpcin_maybe_init: first request sent to name server will have ID 0
    [20-NOV-2009 23:38:52:339] nncpcin_maybe_init: initial retry timeout for all name servers is 1500 csecs
    [20-NOV-2009 23:38:52:339] nncpcin_maybe_init: max request retries per name server is 1
    [20-NOV-2009 23:38:52:338] nlstdipi: exit
    [20-NOV-2009 23:38:52:338] nigini: entry
    [20-NOV-2009 23:38:52:339] nigini: Count in the NL global area is now 1
    [20-NOV-2009 23:38:52:339] nigini: Count in NI global area now: 1
    [20-NOV-2009 23:38:52:339] nrigbi: entry
    [20-NOV-2009 23:38:52:339] nrigbni: entry
    [20-NOV-2009 23:38:52:339] nrigbni: Unable to get data from navigation file tnsnav.ora
    [20-NOV-2009 23:38:52:339] nrigbni: exit
    [20-NOV-2009 23:38:52:339] nrigbi: exit
    [20-NOV-2009 23:38:52:339] nigini: exit
    [20-NOV-2009 23:38:52:339] niqname: Using nnfsn2a() to build connect descriptor for (possibly remote) database.
    [20-NOV-2009 23:38:52:339] nnfgiinit: entry
    [20-NOV-2009 23:38:52:339] nncpcin_maybe_init: first request sent to name server will have ID 0
    [20-NOV-2009 23:38:52:339] nncpcin_maybe_init: initial retry timeout for all name servers is 1500 csecs
    [20-NOV-2009 23:38:52:339] nncpcin_maybe_init: max request retries per name server is 1
    [20-NOV-2009 23:38:52:339] nngsini_init_streams: initializing stream subsystem, cache size is 10
    [20-NOV-2009 23:38:52:339] snsgblini: Max no of descriptors supported is 15000
    [20-NOV-2009 23:38:52:339] snsgblini: exit
    [20-NOV-2009 23:38:52:339] nngtini_init_msg: initializing PDU subsystem, initial pool size is 2
    [20-NOV-2009 23:38:52:339] nncpcin_maybe_init: default name server domain is [root]
    [20-NOV-2009 23:38:52:339] nnfgiinit: Installing read path
    [20-NOV-2009 23:38:52:339] nnfgsrsp: entry
    [20-NOV-2009 23:38:52:339] nnfgsrsp: Obtaining path parameter from names.directory_path or native_names.directory_path
    [20-NOV-2009 23:38:52:339] nnfgsrsp: Parmeter names.directory_path not found, setting path to compiled in default
    [20-NOV-2009 23:38:52:339] nnfgspd: entry
    [20-NOV-2009 23:38:52:339] nnfgspd: setting element TNSNAMES
    [20-NOV-2009 23:38:52:339] nnfgspd: setting element HOSTNAME
    [20-NOV-2009 23:38:52:339] nnfgspd: setting element EZCONNECT
    [20-NOV-2009 23:38:52:339] nnfgspd: setting element LDAP
    [20-NOV-2009 23:38:52:339] nnfgspd: Path set
    [20-NOV-2009 23:38:52:339] nnfgspd: exit
    [20-NOV-2009 23:38:52:339] nnfun2a: entry
    [20-NOV-2009 23:38:52:339] nlolgobj: entry
    [20-NOV-2009 23:38:52:339] nnfgrne: entry
    [20-NOV-2009 23:38:52:339] nnfgrne: Going though read path adapters
    [20-NOV-2009 23:38:52:339] nnfgrne: Switching to TNSNAMES adapter
    [20-NOV-2009 23:38:52:339] nnftboot: entry
    [20-NOV-2009 23:38:52:339] nlpaxini: entry
    [20-NOV-2009 23:38:52:340] nlpaxini: exit
    [20-NOV-2009 23:38:52:340] nnftmlf_make_local_addrfile: entry
    [20-NOV-2009 23:38:52:340] nnftmlf_make_local_addrfile: construction of local names file failed
    [20-NOV-2009 23:38:52:340] nnftmlf_make_local_addrfile: exit
    [20-NOV-2009 23:38:52:340] nlpaxini: entry
    [20-NOV-2009 23:38:52:340] nlpaxini: exit
    [20-NOV-2009 23:38:52:340] nnftmlf_make_system_addrfile: entry
    [20-NOV-2009 23:38:52:339] nnfgspd: Path set
    [20-NOV-2009 23:38:52:339] nnfgspd: exit
    [20-NOV-2009 23:38:52:339] nnfun2a: entry
    [20-NOV-2009 23:38:52:339] nlolgobj: entry
    [20-NOV-2009 23:38:52:339] nnfgrne: entry
    [20-NOV-2009 23:38:52:339] nnfgrne: Going though read path adapters
    [20-NOV-2009 23:38:52:339] nnfgrne: Switching to TNSNAMES adapter
    [20-NOV-2009 23:38:52:339] nnftboot: entry
    [20-NOV-2009 23:38:52:339] nlpaxini: entry
    [20-NOV-2009 23:38:52:340] nlpaxini: exit
    [20-NOV-2009 23:38:52:340] nnftmlf_make_local_addrfile: entry
    [20-NOV-2009 23:38:52:340] nnftmlf_make_local_addrfile: construction of local names file failed
    [20-NOV-2009 23:38:52:340] nnftmlf_make_local_addrfile: exit
    [20-NOV-2009 23:38:52:340] nlpaxini: entry
    [20-NOV-2009 23:38:52:340] nlpaxini: exit
    [20-NOV-2009 23:38:52:340] nnftmlf_make_system_addrfile: entry
    [20-NOV-2009 23:38:52:340] nnftmlf_make_system_addrfile: system names file is /opt/oracle/product/10.2.0/network/admin/tnsnames.ora
    [20-NOV-2009 23:38:52:340] nnftmlf_make_system_addrfile: exit
    [20-NOV-2009 23:38:52:340] nnftboot: exit
    [20-NOV-2009 23:38:52:340] nnftrne: entry
    [20-NOV-2009 23:38:52:340] nnftrne: Original name: pwp
    [20-NOV-2009 23:38:52:340] nnfttran: entry
    [20-NOV-2009 23:38:52:340] nncpdpt_dump_ptable: --- /opt/oracle/product/10.2.0/network/admin/tnsnames.ora TABLE HAS THE FOLLOWING CONTENTS ---
    [20-NOV-2009 23:38:52:340] nncpdpt_dump_ptable: PWP = (DESCRIPTION= (ADDRESS_LIST= (FAILOVER=ON) (LOAD_BALANCE=ON) (ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc01-vip)(PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc02-vip)(PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc03-vip)(PORT=1521))) (CONNECT_DATA= (SERVICE_NAME=HBCLHIA1.MX.HSBC.COM) (FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC))))
    [20-NOV-2009 23:38:52:340] nncpdpt_dump_ptable: PIDV = (DESCRIPTION= (ADDRESS_LIST= (FAILOVER=ON) (LOAD_BALANCE=ON) (ADDRESS=(PROTOCOL=TCP)(HOST=mxtopp1datdbc01-vip)(PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=mxtopp1datdbc02-vip)(PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=mxtopp1datdbc03-vip)(PORT=1521))) (CONNECT_DATA= (SERVICE_NAME=PIDV.MX.HSBC.COM) (FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC))))
    [20-NOV-2009 23:38:52:340] nncpdpt_dump_ptable: --- END /opt/oracle/product/10.2.0/network/admin/tnsnames.ora TABLE ---
    [20-NOV-2009 23:38:52:340] nnfttran: exit
    [20-NOV-2009 23:38:52:340] nnftrne: Using tnsnames.ora address (DESCRIPTION= (ADDRESS_LIST= (FAILOVER=ON) (LOAD_BALANCE=ON) (ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc01-vip)(PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc02-vip)(PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc03-vip)(PORT=1521))) (CONNECT_DATA= (SERVICE_NAME=HBCLHIA1.MX.HSBC.COM) (FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC)))) for name pwp
    [20-NOV-2009 23:38:52:340] nnftrne: exit
    [20-NOV-2009 23:38:52:340] nnfgrne: exit
    [20-NOV-2009 23:38:52:340] nlolgserv: entry
    [20-NOV-2009 23:38:52:340] nnfggav: entry
    [20-NOV-2009 23:38:52:340] nnftgav: entry
    [20-NOV-2009 23:38:52:340] nnftgav: exit
    [20-NOV-2009 23:38:52:340] nnfgfrm: entry
    [20-NOV-2009 23:38:52:340] nnftfrm: entry
    [20-NOV-2009 23:38:52:340] nnftfrm: exit
    [20-NOV-2009 23:38:52:340] nnfgfrm: exit
    [20-NOV-2009 23:38:52:340] nlolgserv: exit
    [20-NOV-2009 23:38:52:340] nlolgobj: exit
    [20-NOV-2009 23:38:52:340] nlolfmem: entry
    [20-NOV-2009 23:38:52:340] nlolfmem: exit
    [20-NOV-2009 23:38:52:341] nigtrm: Count in the NI global area is now 1
    [20-NOV-2009 23:38:52:341] nigtrm: Count in the NL global area is now 1
    [20-NOV-2009 23:38:52:341] nigini: entry
    [20-NOV-2009 23:38:52:341] nigini: Count in the NL global area is now 2
    [20-NOV-2009 23:38:52:341] nigini: Count in NI global area now: 2
    [20-NOV-2009 23:38:52:341] nigini: exit
    [20-NOV-2009 23:38:52:341] niqname: Hst is already an NVstring.
    [20-NOV-2009 23:38:52:341] niqname: Inserting CID.
    [20-NOV-2009 23:38:52:341] niotns: entry
    [20-NOV-2009 23:38:52:341] niotns: niotns: setting up interrupt handler...
    [20-NOV-2009 23:38:52:341] nigsui: entry
    [20-NOV-2009 23:38:52:341] nigsui: Set User Interrupt: hdl=1, prc=0xb7526534, ctx=0x80c6fe8.
    [20-NOV-2009 23:38:52:341] nigsui: exit (0)
    [20-NOV-2009 23:38:52:341] nttbnd2addr: entry
    [20-NOV-2009 23:38:52:341] nttbnd2addr: ip=loopback specified
    [20-NOV-2009 23:38:52:341] nttbnd2addr: using 127.0.0.1
    [20-NOV-2009 23:38:52:341] snlinGetAddrInfo: entry
    [20-NOV-2009 23:38:52:341] snlinGetAddrInfo: exit
    [20-NOV-2009 23:38:52:341] nttbnd2addr: using host IP address: 127.0.0.1
    [20-NOV-2009 23:38:52:341] snlinFreeAddrInfo: entry
    [20-NOV-2009 23:38:52:341] snlinFreeAddrInfo: exit
    [20-NOV-2009 23:38:52:341] nttbnd2addr: exit
    [20-NOV-2009 23:38:52:341] nttcon: entry
    [20-NOV-2009 23:38:52:341] nttcon: toc = 2
    [20-NOV-2009 23:38:52:341] nttcnp: entry
    [20-NOV-2009 23:38:52:341] nttcnp: creating a socket.
    [20-NOV-2009 23:38:52:341] nttcnp: binding an address to a socket.
    [20-NOV-2009 23:38:52:341] nttcnp: getting sockname
    [20-NOV-2009 23:38:52:341] nttcnp: getting peername
    [20-NOV-2009 23:38:52:341] nttcnp: exit
    [20-NOV-2009 23:38:52:341] nttcon: exit
    [20-NOV-2009 23:38:52:342] nttctl: entry
    [20-NOV-2009 23:38:52:342] nttctl: Setting connection into non-blocking mode
    [20-NOV-2009 23:38:52:342] niotns: Not trying to enable dead connection detection.
    [20-NOV-2009 23:38:52:342] niotns: Calling address: (DESCRIPTION=(ADDRESS_LIST=(FAILOVER=ON)(LOAD_BALANCE=ON)(ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc01-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc02-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc03-vip)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=HBCLHIA1.MX.HSBC.COM)(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC))(CID=(PROGRAM=sqlplus)(HOST=mxchim1csmwas03)(USER=wasadm))))
    [20-NOV-2009 23:38:52:342] nscall: entry
    [20-NOV-2009 23:38:52:342] nsmal: entry
    [20-NOV-2009 23:38:52:342] nsmal: 212 bytes at 0x80d2510
    [20-NOV-2009 23:38:52:342] nsmal: normal exit
    [20-NOV-2009 23:38:52:342] nscall: connecting...
    [20-NOV-2009 23:38:52:342] nladini: entry
    [20-NOV-2009 23:38:52:342] nladini: exit
    [20-NOV-2009 23:38:52:342] nladget: entry
    [20-NOV-2009 23:38:52:342] nladget: exit
    [20-NOV-2009 23:38:52:342] nsc2addr: entry
    [20-NOV-2009 23:38:52:342] nsc2addr: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc01-vip)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=HBCLHIA1.MX.HSBC.COM)(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC))(CID=(PROGRAM=sqlplus)(HOST=mxchim1csmwas03)(USER=wasadm))))
    [20-NOV-2009 23:38:52:342] nttbnd2addr: entry
    [20-NOV-2009 23:38:52:342] snlinGetAddrInfo: entry
    [20-NOV-2009 23:38:52:342] snlinGetAddrInfo: Invalid IP address string mxchpp1datdbc01-vip
    [20-NOV-2009 23:38:52:342] snlinFreeAddrInfo: entry
    [20-NOV-2009 23:38:52:342] snlinFreeAddrInfo: exit
    [20-NOV-2009 23:38:52:342] snlinGetAddrInfo: exit
    [20-NOV-2009 23:38:52:342] nttbnd2addr: looking up IP addr for host: mxchpp1datdbc01-vip
    [20-NOV-2009 23:38:52:342] snlinGetAddrInfo: entry
    [20-NOV-2009 23:38:52:342] snlinGetAddrInfo: exit
    [20-NOV-2009 23:38:52:342] snlinFreeAddrInfo: entry
    [20-NOV-2009 23:38:52:342] snlinFreeAddrInfo: exit
    [20-NOV-2009 23:38:52:342] nttbnd2addr: exit
    [20-NOV-2009 23:38:52:342] nsc2addr: normal exit
    [20-NOV-2009 23:38:52:342] nsopen: entry
    [20-NOV-2009 23:38:52:342] nsmal: entry
    [20-NOV-2009 23:38:52:343] nsmal: 752 bytes at 0x80d3c98
    [20-NOV-2009 23:38:52:343] nsmal: normal exit
    [20-NOV-2009 23:38:52:343] nsopenmplx: entry
    [20-NOV-2009 23:38:52:343] nsmal: entry
    [20-NOV-2009 23:38:52:343] nsmal: 1580 bytes at 0x80d3f90
    [20-NOV-2009 23:38:52:343] nsmal: normal exit
    [20-NOV-2009 23:38:52:343] nsiorini: entry
    [20-NOV-2009 23:38:52:343] nsbal: entry
    [20-NOV-2009 23:38:52:343] nsbgetfl: entry
    [20-NOV-2009 23:38:52:343] nsbgetfl: normal exit
    [20-NOV-2009 23:38:52:343] nsmal: entry
    [20-NOV-2009 23:38:52:343] nsmal: 84 bytes at 0x80d3690
    [20-NOV-2009 23:38:52:343] nsmal: normal exit
    [20-NOV-2009 23:38:52:343] nsbal: normal exit
    [20-NOV-2009 23:38:52:343] nsiorini: exit (0)
    [20-NOV-2009 23:38:52:343] nscpxget: entry
    [20-NOV-2009 23:38:52:343] nscpxget: normal exit
    [20-NOV-2009 23:38:52:343] nsopenalloc_nsntx: nlhthput on mplx_ht_nsgbu:ctx=80d3c98, nsntx=80d3f90
    [20-NOV-2009 23:38:52:343] nsopenmplx: normal exit
    [20-NOV-2009 23:38:52:343] nsopen: opening transport...
    [20-NOV-2009 23:38:52:343] nttcon: entry
    [20-NOV-2009 23:38:52:343] nttcon: toc = 1
    [20-NOV-2009 23:38:52:343] nttcnp: entry
    [20-NOV-2009 23:38:52:343] nttcnp: creating a socket.
    [20-NOV-2009 23:38:52:343] nttcnp: exit
    [20-NOV-2009 23:38:52:343] nttcni: entry
    [20-NOV-2009 23:38:52:343] nttcni: trying to connect to socket 9.
    [20-NOV-2009 23:38:52:345] snlinGetNameInfo: entry
    [20-NOV-2009 23:38:52:345] snlinGetNameInfo: Using numeric form of host's address 10.217.136.201
    [20-NOV-2009 23:38:52:345] snlinGetNameInfo: exit
    [20-NOV-2009 23:38:52:345] nttcni: connected on ipaddr 10.217.136.201
    [20-NOV-2009 23:38:52:345] nttcni: exit
    [20-NOV-2009 23:38:52:345] nttcon: NT layer TCP/IP connection has been established.
    [20-NOV-2009 23:38:52:345] nttcon: set TCP_NODELAY on 9
    [20-NOV-2009 23:38:52:345] nttcon: exit
    [20-NOV-2009 23:38:52:345] nsopen: transport is open
    [20-NOV-2009 23:38:52:345] nsoptions: entry
    [20-NOV-2009 23:38:52:345] nsoptions: lcl[0]=0x0, lcl[1]=0x102000, gbl[0]=0x0, gbl[1]=0xa01, cha=0x0
    [20-NOV-2009 23:38:52:345] nsoptions: lcl[0]=0xf4ffe9ff, lcl[1]=0x102000, gbl[0]=0xfebf, gbl[1]=0xc01
    [20-NOV-2009 23:38:52:345] nsoptions: normal exit
    [20-NOV-2009 23:38:52:345] nsnainit: entry
    [20-NOV-2009 23:38:52:345] nsnainit: call
    [20-NOV-2009 23:38:52:345] nsnadct: entry
    [20-NOV-2009 23:38:52:345] nsnadct: normal exit
    [20-NOV-2009 23:38:52:345] nsnasvnainfo: entry
    [20-NOV-2009 23:38:52:345] nsnasvnainfo: normal exit
    [20-NOV-2009 23:38:52:345] nainit: entry
    [20-NOV-2009 23:38:52:345] nagblini: entry
    [20-NOV-2009 23:38:52:345] nau_gin: entry
    [20-NOV-2009 23:38:52:345] nau_gparams: entry
    [20-NOV-2009 23:38:52:345] nam_gbp: Reading parameter "sqlnet.authentication_required" from parameter file
    [20-NOV-2009 23:38:52:345] nam_gbp: Parameter not found
    [20-NOV-2009 23:38:52:345] nau_gparams: Using default value "FALSE"
    [20-NOV-2009 23:38:52:345] nau_gslf: entry
    [20-NOV-2009 23:38:52:345] nam_gic: entry
    [20-NOV-2009 23:38:52:345] nam_gic: Counting # of items in "sqlnet.authentication_services" parameter
    [20-NOV-2009 23:38:52:345] nam_gic: Parameter not found
    [20-NOV-2009 23:38:52:345] nam_gic: Found 0 items
    [20-NOV-2009 23:38:52:345] nam_gic: exit
    [20-NOV-2009 23:38:52:345] nau_gslf: Using default value "all available adapters"
    [20-NOV-2009 23:38:52:345] nauss_set_state: entry
    [20-NOV-2009 23:38:52:345] nauss_set_state: exit
    [20-NOV-2009 23:38:52:345] nau_gslf: exit
    [20-NOV-2009 23:38:52:345] nau_gparams: exit
    [20-NOV-2009 23:38:52:345] nau_gin: exit
    Edited by: ghd on 20/11/2009 05:30 PM

    You are right, i added the complete error
    By chance do yo have a recommendation where can i look for to find the source problem?
    Because in oracle client's logs or database's logs i can't find the ORA-03135 : connection lost contact
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
    Caused by: java.sql.SQLException: ORA-03135: connection lost contact
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java(Compiled Code))
    at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java(Inlined Compiled Code))
    at oracle.jdbc.driver.T2CPreparedStatement.executeForDescribe(T2CPreparedStatement.java(Compiled Code))
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java(Compiled Code))
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java(Compiled Code))
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java(Compiled Code))
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java(Compiled Code))
    at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.pmiExecuteQuery(WSJdbcPreparedStatement.java(Compiled Code))
    at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.executeQuery(WSJdbcPreparedStatement.java(Compiled Code))
    at com.ibm.wps.datastore.impl.DataStoreContext.executeQuery(DataStoreContext.java(Compiled Code))
    ... 67 more

  • Caused By: java.sql.SQLException: Missing IN or OUT parameter at index:: 1

    Hi,
    i have a variable email when error, which queries the E$ tables. If it finds any entry in the table it updates its count:
    select count(1) from ODI_WORK.E$_<%=odiRef.getSession("SESS_NO")%>CI_TXN_DETAIL.
    Here am attaching the session number to the E$ table as well, to help me in parallel processin. This variable "Email_when_Error" is used in my package. When i execute my package i get the following error:
    ODI-1228: Task EMAIL_WHEN_ERROR (Variable) fails on the target connection RJ_DATA_SERVER.
    Caused By: java.sql.SQLException: Missing IN or OUT parameter at index:: 1
         at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1890)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3747)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3806)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1667)
         at oracle.odi.query.JDBCTemplate.executeQuery(JDBCTemplate.java:189)
         at oracle.odi.runtime.agent.execution.sql.RefreshVariableExecutor.execute(RefreshVariableExecutor.java:54)
         at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
         at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.processTask(SnpSessTaskSqlV.java:401)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.treatTask(SnpSessTaskSqlV.java:230)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1595)
         at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$2.doAction(StartScenRequestProcessor.java:580)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
         at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor.doProcessStartScenTask(StartScenRequestProcessor.java:513)
         at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$StartScenTask.doExecute(StartScenRequestProcessor.java:1070)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
         at java.lang.Thread.run(Thread.java:662)
    kindly tell me where i went wrong

    Hi,
    When i run the variable as refresh...even i got the E$ table not found error. But when it is a part of package, This is what i get in the code section:
    Refresh Variable RJ_PROJECT.EMAIL_WHEN_ERROR:
    BeanShell script error: Sourced file: inline evaluation of: ``out.print("select count(1) from ODI_WORK.E$") ; odiRef.getSession(\u201cSESS_NO\ . . . '' Token Parsing Error: Lexical error at line 2, column 19. Encountered: "\u201c" (8220), after : "": <at unknown location>
    BSF info: EMAIL_WHEN_ERROR at line: 0 column: columnNo
    out.print("select count(1) from ODI_WORK.E$") ;
    odiRef.getSession(\u201cSESS_NO\u201d)out.print("_CI_TXN_DETAIL") ;
    ****** ORIGINAL TEXT ******
    select count(1) from ODI_WORK.E$<%odiRef.getSession(?SESS_NO?)%>CITXN_DETAIL

  • Caused by java.sql.SQLException: No JDBC connection can be made

    Hi,
    I am using OSB11g (with soa db adapter ) to select data from DB2 Database. I am trying to just fetch like 100 records(very less).
    I get this Exception once in 4-5 tests I do . I am not sure if I have to modify any configurations, in case its timing out .
    I see something like *"To classify it as non-retriable instead add property nonRetriableErrorCodes with value "0" to your deployment descriptor (i.e. weblogic-ra.xml)."*
    I don't see the tables when I try to perform SELECT operation in db adapter. In JDev worksheet I can see the tables and records when queried.
    BEA-380002: Invoke JCA outbound service failed with connection error, exception: com.bea.wli.sb.transports.jca.JCATransportException: oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/WSDL/SampleOSBEMEA/WSDL/DBOut [ DBOut_ptt::DBOut(DBOutInput_msg,DBOutOutputCollection) ] - WSIF JCA Execute of operation 'DBOut' failed due to: Pure SQL Exception.
    Pure SQL Execute of SELECT Column1, Column2 ..........Column216 from Table.
    Caused by java.sql.SQLException: No JDBC connection can be made
    because the transaction state is
    Rolledback.
    ; nested exception is:
    BINDING.JCA-11633
    Pure SQL Exception.
    Caused by java.sql.SQLException: No JDBC connection can be made
    because the transaction state is
    Rolledback.
    The Pure SQL option is for border use cases only and provides simple yet minimal functionality. Possibly try the "Perform an operation on a table" option instead. This exception is considered retriable, likely due to a communication failure. Because the global transaction is rolling back the invoke must be retried in a new transaction, restarting from the place of the last transaction commit. To classify it as non-retriable instead add property nonRetriableErrorCodes with value "0" to your deployment descriptor (i.e. weblogic-ra.xml).
    The Pure SQL option is for border use cases only and provides simple yet minimal functionality. Possibly try the "Perform an operation on a table" option instead. This exception is considered retriable, likely due to a communication failure. Because the global transaction is rolling back the invoke must be retried in a new transaction, restarting from the place of the last transaction commit. To classify it as non-retriable instead add property nonRetriableErrorCodes with value "0" to your deployment descriptor (i.e. weblogic-ra.xml).
    at oracle.tip.adapter.db.exceptions.DBResourceException.createXARetriableException(DBResourceException.java:670)
    at oracle.tip.adapter.db.exceptions.DBResourceException.createEISException(DBResourceException.java:642)
    at oracle.tip.adapter.db.exceptions.DBResourceException.pureSQLException(DBResourceException.java:711)
    at oracle.tip.adapter.db.puresql.PureSQLInteraction.executePureSQL(PureSQLInteraction.java:625)
    at oracle.tip.adapter.db.DBInteraction.executePureSQL(DBInteraction.java:1146)
    at oracle.tip.adapter.db.DBInteraction.execute(DBInteraction.java:254)
    at oracle.tip.adapter.sa.impl.fw.wsif.jca.WSIFOperation_JCA.performOperation(WSIFOperation_JCA.java:529)
    ... 63 more
    Caused by: java.sql.SQLException: No JDBC connection can be made
    because the transaction state is
    Rolledback
    at weblogic.jdbc.jts.Driver.newConnection(Driver.java:949)
    at weblogic.jdbc.jts.Driver.createLocalConnection(Driver.java:327)
    at weblogic.jdbc.jts.Driver.connect(Driver.java:173)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:364)
    at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:126)
    at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:94)
    at org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162)
    at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connectInternal(DatasourceAccessor.java:327)
    at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.connectInternal(DatabaseAccessor.java:291)
    at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.reconnect(DatasourceAccessor.java:558)
    at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.reconnect(DatabaseAccessor.java:1433)
    at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.incrementCallCount(DatasourceAccessor.java:302)
    at oracle.tip.adapter.db.DBConnection.getTopLinkSQLConnection(DBConnection.java:333)
    at oracle.tip.adapter.db.transaction.DBTransaction.beginInternal(DBTransaction.java:126)
    at oracle.tip.adapter.db.puresql.PureSQLInteraction.executePureSQL(PureSQLInteraction.java:171)
    ... 66 more
    Should I increase the time interval in weblogicra.xml (DEV/wls1034/middleware/Oracle_OSB1/lib/external/adapters/META-INF)
    for <wls:connection-reserve-timeout-seconds>5</wls:connection-reserve-timeout-seconds>
    Thanks
    Edited by: soauser on Jul 6, 2011 10:02 AM

    Looks like either database is too slow or data-source is not functioning properly. Make sure to test data source and see if it is in running state and it has sufficient number of connections (you may increase max connections value). Actually transaction is getting rolled back because it could not get connection in specified time period (may be JTA/statement timeout).
    Cross post in Weblogic JDBC forum as well for expert's advice -
    WebLogic Server - JDBC
    You may consider raising a case with support as well.
    Regards,
    Anuj

  • Error While viewing data on XML model- java.sql.SQLException: constante num

    I am trying to read an XML file and I keep getting an error. At first it worked, and the it stopped working. I re-did everthing exactly as first time and I cannot get it work
    Here is what I do :
    1)     Create Physical Architecture under the XML Technology.
    a) we create a Data Server with these data:
              Name: XML_SERIVA_TM_DES
              Technology: XML
              JDBC Driver: com.sunopsis.jdbc.driver.xml.SnpsXmlDriver
              JDBC Url: jdbc:snps:xml?file=c:\Temp\hoy\CRM_CR_CURRENCY.xml&dtd=c:\Temp\hoy\ServiciosSerivaConsultasTypes0.xsd
         b) We place the files xml and xsd files according to the JDBC provided in previous point.
         We click on "Test Connection" and Connection is correct
         c) We create a physical schema under the Data Server created in point a) , with these data:
              Name: XML_SERIVA_TM_DES (After created the name is replaced by XML_SERIVA_TM_DES.Esquema)
              Schema (Schema) : <No Definido> ( not sure of english value, it should be <Undefined>)
              Schema (Work Schema) : <No Definido> ( not sure of english value, it should be <Undefined>)
              Default :It is a checkbox , and it is ticked.
              Under the "Context" tab, we add a logical schema named XML_SERIVA_TM for the "Desarrollo" Context
    2) Create a Model On the Designer Navigator, we expand the "Models" panel
         a) For Organization, We create a "Folder" Model. It is named "XML"
         b) Under the Folder created in a), we create a new Model , with these data:
              Name: XML_SERIVA_TM
              Code: XML_SERIVA_TM
              Technology: XML
              Logical Schema: XML_SERIVA_TM
         c) Do reverse-engineering.
              In the Reverse tab of the model,
                   + "Standard" is selected
                   + Context: "Desarrollo"
                   + The types of objects to reverse-engineer are: Table
              In the Selective reverse tab, we select : New Datastores, Existing Datastores, Objects to reverse.
              All the datastores that appear are checked
              We click on Reverse Engineer in the toolbar menu
              And the reverse engineer is done successfully and the datastores appear in the model panel
         d) We try to test the reverse engineering by clicking on the datastores and select "View Data",
              after click we get the folloging exception (running with Local agent) :
              See com.borland.dx.dataset.DataSetException error code: BASE+66
              com.borland.dx.dataset.DataSetException: constante numérica mal escrita
              Chained exception:
              java.sql.SQLException: constante numérica mal escrita
                   at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
                   at org.hsqldb.jdbc.JDBCPreparedStatement.<init>(Unknown Source)
                   at org.hsqldb.jdbc.JDBCConnection.prepareStatement(Unknown Source)
                   at com.sunopsis.jdbc.driver.xml.SnpsXmlConnection.prepareStatement(SnpsXmlConnection.java:1192)
                   at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   at java.lang.reflect.Method.invoke(Method.java:597)
                   at oracle.odi.core.datasource.dwgobject.support.OnConnectOnDisconnectDataSourceAdapter$OnDisconnectCommandExecutionHandler.invoke(OnConnectOnDisconnectDataSourceAdapter.java:200)
                   at $Proxy2.prepareStatement(Unknown Source)
                   at com.borland.dx.sql.dataset.Database.createPreparedStatement(Unknown Source)
                   at com.borland.dx.sql.dataset.o.a(Unknown Source)
                   at com.borland.dx.sql.dataset.o.d(Unknown Source)
                   at com.borland.dx.sql.dataset.o.f(Unknown Source)
                   at com.borland.dx.sql.dataset.QueryProvider.e(Unknown Source)
                   at com.borland.dx.sql.dataset.JdbcProvider.provideData(Unknown Source)
                   at com.borland.dx.dataset.StorageDataSet.refresh(Unknown Source)
                   at com.borland.dx.sql.dataset.QueryDataSet.refresh(Unknown Source)
                   at com.sunopsis.graphical.frame.edit.AbstractEditFrameGridBorland.initialize(AbstractEditFrameGridBorland.java:624)
                   at com.sunopsis.graphical.frame.edit.AbstractEditFrameGridBorland.<init>(AbstractEditFrameGridBorland.java:864)
                   at com.sunopsis.graphical.frame.edit.EditFrameTableData.<init>(EditFrameTableData.java:50)
                   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
                   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
                   at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
                   at oracle.odi.ui.editor.AbstractOdiEditor$1.run(AbstractOdiEditor.java:153)
                   at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
                   at java.lang.Thread.run(Thread.java:662)
              Caused by: org.hsqldb.HsqlException: constante numérica mal escrita
                   at org.hsqldb.error.Error.error(Unknown Source)
                   at org.hsqldb.error.Error.error(Unknown Source)
                   at org.hsqldb.ParserBase.read(Unknown Source)
                   at org.hsqldb.ParserBase.readThis(Unknown Source)
                   at org.hsqldb.ParserDQL.XreadFromClause(Unknown Source)
                   at org.hsqldb.ParserDQL.XreadTableExpression(Unknown Source)
                   at org.hsqldb.ParserDQL.XreadQuerySpecification(Unknown Source)
                   at org.hsqldb.ParserDQL.XreadSimpleTable(Unknown Source)
                   at org.hsqldb.ParserDQL.XreadQueryPrimary(Unknown Source)
                   at org.hsqldb.ParserDQL.XreadQueryTerm(Unknown Source)
                   at org.hsqldb.ParserDQL.XreadQueryExpressionBody(Unknown Source)
                   at org.hsqldb.ParserDQL.XreadQueryExpression(Unknown Source)
                   at org.hsqldb.ParserDQL.compileCursorSpecification(Unknown Source)
                   at org.hsqldb.ParserCommand.compilePart(Unknown Source)
                   at org.hsqldb.ParserCommand.compileStatement(Unknown Source)
                   at org.hsqldb.Session.compileStatement(Unknown Source)
                   at org.hsqldb.StatementManager.compile(Unknown Source)
                   at org.hsqldb.Session.execute(Unknown Source)
                   ... 26 more
    We also try to create an interface with the datastore of the model as source of the interface, and
    get the same exact exception as above, when interfaces in executed either with no-agent(local) or with an agent.
    Bellow I pasted the xsd schema and XML data:
    CRM_CR_CURRENCY.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <m:indicadoresResponse xmlns:m="http://co/com/bancodecredito/eai/serviciosLinea/seriva">
    <ns0:WS_ResultadoConsultaIndicadores xmlns:ns0="http://co/com/bancodecredito/eai/serviciosLinea/seriva/impl">
    <ns0:Error>0</ns0:Error>
    <ns0:Descripcion>Transacción exitosa</ns0:Descripcion>
    <ns0:indicadores>
    <ns0:fecha>2011-08-10 00:00:00.0</ns0:fecha>
    <ns0:descripcion>VALORACION (TRM VIGENTE) UVR/UVR</ns0:descripcion>
    <ns0:tipoIndicador>3</ns0:tipoIndicador>
    <ns0:codigoIndicador>312</ns0:codigoIndicador>
    <ns0:codigoVertice>0</ns0:codigoVertice>
    <ns0:plazo>0</ns0:plazo>
    <ns0:valor>196.9975</ns0:valor>
    <ns0:comportamiento>1</ns0:comportamiento>
    <ns0:formato>3</ns0:formato>
    </ns0:indicadores>
    </ns0:WS_ResultadoConsultaIndicadores>
    </m:indicadoresResponse>          
    ServiciosSerivaConsultasTypes0.xsd
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://co/com/bancodecredito/eai/serviciosLinea/seriva" xmlns:s0="http://schemas.xmlsoap.org/wsdl/" xmlns:s1="http://co/com/bancodecredito/eai/serviciosLinea/seriva" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s3="http://www.openuri.org/2006/12/wsdl/upgradedJWS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
         <xs:import namespace="http://co/com/bancodecredito/eai/serviciosLinea/seriva/impl" schemaLocation="resultado.xsd" />
         <xs:element name="indicadoresResponse">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="impl:WS_ResultadoConsultaIndicadores" xmlns:impl="http://co/com/bancodecredito/eai/serviciosLinea/seriva/impl" />
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
    </xs:schema>
    resultado.xsd
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://co/com/bancodecredito/eai/serviciosLinea/seriva/impl" xmlns:s0="http://schemas.xmlsoap.org/wsdl/" xmlns:s1="http://co/com/bancodecredito/eai/serviciosLinea/seriva" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s3="http://www.openuri.org/2006/12/wsdl/upgradedJWS" xmlns:tns="http://co/com/bancodecredito/eai/serviciosLinea/seriva/impl" xmlns:xs="http://www.w3.org/2001/XMLSchema">
         <xs:element name="WS_ResultadoConsultaIndicadores">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element name="Error" type="xs:string" />
                        <xs:element name="Descripcion" type="xs:string" />
                        <xs:sequence maxOccurs="unbounded" minOccurs="0">
                             <xs:element name="indicadores">
                                  <xs:complexType>
                                       <xs:sequence>
                                       <xs:element name="fecha" type="xs:string" />
                                       <xs:element name="descripcion" type="xs:string" />
                                       <xs:element name="tipoIndicador" type="xs:int" />
                                       <xs:element name="codigoIndicador" type="xs:int" />
                                       <xs:element name="codigoVertice" type="xs:int" />
                                       <xs:element name="plazo" type="xs:int" />
                                       <xs:element name="valor" type="xs:double" />
                                       <xs:element name="comportamiento" type="xs:int" />
                                       <xs:element name="formato" type="xs:int" />
                                       </xs:sequence>
                                  </xs:complexType>
                             </xs:element>
                        </xs:sequence>
                   </xs:sequence>
              </xs:complexType>
    </xs:element>
    </xs:schema>
    I really don't have any clue about what is happening. I have made sure files are in UTF-8 encoding. I don't know if any jar might be corrupted.

    You may sure have found the answer but it can help futur visitors:
    Did you specified a Schema name for your physical schema ?
    I had the same problem and no schema was set in my physical schema, when setting it, it must be OK.

  • Getting java.sql.SQLException: Missing IN or OUT at index::9

    Hi,
    I am getting the following error while executing a call to a pl/sql procedure from an updateRow method inside a rowimpl file for an OA View.
    FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: Missing IN or OUT parameter at index:: 9;
    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
    at oracle.apps.pa.progress.server.DlvrProgressDetailsVORowImpl.updateRow(DlvrProgressDetailsVORowImpl.java:1221)
    I have verified that the parameter passed are correct and there is nothing wrong with the values being passed,
    Can someone please assist me with this, is this a known issue ??
    Thanks,
    Anubhav

    Hi Anubhav,
    Did you forget to register the out parameter using the registerOutParameter?
    Regards
    Peter

Maybe you are looking for

  • Ibooks on iphone

    I would like to read books that I have purchased on my ipad ibooks on my iphone. I can do this with the kindle app on both but there is not an ibook app for the iphone. Is it possible or do I have to wait till the new iphone comes out?

  • Extra fields IDOC WMTOID01 and L IDOC CREATE WMTOID01

    I am using the function module L_IDOC_CREATE_WMTOID01 to create an IDOC WMTOID01. The problem is thet I need to add a field to the IDOC , I have done this my creating an extention WMTOID01 and I have made an entry for the Message Type WMTORD. But whe

  • Ultra Ram Disk does not load from App Store.

    It is impossible to purchase Ultra Ram Disk from the App Store.  A pop-up window appears saying, "We could not complete your purchase.  The product distribution file could not be verified.  It may be damaged or was not signed."  Could someone in auth

  • Safari won't run after restart

    Running Mountain Lion on my Macbook Pro 17" unibody.  Just did a CarbonCopyCloner back-up, then restarted the machine.  Noticed my Safari icon in the dock looked weird (generic note icon). Went to my apps and noticed the Safari.app icon looks the sam

  • [svn:fx-trunk] 11885: Integrating Sujata and Min' s changes from the latest approved FXGUtils from CT changelist 633842.

    Revision: 11885 Revision: 11885 Author:   [email protected] Date:     2009-11-16 20:19:46 -0800 (Mon, 16 Nov 2009) Log Message: Integrating Sujata and Min's changes from the latest approved FXGUtils from CT changelist 633842. CT Bugs Fixed: - bug #2