JDev3.0 and SQLJ

I am trying to compile my first SQLJ file, the JDBCInterop.sqlj sample.
The error message is : "method newConnection not found in class oracle.jdeveloper.cm.ConnectionManager"
Is this ConnectionManager also in another package ?
Thanks

I would stick with the JDK 1.1.8 in JDeveloper 3.0. SQLJ and JDBC do not yet support JDK 1.2 (they will in Oracle 8.1.6 and JDeveloper 3.1... not sure about OAS 4.0.9, but I would suspect so).
Laura

Similar Messages

  • Difference Between JDBC and SQLJ

    Can any one explain the difference in using JDBC and SQLJ with example codes_...

    Oracle documentation can
    http://download.oracle.com/docs/cd/B19306_01/java.102/b16018/overview.htm#i1006033

  • Problems in Query, error handling and sqlj

    I need some clarifications:
    1. Can I use where clause in Insert query: for e.g: Insert into table_name (.., ...) values (.., ..) where id not in (Select Id from table_2 where name = '');
    2. Can I handle error in my query in sqlj file. For e.g unique constraint violated error, I want to handle it like try-catch block in Java. So that if there would be any such error it will ignore.
    3. I want to do this both in the sqlj file. Is it possible?
    If anyone can answer it would be a great help for me.

    more appropriate forums :
    PL/SQL
    JDeveloper and ADF
    SQL-Syntax and much more :
    http://tahiti.oracle.com/
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/toc.htm
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/statements_9014.htm#i2163698
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/statements_9014.htm#i2079995
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/statements_9014.htm#i2145081

  • Java 1.5 and SQLJ Compiler -- Can't get Java 1.5 specific syntax to compile

    I am looking to upgrade our java version from Java 1.4 to Java 1.5. Once I upgrade I expect to be able to use Java 1.5 specific language constructs such as generics, annotations, the new for loop and such. In doing some reading (http://download.oracle.com/docs/cd/B28359_01/java.111/b31227/whatsnew.htm) it states that in the 11g release that sqlj could handle the new syntax. I have done my best to locate the new jar files for oracle 11.g to allow me to do the sqlj translation with java 1.5 syntax but even after locating all the latest jar files it still doesn't work.
    I downloaded the translator.jar and the latest oracle drivers from this link (http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html). It seems to me that the latest translator.jar file that I can get is only for 10g.
    Here is an example piece of code that I am trying to translate.
    public class TryIt
    public TryId() {}
    public static void main( String[] args )
    for ( String arg : args ) {
    System.out.println(arg);
    }

    You think it is normal that it takes 30 seconds to load.
    I think it is a programming problem. You should not import a lot of package.
    Applet are supposed to be light, it is not like programs it is normal when you're on 56k (of course aol steals some of those bandwidth by sending you advertisement) and it's not my applet..it's one of a few applet s that i encountered when surfing the web..so i have ano control over how it is implemented or designed. Even small one that do simple stuff like display a hello world takes forever to load.

  • Jdeveloper 11.1.2.1.0 and SQLJ

    I just downloaded 11.1.2.1.0 and installed. I tried to create a new SQLJ class file and under the database tier where I am supposed to expand it to select SQLJ file, there is only a database connection dialog. Under the 11.1.1.5.0 I could expand it and see SQLJ. Am I missing something, according to the manual it should be there. Can any one help?

    Tried that there is nothing under Database Tier, the SQLJ is missing, I removed JDeveloper and have redownloaded and installed again. Same thing.

  • JDBC and SQLJ

    Can I use SQLJ inside my servlets? Or, do I have to create stored procedures with SQLJ and connect to those through JDBC in my servlets? If I use SQLJ as stored procedures, how do I retrieve the information from the SQL calls from my servlet?
    Thanks

    Hi jmennen,
    Yes, your servlets can use SQLJ, provided they have access to the appropriate SQLJ classes.
    However, your question gives me the impression that you are very confused regarding SQLJ and/or JDBC.
    I suggest you state what you want your servlet to do, and thus allow people to suggest the best way to implement your servlet.
    [You may not even [i]need SQLJ (or JDBC) :-]
    Hope this helps.
    Good Luck,
    Avi.

  • Questions about JDK and SQLJ?

    i use JDK 1.3 . from FAQ of SQLJ , i should used sqlj 9.0.1 .
    But i never see this version of sqlj .
    Is there this version product ?
    And how can i get it ?

    from command line type:
    sqlj -version-long
    This should show:
    Oracle SQLJ Release 8.1.7.0.0 Production
    Build version: 2.0.0.0 - Built on May 31, 2000
    IDE interface version: 8.1.7.0.0/2.0.0.0
    JDBC version: Oracle JDBC driver version 8.1 (8.1.7.0.0)
    SQLJ runtime: Oracle 8.1.7 for JDBC 8.1.7 or later/JDK 12EE -
    Built on Aug 18, 2
    000
    Java version: 1.3 (1.3.0)
    i use JDK 1.3 . from FAQ of SQLJ , i should used sqlj 9.0.1 .
    But i never see this version of sqlj .
    Is there this version product ?
    And how can i get it ?

  • Win 2000 and sqlj/jdbc

    I have installed oracle 9i (verison 1) on a win 2k system. When trying out the brief test demos in the sqlj folder I get the error "exception in thread "main" java.lang.noclassfounderror: TestInstallJDBC.
    TesInstallJDBC is the test demo which comes in the ora90/sqlj/demo folder.
    Yes I have java 1.2.2 installed, yes all the classpath and path values are set properly. Also the dir in which the script resides is in the classpath. Yes when I type in "sqlj" at the command prompt I get the proper output.
    The JDBC driver is 9.0.1.1.0 and the sqlj version is 9.0.1.0.0.
    I read in the oracle literature that sqlj had only been tested on win NT. IS THIS A WIN 2K Problem???????
    HELP!

    Quote
    then copy all bios files to the ramdrive from either a floppy or a cd.
    maybe i was not clear enough.
    copy the bios file and flash utility to a cd or floppy before you use w98 boot disk.
    i flashed my bios yesterday with the method i described and it worked perfectly.
    need more and better memory...seems i keep forgetting all the little things

  • OC4J and SQLJ

    I would like to use a SQLJ class as a Data Access Objects for an Entity Bean in OC4J, but I always get an ClassCastException during execution of a #sql statement.
    I'm using Jdev9i and deploying on OC4J 1.0.2.2.
    Ask me If you need code and exception details.
    Thank you
    Andrea Mattioli
    [email protected]

    Obviously my Entity bean is BMP.
    It has the following finder method:
    public Long ejbFindByPrimaryKey(Long primaryKey) throws FinderException {
    boolean result;
    try {
    result = daoContiCorrenti.selectByPrimaryKey(primaryKey);
    } catch (Exception ex) {
    throw new EJBException("Eccezione in ejbFindByPrimaryKey: " + ex);
    if (!result) {
    throw new ObjectNotFoundException("Row for id " + primaryKey + " not found.");
    return primaryKey;
    daoContiCorrenti is an object of class DaoContiCorrenti, initialized in SetEntityContext,
    which is a SQLJ class and has the following method:
    public boolean selectByPrimaryKey(Long pk) throws SQLException {
    long count;
    long id = pk.longValue();
    boolean result;
    #sql { select count(*)
    into :count
    from conti_correnti
    where id_conto = :id
    if (count==1)
    result = true;
    else
    result = false;
    return result;
    The connection context is initialized in the class constructor in the following way
    DefaultContext.setDefaultContext(new DefaultContext(conn));
    where conn is a jdbc-connection object obtained throw a Datasource.
    Every time I try to find-By-PrimaryKey an entity of this type I obtain:
    com.evermind.server.rmi.OrionRemoteException: javax.ejb.EJBException: Eccezione in ejbFindByPrimaryKey: java.lang.ClassCastException: com.evermind.sql.OrionCMTConnection
         at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:199)
         at ContoCorrenteHome_EntityHomeWrapper53.findByPrimaryKey(ContoCorrenteHome_EntityHomeWrapper53.java:160)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:66)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
    at connection to localhost/127.0.0.1 as admin
         void com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(java.lang.Throwable)
         java.lang.Object com.evermind.server.rmi.RMIConnection.invokeMethod(com.evermind.server.rmi.RMIContext, long, long, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.rmi.RemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         Finanziamenti.ContoCorrente __Proxy0.findByPrimaryKey(java.lang.Long)
         void SampleContoCorrenteClient.main(java.lang.String[])
         Nested exception is:
    javax.ejb.EJBException: Eccezione in ejbFindByPrimaryKey: java.lang.ClassCastException: com.evermind.sql.OrionCMTConnection
         at Finanziamenti.impl.ContoCorrenteBean.ejbFindByPrimaryKey(ContoCorrenteBean.java:34)
         at ContoCorrenteHome_EntityHomeWrapper53.findByPrimaryKey(ContoCorrenteHome_EntityHomeWrapper53.java:150)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:66)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
    at connection to localhost/127.0.0.1
         void com.evermind.server.rmi.OrionRemoteException.receive(java.net.InetAddress, java.lang.String)
         void com.evermind.server.rmi.RMIConnection.handleMethodInvocationResponse()
         void com.evermind.server.rmi.RMIConnection.run()
         void java.lang.Thread.run()
    Andrea Mattioli
    [email protected]

  • Db2 and sqlj

    Anyone know how to use sqlj with Jdev to access a DB2 database? I keep getting a codegen message ("Exception: SQLJ programs translated with the option -codegen=oracle must be run under Oracle JDBC 9.0.0 or higher. ") when I attempt to run the program. It does compile though.
    Anyone know a work around for this?

    Unfortunately, under JDeveloper the various settings of the SQLJ translator's -codegen option are not exposed.
    You have the following alternatives:
    (1) Use the command line version of SQLJ (called sqlj.exe on Windows) and set the command line option:
    -codegen=iso
    This generates standard ISO SQLJ code, which was the default in 9.0.1 and earlier.
    (2) Use the command line version of SQLJ but instead of -codegen=iso you could use -codegen=jdbc.
    This undocumented flag generates mostly JDBC code (without support for statement caching,
    batching, or update counts) that will run in conjunction with virtually any SQLJ runtime version.
    (3) The -codegen setting used by SQLJ is configuration-coded. By exchanging configuration properties
    in the SQLJ translator.jar we could get a default setting of (1) or of (2) above (which is different from
    -codegen=oracle) under JDeveloper. Since with -codegen=oracle setting the .ser files have gone
    away, it is possible that .ser files will not be properly handled under JDev any longer. This would
    mean that we could only use new configuration coding for (2) inside of JDev.
    Let me know ([email protected]) if you'd like me to forward you new SQLJ configuration classes
    along the line of (3). Thanks!

  • EJB and SQLJ

    Can someone please help.
    I am using JDeveloper 3.2, and am trying to write an EJB, but I want to include SQLJ statements in the bean code. If I insert the code, the bean will not compile, but the same code will compile in a seperate class with an extension SQLJ.
    Am I true in saying that if the file has an extension .Java, then you cannot include SQLJ statements. If so, then how do I change the name of the .Java file to .SQLJ in the EJB.
    Thanks
    null

    Hi,
    I tried out in somewhat similar manner as Throsten has suggested.
    I did the following:
    1. Made a separate SQLJ file using the SQLJ
    wizard
    2. Created the EJB files (Home,Remote and
    Bean)using the EJB Wizard
    While creating the EJB files, make the
    SQLJ file as the delegate to the EJB.
    Using this delegate pattern, your EJB code would become clean, as all you database access code would be in the SQLJ file.
    The EJB Specs mentions about the Data Access Objects (DAO), which I suppose is in lines with the Delegate pattern in JDeveloper.The SQLJ file is a DAO in our case.The bean would simply give a call to the Delegate SQLJ file.
    3. For deployment, deploy the EJB as "EJB in Oracle8i" and deploy the SQLJ file as a "Java Stored procedure in Oracle8i".
    This should work.Hope it helps
    -- Sandeep
    null

  • Diff between jdbc and sqlj

    hi friends
    could u all pls try and explain me as to what is the diff between sqlj and jdbc.
    are they same or different.
    reg
    prem

    SQLJ let you embed SQL statements directly in the Java code - this is being converted into JDBC calls in pre-compile time.
    Think of SQLJ as an abstraction layer on top of JDBC that let you work with SQL.

  • JDev3 and Sybase Metadata

    Hello there,
    how can I see my Sybase Server 11.03 (Linux) Metadata in the connection property window? I tried to pass the connection Property 'USE_METADATA=true' with the conn. URL, but nothing happened.
    Could it be that Oracle built the JDev only for Oracle Databases?
    Thanks in advance
    Thomas

    JDeveloper currenly only works with Oracle connections in the wizards. You can (naturally) use JDBC to connect via code.

  • Sqlj and jdbc for linux

    Hi All,
    I am currently set up the (tomcat) jsp engine on top of apache web server.
    And now i would like to install both sqlj and a jdbc driver such
    that I can query our oracle database. In all of the options for downloads
    there is a windoze option and a solaris option. Do I have to wait for specific
    "linux" version to get them to work. Or is the solaris option alright
    for linux ??
    slightly confused,
    Chris

    Unfortunately, this description is still rather unspecific.
    It sounds, as if there might be an issue with the way database connections are established for the SQLJ and JDBC parts of your program. Could you provide more information on that, specifically on how you obtain JDBC connections and SQLJ connection contexts.

  • Sqlj and jdbc in a single program causing problems

    I am using both sqlj and jdbc in a single program(servlets) but after insatiaitng this program my other sqlj programs are not working while the JDBC pgms are working . Why is it so? How can I remedy it?

    Unfortunately, this description is still rather unspecific.
    It sounds, as if there might be an issue with the way database connections are established for the SQLJ and JDBC parts of your program. Could you provide more information on that, specifically on how you obtain JDBC connections and SQLJ connection contexts.

Maybe you are looking for

  • IPhone calendar jumps to March when opened

    When I open calendar on my iphone5 in iOS 7, the calendar jumps to march of this year when I view the week. I have to push "today" to bring it back to the present.

  • MM Account Determination error: OM174.

    When trying to create automatic account determination for a new plant and new material category, I got the message # OM174.   I don't know how to fix this.  The other parameters are: Plant: TR01 Company Code: 1000 Chart of Accounts:  INT Valuation Ar

  • Import photos from macbook to mac destp

    I need to import photos from my Mac Book to my Mac desktop

  • How to have some fields in the header of the report

    Hi All, we would like to have some fields in the header of the report (every page but the first page), but Word won't let you insert fields into the header. Are there any work arounds to do something like that? Thanks, Vandana

  • Cannot convert to flash.display:DisplayObject

    Hey all, my first post so bear with me, hopefully I can explain what it is I'm trying to do ... I have an empty mc on the stage called "infoloader" and I'm trying to dynamically load a mc called "my_info0" from the library into the empty "infoloader"