Problem with toplink in jdev 10.1.3.1.0

I was use toplink 10.1.3, and used aggregate mapping and every thing is ok! but when I migrate to jdeveloper 10.1.3.1.0 I have a problem with aggregate mapping, I got this error
Error: TopLink deployment descriptor generation failed for IndicadoresMap. Please verify that reported problems are corrected and that the deployment descriptor path and name are valid.
I tried change the toplink library in jdeveloper, but nothing change. please help me, because I need user Jdeveloper 10.1.3.1.0. it's very fast than Jdeveloper 10.1.3. thanks for some help
Best Regards.
Vander Litaiff

Vander,
Please open a support request if you can. It will allow us to track this important issue better and provide us a channel in case we need to see you JDev files.
Doug

Similar Messages

  • Standalone Memory problem with toplink

    Hi I am using standalone OC4J with toplink, this is a client sever application
    It has been observer that if a single user uses this application then there is no problem but if multiple users are use this application then server does not respond to clients requests
    Please suggest what can be the root cause of this problem?

    and what is 2463 is line : USER(user ID) 001(Client) 2463(??) Session Memory 1,955,757 938,597 7,574 723 as this is not a work process ID.]
    Basically i am trying to correlate ITS session with SM04 Session of user.

  • Problems with toplink in a ROLAP application - please , I need help

    Hello,
    I am not too much experieced with toplink but I want use it for building a ROLAP (relational OLAP) client (something like Discoverer Plus) . Because of an database bug , Oracle Warehouse Builder can not generate materialized views creation scripts that help in agregation . This bug wiil be eliminated in 11gR2 database . OWB generate these materialized views creation scripts in a clob column of database but these scripts is not valid. These scripts can be extracts from database , corect and run .
    This ROLAP-enabled schema is a star schema (a fact table in center sourounded by dimensions tables , with FK in these tables) generated by OWB . It does not have a PK associated with fact table.
    Because of this fact , when I try to generate a status report of map associttiaded with tables from schema , I receive this
         Descriptor SalesCube -> No primary keys specified in SSB.SALES_CUBE table.
    Discoverer Plus does not complain about this PK missing, but it knows fact tables does not have PK .
    Please give an ideea,
    TIA.
    Aurel

    I am using jdeveloper 10.1.3.1 and I get the following error :
    Exception [TOPLINK-6044] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.QueryException Exception Description: The primary key read from the row [DatabaseRecord( ORG_DIM_V.FARMACIE_NUME_FARMACIE => Titan 1 => 357142.3)] during the execution of the query was detected to be null. Primary keys must not contain null. Query: ReadAllQuery(app5.model.OrgDimV); nested exception is: Exception [TOPLINK-6044] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.QueryException Exception Description: The primary key read from the row [DatabaseRecord( ORG_DIM_V.FARMACIE_NUME_FARMACIE => Titan 1 => 357142.3)] during the execution of the query was detected to be null. Primary keys must not contain null. Query: ReadAllQuery(app5.model.OrgDimV)
    and ,of course, I have a primary key , but on the column ORG_DIM_V.DIMENSION_KEY .
    ORG_DIM_V is o view on the table ORG_DIM and I build PK with this two statements:
    ALTER VIEW SSB.ORG_DIM_V ADD CONSTRAINT org_dim_v_pk PRIMARY KEY (DIMENSION_KEY) disable novalidate
    ALTER VIEW SSB.ORG_DIM_V MODIFY CONSTRAINT org_dim_v_pk RELY
    What's happining?
    Many thanks,
    Aurel

  • My problem with Toplink upgrade from 2.5.1 to Release 2

    Hi:
    I met some confusions in upgrading our system from TOPLINK2.5.1 to TOPLINK Release 2(Oracle9.0.3).
    And because I didn't use TOPLINK tools before this project, I spent one week to know the structure of our system. Unfortunately, Our company isn't a supported Oracle customer. We just bought Oracle product, didn't buy support service.
    First of all, I'll describ our system structure. The system is Weblogic5.1 + Toplink 2.5.1 + Oracle8.1 .Using Toplink we mapping our EJB to Oracle. The results of this procedure aremany .table, .descriptor, .topclass under the mapping forlder, and weblogic-ejb-jar.xml, topling-cmp-XX.xml, ejb-jar.xml under the deploy forlder. That's all.
    So, after our ant-build, we copy these results to Weblogic server directory, and compile with EJB, deploy them. It's correct?
    OK, as my considering, I install TOPLINK Release 2 , use Renamer tool to rename my source code from old TOPLINK library to oracle.toplink, complie them again. And create new project in TOPLINK 9.0.3 , import classes, login Database correctly. Do mapping as in TOPLINK2.5.1. Generate packagename.ClassDescriptor.xml under Descriptor, forlder ClassRepository, Class, Table, Database generate xml files also.
    Do the above process correct? OK, let's assume it' correct. But how can I modify my ant-build , you know the structure is difference between Weblogic 5.1 and Weblogic 6 or 7. Additionally, I don't know where should I copy new TOPLINK library to Weblogic directory. Yes, I know old TOPLINK library location, but I think it has difference.
    So , please tell me I can use Weblogic5.1 + TOPLINK 9.0.3 + Oracle 8.1 , is it right? I will be appreciated if you can give me some detail steps in upgrading TOPLINK.
    And perhaps we need to upgrade out system from TOPLINK 2.5.1 to TOPLINK 4.x first?
    Thanks for your view.
    Yours
    Denver Yang
    Software Engineer

    Hello Denver,
    If you are using CMP Entity Beans then TopLink 903 supports WebLogic 6.1 and 7.0. You would have to upgrade your WebLogic version at the same time you upgrade TopLink.
    If you are using Java Objects (not CMP Entity Beans), then you can use any version of any app server with TopLink.
    If you migrate from 2.5.1 to 903, you can send your project to support and they will update it. If you are not a supported customer, then you will have to do this manually (meaning you will have to remap in 903 from brand new).
    You are correct that your build process will be different when you migrate, but this will be because of how WebLogic has changed deployment and how the EJB spec has evolved moreso than anything to do with TopLink. How to do deployment in 903 should be in the TopLink 903 docs.
    Hope this helps,
    - Don

  • Problems with Toplink Essentials on OracleAS 10.1.3.1 / OC4J 10.1.3.2

    Hi, all.
    I successfully installed OracleAS 10.1.3.0 and applied patch 5906151 to update do OAS 10.1.3.1 and OC4J 10.1.3.2, running on both Windows and AIX.
    I deployed a j2ee app (ejb-jar and ear/war separatelly) on both. My application runs very well on Windows platform, but fails on AIX.
    In order to get my app running with EJB 3.0, JPA and Toplink, I had to copy toplink-essentials.jar to $ORACLE_HOME/j2ee/home/applib/ directory.
    On AIX I was getting the following error:
    exception occurred during method invocation: javax.ejb.EJBException:
       java.lang.RuntimeException: javax.ejb.EJBException: oracle.toplink.essentials.exceptions.ValidationException
              Exception Description: Error encountered when building the @NamedQuery [MyClass.findAll]
                 from entity class [class oracle.toplink.essentials.internal.ejb.cmp3.metadata.queries.MetadataNamedQuery].
             Internal Exception: java.lang.IllegalStateException: ClassLoader "myApp.root:0.0.1"
               (from  in /oracle/product/10.1.3.0/j2ee/OC4J_1/applications/myApp/):
      This loader has been closed and should not be in use.;
    But I found a known issue on Metalink [Note:427650.1] (bug 5928776) - https://metalink.oracle.com/metalink/plsql/f?p=130:14:11405609768040641618::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,427650.1,1,1,1,helvetica
    I replaced the toplink-essentials.jar and toplink-essentials-agent.jar as stated on the metalink for the version build 41, and tested. And later for the latest build 58.
    But I am getting another error message:
    Exception [TOPLINK-46] (Oracle TopLink Essentials - 2.0 (Build b58-rc1 (08/05/2007))): oracle.toplink.essentials.exceptions.DescriptorException
    Exception Description: There should be one non-read-only mapping defined for the primary key field [MY_TABLE.MY_FIELD].
    Descriptor: RelationalDescriptor(xyz.MyClass --> [DatabaseTable(MY_TABLE)])
    Runtime Exceptions:
    ; nested exception is: javax.persistence.PersistenceException: Exception [TOPLINK-0] (Oracle TopLink Essentials - 2.0 (Build b58-rc1 (08/05/2007))): oracle.toplink.essentials.exceptions.IntegrityException
    Descriptor Exceptions:
    ---------------------------------------------------------Does anyone have any idea about this issue?

    Seems to be a bug. That was the response from Oracle support (Metalink)
    Response:
    Your issue seems to be related to bug 5594702 - Abstract: EJB30 ENTITY BEAN WITH @ID AND @COLUMN ANNOTATION FAILS TO DEPLOY ON AIX.
    There is an issue with the IBM JDK/JRE 1.5's processing of annotations.
    Links:
    http://www.theserverside.com/discussions/thread.tss?thread_id=37764
    http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?forum=367&thread=112543&cat=10
    When processing annotations it returns boolean values as false.
    Work-around:
    Fully specify the @Column annotation's boolean values. If insertable and updatable are set to false (which will happen due to this bug) then TopLink sets the PK
    mapping to read-only and the exception seen is expected.
    Note: nullable attribute of the @Colmun is not used in the EJB3/JPA preview of 10.1.3.0 If the customer MUST override the default column name then they should use:
    @Column(name="column-name", insertable=true, updatable=true)
    If they do not wish to override the default column name then simply do not use an @Column annotation.
    It can be deleted or commented out in the JDev generated code.
    There are two reported annotation processing issues with the AIX JVM. One was fixed in SR1 and the other is fixed
    in SR3 (due out Oc 11 - today). Upgrading to these more recent JVM releases may also address this issue.
    RECOMMENDED SOLUTIONS:
    1. Upgrade the IBM AIX JVM to SR3.
    OR
    2. Fix all generated @Column annotations as described above

  • How to map an large XML document to the XMLType with TopLink in JDev

    Hello!
    We need to map an XML document in the Java String to an XMLType column. If the XML document has less than 4000 characters, we have no problems by using the DirectToField mapping. However, once the XML document has more than 4000 characters, using the DirectToField mapping, we got the error: Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.BatchUpdateException: ORA-01461: can bind a LONG value only for insert into a LONG column
    Then we have tried to use the "Type Conversion" mapping, to map it to the database type (Clob or NClob --oracle.toplink.oraclespecific). we got:
    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-00932: inconsistent datatypes: expected NUMBER got CLOB
    Error Code: 932
    Any suggestions?
    Thanks in advance!

    Thanks Matt! It works fine by using DirectToXMLTypeMapping.
    However, to get it work is not smooth. In particularly, we use Jdev in our project and Jdev has not included this feature yet. Therefore, I had to use the TopLink Workbench to create the descriptor file and cut&paste to the description file that generated by JDev. And also xdb.jar has to be part of the classpath.
    Then I come to an question -- how can we take some features that only provided by the TopLink Workbench into the Jdev environment without having to hack around?
    Thanks,
    s.c.

  • Problems with migration to jdev 11 tp3 (severeExceptionThrownByContextList)

    Hello everybody,
    I'm trying to migrate an application from jdev 10.3.3.1 to jdev 11 tp3. The problem is when I try to run it (message bellow).
    The application runs normally in jdev 10 and compiles in jdev 11. I Maybe something with OC4j ?
    Any clue ?
    Regards,
    Markolla
    Target URL -- http://192.168.0.247:8988/TOPP-ERP/index.jsp
    06/03/2008 15:48:30 com.evermind.server.http.HttpMessages severeExceptionThrownByContextListener
    SEVERE: An exception was thrown by the contextInitialized method of the com.sun.faces.config.ConfigureListener class belonging to the TOPP-ERP application.
    java.lang.NullPointerException
    at com.sun.faces.config.JSFVersionTracker.publishInstanceToApplication(JSFVersionTracker.java:264)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:404)
    at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1347)
    at com.evermind.server.http.HttpApplication.init(HttpApplication.java:873)
    at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:699)
    at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:502)
    at com.evermind.server.Application.getHttpApplication(Application.java:778)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.doCreateHttpApplicationFromReference(HttpSite.java:2315)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:2295)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:2284)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.getHttpApplication(HttpSite.java:2212)
    at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:475)
    at com.evermind.server.http.HttpRequestHandler.resolveApplication(HttpRequestHandler.java:565)
    at com.evermind.server.http.HttpRequestHandler.initRequest(HttpRequestHandler.java:372)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequestOpen(HttpRequestHandler.java:283)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:162)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:149)
    at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:877)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
    at java.lang.Thread.run(Thread.java:595)
    06/03/2008 15:48:30 com.evermind.server.http.HttpMessages logApplicationStartupFailedMessage
    SEVERE: The application named, current-workspace-app, could not start due to an error.
    java.lang.NullPointerException
    at com.sun.faces.config.JSFVersionTracker.publishInstanceToApplication(JSFVersionTracker.java:264)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:404)
    at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1347)
    at com.evermind.server.http.HttpApplication.init(HttpApplication.java:873)
    at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:699)
    at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:502)
    at com.evermind.server.Application.getHttpApplication(Application.java:778)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.doCreateHttpApplicationFromReference(HttpSite.java:2315)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:2295)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:2284)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.getHttpApplication(HttpSite.java:2212)
    at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:475)
    at com.evermind.server.http.HttpRequestHandler.resolveApplication(HttpRequestHandler.java:565)
    at com.evermind.server.http.HttpRequestHandler.initRequest(HttpRequestHandler.java:372)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequestOpen(HttpRequestHandler.java:283)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:162)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:149)
    at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:877)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
    at java.lang.Thread.run(Thread.java:595)

    Hi,
    I guess maybe some kind of missconfiguration with OC4J 11.
    My solution by the moment was to install TRINIDAD 1.0.6 in JDEV 10.3 and use the migrated application. After some corrections on the code the application is working =).
    Next I'll try to use JDEV 11T3 with 1.2.6 Trinidad components.
    My best regards

  • Serious problems with TopLink in JDeveloper

    Is there any sane way to regenerate TopLink Java objects from Oracle tables? Specifically, I have changed an Oracle table and need it reflected in both the Java object and the toplink-mappings. I don't see any way to do this in the IDE so I've resorted to deleting the Java object, and removing the descriptor for that object; then recreating both. Now, this has opened a huge can of worms.
    First of all, if the .class files for TopLink Java objects already exist, the IDE will refuse to overwrite them: instead it will append "1" or "2" etc to the new object. The Erase from Disk option in JDeveloper does not remove class files -- just source. So I need to physically go deleting class files every time I need to recreate a TopLink Java object.
    Secondly, removing the descriptors within JDeveloper does not appear to take effect unless you physically restart the IDE!!! This issue drove me nuts for two days. Upon deleting and recreating a TopLink Java object, the fields in the object were continuously being appended as "field1", "field2", "field3" to the class descriptor. Only shutting down the IDE and restarting it seemed to reset the mapping file.
    Thirdly, for whatever reason, JDeveloper will sometimes completely forget what "toplink-deployment-descriptor.xml" is and never allow you to generate it again. Instead it generates something called "toplink-ejb-jar.xml" which promptly blows-up any POJO portion of my project with a "Can't find toplink-deployment-descriptor.xml" error.
    Is anyone else having these problems or are you all using Hibernate?!

    Hi Anuj.
    Your sequence doesn't work for me. The only way I can reliably rebuild my TopLink project is as follows:
    1. Clink on TopLink Mappings, and Remove descriptors from the TopLink Structure pane
    2. For all descriptors in step 1, select the TopLink Java objects and "Erase from Disk"
    3. ** For all Java classes selected in step 2, manually delete all the corresponding .class files from the project's class directory **
    4. ** RESTART IDE **
    5. From Project node, generate TopLink objects anew

  • Problems with Toplink integration with JTS and WSAD

    We have a very strange problem.
    Description:
         We are attempting to integrate with JTS, insuring that TopLink does its transactional activity within the scope of a JTS transaction, as described in the Foundation Library Guide.
         We have a stateless session bean, a method of which implements a simple "insert" on a database table registerObject() on a unit of work). This bean is configured to use bean-managed transactions, but with a default resolver of rollback.
         The bean is launched in the WSAD test environment.
         When the bean method is invoked from the WSAD Universal Test Client (web app that runs in the same app server allowing discovery and unit test of bean methods), the code works. A row is inserted into the table, etc.
         Same code, same method, same (stateless) bean, same instance of the WSAD test environment, if the bean method is invoked from outside the application server (via a JUnit test driver that discovers the session bean via JNDI), the code breaks. The final JTS commit catches a javax.transaction.RollbackException, apparently without any sort of stack trace tacked to the exception printStackTrace() doesn't result in anything). No row is inserted.
         We can call the bean alternately, via these two approaches, under the same instance of test environment, and get different behavior.
         We don't understand. All (hopefully) of the relevant details follow.
    We are using:
         WSAD Version: 5.0.1 Build id: 20030423_1316
         TopLink - 9.0.3.3 (Build 430)
         Oracle 9i
    From our sessions.xml:
         <login>
              <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
              <datasource>project</datasource>
              <platform-class>oracle.toplink.internal.databaseaccess.OraclePlatform</platform-class>
              <uses-external-connection-pool>true</uses-external-connection-pool>
              <uses-external-transaction-controller>true</uses-external-transaction-controller>
         </login>
         <external-transaction-controller-class>oracle.toplink.jts.was.JTSExternalTransactionController_5_0</external-transaction-controller-class>
    From our project XML:
         <uses-external-connection-pooling>true</uses-external-connection-pooling>
         <uses-external-transaction-controller>true</uses-external-transaction-controller>
    The code that breaks:
         SessionManager sm = SessionManager.getManager();
         Server ss = (Server) sm.getSession("project", TestBean.class.getClassLoader());
         ClientSession cs = ss.acquireClientSession();
         Context c = new InitialContext();
         UserTransaction t = (UserTransaction) c.lookup("java:comp/UserTransaction");
         t.begin();
         UnitOfWork u = ss.getActiveUnitOfWork();
         u.registerObject(value);
         u.commit();
         t.commit(); /* this throws javax.transaction.RollbackException */
    Thanks.

    Strange problem, could be a Websphere issue, or an issue with the JTSExternalTransactionController_5_0.
    Try configuring TopLink to not use JTS and see if the same problem still occurs. Also turn on TopLink logging and exception logging and your Websphere server logging to see if you can get the real exception and stack that is causing the RollbackException.
    This could be an issue with the JTSExternalTransactionController_5_0 as the original version of the controller did have a JTS issue. Make sure you are no the latest patch and check with support to see if they have a patch for this problem.

  • Problem with toplink persistEntity method

    Hi,
    i have a problem.
    I have two tables. One is master and the second is dependent on the first (reationship 1:N)
    I have jspx page with master table and this dependent table and everything works fine. Except two errors. I cannot add anything twice to the dependent table. When i call create method from bindings for the first time, new row is inserted, i fill the attributes, call merge entity, and everything is done correctly (old records are updated and the new one is inserted). But when i do it again, i got an Exception :
    javax.faces.el.EvaluationException: javax.ejb.EJBException: Exception [TOPLINK-7197] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.ValidationException
    Popis v�jimky: Exception in changes determination. Primary key cannot be null.; nested exception is: V�jimka [TOPLINK-7197] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.ValidationException
    description: . Primary key cannot be null.
    It looks like JDeveloper calls update instead of insert although it is a new record. Because in database is a trigger that works on insert a row and fills primary key automaticcaly from sequence. So, what is wrong ? Why the first call works, but the second dont ?
    The second problem is, when i create a new row in master table, and also new row in dependent table, i dont have primary key to fill in dependent table yet. And when insert is called, it throws same exception as above. I use collection attribute to hold reference on records in dependent table. Must i have call persist entity on main object without collection of dependent objects and then ,after i receive primary key, call persist entity on that collection ?
    i use JDeveloper 10.1.3.0.4 (SU5)
    thanks for help

    I have found what cause this problem.
    After persisting a new object the Id is not returned and is not wrote into POJO object. And then the next update tries to update a record that has null in a primary key field.This results in an exception mentioned above.
    This is why it works for the first time (the objects that exist are updated, objects that do not exist are inserted into database-but the id is not written in POJO because it is generated by sequence in database and toplink dont update object with it). This result in a object that have no Id, thus next try to update him throws "primary key is null" exception.
    I hope this will help a lot to understand what is the problem.
    I found a method in UnitOfWork that says:
    A valid changeSet, with sequencenumbers can be collected from the UnitOfWork After the commit is complete by calling unitOfWork.getUnitOfWorkChangeSet()
    but i havent found the new sequence number in it:(.
    Does anyone can help how to solve this ? How to get the id?
    I must say that toplink is more and more disappointing for me :(.

  • JBoss 3.2.1 integration problem with Toplink 9.0.3

    hi, there
    it seems that the XML parser of Toplink 9.0.3 not happy with that of JBoss 3.2.1, when we try to build the toplink
    SessionManager.getManager().getSession(...)
    call
    1) if i did not let Xerces.jar (1.4.4) in, it complaints the missing class
    org/apache/xerces/framework/XMLParser
    2) if i put Xerces.jar in classpath, it throws
    java.lang.VerifyError: (class: oracle/toplink/tools/sessionconfiguration/XMLLoader, method: retreiveDOM signature: (Ljava/lang/ClassLoader;)Lorg/w3c/dom/Document;) Incompatible object argument for function call
    any ideas of the work-around???
    appreciated!!!
    zhuoer
    [email protected]

    see Tomcat?

  • Problem with WebCenter tutorial - JDev 11.1.1.3, WCF 11.1.1.3.0.100707.1000

    Hi,
    I'm working through the WebCenter tutorial in the FMW documentation. All has worked fine until I reached step 8 (Add the People Connections Service to Your Application) in chapter 5 (Adding Oracle WebCenter Services to Your Application).
    When I add the Connections task flow (parts 6 - 9 in step 8) and try to run the page, I consistently get the following exception from the embedded WLS. This happens when I run the page (the app compiles and deploys successfully).
    <ProfileViewsBean><initViews>
    java.net.URISyntaxException: Illegal character in opaque part at index 16: zip:C:/Documents and Settings/pjeynes/Application Data/JDeveloper/system11.1.1.3.37.56.60/DefaultDomain/servers/DefaultServer/tmp/_WL_user/oracle.webcenter.framework.view/qvdb18/WEB-INF/lib/peopleconnections-profile-view.jar!/oracle/webcenter/peopleconnections/profile/default-profile-config.xml
         at java.net.URI$Parser.fail(URI.java:2809)
         at java.net.URI$Parser.checkChars(URI.java:2982)
    <UIXRegion><getRegionModel>
    java.lang.IllegalStateException: The expression "#{bindings.connectionsmainviewuntabbedtaskflow1.regionModel}" (that was specified for the RegionModel "value" attribute of the region component with id "r4") evaluated to null.
    This is typically due to an error in the configuration of the objects referenced by this expression.
    If it helps, the expression "#{bindings.connectionsmainviewuntabbedtaskflow1}" evaluates to "null".
    If it helps, the expression "#{bindings}" evaluates to "oracle_webcenter_peopleconnections_connections_view_jsf_fragments_ConnectionsMainView_untabbedPageDef".  Now using an empty RegionModel instead.
         at oracle.adf.view.rich.component.fragment.UIXRegion.getRegionModel(UIXRegion.java:439)
         at oracle.adf.view.rich.component.fragment.UIXRegion._beginInterruptibleRegion(UIXRegion.java:671)
    <UIXRegion$RegionSiteImpl><validate> Attempt to validate an already invalid RegionSite:
    <UIXRegion><getRegionModel>
    java.lang.IllegalStateException: The expression "#{bindings.searchtoolbar1.regionModel}" (that was specified for the RegionModel "value" attribute of the region component with id "r1") evaluated to null.
    This is typically due to an error in the configuration of the objects referenced by this expression.
    If it helps, the expression "#{bindings.searchtoolbar1}" evaluates to "null".
    If it helps, the expression "#{bindings}" evaluates to "oracle_webcenter_peopleconnections_connections_view_jsf_fragments_ConnectionsMainView_untabbedPageDef".  Now using an empty RegionModel instead.
         at oracle.adf.view.rich.component.fragment.UIXRegion.getRegionModel(UIXRegion.java:439)
         at oracle.adf.view.rich.component.fragment.UIXRegion._beginInterruptibleRegion(UIXRegion.java:671)
    ...If I remove the Connections task flow and re-run the page, it works fine again. I've retried a number of times, all with the same result.
    Anyone any ideas?
    Thanks.

    I've resolved this thanks to Error Configuring Peopel Connection Task flows
    I created a JDEV_USER_HOME environment variable, pointed it at a folder without a space in the name, restarted JDeveloper from that folder and the task flow now works.

  • Lazy fetching problem with TopLink essentials

    [TopLink Warning]: 2008.08.02 08:56:14.656--ServerSession(29131495)--Ignoring LAZY fetch type on element [public byte[] org.mayhem.mail.entity.Message.getRawBytes()] within entity class [class org.mayhem.mail.entity.Message]. All basic mappings default to use EAGER fetching.This is what I get when I start TopLink essesntials based JavaEE server. Why is that ?
    No, no..... I knooow that lazy fetching is not required to be supported by a JPA implementor.
    The question is why ?
    I mean, isnt Toplink the official implementation, and arent all features "supposed" to be implemented?
    How can I address this issue ?
    I dont want to fetch the bytes on each accessed message ...... ;(

    TopLink Essentials does not support this optional feature.
    EclipseLink 1.0 does, (JPA 2.0 reference impl). EclipseLink is basically the full open sourcing of the TopLink product, where as TopLink Essentials only included "Essential" features.
    -- James : [http://www.eclipselink.org]

  • Problems with ClientSession.getQuery()

    hi folks,
    i have a problem with TopLink 10.1.3/ Oracle db 9.2.0.5.0/ oracle oci client 9.2.0.1.0/ WebSphere 5.1/ IBM java SDK 1.4.2
    is there any reason why i am observing the following:
    I have created a named query in the mapping workbench...
    for any ClientSession cs.....
    cs.executeQuery("myNamedQuery", MyClass.class) works as expected. giving me a Vector of obejcts of my target class
    but...
    cs.getQuery("myNamedQuery") gives me null
    Using my debugger, I can see that the hashmap of queries that belongs to my ClientSession (and the owning ServerSession) are both empty. Am I missing something?
    I want to set some partial object parameters on the named query before I execute it so I can't just use the executeQuery(...) call.
    any help appreciated.
    cheers
    paul

    excellent...works great. thanks!!
    the only problem is that the solution uses deprecated methods.
    i am seeing lots of deprecation messages in this area, but not all deprecations have replacement instructions in the javadoc.
    Last time I used toplink was pre-oracle so maybe I just have 'the old way' stuck in my mind?? however.......
    DatabaseQuery query = relationalDescriptor.getQueryManager().getQuery(queryName);
    maybe the RelationalDescriptor.getQueryManager();
    shouldn't return the deprecated DescriptorQueryManager (the one in oracle.toplink.publicinterface) but the one in the new oracle.toplink.descriptors package instead?)

  • Refresh problem with collection

    Hello, apologize my English, I have got problem with refresh collections. Follow:
    1) I have got two classes which have got dependency together.
    2) First class has got collection of objects from second class.
    3) I call query "findXXX" which fill collection first class.
    4) I create new object second class and again call query "findXXX" to get actual collection. But collection contain old values a I have to close and open web browser to get actual data.
    I think It is problem with TopLink cache, but I do not know how solve this.
    Can you help me, please?

    The cached data is probably stale.
    There are many ways to solve this. (see the caching section of the docs)
    - there is a refresh option on the query
    - you can set a descriptor to be isolated (Cache.shared=false)
    - you can set a descriptor to always refresh
    - there is a cache invalidation option on descriptor
    - there is a cache synchronization option on session
    If the cache is stale, but the database was not accessed outside the application, it may be that your application is not maintaining relationships correctly. You must ensure you set both sides of a bi-directional relationship.
    -- James : http://www.eclipselink.org

Maybe you are looking for

  • Creation of sales order from Non Sap to Sap using sap xi

    hi can any body expalin me how to create sales order in sap from data  in MS Sql with highest performance becz the sales order is going to be of around 1000 items , sales order needs to be created in sap pl help immediately as its anongoing project r

  • SPNego Not Working

    Hello, We wanted to have desktop single sign on by using SPNEgo and we have configured everything as said in SAP Help document and we could not achieve single sign on. Not sure where we are going wrong. When we run the Diagtool, we are getting the er

  • Excel Output when Converting 6i Reports to 10g

    I am attempting to convert about 25 reports from Oracle Reports 6i to Oracle Reports 10g (10.1.0.4.2). The existing 6i system uses the Oracle Portal for job submission. The report server and our Oracle database are on Sun/Sparc/UNIX computers for bot

  • Sorting Alpha and numerics in the same column

    Post Author: Jimbob CA Forum: General I need to sort a column first by alpha then numerics.  If I use the ascending sort, the records appear in the following order: 01, 02, AA, BB, ZZ If I use the descending sort option, I get the following: ZZ, BB,

  • Emails confirmations are not coming through

    Hi Many of my customers are contacting me as they are not receiving a confirmation of their order completed on adobe forms central. i have set the options on adobe to ensure that they receive an email notification reciept. But they still dont get any