SQLJ Translator problem

I get the following error message when trying to compile a SQLJ
applet under Windows 95.
I've previously managed to compile and run simple SQLJ programs
successfully.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
unexpected error occurred...
java.lang.NoClassDefFoundError:
LDatabase;Lsqlj/runtime/profile/RTResultSet;)V
at java.lang.Class.getDeclaredConstructors(Compiled Code)
at
sqlj.framework.JSClass$ClassWrapper.getDeclaredConstructors
(Compiled Code)
at
sqlj.framework.JSClass.getMaximallySpecificConstructors(Compiled
Code)
at sqlj.framework.JSClass.resolveConstructor
(JSClass.java:1136)
at sqlj.codegen.IteratorMetaData.getBaseIterator
(IteratorMetaData.java:75)
at sqlj.codegen.IteratorMetaData.<init>
(IteratorMetaData.java:63)
at sqlj.codegen.ExecCodegen.addResultTypes(Compiled Code)
at sqlj.codegen.ExecCodegen.getExecStmt
(ExecCodegen.java:336)
at sqlj.codegen.ExecCodegen.createExecStmt
(ExecCodegen.java:128)
at sqlj.codegen.ExecCodegen.createGenerator
(ExecCodegen.java:63)
at sqlj.codegen.ExecCodegen.generate
(ExecCodegen.java:560)
at sqlj.codegen.BaseCodegen.generate(BaseCodegen.java:28)
at sqlj.codegen.ParseletFactory$ParseletImpl.generate
(ParseletFactory.java:115)
at sqlj.syntax.SqljParselet.generate
(SqljParselet.java:128)
at
sqlj.javac.JavaParserSubTokenManager$PositionedParselet.generate
(JavaParserSubTokenManager.java:171)
at
sqlj.javac.JavaParserSubTokenManager$TokenManagerParselet.generat
e(Compiled Code)
at sqlj.javac.ASTCompilationUnit.generate(Compiled Code)
at sqlj.translator.Translator.translate(Compiled Code)
at sqlj.translator.Translator.translate
(Translator.java:170)
at sqlj.translator.Main.translate(Compiled Code)
at sqlj.translator.Main.runTranslation(Main.java:92)
at sqlj.translator.Main.runTranslation(Main.java:85)
at sqlj.tools.Sqlj.statusMain(Compiled Code)
at sqlj.tools.Sqlj.main(Sqlj.java:117)
Database.sqlj: Error: Exception caught:
Total 1 error.
>>>>>>>>>>>>>>>>>>>>>>>>>>>
The applet code is listed below
>>>>>>>>>>>>>>>>>>>>>>>>>>>
import java.applet.Applet;
import java.awt.Graphics;
import java.sql.*;
import sqlj.runtime.*;
import sqlj.runtime.ref.*;
import sqlj.runtime.profile.*;
import oracle.sqlj.runtime.*;
#sql context MyContext;
#sql iterator SalesIter( String ITEM_NAME, float COST );
public class Database extends Applet {
String buffer = new String ();
public void init()
{ MyContext mctx = new MyContext
("jdbc:oracle:thin@ntastlab:1521:lab8","training","training",fals
e);
System.out.println ("Connected to the database");
public void start()
SalesIter siter = null;
#sql siter = {SELECT ITEM_NAME, COST FROM SALES };
while (siter.next())
buffer = buffer + siter.ITEM_NAME() + siter.COST ();
repaint ();
siter.close ();
public void stop()
public void destroy()
public void paint(Graphics g) {
g.drawString(buffer, 50, 25);
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Any ideas ??
null

The problem occurs when SQLJ tries to determine the type
of the iterator SalesIter which is in your source.
But I do not know, what that problem actually is.
What version of javac? of sqlj? (JDK 1.2 does not work
before SQLJ 8.1.6 SDK-Beta).
What is in your PATH/CLASSPATH?
What happens when you put SalesIter in SalesIter.sqlj:
#sql public iterator SalesIter (...);
and add this to your SQLJ command line?
Dominic Lawson (guest) wrote:
: I get the following error message when trying to compile a SQLJ
: applet under Windows 95.
: I've previously managed to compile and run simple SQLJ programs
: successfully.
: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
: unexpected error occurred...
: java.lang.NoClassDefFoundError:
: LDatabase;Lsqlj/runtime/profile/RTResultSet;)V
: at java.lang.Class.getDeclaredConstructors(Compiled Code)
: at
: sqlj.framework.JSClass$ClassWrapper.getDeclaredConstructors
: (Compiled Code)
: at
sqlj.framework.JSClass.getMaximallySpecificConstructors(Compiled
: Code)
: at sqlj.framework.JSClass.resolveConstructor
: (JSClass.java:1136)
: at sqlj.codegen.IteratorMetaData.getBaseIterator
: (IteratorMetaData.java:75)
: at sqlj.codegen.IteratorMetaData.<init>
: (IteratorMetaData.java:63)
: at sqlj.codegen.ExecCodegen.addResultTypes(Compiled Code)
: at sqlj.codegen.ExecCodegen.getExecStmt
: (ExecCodegen.java:336)
: at sqlj.codegen.ExecCodegen.createExecStmt
: (ExecCodegen.java:128)
: at sqlj.codegen.ExecCodegen.createGenerator
: (ExecCodegen.java:63)
: at sqlj.codegen.ExecCodegen.generate
: (ExecCodegen.java:560)
: at sqlj.codegen.BaseCodegen.generate(BaseCodegen.java:28)
: at sqlj.codegen.ParseletFactory$ParseletImpl.generate
: (ParseletFactory.java:115)
: at sqlj.syntax.SqljParselet.generate
: (SqljParselet.java:128)
: at
sqlj.javac.JavaParserSubTokenManager$PositionedParselet.generate
: (JavaParserSubTokenManager.java:171)
: at
sqlj.javac.JavaParserSubTokenManager$TokenManagerParselet.generat
: e(Compiled Code)
: at sqlj.javac.ASTCompilationUnit.generate(Compiled Code)
: at sqlj.translator.Translator.translate(Compiled Code)
: at sqlj.translator.Translator.translate
: (Translator.java:170)
: at sqlj.translator.Main.translate(Compiled Code)
: at sqlj.translator.Main.runTranslation(Main.java:92)
: at sqlj.translator.Main.runTranslation(Main.java:85)
: at sqlj.tools.Sqlj.statusMain(Compiled Code)
: at sqlj.tools.Sqlj.main(Sqlj.java:117)
: Database.sqlj: Error: Exception caught:
: Total 1 error.
: >>>>>>>>>>>>>>>>>>>>>>>>>>>
: The applet code is listed below
: >>>>>>>>>>>>>>>>>>>>>>>>>>>
: import java.applet.Applet;
: import java.awt.Graphics;
: import java.sql.*;
: import sqlj.runtime.*;
: import sqlj.runtime.ref.*;
: import sqlj.runtime.profile.*;
: import oracle.sqlj.runtime.*;
: #sql context MyContext;
: #sql iterator SalesIter( String ITEM_NAME, float COST );
: public class Database extends Applet {
: String buffer = new String ();
: public void init()
: { MyContext mctx = new MyContext
("jdbc:oracle:thin@ntastlab:1521:lab8","training","training",fals
: e);
: System.out.println ("Connected to the database");
: public void start()
: SalesIter siter = null;
: #sql siter = {SELECT ITEM_NAME, COST FROM SALES };
: while (siter.next())
: buffer = buffer + siter.ITEM_NAME() + siter.COST ();
: repaint ();
: siter.close ();
: public void stop()
: public void destroy()
: public void paint(Graphics g) {
: g.drawString(buffer, 50, 25);
: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
: Any ideas ??
null

Similar Messages

  • JDev specifying SQLJ translator command line options

    Hi,
    I have come across the problem of SQLJ connections caching up to 5 sql commands and so leaving any related cursors open. This is happening mainly for statments where I have executed a SELECT ... INTO ... Any sqlj with iterators, I have closed the iterators so they do get removed and their cursors closed.
    I have found that caching can be switched off via the SQLJ translator command line option -P-Cstmtcache=0.
    How can I specify this command line option within my JDeveloper project settings? I don't want to have to build my project from the command line explicitly as this will complicate the Release Software Build procedure.
    Can anyone help me, please?
    Thanks a lot.

    Can anyone offer any words of wisdom on this? We are currently using JDeveloper 3.1 (Build 681)

  • Translation Problem in app Map

    Hi, there is a translation problem in the new app Map. The Hong Kong City Hall is a place to perform art like dancing and drama, and its name in traditional Chinese is 香港大會堂.However, the map use a name of "中國香港特別行政區市政府" which means "China Hong Kong SAR government office" which is completly wrong polictically and logically. This is a very serious problem that Apple should fix ASAP in order to prevent users complaining on the simple mistake Apple just made.
    Looking forward from your reply
    Seravee

    Apple does not monitor these forum for suggestions. I would follow the instructions here:
    How to add a location or report a problem in iOS 6 Maps | iMore.com
    You can also go here:
    Apple - iPod touch – Feedback

  • SQLJ Translation does not create profile file

    SQLJ Translation does not create profile file.
    After translating a small file HelloWorld.sqlj
    the following files are created:
    HelloWorld_SJProfileKeys.class
    HelloWorld.class
    HelloWorld.java
    Although there is a HelloWorld_SJProfileKeys.class, profile file HelloWorld_SJProfile0.ser has NOT been created.
    The starting file .sqlj file HelloWorld.sqlj is taken from O'Reilly book 'Java Programming with Oracle SQLJ' by Jason Price. The file contains a valid SQL statement to display the date.
    My environment variables were set up with instructions from:
    http://www.onjava.com/pub/a/onjava/2001/12/05/learning_sqlj.html
    When I run java HelloWorld to run the .java file, I get the error:
    SQLException java.sql.SQLException: profile HelloWorld_SJProfile0 not found: java.lang.ClassNotFoundException: HelloWorld_SJProfile0
    I searched the internet high and low for a similar error to mine but I could not find a match.
    I read the following text from http://otn.oracle.com/tech/java/sqlj_jdbc/htdocs/faq.html#translationerrors
    but it does not help me.
    "ClassNotFoundException: xxx.yyy_SJProfile0 for class xxx.yyy_SJProfileKeys
    If you see an exception such as:
    java.sql.SQLException: profile xxx.yyy_SJProfile0 not found:
    java.lang.ClassNotFoundException:
    xxx.yyy_SJProfile0 for class xxx.yy_SJProfileKeys
    then you must ensure that the SQLJ profile(s), such as xxx/yyy_SJProfile0.ser, is available in the SQLJ runtime environment. This includes JARing this file as part of an applet deployment, or publishing it to the server via loadjava.
    Any ideas? Thanks in advance,
    John
    Helloworld.sqlj before translation:
    The program HelloWorld.sqlj illustrates how to connect to a
    database, and display the words "Hello World" along with
    the current date.
    // import required packages
    import java.sql.Date;
    import java.sql.SQLException;
    import oracle.sqlj.runtime.Oracle;
    public class HelloWorld {
    public static void main(String [] args) {
    java.sql.Date current_date;
    try {
    // connect to the database
    Oracle.connect(
    "jdbc:oracle:thin:@localhost:1521:orac",
    "scott",
    "tiger"
    // get the current date from the database
    #sql { SELECT sysdate INTO :current_date FROM dual };
    // display message
    System.out.println("Hello World! The current date is " +
    current_date);
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } finally {
    try {
    // disconnect from the database
    Oracle.close();
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } // end of main()
    HelloWorld.java after translation:
    /*@lineinfo:filename=HelloWorld*//*@lineinfo:user-code*//*@lineinfo:1^1*//*
    The program HelloWorld.sqlj illustrates how to connect to a
    database, and display the words "Hello World" along with
    the current date.
    // import required packages
    import java.sql.Date;
    import java.sql.SQLException;
    import oracle.sqlj.runtime.Oracle;
    public class HelloWorld {
    public static void main(String [] args) {
    java.sql.Date current_date;
    try {
    // connect to the database
    Oracle.connect(
    "jdbc:oracle:thin:@localhost:1521:orcl",
    "scott",
    "tiger"
    // get the current date from the database
    /*@lineinfo:generated-code*//*@lineinfo:28^7*/
    // #sql { SELECT sysdate  FROM dual  };
    sqlj.runtime.profile.RTResultSet __sJT_rtRs;
    sqlj.runtime.ConnectionContext __sJT_connCtx = sqlj.runtime.ref.DefaultContext.getDefaultContext();
    if (__sJT_connCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_CONN_CTX();
    sqlj.runtime.ExecutionContext __sJT_execCtx = __sJT_connCtx.getExecutionContext();
    if (__sJT_execCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_EXEC_CTX();
    synchronized (__sJT_execCtx) {
    sqlj.runtime.profile.RTStatement __sJT_stmt = __sJT_execCtx.registerStatement(__sJT_connCtx, HelloWorld_SJProfileKeys.getKey(0), 0);
    try
    sqlj.runtime.profile.RTResultSet __sJT_result = __sJT_execCtx.executeQuery();
    __sJT_rtRs = __sJT_result;
    finally
    __sJT_execCtx.releaseStatement();
    try
    sqlj.runtime.ref.ResultSetIterImpl.checkColumns(__sJT_rtRs, 1);
    if (!__sJT_rtRs.next())
    sqlj.runtime.error.RuntimeRefErrors.raise_NO_ROW_SELECT_INTO();
    current_date = __sJT_rtRs.getDate(1);
    if (__sJT_rtRs.next())
    sqlj.runtime.error.RuntimeRefErrors.raise_MULTI_ROW_SELECT_INTO();
    finally
    __sJT_rtRs.close();
    /*@lineinfo:user-code*//*@lineinfo:28^58*/
    // display message
    System.out.println("Hello World! The current date is " +
    current_date);
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } finally {
    try {
    // disconnect from the database
    Oracle.close();
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } // end of main()
    }/*@lineinfo:generated-code*/class HelloWorld_SJProfileKeys
    private static HelloWorld_SJProfileKeys inst = null;
    public static java.lang.Object getKey(int keyNum)
    throws java.sql.SQLException
    if (inst == null)
    inst = new HelloWorld_SJProfileKeys();
    return inst.keys[keyNum];
    private final sqlj.runtime.profile.Loader loader = sqlj.runtime.RuntimeContext.getRuntime().getLoaderForClass(getClass());
    private java.lang.Object[] keys;
    private HelloWorld_SJProfileKeys()
    throws java.sql.SQLException
    keys = new java.lang.Object[1];
    keys[0] = sqlj.runtime.ref.DefaultContext.getProfileKey(loader, "HelloWorld_SJProfile0");
    }

    SQLJ Translation does not create profile file.
    After translating a small file HelloWorld.sqlj
    the following files are created:
    HelloWorld_SJProfileKeys.class
    HelloWorld.class
    HelloWorld.java
    Although there is a HelloWorld_SJProfileKeys.class, profile file HelloWorld_SJProfile0.ser has NOT been created.
    The starting file .sqlj file HelloWorld.sqlj is taken from O'Reilly book 'Java Programming with Oracle SQLJ' by Jason Price. The file contains a valid SQL statement to display the date.
    My environment variables were set up with instructions from:
    http://www.onjava.com/pub/a/onjava/2001/12/05/learning_sqlj.html
    When I run java HelloWorld to run the .java file, I get the error:
    SQLException java.sql.SQLException: profile HelloWorld_SJProfile0 not found: java.lang.ClassNotFoundException: HelloWorld_SJProfile0
    I searched the internet high and low for a similar error to mine but I could not find a match.
    I read the following text from http://otn.oracle.com/tech/java/sqlj_jdbc/htdocs/faq.html#translationerrors
    but it does not help me.
    "ClassNotFoundException: xxx.yyy_SJProfile0 for class xxx.yyy_SJProfileKeys
    If you see an exception such as:
    java.sql.SQLException: profile xxx.yyy_SJProfile0 not found:
    java.lang.ClassNotFoundException:
    xxx.yyy_SJProfile0 for class xxx.yy_SJProfileKeys
    then you must ensure that the SQLJ profile(s), such as xxx/yyy_SJProfile0.ser, is available in the SQLJ runtime environment. This includes JARing this file as part of an applet deployment, or publishing it to the server via loadjava.
    Any ideas? Thanks in advance,
    John
    Helloworld.sqlj before translation:
    The program HelloWorld.sqlj illustrates how to connect to a
    database, and display the words "Hello World" along with
    the current date.
    // import required packages
    import java.sql.Date;
    import java.sql.SQLException;
    import oracle.sqlj.runtime.Oracle;
    public class HelloWorld {
    public static void main(String [] args) {
    java.sql.Date current_date;
    try {
    // connect to the database
    Oracle.connect(
    "jdbc:oracle:thin:@localhost:1521:orac",
    "scott",
    "tiger"
    // get the current date from the database
    #sql { SELECT sysdate INTO :current_date FROM dual };
    // display message
    System.out.println("Hello World! The current date is " +
    current_date);
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } finally {
    try {
    // disconnect from the database
    Oracle.close();
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } // end of main()
    HelloWorld.java after translation:
    /*@lineinfo:filename=HelloWorld*//*@lineinfo:user-code*//*@lineinfo:1^1*//*
    The program HelloWorld.sqlj illustrates how to connect to a
    database, and display the words "Hello World" along with
    the current date.
    // import required packages
    import java.sql.Date;
    import java.sql.SQLException;
    import oracle.sqlj.runtime.Oracle;
    public class HelloWorld {
    public static void main(String [] args) {
    java.sql.Date current_date;
    try {
    // connect to the database
    Oracle.connect(
    "jdbc:oracle:thin:@localhost:1521:orcl",
    "scott",
    "tiger"
    // get the current date from the database
    /*@lineinfo:generated-code*//*@lineinfo:28^7*/
    // #sql { SELECT sysdate  FROM dual  };
    sqlj.runtime.profile.RTResultSet __sJT_rtRs;
    sqlj.runtime.ConnectionContext __sJT_connCtx = sqlj.runtime.ref.DefaultContext.getDefaultContext();
    if (__sJT_connCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_CONN_CTX();
    sqlj.runtime.ExecutionContext __sJT_execCtx = __sJT_connCtx.getExecutionContext();
    if (__sJT_execCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_EXEC_CTX();
    synchronized (__sJT_execCtx) {
    sqlj.runtime.profile.RTStatement __sJT_stmt = __sJT_execCtx.registerStatement(__sJT_connCtx, HelloWorld_SJProfileKeys.getKey(0), 0);
    try
    sqlj.runtime.profile.RTResultSet __sJT_result = __sJT_execCtx.executeQuery();
    __sJT_rtRs = __sJT_result;
    finally
    __sJT_execCtx.releaseStatement();
    try
    sqlj.runtime.ref.ResultSetIterImpl.checkColumns(__sJT_rtRs, 1);
    if (!__sJT_rtRs.next())
    sqlj.runtime.error.RuntimeRefErrors.raise_NO_ROW_SELECT_INTO();
    current_date = __sJT_rtRs.getDate(1);
    if (__sJT_rtRs.next())
    sqlj.runtime.error.RuntimeRefErrors.raise_MULTI_ROW_SELECT_INTO();
    finally
    __sJT_rtRs.close();
    /*@lineinfo:user-code*//*@lineinfo:28^58*/
    // display message
    System.out.println("Hello World! The current date is " +
    current_date);
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } finally {
    try {
    // disconnect from the database
    Oracle.close();
    } catch ( SQLException e ) {
    System.err.println("SQLException " + e);
    } // end of main()
    }/*@lineinfo:generated-code*/class HelloWorld_SJProfileKeys
    private static HelloWorld_SJProfileKeys inst = null;
    public static java.lang.Object getKey(int keyNum)
    throws java.sql.SQLException
    if (inst == null)
    inst = new HelloWorld_SJProfileKeys();
    return inst.keys[keyNum];
    private final sqlj.runtime.profile.Loader loader = sqlj.runtime.RuntimeContext.getRuntime().getLoaderForClass(getClass());
    private java.lang.Object[] keys;
    private HelloWorld_SJProfileKeys()
    throws java.sql.SQLException
    keys = new java.lang.Object[1];
    keys[0] = sqlj.runtime.ref.DefaultContext.getProfileKey(loader, "HelloWorld_SJProfile0");
    }

  • SQLJ translator for ISO/ANSI does not create .SER profile (Jdev 9.0.0 prev)

    The SQLJ translater that comes with JDeveloper 9.0.3 preview does not create profiles (.SER) when running with -codegen=ansi or iso. Thus producing none runnable code.
    It is not possible to set any switches in JDev.
    Previous versions of the translated did produce the .SER files.
    Is there a workaround possible?
    Thanks,
    Robert

    Fo the answer and a workaround look here:
    Re: A field is missing in my table.....
    -Robert

  • SQLJ translator for ISO/ANSI does not create .SER profile (Jdev 9.0.3 prev)

    The SQLJ translater that comes with JDeveloper 9.0.3 preview does not create profiles (.SER) when running with -codegen=ansi or iso. Thus producing none runnable code.
    It is not possible to set any switches in JDev.
    Previous versions of the translated did produce the .SER files.
    Is there a workaround possible?
    Thanks,
    Robert
    P.S.: I posted this also in the SQLJ forum.

    Robert,
    My mistake - you are correct, the change I mentioned was put in just after the Preview Release. The .ser files will go into the project source directory in the Preview Release. But this should be the same behavior as in previous releases - are you seeing a difference in behavior between a past release and the Preview Release? Everything up to and including the 9.0.3 Preview Release should put the .ser files in the project source directory. When the 9.0.3 Production Release is available, they will be put into the project output directory instead.
    The fix to put the .ser files into the output directory is not in the translator.jar file. It is in the core JDeveloper code (in jdev.jar). So unfortunately it is not a fix that could be easily dropped into the Preview Release. However, it will be available in the 9.0.3 Production Release.
    -Matt Hawkins, JDeveloper Team

  • [SQLJ] Context Problem

    Hi all,
    I am working on Oracle 9i and I compile with the Oracle Console Entreprise Manager.
    From an instance baseA, I am looking for getting values from other instance baseB :
    Code :
    DefaultContext connB = Oracle.getConnection("jdbc:oracle:thin:@ipServer:1521:baseB","user","pwd");
    DefaultContext connA = Oracle.getConnection("jdbc:oracle:thin:@ipServer:1521:baseA","user","pwd");
    try {
         String result = "";
         #sql [[connB ]] { SELECT lib INTO :result FROM TAB_MESURE WHERE id = 4 };
         RETURN result;
    finally {
         connB.close();
         connA.close();
    When compiling, this error is displayed
    Warning: Impossible de vérifier la clause WHERE. Erreur renvoyée par la base de données : ORA-00942: Table ou vue inexistante (french)
    ORA-00942: Table or view doest not exist
    - all tns are corectly set up
    - Within the same instance,all requests are OK (without using of context)
    - I tried diferent connection method wothout success (Oracle.connect, DefaultContext.setDefaultContext, )
    Thanks for your help
    Merci pour votre aide
    Edited by: user11166064 on 14 mai 2009 02:41
    Edited by: user11166064 on 14 mai 2009 02:49

    Ok,
    So i re-formulate my request, here the acual code executed :
    h5. 1- Java code :
    import java.sql.*;
    import sqlj.runtime.ref.DefaultContext;
    import oracle.sqlj.runtime.Oracle;
    import sqlj.runtime.ExecutionContext;
    #sql iterator MyIter2 (Integer elt_id, String elt_lst_code, String elt_lib, Integer elt_actif);
    public class TestInsert {
    public static void test() throws Exception {
              DefaultContext connB = Oracle.getConnection("jdbc:oracle:thin:@ipServer:1521:baseB","user","pwd");
              DefaultContext connA = Oracle.getConnection("jdbc:oracle:thin:@ipServer:1521:baseA","user","pwd");
              MyIter2 iter;
              Integer ident;
              String listCode;
              String lib;
              String actif;
              try {
                   #sql [[connB]] iter={ select elt_id, elt_lst_code, elt_lib, elt_actif from baseB.<user>.ELT elt_elt_id is NULL };
                   while (iter.next()) {
                        ident =      iter.elt_id();
                        listCode =      iter.elt_lst_code();
                        lib =           iter.elt_lib();
                        actif =          String.valueOf(iter.elt_actif());
                        #sql [connA]] { insert into BIBLIO_0 (ID, LIBELLE) values (:ident, :lib) };
                   #sql [[connA]] { COMMIT};
              } finally {
                   connB.close();
                   connA.close();
    h5. 2- Loadjava
    loadjava -u user/pwd@connA -v -resolve TestInsert.java
    it returns a warning :
    Impossible to check SQL instruction
    +#sql [connB] iter={ select elt_id, elt_lst_code, elt_lib, elt_actif from baseB.<user>.ELT elt_elt_id is NULL };+
    h5. 3- Create and execute stored procedure
    I connect to baseA through sql*plus and execute the command :
    CREATE OR REPLACE PROCEDURE SP_TESTINSERT AS LANGUAGE JAVA  NAME 'TestInsert.test()';
    EXECUTE SP_TESTINSERT;
    I've got the errors :
    ORA-29532: java call terminated by uncaught java exception :
    java.sql.SQLException: ORA-00903: invalid table name
    ORA-06512: at "BASEB.TESTINSERT", ligne 0
    ORA-06512: at ligne 1
    I've changed :
    +#sql [[connB]] iter={ select elt_id, elt_lst_code, elt_lib, elt_actif from baseB.<user>.ELT elt_elt_id is NULL };+
    to
    +#sql [[connB]] iter={ select elt_id, elt_lst_code, elt_lib, elt_actif <user>.ELT elt_elt_id is NULL };+
    but during the compilation (loadjava) I have :
    ORA-29535: source requires recompilation
    TestInsert:23: Impossible to check SQL interrogation. ORA-00903: invalid table name
    #sql [connGeochim] iter={ select elt_id, elt_lst_code, elt_lib, elt_actif from
    <user>.ELT elt_elt_id is NULL };
    ^
    <no file>: Processing source TestInsert encountered sqlj translation failed.
    Info: 2 errors
    The following operations failed
    source TestInsert: resolution
    exiting : Failures occurred during processing
    thanks

  • Translation Problem – Region Disappearing

    Translation Problem – Region Disappearing
    I recently started working on translating my application to German. When I apply my xlif file I have a problem with the contents of all my report regions using Vertical Report Look 2 disappear.
    The report region is still visible, however the report contents (corresponding to the report template) have completely disappeared.
    When I switch back to English (setting FSP_LANGUAGE_PREFERANCE) the report contents are once again visible.
    I am using theme 7.
    Thanks in advance.
    -Immanuel

    Hi Joel,
    Dont worry about that last request, i have already fixed the problem.
    If anyone else has this problem they can fix it by creating a custom report template with the following code:
    Report template Before Rows:
    <table summary="Vertical" class="t7vertical3" align="center" border="0" cellspacing="0" cellpadding="0">
    Include the following in your Theme.css (or theme_V2.csss in the case of theme 7):
    table.t7vertical3 {border:0px #bbbbbb solid;border-collapse:collapse;background:#ffffff;font-size:8pt;}
    table.t7vertical3 tr {border-top:1px;}
    table.t7vertical3 td.L{font-weight:bold;vertical-align:top;padding:2px;white-space:nowrap;width:30%;text-align:right;border:0px #bbbbbb solid;background:#999999;color:#ffffff;border:1px #bbbbbb solid;}
    table.t7vertical3 td{padding:2px;border:1px #bbbbbb solid;text-align:left;}
    Cheers,
    Immanuel

  • Translation problem , While conversion from English to Poland

    Hello Gurus
    Pl suggest  Translation problem , While conversion from English to Poland  getting message
    "Code page not found for Poland "
    Code page 1401 exits in system
    SAP version 4.6C
    Best regards
    Krish

    Dear Vamsi,
    Please check the below lonk may be it heps.
    Translation to different languages. How??????
    Regards
    Pranay

  • Licensing issues - embedding SQLJ translator

    I would like to find out what it would cost to license the SQLJ translator for embedding it my company's product. Can you tell me who I might need to contact to find this out?
    - Uhyon

    There's actually two issues here that need attention. If you're just outputting to default DPS folios then the pages become for all intents and purposes images so there's no real font-related issues. The more difficult area is if you're embedding your own html files that use Adobe fonts. I'd imagine things get more coplicated here.

  • SQLJ translator connection failing

    hi, i am trying to verify the sqlj translator connection to the db using the TestInstallSQLJ.sqlj code. i am using jdk1.3/8.1.5+sqlj8.1.6SDK on win98 -> jdk1.2.1/8.1.5 on nt4, and modified the sqlj.properties file appropriately. when i execute sqlj on the Test file, it says it can't load the OracleDriver:
    TestInstallSQLJ.sqlj:40.4-40.29: Warning: Cannot load JDBC driver class oracle.jdbc.driver.OracleDriver.
    TestInstallSQLJ.sqlj:40.4-40.29: Warning: Unable to perform semantic analysis on connection jdbc:oracle:thin:@<snip> by user <snip>. Error returned by database is: No suitable driver
    Total 2 warnings.
    Any help is appreciated.
    null

    You need to have the JDBC classes111.zip (for 1.1.x) or classes12.zip in your CLASSPATH environment variable. Say the following on the command line:
    javap oracle.jdbc.driver.OracleDriver
    - this should print out the methods on the OracleDriver class. Now say:
    sqlj -version-long
    This should print out all sorts of version information on SQLJ, JDBC and the JDK you are using. If yes, then you are in business. If it prints out the JDBC driver version as 0.0, then the Oracle JDBC driver is not yet in the CLASSPATH.

  • SQLJ Translator NullPointerException

    Hi there folks,
    I'm using the SQLJ and the Java Dictionary for the persistence layer in an application running on the Web AS 6.40 (SP11). I'm also using NetWeaver Dev. Studio SP11.
    I have one particular .sqlj file, which returns the following non specific error when I'm saving it:
    "Save could not be completed.
    Reason: Errors during build"
    A click on the "Details" button reveals the following a little less non specific error:
    "java.lang.NullPointerException encountered while running com.sap.dictionary.tools.sqlj.translator.Translator."
    Anyone's got an idea on what is wrong, or where to find out what is wrong?
    Thanks in advance,
    Henrik, Invendium A/S

    Never mind folks, a code rewrite made the Translator accept the source (funny, because it used to accept it..).
    /Henrik

  • SQLJ Translator

    Hi all,
    I'm getting the following error while
    trying to translate using sqlj from
    the prompt.
    Error:Error in Sqlj Stub: path or file
    name "java" not found.
    what could be the problem ?Is it bcoz of installation problem ??Plz help me .

    From what you can get from
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
    , you have serveral options:
    1. Use SQLJ 9i releases.
    2. Use JPub 10g releases, where sqlj command line can be accessed through jpub command, such as
    % jpub -sqlj a.sqlj a.java
    Note you need to setup classpath to include translator.jar and runtime12.jar.
    3. Use jpub 10g and sqlj/bin/sqlj.exe from SQLJ 9i

  • Currency translation problem for calculated key figure

    Hi All
    I have a problem with the currency translation for a calculated key figure.
    I have a requirement to show the MM consignment stock value in the specified currency from the selection screen.
    For consignment stock, there is no value maintained in the system. So for this we need to calculate the value as below
    Restricted key figure: RKFConsignment stock: Total stock with special stock indicator restriction "K"
    Calculated keyfigure: Consignment stock value = Nodim( RKFConsignment stock) * (Standard cost / price unit).
    Here, in the calculated keyfigure properties --> I have used a currency translation for the 0CALMONTH.
    The query has selection on the 0calmonth.
    But in the result the I am getting unexpected results.
    Do we have any inconsistencies in the currency translation on the formulas?
    Please help me on this.
    Regards
    S.R

    Hi All
    I have noticed something. I changed my query date selection to Calendar day - Keydate instead of calendar month.
    And I have changed the currency variable to fixed exchange rate "CHF", it is working fine.
    I think I have some problem with the currency translation variable.
    Could anyone of you please send me the currency translation variable for Calendar month with the below parameters
    exch rate  type :  M
    Time reference : 0CALMONTH
                               End of month
    Target currency for a variable : < var created on 0currency>
    For my report,  i need calendar month selection, currency selection.
    Please help me with your ideas.
    Thank you
    Regards
    S.R

  • Translation Problem in Smartforms.

    Dear Experts,
                          Facing a problem with the translations of the smart forms into the diff languages.
    I have maintained the translations based upon the condition like below.
    If Spras = 'E'. (English)
    Text = 'Order'
    else.
    if spras = 'D'.     (Germany )
    Text = 'Bestellen'
    if spras = 'N'.  (Dutcj)
    Text = Bestel.
    The translations are working fine while with log in language as English ---Smart form original lang is also English......
    But the problem arises with log in language as NL(Dutch)....i am just getting the forms output in english lang only...Can you please check the same.
    Regards,
    Kartheek.

    hi,
    chk out the following link,
    How to maintain Smartforms in different languages?
    https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action%3fpageid=31187
    Assigning a transport request for the translations in Smart Forms
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/assigning%252ba%252btransport%252brequest%252bfor%252bthe%252btranslations%252bin%252bsmart%252bforms
    translating smartforms
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/emtech/translating%252bsmartforms
    Also check the form attributes / language attributes in the smartform and check if the INTO ALL LANGUAGES radio button is selected. And when you login into SAP in EN ( default ) language, it should automatically translate.
    Hope it helps.
    Thanks
    Arbind Prasad

Maybe you are looking for

  • Creating a small business website...

    Hello! I would like to create a small business website using iweb. I created something simple, and I am happy with it, but I was wondering if anyone knew how I could use it with a regular website address (www.company.com) instead of web.mac.com/compa

  • Arabic in Reports 10g

    Hi everybody!!! I have a report, which has a simple query with a where cluase based on a character column. the value of this column is passed as a parameter. When the parameter is in english the report works fine (the report format is in pdf) and whe

  • HTMLB how to get checkbox value?

    Hi all, anyone knows how is possible to get the value of a checkbox in a DynPage? Example:   <hbj:checkbox        id="CheckCPUStat"        text="CPU status"        key="chk_Stat"   /> In this case i want to read the string "CPU status". If I use the

  • How I can Open a Project CS5 in CS3?

    How I can Open a Project that was created in After Efects CS5 in After Efects CS3? Any Pluging that upgrade to read New Files in Older Version ? Thans For any Information.

  • Related to message class

    I have created some mess nos and description in se91 say 001     user id (001) logged on 003      userid(003) logged on but this 003 is import parameter in the function module.So it can have any value But i need it as userid ( imprt from function mod