TopLink 10g Cascading Issue

How can I make the default read behavior of each Entity set to **lazyloading** in TopLink 10g?
We're using TopLink 10g in an application which is being used by 1000s of customers everyday. I'm also looking to find a good and safe way to migrate from TopLink 10g as there are very few stuffs available about TopLink 10g and those who were using it already migrated to EclipseLink/JPA or TopLink 11g-12g. We also have to do the same, but that will be a long-term goal. Please share your experiences regarding migration from TopLink (10g).
Although, for now, we need to fix a problem (which would be a quick-fix instead of migrate from TopLink 10g). The problem is; One of the TopLink Entity read also getting (querying) all of its associates (child Entities) which is causing too many unnecessary queries to the database. However, we solved this problem by using `ObjectCopyingPolicy`:
    ObjectCopyingPolicy objCopyingPolicy = new ObjectCopyingPolicy();
    objCopyingPolicy.setShouldResetPrimaryKey(false);
    objCopyingPolicy.cascadePrivateParts();
    someEntity = (SomeEntity) getTopLinkTemplate().copy(getTopLinkTemplate().readById(SomeEntity.class, new Long(someId)), objCopyingPolicy);
The aforementioned code snippet is one of the resolution to solve such a problem. But, we'd like to solve this problem by configuration (persistence.xml etc.). There is nothing in the documentation, neither I found anything by googling it.
Please let me know if you would require more details to answer this question.
Good Day!

First are you using JPA and a persistence.xml with TopLink (TopLink Essentials was the JPA provider I believe) or are you using native TopLink with a sesssions.xml?  WIthout entity changes to support lazy relationships (such as weaving if using JPA) lazy relationships will only work for collection mappings - but these are already set to default to lazy,  If it is JPA, you can configure your entity mappings to be Lazy through annotations or an orm.xml file and let weaving work on your entities, while if using Sessions.xml, you need to make changes to the entities themselves to support lazy relationships as well as set the mappings to be lazy.  This is called indirection in TopLink, and is described here: Understanding Relationship Mappings
If you are using JPA and a persistence.xml, the migration to EclipseLink should be fairly easy.  See https://wiki.eclipse.org/EclipseLink/Examples/JPA/Migration/TopLinkEssentials for details
Otherwise it may require package renaming and ensuring that the project was not using deprecated classes, but still should not be too complex.  Migrating from Native TopLink | EclipseLink 2.4.x Understanding EclipseLink has instructions and details.
If this is not enough to go on, please give more details on what you have. 
Best Regards,
Chris

Similar Messages

  • Exception [TOPLINK-46] (OracleAS TopLink - 10g (9.0.4) (Build 031126))

    Hi,
    I am using TopLink for simple Department-Employee relation, i have my project xml configured, But i am facing the problem with following exception
    Descriptor Exceptions:
    Exception [TOPLINK-46] (OracleAS TopLink - 10g (9.0.4) (Build 031126)): oracle.toplink.exceptions.DescriptorException
    Exception Description: There should be one non-read-only mapping defined for the primary key field [emp.empno].
    Descriptor: Descriptor(com.oracle.mssql.emp.toplink.EmpTopLinkBean --> [DatabaseTable(emp)])
    Runtime Exceptions:
    What could be the reason?
    Thanks
    Madhu

    My best guess would be that you have a 1:1 mapping from Employee to Department. This mapping represents part of the primary key.
    Make sure that your 1:1 mapping is not configured as read-only. Another issue is that you may have set the relationship as target foreign key. This has the same effect as read-only and is not applicable in the 1:1 returning from a 1:M.
    Doug

  • Toplink 9045 Migration Issue

    Hi,
    I am currently migrating my application from WLS7.0 and Toplink903 to WLS8.1sp3 and Toplink9045.
    I am getting the folowing error when i am trying to generate EAR file using weblogic.ejbc
    [java] Local Exception Stack:
    [java] Exception [TOPLINK-14025] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.ejb.De
    ploymentException
    [java] Exception Description: An error occurred while getting mapping during the code generation : [Excep
    tion [TOPLINK-178] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.DescriptorExce
    ption
    [java] Exception Description: Cannot find mapping for attribute [trade] in entity bean [com.fanniemae.mf.
    jj.persistence.closedTrade.ClosedTradeBean]. The attribute must mapped.]
    [java] Internal Exception: Exception [TOPLINK-178] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): ora
    cle.toplink.exceptions.DescriptorException
    [java] Exception Description: Cannot find mapping for attribute [trade] in entity bean [com.fanniemae.mf.
    jj.persistence.closedTrade.ClosedTradeBean]. The attribute must mapped.
    [java] at oracle.toplink.ejb.DeploymentException.errorGetMappingFromAttribute(DeploymentException.jav
    a:91)
    [java] at oracle.toplink.internal.ejb.cmp.codegen.CmpCodeGenPlatform.getMappingFromAttributeName(CmpC
    odeGenPlatform.java:553)
    [java] at oracle.toplink.internal.ejb.cmp.codegen.CmpCodeGenPlatform.getIndirectionPolicy(CmpCodeGenP
    latform.java:579)
    [java] at oracle.toplink.internal.ejb.cmp.codegen.CmpCodeGenPlatform.createGetMethod(CmpCodeGenPlatfo
    rm.java:320)
    [java] at oracle.toplink.internal.ejb.cmp.codegen.CmpCodeGenPlatform.addContainerManagedAttributesAnd
    Methods(CmpCodeGenPlatform.java:140)
    [java] at oracle.toplink.internal.ejb.cmp.codegen.CmpCodeGenPlatform.generateConcreteClass(CmpCodeGen
    Platform.java:454)
    [java] at oracle.toplink.internal.ejb.cmp.codegen.ConcreteClassGenerator.generateConcreteClass(Concre
    teClassGenerator.java:26)
    [java] at oracle.toplink.internal.ejb.cmp.wls.WlsCMPCodeGenerator.codeGenSubclass(WlsCMPCodeGenerator
    .java:56)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:648)
    [java] at weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:587)
    [java] at weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:519)
    [java] at weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:336)
    [java] at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:238)
    [java] at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:197)
    [java] at weblogic.ejb20.ejbc.EJB20CMPCompiler.generatePersistenceSources(EJB20CMPCompiler.java:88)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:245)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:397)
    [java] at weblogic.ejbc20.runBody(ejbc20.java:517)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:146)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:103)
    [java] at weblogic.ejbc.main(ejbc.java:29)
    I am using all the latest jar's and did't understand why i am getting this error. If any one had got the same type of errors please let me know how to solve this issue.
    Thank you.

    First are you using JPA and a persistence.xml with TopLink (TopLink Essentials was the JPA provider I believe) or are you using native TopLink with a sesssions.xml?  WIthout entity changes to support lazy relationships (such as weaving if using JPA) lazy relationships will only work for collection mappings - but these are already set to default to lazy,  If it is JPA, you can configure your entity mappings to be Lazy through annotations or an orm.xml file and let weaving work on your entities, while if using Sessions.xml, you need to make changes to the entities themselves to support lazy relationships as well as set the mappings to be lazy.  This is called indirection in TopLink, and is described here: Understanding Relationship Mappings
    If you are using JPA and a persistence.xml, the migration to EclipseLink should be fairly easy.  See https://wiki.eclipse.org/EclipseLink/Examples/JPA/Migration/TopLinkEssentials for details
    Otherwise it may require package renaming and ensuring that the project was not using deprecated classes, but still should not be too complex.  Migrating from Native TopLink | EclipseLink 2.4.x Understanding EclipseLink has instructions and details.
    If this is not enough to go on, please give more details on what you have. 
    Best Regards,
    Chris

  • TopLink Proxy authentication issue

    Hello all,
    I tried to use proxy authentication for TopLink for connecting to a database via TopLink in a J2EE application deployed on an Oracle iAS 10.1.2. For doing that, I tried to follow the steps described in the TopLink documentation (http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/dblgcfg008.htm#BABDABCF) with the last scenario, "Server Session uses Proxy Connection".
    According to the previously mentioned documentation, I created a session event handler for the preLoginEvent session event, the preLogin(SessionEvent event) method that I copied below.
    The issue with this is that, when I try to run a TopLink query in a Java DAO class, I obtained some exceptions. There are two cases here:
    1-If the code preLogin(SessionEvent event) is exactly as below, it seems that the queried views/tables cannot be seen. The exception obtained is:
    Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-00942: table or view does not exist
    Error Code: 942
    Call:SELECT count(*) FROM CIFHUB.SCQA_TEMPLATE
    Query:DataReadQuery()
    at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:290)
    at oracle.toplink.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:570)
    at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:442)
    at oracle.toplink.threetier.ServerSession.executeCall(ServerSession.java:453)
    at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:117)
    at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:103)
    at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:174)
    at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeSelect(DatasourceCallQueryMechanism.java:156)
    at oracle.toplink.queryframework.DataReadQuery.executeNonCursor(DataReadQuery.java:118)
    at oracle.toplink.queryframework.DataReadQuery.executeDatabaseQuery(DataReadQuery.java:110)
    at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:603)
    at oracle.toplink.queryframework.DataReadQuery.execute(DataReadQuery.java:96)
    at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:2062)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:981)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:938)
    at oracle.toplink.publicinterface.Session.executeSelectingCall(Session.java:1027)
    at oracle.service.infra.myservlet.ACSProxyTestServlet.callTopLinkQuery3(ACSProxyTestServlet.java:138)
    at oracle.service.infra.myservlet.ACSProxyTestServlet.doGet(ACSProxyTestServlet.java:60)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.service.infra.servlets.SecurityFilter.doFilter(SecurityFilter.java:105)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    2 - If in the preLogin(SessionEvent event) code, the line login.setProperty("proxytype", Integer.toString(OracleConnection.PROXYTYPE_USER_NAME)); is uncommented, then another exception is obtained. In this case another exception is obtained: an Invalid User/Password exception is thrown. If I comment this line, the login is successfull, but I obtain the exception at section 1.
    I have to tell you in both cases the parameters of the Data source are properly set. I tested the datasource in another servlet where I created directly the connection based on the same datasource taken from the application server's JNDI.
    Do you have any hint or idea about this issue?
    Thanks a lot in advance!
    Regards,
    Marinel
    public void preLogin(SessionEvent event)
    DatabaseLogin login = event.getSession().getLogin();
    // Make sure that external connection pooling is used
    login.setUsesExternalConnectionPooling(true);
    // Custom code to get the connector
    try
    login.setConnector(new OracleJDBC10_1_0_2ProxyConnector("jdbc/acs_proxyDS"));
    } catch (Exception ex)
    ex.printStackTrace();
    // End of custom code to get connector
    // login.setProperty("proxytype", Integer.toString(OracleConnection.PROXYTYPE_USER_NAME));
    login.setProperty(OracleConnection.PROXY_USER_NAME, "[email protected]");
    login.setProperty(OracleConnection.PROXY_DISTINGUISHED_NAME, "cn=my_name,l=emea,dc=oracle,dc=com");
    String[] roles = new String[1];
    roles[0] = "Manager";
    login.setProperty(OracleConnection.PROXY_ROLES, roles);
    }

    Hi, I am also working on proxy authentication and am having the same problem as Marinel.
    If I use a normal jdbc proxy connection, I can access the table just fine, and using a direct Toplink connection works fine.However, when i try and use proxy authentication via Toplink, i do not have permissions on the table.
    From your last update,it seems that if I want to use DISTINGUISED NAME authentication, I should set "proxytype" to OracleConnection.PROXYTYPE_DISTINGUISHED_NAME, and set OracleConnection.PROXY_DISTINGUISHED_NAME to the full user distinguised name.
    I have temporarily altered my preLogin Event as below to show these two scenarios, to access the table via normal jdbc proxy connection (and this part works), and then below that I try and set up the Toplink proxy session(which fails).
    public void preLogin(SessionEvent event) {
    DatabaseLogin login = event.getSession().getLogin();
    // Make sure that external connection pooling is used
    login.setUsesExternalConnectionPooling(true);
    String urlThin =
    "<jdbc_url>";
    OracleDataSource ds;
    OracleConnection oc = null;
    try {
    // Part 1 - Setup and access the PROXYDUMMY1 table using jdbc proxy sessions
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    ds = new OracleDataSource();
    ds.setURL(urlThin);
    Properties props = new java.util.Properties();
    props.put(OracleConnection.PROXY_DISTINGUISHED_NAME,
    "cn=firstname_lastname,l=emea,dc=oracle,dc=com"); props.put("proxytype",OracleConnection.PROXYTYPE_DISTINGUISHED_NAME);
    ds.setUser("database_account");
    ds.setPassword("database_password");
    oc = (OracleConnection)ds.getConnection();
    oc.openProxySession (OracleConnection.PROXYTYPE_DISTINGUISHED_NAME, props);
    String sql= " SELECT COL1, COL2 FROM PROXYDUMMY1";
    Statement stmt = oc.createStatement();
    ResultSet rSet = stmt.executeQuery(sql);
    System.out.println("==============User requested data=================");
    while ( rSet.next() )
    System.out.println(rSet.getString(1));
    rSet.close();
    stmt.close();
    //Part 2 - set up the proxy session for use by Toplink
    login.setConnector(new OracleJDBC10_1_0_2ProxyConnector(ds));
    login.setProperties(props);
    } catch (Exception e) {
    System.out.println("Exception: ProxyConnection.getConnection: "+e.getMessage());
    e.printStackTrace();
    }

  • 10g Migration issue in forms related to graphics

    Hi..
    I am facing a 10G migration issue realted to graphics in Forms.
    A form got migrated from 6i to 10g and it has Graphics in it but it is not displaying the graphics in Runtime after
    migration.can anyone help me reagrding how to resolve this Graphics issue in 10g.
    Thanks,
    Venkat

    Graphics no longer exists in Developer Suite 10G. You have to replace the functionality , e.g. by using BI Beans. Have a look at the samples page http://www.oracle.com/technology/sample_code/products/forms/index.html

  • Setting query timeout in TopLink 10g

    The 10g version of OAAM uses TopLink 10g Release 3 (10.1.3.1.0) (Build 061004) and Oracle JDBC Driver 10.2.0.2.0. We are not using TopLink Essentials. I'm trying to make it so that our queries will timeout and throw an exception if they take too long. I have tried several things, but haven't had any luck so far. I have tried each of the following:
    * Adding <property name="javax.persistence.query.timeout" value="1"/> to the <login> element in sessions.xml.
    * Setting the query policy in my descriptors like this:
    <opm:querying xsi:type="toplink:query-policy">
    <opm:timeout>1</opm:timeout>
    </opm:querying>
    * Calling DatabaseQuery.setQueryTimeout(1).
    * Calling setProperty("javax.persistence.query.timeout") on the database login, server session, client session, and unit of work.
    In each case, I tried to update a locked table, and the application simply hung until I unlocked the table. I also tried executing select queries that take around 15 seconds to run, and those completed normally. I want to make the application throw a database exception instead. How can I make this work?
    I ran this test to eliminate the JDBC driver as a suspect:
    java.util.Properties props = new java.util.Properties();
    Class.forName("oracle.jdbc.driver.OracleDriver");
    props.setProperty("user", "teng_oaam");
    props.setProperty("password", "******");
    java.sql.Connection conn = java.sql.DriverManager.getConnection("jdbc:oracle:thin:@******:1521:brsadb", props);
    System.out.println(conn.getMetaData().getDriverName() + " " +conn.getMetaData().getDriverVersion());
    java.sql.Statement stmt = conn.createStatement();
    stmt.setQueryTimeout(1);
    System.out.println(stmt.getClass());
    System.out.println(new java.util.Date());
    try {
    // this query takes about 20 seconds to execute
    java.sql.ResultSet rs = stmt.executeQuery("select * from vcrypt_ip_location_map where from_ip_addr<=1160157297 and to_ip_addr>=1160157297");
    } catch (Exception ex) {
    ex.printStackTrace();
    System.out.println(new
    java.util.Date());
    The query fails with ORA-01013, which is what I expect to happen, so the problem is not in my JDBC driver.
    Thanks,
    Josh Davis

    public static Integer executeUpdate(TopLinkDBMgr topLinkDBMgr, BharosaDBQuery dbQuery) throws BharosaDBException {
       DataModifyQuery query = null;
       List args = Collections.EMPTY_LIST;
       long startTime = System.currentTimeMillis();
       try {
          AbstractSession session = (AbstractSession) topLinkDBMgr.beginSession(); +// creates a ClientSession and calls session.beginTransaction()+
          query = new DataModifyQuery();
          query.setCall(new SQLCall(dbQuery.getQueryString().replace(':', '#'))); +// we still have some SQL queries we haven't changed since we used Hibernate+
          Vector arguments = bindArgumentsForRawSql(dbQuery, query);
          args = arguments;
          query.setQueryTimeout(1);
          Object result = session.executeQuery(query, arguments);
          return converter.toInteger(result);
       } catch (BharosaDBException ex) {
          throw ex;
       } catch (Exception e) {
          throw BharosaDBException.createDBObjectQueryException(dbQuery.getQueryString(), e);
       } finally {
          topLinkDBMgr.endSession(); +// calls session.endTransaction() on the ClientSession+
          long time = System.currentTimeMillis() - startTime;
          Level level = getLogLevelForElapsedTime(time);
          if (logger.isEnabledFor(level)) {
             String message = buildPerformanceMessage(query, args);
             logPerformance(level, time, message);
    For my test, I lock a table in SQL*Plus, and there is a background process that uses this method to update that table. That process hangs until I release the lock in SQL*PLus.
    This is a corner case, though. Most of our updates are done with the UnitOfWork class, so I need to be able to make the queries that it generates time out also.
    Thanks,
    Josh

  • Oracle TopLink 10g Introductory Tutorial: No Table Reference available

    Hi,
    I'm trying to work through the Oracle TopLink 10g Introductory Tutorial (http://www.oracle.com/technology/products/ias/toplink/doc/10131/main/_tutorial/index.htm).
    At the point 'Map the Java Classes: Create One-to-One Mappings' (http://www.oracle.com/technology/products/ias/toplink/doc/10131/main/_tutorial/index.htm) I'm not able to select a table reference because there is no one available.
    As result i get the following message after generating 'Mapping Status Report':
    TopLink Map 'tut01Map' -> One of the packages is incomplete.
    Package example.model -> One of the descriptors in this package is incomplete.
    Descriptor Employee -> Some mappings are incomplete.
    Mapping address -> No table reference is selected.
    Mapping address -> Table reference is invalid because of the target table chosen.
    Mapping version -> Mapping references write lock field stored in cache, but is not read-only.
    Mapping phoneNumbers -> No table reference is selected.
    Mapping phoneNumbers -> Table reference is invalid because of the target table chosen.
    Descriptor PhoneNumber -> Some mappings are incomplete.
    Descriptor PhoneNumber -> The following primary key fields are unmapped: EMP_ID
    Descriptor PhoneNumber -> The following primary key fields have no writable mappings: EMP_ID
    Mapping owner -> No table reference is selected.
    Mapping owner -> Table reference is invalid because of the target table chosen.
    End TopLink Map 'tut01Map'
    Did I make a mistake or is there a wrong configuration? Please help.
    I'm using:
    JDeveloper 10.1.3.2.0
    MySQL 5.0.33 with Connector/J 5.0.5
    Windows XP
    Thanks, TGau
    Message was edited by:
    TGau
    Update

    Yes I did. But my database storage engine is set to MyISAM which don't support foreign keys. So this 'error' results from database configuration (Info: InnoDB do support foreign keys).
    I'm wondering why the queries didn't throw any errors. So the foreign key/reference part was just skipped.
    Thank you very much, rsapir.
    PS:
    How can I configure configure 'application side' references/associations? It is described in the TopLink Developers Guide on site 34-10 ... but I have no Add/New Buttons?

  • How to start Workbench (Toplink 10g)

    I am getting "Could not find the main class. Program will exit!" when I execute workbench.cmd downloaded with Toplink 10g yesterday. Please help.
    Thanks,
    Lynn

    Hello Bala,
    Are you getting "Could not find the main class. Program will exit!"? If so, this message from Javaw could be the same as
    "Exception in thread "main" java.lang.NoClassDefFoundError: oracle/toplink/workbench/ui/WorkbenchSession"
    when you use java instead. If you are using the workbench.cmd to start it, be sure to check the setenv.cmd file and verify that the ORACLE_HOME is set properly to the TopLink installation. If it is or fixing it still gives this error, check the workbench.cmd file itself to see that the -cp entries are appropriate and do include the toplinkmw and toplink jar files.
    If you are still haveing problems, change the javaw to java to get better messages, and you may need to file a support case to help go over your classpath.
    Best Regards,
    Chris

  • Error running weblogic.ejbc with Toplink 10G

    Hi.
    I'm making some tests in order to move to Weblogic 8.1 and Toplink 10g in the near future, but I'm having some problems with my tests:
    I have built a simple entity bean based on the AccountBean used in the singlebean example from Oracle and I'm seeing this error:
    java.lang.RuntimeException: Exception [EJB - 10036]: Error during code generation: [Exception [TOPLINK-14016] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.ejb.DeploymentException
    Exception Description: An error occurred while setting up the project: [Exception [TOPLINK-43] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: Missing class for indicator field value [toplink:ejbql-call] of type [class java.lang.String].
    Descriptor: XMLDescriptor(oracle.toplink.queryframework.Call --> [DatabaseTable(call)])]
    Internal Exception: Exception [TOPLINK-43] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: Missing class for indicator field value [toplink:ejbql-call] of type [class java.lang.String].
    Descriptor: XMLDescriptor(oracle.toplink.queryframework.Call --> [DatabaseTable(call)])]
    server stacktrace is:
    Local Exception Stack:
    Exception [TOPLINK-14016] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.ejb.DeploymentException
    Exception Description: An error occurred while setting up the project: [Exception [TOPLINK-43] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: Missing class for indicator field value [toplink:ejbql-call] of type [class java.lang.String].
    Descriptor: XMLDescriptor(oracle.toplink.queryframework.Call --> [DatabaseTable(call)])]
    Internal Exception: Exception [TOPLINK-43] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: Missing class for indicator field value [toplink:ejbql-call] of type [class java.lang.String].
    Descriptor: XMLDescriptor(oracle.toplink.queryframework.Call --> [DatabaseTable(call)])
    at oracle.toplink.ejb.DeploymentException.errorCreatingProject(DeploymentException.java:111)
    at oracle.toplink.internal.ejb.cmp.CmpProjectReader.readProject(CmpProjectReader.java:76)
    at oracle.toplink.internal.ejb.cmp.ProjectDeployment.readProject(ProjectDeployment.java:219)
    at oracle.toplink.internal.ejb.cmp.ProjectDeployment.getProject(ProjectDeployment.java:208)
    at oracle.toplink.internal.ejb.cmp.PersistenceManagerBase.generateBeanSubclass(PersistenceManagerBase.java:176)
    at oracle.toplink.internal.ejb.cmp.wls.WlsCMPCodeGenerator.codeGenSubclass(WlsCMPCodeGenerator.java:51)
    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 weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:648)
    at weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:587)
    at weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:519)
    at weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:336)
    at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:238)
    at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:197)
    at weblogic.ejb20.ejbc.EJB20CMPCompiler.generatePersistenceSources(EJB20CMPCompiler.java:88)
    at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:245)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:397)
    at weblogic.ejbc20.runBody(ejbc20.java:519)
    at weblogic.utils.compiler.Tool.run(Tool.java:146)
    at weblogic.utils.compiler.Tool.run(Tool.java:103)
    at weblogic.ejbc.main(ejbc.java:29)
    This is the part of the XML that I think causes the problem:
    <opm:query name="findMessageByMessageKey" xsi:type="toplink:read-object-query">
    <opm:arguments>
    <opm:argument name="1">
    <opm:type>java.lang.Integer</opm:type>
    </opm:argument>
    <opm:argument name="2">
    <opm:type>java.lang.Integer</opm:type>
    </opm:argument>
    </opm:arguments>
    <toplink:bind-all-parameters>false</toplink:bind-all-parameters>
    <toplink:cache-statement>false</toplink:cache-statement>
    <toplink:call xsi:type="toplink:ejbql-call">
    <toplink:ejbql>SELECT OBJECT(menssage) FROM MessageBean message WHERE menssage.codMessage = ?1 AND mensaje.codIdiom = ?2</toplink:ejbql>
    </toplink:call>
    <toplink:reference-class>test.data.MessgeBean</toplink:reference-class>
    <toplink:cache-usage>conform</toplink:cache-usage>
    </opm:query>
    Of course I don't see any problem with it.
    After that I tried to run the examples but I'm seing the same error.
    I must say that I'm not using the ANT scripts but doing it "by hand" building classes and making the naked jar for the bean in order to run ejbc on it, I'm pretty confident I am not missing anything.
    I would like to know where the "ejbql-call" definition is as I have tried to find it with a grep in all the Toplink structure tree with no success. It is not clear to me how the xsd processor would find it's definition with just the: xmlns:toplink="http://xmlns.oracle.com/ias/xsds/toplink" instruction present in the header of my Message.xml file (modified based on the Account.xml of the examples).
    I'm using Sun's JDK 1.4.2 and my $CLASSPATH is:
    /opt/oracle/toplink10g/toplink/jlib/toplink.jar:/opt/oracle/toplink10g/lib/xmlparserv2.jar:/opt/oracle/toplink10g/jdbc/lib/classes12.zip:/opt/bea/wlserver8.1sp1/weblogic8.1/server/lib/weblogic.jar
    Any idea?
    Thanks in advance.
    Ignacio.

    Hi.
    Thanks I tried it and I don't get no more that message. Instead I get this stack trace:
    java.lang.RuntimeException: Exception [EJB - 10036]: Error during code generation: [Exception [TOPLINK-14016] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.ejb.DeploymentException
    Exception Description: An error occurred while setting up the project: [Exception [TOPLINK-106] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The method [setAllQueries] on the object is throwing an exception.
    Argument: [[ReadObjectQuery(test.datos.MensajeBean), ReadObjectQuery(test.datos.MensajeBean)]]
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.NullPointerException
    Mapping: oracle.toplink.ox.CompositeCollectionMapping[queries]
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.DescriptorQueryManager --> [DatabaseTable(query-policy)])]
    Internal Exception: Exception [TOPLINK-106] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The method [setAllQueries] on the object is throwing an exception.
    Argument: [[ReadObjectQuery(test.datos.MensajeBean), ReadObjectQuery(test.datos.MensajeBean)]]
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.NullPointerException
    Mapping: oracle.toplink.ox.CompositeCollectionMapping[queries]
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.DescriptorQueryManager --> [DatabaseTable(query-policy)])]
    server stacktrace is:
    Local Exception Stack:
    Exception [TOPLINK-14016] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.ejb.DeploymentException
    Exception Description: An error occurred while setting up the project: [Exception [TOPLINK-106] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The method [setAllQueries] on the object is throwing an exception.
    Argument: [[ReadObjectQuery(test.datos.MensajeBean), ReadObjectQuery(test.datos.MensajeBean)]]
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.NullPointerException
    Mapping: oracle.toplink.ox.CompositeCollectionMapping[queries]
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.DescriptorQueryManager --> [DatabaseTable(query-policy)])]
    Internal Exception: Exception [TOPLINK-106] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The method [setAllQueries] on the object is throwing an exception.
    Argument: [[ReadObjectQuery(test.datos.MensajeBean), ReadObjectQuery(test.datos.MensajeBean)]]
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.NullPointerException
    Mapping: oracle.toplink.ox.CompositeCollectionMapping[queries]
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.DescriptorQueryManager --> [DatabaseTable(query-policy)])
    at oracle.toplink.ejb.DeploymentException.errorCreatingProject(DeploymentException.java:111)
    at oracle.toplink.internal.ejb.cmp.CmpProjectReader.readProject(CmpProjectReader.java:76)
    at oracle.toplink.internal.ejb.cmp.ProjectDeployment.readProject(ProjectDeployment.java:219)
    at oracle.toplink.internal.ejb.cmp.ProjectDeployment.getProject(ProjectDeployment.java:208)
    at oracle.toplink.internal.ejb.cmp.PersistenceManagerBase.generateBeanSubclass(PersistenceManagerBase.java:176)
    at oracle.toplink.internal.ejb.cmp.wls.WlsCMPCodeGenerator.codeGenSubclass(WlsCMPCodeGenerator.java:51)
    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 weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:648)
    at weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:587)
    at weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:519)
    at weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:336)
    at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:238)
    at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:197)
    at weblogic.ejb20.ejbc.EJB20CMPCompiler.generatePersistenceSources(EJB20CMPCompiler.java:88)
    at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:245)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:397)
    at weblogic.ejbc20.runBody(ejbc20.java:519)
    at weblogic.utils.compiler.Tool.run(Tool.java:146)
    at weblogic.utils.compiler.Tool.run(Tool.java:103)
    at weblogic.ejbc.main(ejbc.java:29)
    What I don't understand is: if examples include that toplink:ejbql-call it should be declared into the xsd isn't it? It will be included in the future (final) release then?
    Thanks again.
    Ignacio.

  • Possible Cascade Issue on 11.1.1.3?

    I searched all forums for possible Cascade issues on the add-in and am not finding out anything. We're also up-to date with on the Essbase patches (server and client).
    The issue arises when trying to cascade, a spreadsheet is generated but is empty. Likewise, if I select 'One Workbook, Separate sheets', the same thing happens.
    We're on office 2007.
    many thanks,
    cg

    Hi Siva,
    I think that these are questions that you should ask on the Infrastructure space since the guys there have way much more knowledge on installations. Additionally, I would suggest to discuss these questions with a consultant who is going to have broader understanding of your requirements.
    Regarding question number 1, generally speaking version 11.1.2.3 is considered to be an improved and more stable version of 11.2.2.2.
    Regarding question number 3, you need to provide more details like number of users per tool, number of concurrent users, volume of data per tool, requirements for High Availability or Disaster recovery etc…
    Regards,
    Thanos

  • Toplink descriptor migration issues in JDeveloper 10.1.3.5 - 11

    I'm having several projects developed with TL as a PM in JDeveloper 10.1.3.5. Descriptors and toplink-ejb.jar file are parsed correctly, but when I migrate projects to 11G Toplink parsing breaks and it is not able to display EJBs with the following error:
    Local Exception Stack:
    Exception [TOPLINK-6044] (Oracle TopLink - 11g Release 1 (11.1.1.5.0) (Build 110305)): oracle.toplink.exceptions.QueryException
    Exception Description: The primary key read from the row [DatabaseRecord()] during the execution of the query was detected to be null. Primary keys must not contain null.
    Query: ReadAllQuery(oracle.toplink.workbench.mappingsmodel.database.MWLegacyTable)
         at oracle.toplink.exceptions.QueryException.nullPrimaryKeyInBuildingObject(QueryException.java:837)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:418)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildObjectsInto(ObjectBuilder.java:748)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.buildObjectsFromRows(DatabaseQueryMechanism.java:170)
         at oracle.toplink.queryframework.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:477)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:874)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:679)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:835)
         at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:445)
         at oracle.toplink.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:2265)
         at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1079)
         at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1063)
         at oracle.toplink.internal.indirection.NoIndirectionPolicy.valueFromQuery(NoIndirectionPolicy.java:264)
         at oracle.toplink.mappings.ForeignReferenceMapping.valueFromRowInternal(ForeignReferenceMapping.java:1377)
         at oracle.toplink.mappings.ForeignReferenceMapping.valueFromRow(ForeignReferenceMapping.java:1306)
         at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1117)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:279)
         at oracle.toplink.sdk.SDKAggregateObjectMapping.buildCompositeObject(SDKAggregateObjectMapping.java:58)
         at oracle.toplink.mappings.foundation.AbstractCompositeObjectMapping.valueFromRow(AbstractCompositeObjectMapping.java:231)
         at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1117)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:279)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:584)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:441)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:391)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:511)
         at oracle.toplink.queryframework.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:433)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:874)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:679)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:835)
         at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:397)
         at oracle.toplink.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:2265)
         at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1079)
         at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1063)
         at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1022)
         at oracle.toplink.internal.sessions.AbstractSession.readObject(AbstractSession.java:2827)
         at oracle.toplink.workbench.mappingsio.legacy.PersistenceTools50.readMWProjectNamed(PersistenceTools50.java:331)
         at oracle.toplink.workbench.mappingsio.legacy.LegacyIOFacade.read50Project(LegacyIOFacade.java:29)
         at oracle.toplink.workbench.mappingsio.ProjectReader.readLegacyProject(ProjectReader.java:296)
         at oracle.toplink.workbench.mappingsio.ProjectReader.read(ProjectReader.java:110)
         at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOManager.java:64)
         at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOManager.java:60)
         at oracle.toplink.workbench.addin.application.ProjectContext.buildProject(ProjectContext.java:160)
         at oracle.toplink.workbench.addin.application.ProjectContext.initialize(ProjectContext.java:440)
         at oracle.toplink.workbench.addin.application.ProjectContext.<init>(ProjectContext.java:106)
         at oracle.toplink.workbench.addin.application.ContextManager.openProject(ContextManager.java:1169)
         at oracle.toplink.workbench.addin.application.ContextManager.openTopLinkMap(ContextManager.java:1218)
         at oracle.toplink.workbench.addin.application.ContextManager.loadProjectContext(ContextManager.java:1068)
         at oracle.toplink.workbench.addin.application.ContextManager.getContext(ContextManager.java:657)
         at oracle.toplink.workbench.addin.ui.view.TopLinkContextViewContextBuilder.topLinkContext(TopLinkContextViewContextBuilder.java:202)
         at oracle.toplink.workbench.addin.ui.view.TopLinkContextViewContextBuilder.openDocument(TopLinkContextViewContextBuilder.java:187)
         at oracle.toplink.workbench.addin.ui.view.ViewContextManager$OpenDocument.run(ViewContextManager.java:1081)
    There was a similar thread here :
    Re: Errors migrating from jDev 10.1.3.4 to jDev 11.2.1
    I did try to migrate to 11.1.1.4.0 and 11.1.1.5.0 - still no luck. All offline databases are present and correctly "connect" to corresponding EJBs in 10.1.3.5.
    Neither I cant find migration matrix/docs that were referred in similar threads. If this is not resolved, we can not chose Jdeveloper as a future IDE at the company...
    Thank you!
    V.

    Hi,
    the web appears to be full of such error messages and some point to the use of named native query vs. named query. So here are some options for you to try
    1. Create a test project in 11g using the same tables and compare the generated code with yours to see a difference
    2. Get a 10.1.3.5 project that you haven't migrated and pass it on to customer support for them to have a try on this.
    +"If this is not resolved, we can not chose Jdeveloper as a future IDE at the company..."+ Actually it doesn't appear to be a JDeveloper issue but a TopLink / EclipseLink issue. Abandoning JDeveloper is like shooting the messenger. Just so you know.
    Frank

  • Forms 10g Installation issue on windows 7 Professional service pack 1

    hi
    I am trying to install oracle forms 10g  64 bit windows 7 Professional service pack 1 ..
    Below are 2 files that i am using ..
    ds_windows_x86_101202_disk1.zip (626,122,752 bytes)
    ds_windows_x86_101202_disk2.zip (236,880,881 bytes)
    But it failed but the error is .. 
    Checking operating system version: must be 4.0, 5.0, 5.1 or 5.2.    Actual 6.1     Failed <<<<
    just wondering if there are any workaround ..

    Christian is right - Forms 10g R2 (version 10.1.2.0.2) is not certified for installation on Windows 7.  You must apply a Forms 10g R2 patch to bring the version to 10.1.2.3.0 for it to be certified.  You must have a My Oracle Support account to obtain the patch.
    Now, to your question - is there a workaround; the answer is yes.  There are known issues with this installer.  I'll list them and their workaround.
    1.  The Oracle installer checks for a specific set of Windows versions rather than check for a minimum Windows version.
    Workaround:  Right-click the Installer and select Properties.  Click the Compatibility tab and click the checkbox: Run this program in compatibility mode for:  Windows XP SP3).
    2.  The Oracle Installer can't detect Windows Managed Virtual Memory (VM).
    Workaround:  You must temporarily change the Virtual Memory settings and specify specific Initial and Maximum sizes.  See this Microsoft article for more information on changing VM settings.  http://windows.microsoft.com/en-us/windows-vista/change-the-size-of-virtual-memory
    This change will require you to restart your computer.  After you have successfully installed Oracle Forms 10g, you can restore the original VM settings.
    3.  The Oracle installer MUST be installed as an "Administrator". 
    Workaround:  Windows 7 uses "Least privileged user" so you must right-click the Installer and select the Compatibility tab.  Click the "Run this program as an administrator" checkbox.
    4.  Not a Oracle installer issue, but you will have to install the 32-bit version of the Oracle Java Runtime Environment (JRE) (1.6.0 - not 1.7.0) because Oracle Forms is a 32-bit application so it will not be able to use the 64-bit JRE.
    Run the Oracle installer and it should now install succesfully.
    Craig...

  • Oracle 10g Installation issue on Windows 7

    Hi,
    I tried to install Oracle 10g downloaded from the below link on my laptop which runs in Windows 7.
    http://www.oracle.com/technetwork/database/10204-winx64-vista-win2k8-082253.html
    The Oracle version is 10g release 2 for windows 7. I got this DB version no. for Windows 7 from this forum only. But still, I got the error message stated below and unable to install 10g.
    ------------------------------------------------------ Error --------------------------------------------------------------------------
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be 5.0, 5.1, 5.2 or 6.0 . Actual 6.1
    Failed <<<<
    Exiting Oracle Universal Installer, log for this session can be found at C:\Program Files (x86)\Oracle\Inventory\logs\installActions2010-10-22_07-37-48AM.log
    Please press Enter to exit...
    ------------------------------------------------------ Error End -------------------------------------------------------------------
    Could you please let me know how I can fix this issue? Or is there any other oracle 10g release/patch to fix this issue? I need to install only Oracle 10g and not 11g.
    Also, I need to install Oracle Forms 10g too.
    It would be great if you could guide me on installing these two softwares in my laptop.
    Your help will be very much appreciated.
    Thanks,
    Arun
    Edited by: 804404 on Oct 22, 2010 7:52 AM

    Welcome to the forums !
    This issue has been discussed many times before. Pl use the search feature. The only versions supported in Win 7 (Professional or higher) are 10.2.0.5 and 11gR2. 10.2.0.5 is only available on My Oracle Support, while 11gR2 can be downloaded for free from http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
    Re: Oracle for Windows 7
    Re: which version of oracle works on windows 7
    HTH
    Srini

  • 10g Reports issue with XML Data Source

    Hi,
    Has anybody ever encountered an issue with Oracle 10g report using an XML as the data source? What happens is, some of the values in the XML are printed to the wrong column.
    One of the elements in our XML file is a complex type with 10 elements under it. The first 5 are picked up properly, but the last 6 are not. Elements #6 to #9 has a minimum occurence of 0. What happens is when element #6 is present, but #7 is, the value for element #7 is passed on to element #6.
    The XSD and XSL files are both valid since the reports were working when we were still using 9i. There is no hidden logic in the report which might cause this issue to come up, i.e., the report just picks up the values from the XML and prints it to the appropriate columns.
    Any help will be greatly appreciated.

    XSD used
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
            <!-- trade instructions detail & trailer -->
            <xs:element name="TradeDetail">
                    <xs:complexType>
                            <xs:sequence>
                                    <xs:element ref="TradeType"/>
                                    <xs:element ref="TradeID"/>
                                    <xs:element ref="TradeDate"/>
                                    <xs:element ref="FundID"/>
                                    <xs:element ref="FundName"/>
                                    <xs:element ref="DollarValue" minOccurs="0"/>
                                    <xs:element ref="UnitValue" minOccurs="0"/>
                                    <xs:element ref="PercentageValue" minOccurs="0"/>
                                    <xs:element ref="OriginalTradeID" minOccurs="0"/>
                                    <xs:element ref="CancellationFlag"/>
                            </xs:sequence>
                    </xs:complexType>
            </xs:element>
            <xs:element name="Instruction">
                    <xs:complexType>
                            <xs:sequence minOccurs="0">
                                    <xs:element ref="TradeDetail" maxOccurs="unbounded"/>
                            </xs:sequence>
                    </xs:complexType>
            </xs:element>
            <!-- overall trade instruction message -->
            <xs:element name="InterchangeHeader">
                    <xs:complexType>
                            <xs:sequence>
                                    <xs:element ref="Instruction"/>
                            </xs:sequence>
                    </xs:complexType>
            </xs:element>
            <!-- definition of simple elements -->
            <xs:element name="FundID" type="xs:string"/>
            <xs:element name="TradeType" type="xs:string"/>
            <xs:element name="TradeID" type="xs:string"/>
            <xs:element name="TradeDate" type="xs:string"/>
            <xs:element name="FundName" type="xs:string"/>
            <xs:element name="DollarValue" type="xs:decimal"/>
            <xs:element name="UnitValue" type="xs:decimal"/>
            <xs:element name="PercentageValue" type="xs:decimal"/>
            <xs:element name="OriginalTradeID" type="xs:string"/>
            <xs:element name="CancellationFlag" type="xs:string"/>
    </xs:schema>
    XML used
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <InterchangeHeader xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="TradeInstruction.xsd">
       <Instruction>
          <TradeDetail>
             <TradeType>Purchase</TradeType>
             <TradeID>M000038290</TradeID>
             <TradeDate>20061201</TradeDate>
             <FundID>ARO0011AU</FundID>
             <FundName>ABN Fund</FundName>
             <DollarValue>2111.53</DollarValue>
             <CancellationFlag>N</CancellationFlag>
          </TradeDetail>
          <TradeDetail>
             <TradeType>Redemption</TradeType>
             <TradeID>M000038292</TradeID>
             <TradeDate>20061201</TradeDate>
             <FundID>ARO0011AU</FundID>
             <FundName>AMRO Equity Fund</FundName>
             <UnitValue>104881.270200</UnitValue>
             <CancellationFlag>N</CancellationFlag>
          </TradeDetail>
          <TradeDetail>
             <TradeType>ISPurchase</TradeType>
             <TradeID>M000038312</TradeID>
             <TradeDate>20061201</TradeDate>
             <FundID>MLC0011AU</FundID>
             <FundName>Cash Fund</FundName>
             <OriginalTradeID>M000038311</OriginalTradeID>
             <CancellationFlag>N</CancellationFlag>
          </TradeDetail>
       </Instruction>
    </InterchangeHeader>
    XSLT used
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
            <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
            <xsl:template match="/">
                    <InterchangeHeader>
                            <xsl:for-each select="InterchangeHeader/Instruction/TradeDetail">
                            <xsl:sort select="FundName"/>
                            <xsl:sort select="TradeDate"/>
                                    <TradeDetail>
                                            <TradeType><xsl:value-of select="TradeType"/></TradeType>
                                            <TradeID><xsl:value-of select="TradeID"/></TradeID>
                                            <TradeDate><xsl:value-of select="TradeDate"/></TradeDate>
                                            <FundID><xsl:value-of select="FundID"/></FundID>
                                            <FundName><xsl:value-of select="FundName"/></FundName>
                                            <DollarValue><xsl:value-of select="DollarValue"/></DollarValue>
                                            <UnitValue><xsl:value-of select="UnitValue"/></UnitValue>
                                            <PercentageValue><xsl:value-of select="PercentageValue"/></PercentageValue>
                                            <OriginalTradeID><xsl:value-of select="OriginalTradeID"/></OriginalTradeID>
                                            <CancellationFlag><xsl:value-of select="CancellationFlag"/></CancellationFlag>
                                    </TradeDetail>
                            </xsl:for-each>
                    </InterchangeHeader>
            </xsl:template>
    </xsl:stylesheet>

  • Symantec & Oracle 10g Compatibility issues

    Hi all,
    Recently i had virus attack on two of my database servers running oracle 10g. one is running on xp and the other on server 2003 r2.
    i cleaned the viruses applied windows patches and then installed symantec endpoint protection 11.
    after installing this teh system started crashing givin bsd.
    in the xp machine i did a bit of r&d and found out that there was a problem with oracle and symantec together.
    then i unsinstalled symantec made everything ok with the db and stopped db services and installed symantec back
    this worked and sytem was up and running again
    but the problem still continues with the windows server 2003
    as soon as i uninstalled oracle the system crashed and now its not starting.
    are there any compatibility issues between symantec and oracle 10g?
    or something should be taken care on the oracle server before installing symantec?
    Any suggestions or experience would really help.
    Regards
    Deepak

    Hi,
    I guess the problem is with Symantic and the Virus .
    As I know there is no direct ill-impact upon Oracle and Symantic together.
    There might be another cause... So some more R&D :)
    Edited by: The Human Fly on Jan 25, 2010 1:12 AM

Maybe you are looking for