Howto generate correct SQL for Connector/J?

I am trying to switch to MySQL and generated new SQL, deployed, and
generated a new client (all using the deploytool).
Now I am getting the exception below (SQL Syntax error) when
running the client. How come?
What I'm using:
J2EE 1.4
MySQL 4.0.12
Connector/J 3.0.7
The application was working with Cloudscape.
Help is much appreciated.
Caught an exception:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: createRace: nested exception is: java.sql.SQLException: Syntax error or access violation, message from server: "You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '"RaceBeanTable" WHERE "raceId" = '1'' at line 1"
at com.sun.corba.se.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:61)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
at com.mnm.run.ejb.race._RaceController_Stub.createRace(Unknown Source)
at com.mnm.run.client.RunningClient.insertRaceInfo(Unknown Source)
at com.mnm.run.client.RunningClient.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:315)
at com.sun.enterprise.appclient.Main.main(Main.java:215)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:280)
Caused by: java.rmi.RemoteException: createRace: nested exception is: java.sql.SQLException: Syntax error or access violation, message from server: "You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '"RaceBeanTable" WHERE "raceId" = '1'' at line 1"
at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:360)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:557)
at com.mnm.run.ejb.race.RaceControllerBean_EJBObjectImpl.createRace(RaceControllerBean_EJBObjectImpl.java:181)
at com.mnm.run.ejb.race._RaceControllerBean_EJBObjectImpl_Tie._invoke(Unknown Source)
at com.sun.corba.se.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:517)
at com.sun.corba.se.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:207)
at com.sun.corba.se.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:109)
at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:252)
at com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcessor.java:81)
at com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:106)

Manually removing the qoutes(") from the SQL statements
that have been generated by deploytool from the deployment
descriptor file seems to get around the SQL syntax error,
but now the tables are not generated as requested:
<create-table-deploy>true</create-table-deploy>
Any help is much appreciated.
Andreas
Caught an exception:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: createRace: nested exception is: java.sql.SQLException: General error, message from server: "Table 'tcladb.racebeantable' doesn't exist"
...

Similar Messages

  • WL-7 / clientgen task do not generate correct bean for non built-in data type

    The clientgen Ant task do not generate a correct JavaBean for this
    complexeType definition (returned by a web service method):
    extract from WSDL:
    <s:complexType name="MyBoggusType">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="unbounded"
    name="shouldBeAnArray" type="s0:OtherType " />
    </s:sequence>
    <s:attribute name="total" type="s:int" />
    </s:complexType>
    The generated JavaBean contains an int (for 'total') and a simple
    reference to an OtherType instance (for 'shouldBeAnArray').
    The 'shouldBeAnArray' attribute should be an array of OtherType?
    What's wrong?
    (The service is not implemented by me and I have few control on it)
    Is it a bug or a limitation?
    Should I write a Codec as a workaround?

    On Wed, 05 Feb 2003 17:28:40 +0100, Stephane Boisson wrote:
    Is it a bug or a limitation?
    Should I write a Codec as a workaround?This is a bug. It has been fixed in service pack 2. Refer to CR082308
    when contacting support if you need a patch against sp1. You could indeed
    write your own codec but it might be easier to just use the patch :)
    --Scott

  • Ejb3 entity bean not generating valid sql for postgres 8.1

    Hello,
    I originally posted this on the jboss seam board as I ran across this error on a seam test example, but it seems it's more generally applicable to ejb3 entity beans not generating sql that postgres can understand. I'll post my message below, all replies are appreciated.
    I'm going through the hello world example from the seam book, and I'm getting an error I cannot resolve, that with an auto generated sql statement, that's not valid for postgres 8.1, the database I'm on. Here's my error:
    17:40:31,370 INFO [STDOUT] Hibernate: select next value for person_id_seq from dual_person_id_seq
    17:40:31,394 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: 42601
    17:40:31,394 ERROR [JDBCExceptionReporter] ERROR: syntax error at or near "value"
    17:40:31,396 FATAL [application] javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not get next sequence value
    javax.faces.el.EvaluationException: javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not get next sequence value
    Here's the table definition
    - create table Person (id bigint not null, name varchar(255), primary key (id))
    - create table dual_person_id_seq (zero integer)
    - create sequence person_id_seq start with 1 increment by 1
    and here's the entity bean:
    @Entity
    @Name("person")
    @Table(name="person")
    @SequenceGenerator(name="person_sequence", sequenceName="person_id_seq")
    public class Person implements Serializable {
    private long id;
    private String name;
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator="person_sequence")
    public long getId() { return id;}
    public void setId(long id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    How do I get it to generate a valid sql statement for postgres?

    I think you should try putting the sequence generator annotation over the primary key field. Try it and be sure it works.
    regards,
    Michael

  • Container generating invalid SQL for mysql

    Apparently sunone's container is putting double quotes around the table names and field names in the SQL in generates for CMP entities beans. MySQL is not happy about this. Is there someway to deal with this? Has anyone else who is using MySQL run across this yet ?

    You can configure S1AS 7.0 to support Transparent Persistence with MySQL by doing the following:
    1. Create a file named .tpersistence.properties, residing in the current working directory of the S1AS instance. This will allow you to override the default Persistence Manager settings for the MySQL database.
    For example, create the file $AS_INSTALL/domains/domain1/server1/config/.tpersistence.properties containing the following:
    database.mysql.QUOTE_CHAR_END=\
    database.mysql.QUOTE_CHAR_START=\
    database.mysql.RTRIM=
    database.mysql.RTRIM_POST=
    2. Restart the Sun ONE AS 7.0 instance.
    Regards,
    Chris Drake

  • Bridge CS6 not generating correct thumbnails for RAW files

    I'm running Bridge CS6 (the latest version, 5.0.2.4) on a 2013 MacBook Pro (OSX 10.9.1) and suddenly as of today Bridge is no longer updating the thumbnails for my RAW files. All other image and video file formats are having thumbnails generated but not my Nikon NEF raw files including those which I have previously worked on in ACR. I have tried purging the entire cache, restarting Bridge and even rebooting my computer and still the raw thumbnails are not being generated.
    Any advice would be appreciated thank you.
    Eric
    Actually I've just noticed that thumbnails for jpegs are not being generated either. A thumbnail is only generated if I work on a file in Photoshop and then save it.

    Check you cache disk free space.  You should have at least 15%.  For a 700g drive that that 100g free.
    Have you reset preferences?  Hold down option key and start bridge.  You will get a reset window.

  • Meaning fails to generate correct code for text item in designer reports

    I have a text item in a report which is a table column governed by a domain. When the display type is set to TEXT and the Show Meaning property is set to MEANING ONLY - the code generation fails as follows:
    WHERE NTC.ICO_ID = L_ICO.ID AND
    L_ICO.ISS_CAT_CODE = L_ISS.CAT_CODE AND
    L_ICO.ISS_LEGI_CODE = L_ISS.LEGI_CODE AND
    NTC.DEM_ID = L_DEM.ID
    CG.RV_DOMAIN = 'NOTICE TYPE' AND CG.RV_LOW_VALUE = NTC.NOTICE_TYPE
    The failure is caused because the AND is omitted from the last condition in the query. (the part that gets the meaning from cg_ref_codes).
    Can anyone advise on a solution to this?

    Sander,
    Your concerns about renaming the new release 4 libraries to ofg*65.pll are understandable, but it is exactly what you have to do. The only customizations we made to the ofg* libraries in Headstart 6i are workarounds for Designer bugs that were present when we wrote Headstart 6i (at that time we used Designer release 2). These bugs have been fixed by now, so it is safe to use the Release 4 versions and get rid of the ones that shipped with Headstart 6i.
    We recommend still renaming them to ofg*65.pll, for an explanation see the Headstart User guide or the Headstart Installation Guide.
    Kind regards,
    Peter
    null

  • ORA-01489 Received Generating SQL for Report Region

    I am new to Apex and I am running into an issue with an report region I am puzzled by. Just a foreword, I'm sure this hack solution will get a good share of facepalms and chuckles from those with far more experience. I welcome suggestions and criticism that are helpful and edifying!
    I am on Apex 4.0.2.00.07 running on 10g, I believe R2.
    A little background, my customer has asked an Excel spreadsheet be converted into a database application. As part of the transition they would like an export from the database that is in the same format as the current spreadsheet. Because the column count in this export is dynmic based on the number of records in a specific table, I decided to create a temporary table for the export. The column names in this temp table are based on a "name" column from the same data table so I end up with columns named 'REC_NAME A', 'REC_NAME B', etc. (e.g. Alpha Record, Papa Record, Echo Record, X-Ray Record). The column count is currently ~350 for the spreadsheet version.
    Because the column count is so large and the column names are dynamic I've run into a host of challenges and errors creating this export. I am a contractor in a corporate environmentm, so making changes to the apex environment or installation is beyond my influence and really beyond what could be justified by this single requirement for this project. I have tried procedures and apex plug-ins for generating the file however the UTL_FILE package is not available to me. I am currently generating the SQL for the query in a function and returning it to the report region in a single column (the user will be doing a text-to-column conversion later). The data is successfully being generated, however, the sql for the headers is where I am stumped.
    At first I thought it was because I returned both queries as one and they were joined with a 'union all'. However, after looking closer, the SQL being returned for the headers is about +10K+ characters long. The SQL being returned for the data is about +14k+. As mentioned above, the data is being generated and exported, however when I generate the SQL for the headers I am receiving a report error with "ORA-01489: result of string concatenation is too long" in the file. I am puzzled why a shorter string is generating this message. I took the function from both pages and ran them in a SQL command prompt and both return their string values without errors.
    I'm hopeful that it's something obvious and noobish that I'm overlooking.
    here is the code:
    data SQL function:
    declare
      l_tbl varchar2(20);
      l_ret varchar2(32767);
      l_c number := 0;
      l_dlim varchar2(3) := '''|''';
    begin
      l_tbl := 'EXPORT_STEP';
      l_ret := 'select ';
      for rec in (select column_name from user_tab_columns where table_name = l_tbl order by column_id)
      loop
        if l_c = 1 then
            l_ret := l_ret || '||' || l_dlim || '|| to_char("'||rec.column_name||'")';
        else
            l_c := 1;
            l_ret := l_ret || ' to_char("' || rec.column_name || '")';
        end if;
      end loop;
        l_ret := l_ret || ' from ' || l_tbl;
      dbms_output.put_line(l_ret);
    end;header sql function:
    declare
      l_tbl varchar2(20);
      l_ret varchar2(32767);
      l_c number := 0;
      l_dlim varchar2(3) := '''|''';
    begin
      l_tbl := 'EXPORT_STEP';
      for rec in (select column_name from user_tab_columns where table_name = l_tbl order by column_id)
      loop
        if l_c = 1 then
            l_ret := l_ret || '||' || l_dlim || '||'''||rec.column_name||'''';
        else
            l_c := 1;
            l_ret := l_ret || '''' || rec.column_name || '''';
        end if;
      end loop;
        l_ret := l_ret || ' from dual';
      dbms_output.put_line(l_ret);
    end;-------
    EDIT: just a comment on the complexity of this export, each record in the back-end table adds 12 columns to my export table. Those 12 columns are coming from 5 different tables and are the product of a set of functions calculating or looking up their values. This is export is really a pivot table based on the records in another table.
    Edited by: nimda xinu on Mar 8, 2013 1:28 PM

    Thank you, Denes, for looking into my issue. I appreciate your time!
    It is unfortunately a business requirement. My customer has required that the data we are migrating to this app from a spreadsheet be exported in the same format, albeit temporarily. I still must meet the requirement. I'm working around the 350 columns by dumping everything into a single column, which is working for the data, however, the headers export is throwing the 01489 error. I did run into the error you posted in your reply. I attempted to work around it with the clob type but eneded up running into my string concatentation error again.
    I'm open to any suggestions at this point given that I have the data. I'm so close because the data is exporting, but because the columns are dynamic, the export does me little good without the headers to go along with it.

  • OBIEE generates broken SQL

    Dear guru.
    Let me know what's may be wrong ?
    My post is closely related to bad SQL thread.
    Shortly speaking, I'd like to discuss multiple star problem.
    So, Oracle Business Intelligence 11.1.1.6.0
    I have three fact table A,B,C joined to common link table D ( look as dimension in Administrator )
    A and B have inner join with D, while C has left outer join to D ( actually outer join defined only in BMM cause don't see how set outer join on physical layer for C ).
    The matter is in generated SQL query which is broken, i.e. can't be compiled in Oracle DB.
    Let me give broken piece of generated SQL.
    As you can see, the subquery has reference to table T69242 in WHERE, but no such table in FROM section:
    SACOMMON821644 AS
    (SELECT
    /*+ MATERIALIZE */
    DISTINCT T68993.NAME AS c1,
    T69266.DISTRICT2 AS c2,
    CASE
    WHEN T68993.DEPARTMENTID IN
    (SELECT D1.c1 AS c1 FROM SASUBWITH820608 D1
    THEN 1
    ELSE 0
    END AS c3,
    CASE
    WHEN T69266.OKATO_KOD IN
    (SELECT D1.c1 AS c1
    FROM SASUBWITH820633 D1
    THEN 1
    ELSE 0
    END AS c4,
    T68993.DEPARTMENTID AS c5,
    T69266.OKATO_KOD AS c6,
    T68993.PARENT AS c7,
    T69266.PARENT_OKATO_KOD AS c8
    FROM BI_MSK_DISTRICTS_STAT_HIER T69233
    MOS_DISTRICTS_STAT T69266
    BI_DEPARTMENTS_MFC T68993
    BI_MFC_HIER T69068
    DEP_OPERATORS_CNT T69220
    INCIDENTS T69648
    MOS_DISTRICT_POPULATION T69410
    WHERE ( T69233.MEMBER_KEY = T69410.OKATO_KOD
    AND T68993.DEPARTMENTID = T69068.ANCESTOR_KEY
    AND T69068.MEMBER_KEY = T69220.DEPARTMENTID
    AND T69220.DEPARTMENTID = T69242.DEPARTMENTID*
    AND T69233.ANCESTOR_KEY = T69266.OKATO_KOD
    AND T69242.OKATO_KOD* = T69410.OKATO_KOD
    AND T68993.DEPARTMENTID IN
    (SELECT D1.c1 AS c1 FROM SASUBWITH820658 D1
    AND T69266.OKATO_KOD IN
    (SELECT D1.c1 AS c1 FROM SASUBWITH820683 D1
    Meanwhile in aggregation subquery of that generated SQL we have requred table
    SACOMMON821667 AS
    (SELECT
    /*+ MATERIALIZE */
    TRUNC(SUM( DISTINCT T69220.OPER_TOTAL)) AS c9,
    T68993.DEPARTMENTID AS c10,
    T68993.PARENT AS c11,
    T69266.OKATO_KOD AS c12,
    T69266.PARENT_OKATO_KOD AS c13,
    SUM( DISTINCT T69410.POPUL_SIZE) AS c14,
    SUM(T69648.TOTAL / NULLIF( T69242.OKATO_COUNT, 0)) AS c15
    FROM BI_MSK_DISTRICTS_STAT_HIER T69233
    MOS_DISTRICTS_STAT T69266
    BI_DEPARTMENTS_MFC T68993
    BI_MFC_HIER T69068
    DEP_OPERATORS_CNT T69220
    MFC_ADDRESSOKATO T69242*
    LEFT OUTER JOIN INCIDENTS T69648
    ON T69242.DEPARTMENTID = T69648.DEPARTMENTIDFROM,
    MOS_DISTRICT_POPULATION T69410
    WHERE ( T69242.OKATO_KOD = T69410.OKATO_KOD
    AND T69233.ANCESTOR_KEY = T69266.OKATO_KOD
    AND T69233.MEMBER_KEY = T69410.OKATO_KOD
    AND T69220.DEPARTMENTID = T69242.DEPARTMENTID
    AND T68993.DEPARTMENTID = T69068.ANCESTOR_KEY
    AND T69068.MEMBER_KEY = T69220.DEPARTMENTID
    AND T68993.DEPARTMENTID IN
    (SELECT D1.c1 AS c1 FROM SASUBWITH820658 D1
    AND T69266.OKATO_KOD IN
    (SELECT D1.c1 AS c1 FROM SASUBWITH820683 D1
    GROUP BY T68993.DEPARTMENTID,
    T68993.PARENT,
    T69266.OKATO_KOD,
    T69266.PARENT_OKATO_KOD
    And it's time to show Consistency Check results in Administrator.
    There is no errors, but
    WARNINGS:
    Business Model Сводная таблица:
    [39008] Logical dimension table A_MFC_ADDRESSOKATO has a source A_MFC_ADDRESSOKATO that does not join to any fact source.
    [39020] Logical table source "Сводная таблица"."FCT Incidents"."A_Incidents": No path has been found to link all tables. There is no link between the set ( 'A_DEP_OPERATORS_CNT', 'A_MFC_ADDRESSOKATO', 'A_MOS_DISTRICT_POPULATION' ) and the set ( 'A_Incidents' ).
    [39020] Logical table source "Сводная таблица"."A_DEP_OPERATORS_CNT"."A_DEP_OPERATORS_CNT ": No path has been found to link all tables. There is no link between the set ( ) and the set ( ).
    [39020] Logical table source "Сводная таблица"."A_MOS_DISTRICT_POPULATION"."A_MOS_DISTRICT_POPULATION": No path has been found to link all tables. There is no link between the set ( ) and the set ( ).
    I wonder, how that link can be realized, when fact tables already have joins to common dim A_MFC_ADDRESSOKATO.
    Should I create Logical Dimmension for A_MFC_ADDRESSOKATO while it is actually bridge table in terms of 10G ?
    Besides, as we can see from query, A B and C have its own dims.
    So, finally as a result in Answers we have
    ORA-00904: "T69242"."OKATO_KOD": invalid identifier at OCI call OCIStmtExecute
    It should be mentioned that error is appeared only when I put measure from A_Incidents (C alias) on analys in Answers, till that all worked correctly, i.e. A,B joined successfully to D
    and SQL query gave desired result.
    Any suggestion on issue are greately appreciated.
    Sorry for unformatted SQL, still don't know how to do it.
    Hope, my explanation was clear.

    Seems to be bug.
    OBIEE can't generate correct SQL when outer join used

  • Bad SQL for JDO query

    Kodo JDO EE 2.3 RC1 (with InstantDB on JBoss 3.0 on JDK 1.3.1 on Mac
    OS X 10.1.5) generates wrong SQL for a JDO query with a parameter.
    Essentially (unimportant details omitted) I have the following:
    2 associated persistence-capable classes
    public class Person
         private String name;
    public class Issue
         private int id;
         private Person owner;
    both with application-managed identity (Person by name, Issue by id),
    both in the same package. I want to search the database for all Issues
    owned by a certain Person. My code looks like this:
    @pre p is persistent
    Collection findByOwner(Person p){
         // pm is the PersistenceManager
         //TODO pm.newQuery(Issue.class, filter) does not work with Kodo 2.3 RC1
         Extent extent = pm.getExtent(Issue.class, true);
         Query query = pm.newQuery(extent, "owner==person");
         query.setClass(Issue.class);
         query.setIgnoreCache(true);
         query.declareParameters(Person.class.getName() + " person");
         return (Collection)query.execute(p);
    and produces the following SQL statement
    SELECT t0.IDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.NAME_OWNERX FROM ISSUEX
    t0, PERSONX t1 WHERE (t1.NAMEX = NULL AND t0.NAME_OWNERX = t1.NAMEX)
    which is wrong because the actual p.name, which is definitely not nil,
    got lost, and is even rejected by the database*, probably because
    NAMEX is the primary key and cannot be NULL.
    I am pretty sure that this used to work correctly with Kodo 2.2.4. Can
    anyone tell me what I could be doing wrong? I will provide the full
    source code at request.
    Thanks,
    Jakob
    * SQLException:
    Don't understand SQL after: "WHERE"
    Expected: "{" found: "NULL"

    This issue has been resolved in internal builds.
    Some tangential notes about the code below:
    - in our latest version, we no longer require extents when executing
    queries (the candidate class is sufficient).
    - I'm a little concerned about where the 'pm' variable came from in
    Issue.findByOwner(). If that's a member variable, you'd be better off
    doing 'JDOHelper.getPersistenceManager (this)' instead of caching it on
    your own -- this way, you'll avoid any potential issues with somehow
    using the wrong PM or something.
    - Given that all the info is stored in the database already, I'd suggest
    making the relation a bidirectional one, so that you can just traverse
    from Issue to Person without needing to do a query. This will be faster,
    as we will be able to leverage our PM and PMF caches rather than needing
    to execute a query against the data store.
    -Patrick
    Jakob Spies <[email protected]> wrote:
    Kodo JDO EE 2.3 RC1 (with InstantDB on JBoss 3.0 on JDK 1.3.1 on Mac
    OS X 10.1.5) generates wrong SQL for a JDO query with a parameter.
    Essentially (unimportant details omitted) I have the following:
    2 associated persistence-capable classes
    public class Person
    private String name;
    public class Issue
    private int id;
    private Person owner;
    both with application-managed identity (Person by name, Issue by id),
    both in the same package. I want to search the database for all Issues
    owned by a certain Person. My code looks like this:
    @pre p is persistent
    Collection findByOwner(Person p){
    // pm is the PersistenceManager
    //TODO pm.newQuery(Issue.class, filter) does not work with Kodo 2.3 RC1
    Extent extent = pm.getExtent(Issue.class, true);
    Query query = pm.newQuery(extent, "owner==person");
    query.setClass(Issue.class);
    query.setIgnoreCache(true);
    query.declareParameters(Person.class.getName() + " person");
    return (Collection)query.execute(p);
    Patrick Linskey [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Generating Java wrappers for PL/SQL Packages in JDeveloper 3.1

    I have not been successful in using JD3.1 to generate java classes for use in calling PL/SQL packages from a Java Servlet I am developing. I have followed the directions under the 'Generating Java Code for Oracle Objects and PL/SQL Packages' help topic: I display the package in the database browser window, right click on the package, select 'Generate Java', and click 'OK' on the pop-up JPublisher window that appears. The wizard clocks out for a few moments, then the JPublisher window disappears, but the java class is not added to JDeveloper's Navigation pane for the Project and Package I specified in the wizard.
    Any idea where the generated class is going to?

    should be, but isn't... JDeveloper3.1
    (build 681) default install... Is it in
    a custom package I didn't install? Or
    am I just a dumb nut?Hmm.. I thought it was in there.. JPub is a java based tool. You can invoke it as such.
    1st, use setvars.bat from your jdeveloper/bin directory.
    2nd, run java oracle.jpub.java.Main (pass it the same arguments as you would the jpub.exe)
    Here's the output from my machine here:
    D:\JDeveloper31\bin>setvars D:\JDeveloper31
    Setting JDeveloper 1.2 runtime environment to "D:\JDeveloper31"
    Setting JDK version 1.2 in "D:\JDeveloper31\java1.2"
    D:\JDeveloper31\bin>java oracle.jpub.java.Main
    JPub: Java Object Type Publisher, version 8.1.6.0.0 Production
    (and the rest of the help)
    Take Care,
    Rob
    null

  • Simulation Loop: Code could not be generated correctly for this VI

    Running LabView Simulation 8.2 on Windows XP laptop.  I have a Simulation Loop that keeps generating the following error message:
    "Simulation Loop: Code could not be generated correctly for this VI"
    The only reference I can find in my searches is to using an RTX target, which does not apply.  When I click on Show Error it just highlights the Sim Loop
    Any ideas on how to debug this?

    Perhaps you can start removing things until you don't get the error any more. How big is the code in the loop?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Generating BCH Codes for Forward Error Correction

    Has anybody created VIs for generating BCH (Bose-Chaudhuri-Hochquenghem) error correction codes?
    I need to generate the codes for a 16 bit data packet.
    I've found samples in C on the web (http://www.eccpage.com/) but nothing in LV.
    Thanks,
    -dave

    I hate to bump a topic that is over 6 years old, but I am in need of a simple BCH encoding algorithm and do not have the toolbox which provides this.  I only need the encoding algorithm so I am hoping to implement this .VI posted here. 
    I have slightly altered the cleaned up version that was posted to have the inputs/outputs in a format that I expect, but I am worried that it is not correctly calculating the BCH code.  This is my first time working with BCH codes, but I need to implement the CCSDS version using n = 63, k = 56 7-bit BCH code with generator polynomial G(x) = x^7 + x^6 + x^2 + 1.
    I think when using 0xC5C5C5C5C5C5C5 as my input message the 7 bit BCH is supposed to be 0x43, but I am getting 0x00.  Could someone with more experience than me see if I did something obviously wrong?  Or know of a way to validate a BCH encoding algorithm, so I know if what I did was correct.  I attached my modeified .vi.  Thanks!
    Attachments:
    BCH_3.vi ‏24 KB

  • SQL generated by EIS for Drill Through

    Hello,<BR>We are currently using EIS 7.1 on AIX. When we run a drill through report on a large flat dimensional member there are two separate SQLs generated. The first SQL has a where condition with appx. half of the child members and the second one with second half. Is this due to any kind of limitation on he length of the SQL generated?<BR>If so is there any way to work around with this?<BR>THanks a lot in advance<BR>Kris

    Hi Michael,
    I have got the following inputs from the OLAP forum on this query:
    P_S
    Posts: 40
    Registered: 5/29/07
    How to see the SQL (OLAP DML) generated by Discoverer for OLAP
    Posted: Aug 30, 2007 9:30 AM Reply
    Hi,
    I originally posted this query on the Discoverer forum, but it was then suggested to post it here in the OLAP forum. Please help.........
    Is there a way to see the SQL (OLAP DML) generated by Discoverer for OLAP (the way we have "View SQL" in Discoverer Relational). The version in use is 10.1.2.48.18.
    Thanks,
    Piyush
    KLaker
    Posts: 1,341
    From: Manchester, UK
    Registered: 1/10/01
    Re: How to see the SQL (OLAP DML) generated by Discoverer for OLAP
    Posted: Sep 5, 2007 7:34 AM in response to: P_S Reply
    Directly within Discoverer for OLAP (or Viewer)? No - because there is no way to change the behaviour of the generated SQL, you cannot add hints or create any MVs to change the SQL generated. You can trace the SQL generated during a Disco for OLAP query though by switching on some of the OLAP tuning and diagnostic features. There is more information contained in the Discoverer for OLAP Best Practices Guide:
    http://www.oracle.com/technology/products/discoverer/pdf/discoverer_plus_olap_best_practices.pdf
    Keith Laker
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/
    Regards,
    Piyush

  • Internal Error - Unable to generate SQL for this Scheduled Workbook

    I am encountering the following error when loading the results of a Scheduled Workbook;
    Internal Error - Unable to generate SQL for this Scheduled Workbook (If you scheduled this workbook using a previous version of Discoverer, please reschedule and re-open)
    This only happens for one of the scheduled workbooks and I am struggling to find an explanation to the problem. There are no reference to database links in the workbook so I can rule that out as a cause.
    Does anyone have any suggestions to what might be causing the problem?
    Many thanks
    Stewart

    Hi,
    The version is OracleBI Discoverer Plus Version 10.1.2.48.18. Do you think this has anything to do with it?If you are on this version, then you have the recommended patches applied.
    Did you try to reschedule the workbook and see if this helps in resolving the issue?
    I would suggest you enable server logging as this may help in collecting more details about the error.
    Note: 403689.1 - How To Generate Discoverer 10g (10.1.2) Session Server Logs In Text Format
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=403689.1
    Regards,
    Hussein

  • Generate client stubs for EJBs? Is this correct?

    Hi,
         Third time I write this... maybe it gets actually posted now...
    I'm using Sun's appserver (edition 8) to learn EJBs. I have a small app with 2 EJBs runing on the server and I intend to test them using junit test cases running from Eclipse (as a normal java program, no client container or whatsoever). I realized that in order connect my client app to the remote homes on the server I need to have the client stubs. OK. I saw that they are actually created when I generate the deployment for a client app. So what I did is open the .jar and copy the stubs to my client app in Eclipse. It works... but I fear is NOT the way to go...
    My questions:
    A) How can I generate ONLY the stubs?
    B) Is it necessary to deploy the EJBs on the server to generate the client stubs to access the remote interfaces?
    Any answers or indications or directions to take are WELCOME :-)
    C) Is what I do correct? I mean, are you guys too writing client apps that do NOT run in the client container? If so, how do you get the stubs? Maybe my approach to developing EJBs is not correct?
    Thank you for any answers, comments or indications and directions to take!

    Hi Pablo,
    please give me a hint, i have the same problem in my mind.
    I would like write a simple application with eclipse as a application client. I'm reuse the rmi-iiop-simple sample of application server 8. My steps until now:
    - I have execute the sample full - it works.
    - I have set up a project within eclipse workspace with content of sun's sample code
    - I have chamged the build.xml for reuse -> it works i can create ear and other jars
    - I deploy the ear with web front end of application server -> web app works
    - I start my application in eclipse debug (java-application) -> this goes wrong -> class cast exception by narrow
    Because i would like use the application as application client so i have added the j2ee.jar and the appserv-ext.jar to my classpath.
    At this point i think the application must be run. The appserv-ext.jar and the j2ee.jar should realize the container. But she doesn't !
    Which thing is wrong in my mind?
    Thanks Thomas

Maybe you are looking for

  • Work Status Report

    Hi, I was wondering if there is a work status report available in the system?  What I would like to see is a summary of which dimensions are locked in BPC so that I can monitor it to ensure that someone doesn't accidentally open something by mistake.

  • Generate an XSL file from table data

    Hi How can I generate XSL file from data stored in Oracle table, please? oracle 9.2.0.8 on AIX thanks Orna

  • Problem in SAP XI

    Hi, I am trying to check wether file exist in the target folder in my scenario. I got following java code which is working fine in java environment. boolean blnFile= false; AbstractTrace  trace = container.getTrace(); try      try      URL url = new

  • T410s battery drains quickly while suspended.

    My T410s battery will drain within 2 days while suspended.  I have not tested hibernation but haven't noticed the same amount of drain.  On all my other laptops running Windows 7 or any other version I can suspend the computer and will see a slight b

  • I-pod loads but not recognized correctly

    My Ipod set-up fine on my home computer but at work it is not properly recognized. When I plug it in, in pulls up in I-tunes as "Single Disk" not the name I gave it. And all my music is listed as "other" data, not as music. How do I get it to read my