Oracle/toplink/internal/helper/ConcurrencyManager.acquire "Hang"

Hi,
I am trying to test an application on WAS with some load (200 virtual users from a load-runner) experiencing a hand condition. There are 128 threads waiting with the below stack trace.
at java/lang/Object.wait(Native Method)
at java/lang/Object.wait(Object.java:199(Compiled Code))
at oracle/toplink/internal/helper/ConcurrencyManager.acquire(ConcurrencyManager.java:47(Compiled Code))
at oracle/toplink/internal/sequencing/SequencingManager.acquireLock(SequencingManager.java:487(Compiled Code))
at oracle/toplink/internal/sequencing/SequencingManager$ForcedToUseWriteAccessor_State.getNextValue(SequencingManager.java:678(Compiled Code))
at oracle/toplink/internal/sequencing/SequencingManager.getNextValue(SequencingManager.java:325(Compiled Code))
at oracle/toplink/internal/sequencing/ClientSessionSequencing.getNextValue(ClientSessionSequencing.java:76(Compiled Code))
at oracle/toplink/internal/descriptors/ObjectBuilder.assignSequenceNumber(ObjectBuilder.java:127(Compiled Code))
at oracle/toplink/publicinterface/UnitOfWork.assignSequenceNumber(UnitOfWork.java:297(Compiled Code))
I am using the following oracle version:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Windows Server 2003 Version V5.2 Service Pack 1
CPU : 4 - type 586, 2 Physical Cores
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:1831M/3583M, Ph+PgF:3736M/5475M, VA:495M/2047M
The server slowly slips into a hang state and later becomes unresponsive.
I request you guys to provide an insight into the problem area here?
Thanks
Phani

Is the stack the same? There must be at least one thread that has the lock and is waiting on another resource to have a deadlock, could you include its stack.
What type of sequencing are you using, table or native (sequence object)?
Are you using JTA, and have you set a non-JTA read connection pool?
If you are using table sequencing and JTA, what could be occuring is a database deadlock on the sequence table. Some solution would be:
- Use native sequencing (sequence objects).
- Specify a sequence connection pool on your TopLink ServerSession using a non-JTA datasource or TopLink direct-JDBC connection pool.
You may also want to try using the TopLink 11g preview, it may not encounter the issue.

Similar Messages

  • Bug in  oracle.toplink.internal.helper.JDK14Platform?

    It looks like JDK14Platform tries to compile the text we are searching as regular expressions...
    Yet the descriptions we are searching can contain special characters like "{" or "+"...
    Caused by: java.util.regex.PatternSyntaxException: Illegal repetition near index 15
    ceci est un test{{Text1}}
    ^
         at java.util.regex.Pattern.error(Pattern.java:1528)
         at java.util.regex.Pattern.closure(Pattern.java:2545)
         at java.util.regex.Pattern.sequence(Pattern.java:1656)
         at java.util.regex.Pattern.expr(Pattern.java:1545)
         at java.util.regex.Pattern.compile(Pattern.java:1279)
         at java.util.regex.Pattern.<init>(Pattern.java:1035)
         at java.util.regex.Pattern.compile(Pattern.java:779)
         at java.util.regex.Pattern.matches(Pattern.java:865)
         at oracle.toplink.internal.helper.JDK14Platform.conformLike(JDK14Platform.java:54)
         at oracle.toplink.internal.helper.JavaPlatform.conformLike(JavaPlatform.java:57)
         at oracle.toplink.expressions.ExpressionOperator.doesRelationConform(ExpressionOperator.java:750)
         at oracle.toplink.internal.expressions.RelationExpression.doesConform(RelationExpression.java:126)
         at oracle.toplink.internal.identitymaps.IdentityMapManager.getAllFromIdentityMap(IdentityMapManager.java:209)
         at oracle.toplink.publicinterface.Session.getAllFromIdentityMap(Session.java:1251)
         at oracle.toplink.queryframework.ReadAllQuery.conformResult(ReadAllQuery.java:314)
         at oracle.toplink.queryframework.ReadAllQuery.registerObjectInUnitOfWork(ReadAllQuery.java:684)
         at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2217)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1086)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1038)
         at oracle.toplink.publicinterface.Session.readAllObjects(Session.java:2423)

    This is a known issue and will be fixed in the next 9.0.4 patch release.

  • Oracle.toplink.internal.helper.NonSynchronizedVector exception

    I get following exception when invoking session bean from EJB client generated by JDev (EJB JPA project). Session bean returns the list of value objects created using TopLink Essentials based JPA native query. Does anybody know what is causing this exception and if there is a workaround?
    java.lang.ClassCastException: oracle.toplink.internal.helper.NonSynchronizedVector
    List<ProfileBasicVO> profiles = searchFacade.queryBasicProfilesByLastName( partialName );
    I get exception at this point:
    for( ProfileBasicVO profile: profiles ) {
    System.out.println( "lastName = " + profile.getLastName() );
    ...

    I changed the code to return List and I added mapping as a second parameter:
    public List queryBasicProfilesByLastName(String partialName) {
    Query basicProfileQuery =em.createNativeQuery( "findBasicProfilesByLastName", "BasicProfileResults" );
    return basicProfileQuery.getResultList();
    It fails with following exception:
    Internal Exception: java.sql.SQLException: SQL string is not QueryError Code: 17128
    and the query is defined as
    <query>
    select o.last_name as LAST_NAME,
    o.first_name as FIRST_NAME,
    o.middle_name as MIDDLE_NAME,
    o.birth_date as BIRTH_DATE,
    o.sex_code as SEX_CODE,
    a.height_cm as HEIGHT_CM,
    a.weight_kg as WEIGHT_KG,
    o.PERSON_ID as PERSON_ID
    from offenders o,
    person_bookings b,
    person_physical_attributes a
    where o.PERSON_ID = b.PERSON_ID
    and b.PERSON_BOOK_ID = a.PERSON_BOOK_ID
    and o.last_name = 'POTTER'
    </query>
    Mapping is defined as:
    <sql-result-set-mapping name="BasicProfileResults">     
    <entity-result entity-class="entities.Persons">
    <field-result column="LAST_NAME" name="lastName"/>
    <field-result column="FIRST_NAME" name="firstName"/>
    <field-result column="MIDDLE_NAME" name="middleName"/>
    <field-result column="BIRTH_DATE" name="birthDate"/>
    <field-result column="SEX_CODE" name="sexCode"/>
    <field-result column="PERSON_ID" name="personId"/>
    </entity-result>
    <entity-result entity-class="entities.PersonPhysicalAttributes">
    <field-result column="HEIGHT_CM" name="heightCm"/>
    <field-result column="WEIGHT_KG" name="weightKg"/>
    </entity-result>
    </sql-result-set-mapping>
    I can execute the query manually without problem, i.e. it is valid query, but I still get exception

  • Sources for package oracle.toplink.internal.expressions in version 10.1.3.5

    Hi there,
    I just downloaded file toplink_101350.zip from Oracle and in folder \toplink\jlib it has a file called toplink-src.zip. When I look at jar file toplink.jar it contains much more packages like oracle.toplink.internal.expressions that in the source file.
    Now where can I get the full oracle toplink source?
    Thanks.
    Regards,
    Joao

    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

  • Data truncation with oracle.toplink.internal.databaseaccess.OraclePlatform

    Hello everyone
    I use Toplink 10g(9.0.4.5) with Oracle Lite database. I use the oracle.toplink.internal.databaseaccess.OraclePlatform and everything seems to be fine, except that when I pass a String more than the length defined in the Database, data is getting truncated to the maximum possible length in the Database and no exception is thrown. If I run a SQL statement directly on the Oracle Lite database using msql "value too large for column" exception is thrown.
    The question is it the default behviour of oracle.toplink.internal.databaseaccess.OraclePlatform to truncate the data for the large Strings? How can i change this behaviour to throw an exception?
    Any information on this would be highly appreciated.
    Thanks in advance..

    Thanks for the reply.
    But my tests are pointing towards ToplinkPlatform only. I use the oracle.lite.poljdbc.POLJDBCDriver with Oracle Database Lite, and when I do a simple test to insert a large String wiht plaing JDBC and POLJDBCDriver, i receive the following error.
    [POL-2403] value too large for column
    However if i did the same using Toplink and oracle.toplink.internal.databaseaccess.OraclePlatform, the SQL statement generated by Toplink does not throw any errors. When i query the database, i see that the data is truncated. I use the same oracle.lite.poljdbc.POLJDBCDriver with Toplink.
    <session>
    <name>testLite</name>
    <project-class>com.entityobjects.mappings.testLite</project-class>
    <session-type>
    <server-session/>
    </session-type>
    <login>
    <driver-class>oracle.lite.poljdbc.POLJDBCDriver</driver-class>
    <connection-url>jdbc:polite:POLITE;DataDirectory=C:\;Database=testLite;</connection-url>
    <platform-class>oracle.toplink.internal.databaseaccess.OraclePlatform</platform-class>
    <user-name>test1</user-name>
    <password>test1</password>
    <should-bind-all-parameters>true</should-bind-all-parameters></login>
    <enable-logging>true</enable-logging>
    <logging-options/>
    </session>
    I do not want to add a check at the object setter level, as the same object model is used in different projects and published across.
    Any more ideas why data is getting truncated?
    Thanks in advance for any suggestions..

  • Oracle.toplink.exceptions.ConcurrencyException

    Hi,
    We encountered a ConcurrencyException while running our batch process.
    - The have our minNumReadPoolsize = 5
    - The have our maxNumReadPoolsize = 20
    - read Pool is exclusive
    and we run our batch with 4 threads.
    Here is the stack trace.
    Any ideas?
    Thanks
    com.fmrco.gett.dataaccess.DAException: Exception while doing a commit
    at com.fmrco.gett.dataaccess.toplink.ToplinkDATransaction.commit(ToplinkDATransaction.java:115)
    at com.fmrco.compliance.cws.ipe.batch.IPETask.run(IPETask.java:159)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:642)
    at java.lang.Thread.run(Unknown Source)
    Caused by: Exception [TOPLINK-2003] (OracleAS TopLink - 10g (9.0.4.2) (Build 040311)): oracle.toplink.exceptions.ConcurrencyException
    Exception Description: Wait failure on ClientSession.
    Internal Exception: java.lang.InterruptedException
    at oracle.toplink.exceptions.ConcurrencyException.waitFailureOnClientSession(ConcurrencyException.java:44)
    at oracle.toplink.threetier.ConnectionPool.acquireConnection(ConnectionPool.java:72)
    at oracle.toplink.threetier.ServerSession.acquireClientConnection(ServerSession.java:272)
    at oracle.toplink.threetier.ClientSession.basicBeginTransaction(ClientSession.java:100)
    at oracle.toplink.publicinterface.Session.beginTransaction(Session.java:448)
    at oracle.toplink.publicinterface.UnitOfWork.beginTransaction(UnitOfWork.java:387)
    at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(UnitOfWork.java:1066)
    at oracle.toplink.publicinterface.UnitOfWork.commitToDatabaseWithChangeSet(UnitOfWork.java:1134)
    at oracle.toplink.publicinterface.UnitOfWork.commitRootUnitOfWork(UnitOfWork.java:955)
    at oracle.toplink.publicinterface.UnitOfWork.commit(UnitOfWork.java:770)
    at com.fmrco.gett.dataaccess.toplink.ToplinkDATransaction.commit(ToplinkDATransaction.java:111)
    ... 3 more
    Caused by: java.lang.InterruptedException
    at java.lang.Object.wait(Native Method)
    at java.lang.Object.wait(Unknown Source)
    at oracle.toplink.threetier.ConnectionPool.acquireConnection(ConnectionPool.java:70)
    ... 12 more
    20050512 05:22:19 EDT FATAL ipe.batch.IPETask [Thread-4] IPE Failed
    com.fmrco.gett.dataaccess.DAException: Exception while doing a commit
    at com.fmrco.gett.dataaccess.toplink.ToplinkDATransaction.commit(ToplinkDATransaction.java:115)
    at com.fmrco.compliance.cws.ipe.batch.IPETask.run(IPETask.java:159)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:642)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NullPointerException
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:258)
    at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:559)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1028)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2888)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:2960)
    at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:724)
    at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:778)
    at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:639)
    at oracle.toplink.publicinterface.UnitOfWork.executeCall(UnitOfWork.java:1397)
    at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:134)
    at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:115)
    at oracle.toplink.internal.queryframework.CallQueryMechanism.executeNoSelectCall(CallQueryMechanism.java:167)
    at oracle.toplink.internal.queryframework.CallQueryMechanism.updateObject(CallQueryMechanism.java:648)
    at oracle.toplink.internal.queryframework.StatementQueryMechanism.updateObject(StatementQueryMechanism.java:425)
    at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.updateObjectForWriteWithChangeSet(DatabaseQueryMechanism.java:1004)
    at oracle.toplink.queryframework.WriteObjectQuery.executeCommitWithChangeSet(WriteObjectQuery.java:107)
    at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQueryMechanism.java:258)
    at oracle.toplink.queryframework.WriteObjectQuery.execute(WriteObjectQuery.java:51)
    at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:493)
    at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1958)
    at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2252)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1086)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1038)
    at oracle.toplink.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:177)
    at oracle.toplink.publicinterface.Session.writeAllObjectsWithChangeSet(Session.java:3223)
    at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(UnitOfWork.java:1089)
    at oracle.toplink.publicinterface.UnitOfWork.commitToDatabaseWithChangeSet(UnitOfWork.java:1134)
    at oracle.toplink.publicinterface.UnitOfWork.commitRootUnitOfWork(UnitOfWork.java:955)
    at oracle.toplink.publicinterface.UnitOfWork.commit(UnitOfWork.java:770)
    at com.fmrco.gett.dataaccess.toplink.ToplinkDATransaction.commit(ToplinkDATransaction.java:111)

    The ConcurrencyException is occurring attempting to get a connection from the write-pool, not the read-pool. What size are you using for the write pool, ensure that it is large enough?
    Could you include your entire session configuration or sessions.xml file.
    Does the error only occur under heavy load, or does it start occurring after a certain point or after the null-pointer exception occurs?
    The null-pointer exception occurring in the JDBC driver is also very odd; the driver should never be encountering a null-pointer. Are you using the correct JDBC driver version for your database version?

  • Missing oracle.toplink.ejb.cmp3.EntityManagerFactoryProvider

    I have been trying to use Toplink 11G with Spring 2.5 and when I wire it up according to the Oracle JPA/Toplink article I get a class not found error. When I look at the toplink.jar the EntityManagerFactoryProvider its looking for its not there but the oracle.toplink.internal.ejb.cmp3.EntityManagerFactoryProvider exists instead.
    When I look at the toplink.jar shipped with jdeveloper 11 TP2 the EntityManagerFactoryProvider is there. Am I missing a jar?

    TopLink Essentials was intended to be a JPA implementation that offered most of what was needed by an average application that needed ORM. It was a pared down version derived from TopLink code and was never intended to include full TopLink functionality.
    The official plan of record (not just my opinion) is that both TopLink and EclipseLink will be shipped in 11g, but in future releases the TopLink product will be composed of the EclipseLink code base plus some server integration code.
    I don't know what the rules are with your client, but a) Oracle is the lead of the EclipseLink project and b) Oracle will be shipping it in 11g, so my personal opinion is that you should be able to consider it part of the Oracle stack.
    As an open source project the usual kinds of support will be available (forums, etc.) but assuming that your client has an Oracle support contract then I would guess (personal opinion again) that if they are using 11g then they would also be entitled to official support on the version of EclipseLink that is shipped with 11g, anyway.
    In the end you should check with your client but if they (or you) have any questions then they (or you) can always contact us for clarification.

  • Help with: oracle.toplink.essentials.exceptions.ValidationException

    hi guys,
    I really need ur help with this.
    I have a remote session bean that retrieves a list of books from the database using entity class and I call the session bean from a web service. The problem is that when i display the books in a jsp directly from the session bean everything works ok but the problem comes when I call the session bean via the web service than it throws this:
    Exception Description: An attempt was made to traverse a relationship using indirection that had a null Session. This often occurs when an entity with an uninstantiated LAZY relationship is serialized and that lazy relationship is traversed after serialization. To avoid this issue, instantiate the LAZY relationship prior to serialization.
    at oracle.toplink.essentials.exceptions.ValidationException.instantiatingValueholderWithNullSession(ValidationException.java:887)
    at oracle.toplink.essentials.internal.indirection.UnitOfWorkValueHolder.instantiate(UnitOfWorkValueHolder.java:233)
    at oracle.toplink.essentials.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:105)
    at oracle.toplink.essentials.indirection.IndirectList.buildDelegate(IndirectList.java:208)
    at oracle.toplink.essentials.indirection.IndirectList.getDelegate(IndirectList.java:330)
    at oracle.toplink.essentials.indirection.IndirectList$1.<init>(IndirectList.java:425)
    at oracle.toplink.essentials.indirection.IndirectList.iterator(IndirectList.java:424)
    at com.sun.xml.bind.v2.runtime.reflect.Lister$CollectionLister.iterator(Lister.java:278)
    at com.sun.xml.bind.v2.runtime.reflect.Lister$CollectionLister.iterator(Lister.java:265)
    at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:129)
    at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)
    at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:681)
    at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:65)
    at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:168)
    at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)
    at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:681)
    at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:277)
    at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:100)
    at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:141)
    at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:315)
    at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:142)
    at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:108)
    at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
    at com.sun.xml.ws.transport.http.HttpAdapter.encodePacket(HttpAdapter.java:320)
    at com.sun.xml.ws.transport.http.HttpAdapter.access$100(HttpAdapter.java:93)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:454)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
    at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:176)
    ... 29 more
    This happens when I test the web service using netbeans 6.5.
    here's my code:
    session bean:
    ArrayList bookList = null;
    public ArrayList retrieveBooks()
    try
    List list = em.createNamedQuery("Book.findAll").getResultList();
    bookList = new ArrayList(list);
    catch (Exception e)
    e.getCause();
    return bookList;
    web service:
    @WebMethod(operationName = "retrieveBooks")
    public Book[] retrieveBooks()
    ArrayList list = ejbUB.retrieveBooks();
    int size = list.size();
    Book[] bookList = new Book[size];
    Iterator it = list.iterator();
    int i = 0;
    while (it.hasNext())
    Book book = (Book) it.next();
    bookList[i] = book;
    i++;
    return bookList;
    Please help guys, it's very urgent

    Yes i have a relationship but i didnt want it to be directly. Maybe this is a design problem but in my case I dont expect any criminals to be involved in lawsuit. My tables are like that:
    CREATE TABLE IF NOT EXISTS Criminal(
         criminal_id INTEGER NOT NULL AUTO_INCREMENT,
         gender varchar(1),
         name varchar(25) NOT NULL,
         last_address varchar(100),
         birth_date date,
         hair_color varchar(10),
         eye_color varchar(10),
         weight INTEGER,
         height INTEGER,
         PRIMARY KEY (criminal_id)
    ENGINE=INNODB;
    CREATE TABLE IF NOT EXISTS Lawsuit(
         lawsuit_id INTEGER NOT NULL AUTO_INCREMENT,
         courtName varchar(25),
         PRIMARY KEY (lawsuit_id),
         FOREIGN KEY (courtName) REFERENCES Court_of_Law(courtName) ON DELETE NO ACTION
    ENGINE=INNODB;
    CREATE TABLE IF NOT EXISTS Rstands_trial(
         criminal_id INTEGER,
         lawsuit_id INTEGER,
         PRIMARY KEY (criminal_id, lawsuit_id),
         FOREIGN KEY (criminal_id) REFERENCES Criminal(criminal_id) ON DELETE NO ACTION,
         FOREIGN KEY (lawsuit_id) REFERENCES Lawsuit(lawsuit_id) ON DELETE CASCADE
    ENGINE=INNODB;So I couldnt get it.

  • Oracle.toplink errors, but no toplink installed? (10G, SRDemo)

    Hello, I installed the Chapter 4 SRDemo on my machine, and I am receiving an error. (at bottom)
    However, I am able to connect to the database without any problems, have been using the same database connection for over a month, but wanted to trying doing the EJBs and following the SRDemo tutorial.
    This locks my account, so it is using the correct account name (Which is not the same as the default from the demo)
    What is really confusing me is the references to TopLink everwhere. I do not have TopLink installed. When I try to debug when I step into the line where the error is thrown it tells me "Unable to find source file for package oracle.toplink.essentials.exceptions, filename TopLinkException.java.
    Here is the error I receive on running the ServiceRequestFacadeClientEmbed.java in the SRDemo:
    Mar 16, 2009 12:05:14 PM oracle.toplink.essentials.session.file:/C:/TEMP/oratemp/SRDEMO/Model/classes/-Model
    INFO: TopLink, version: Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))
    Mar 16, 2009 12:05:14 PM oracle.toplink.essentials.session.file:/C:/TEMP/oratemp/SRDEMO/Model/classes/-Model
    INFO: Server: unknown
    Mar 16, 2009 12:05:16 PM com.evermind.server.ejb.logging.EJBMessages logException
    SEVERE: [ServiceRequestFacade:public org.srdemo.persistence.Products org.srdemo.business.ServiceRequestFacadeBean.findProductById(java.lang.Long)] exception occurred during method invocation: oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    Error Code: 1017; nested exception is:
         Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    ....

    OK... so I started with a new try. (Same machine) Edit --- installed Oracle and JDev on a new machine, got the exact same results.
    Downloaded JDeveloper 10G
    Extracted to new directory.
    New application - accepted all defaults.
    New Business Tier->EJB->Entities from Tables
    Substep - New Database Connection Accepted defaults, entered user name and password, entered hostname (not on localhost) and sid. Tested connection (Success!)
    Selected only Address Table and accept all defaults.
    project1.Addresses.java is created.
    New Session Bean -> accepted all defaults
    SessionEJBBean.java is created
    New Sample Java Client -> accepted all defaults
    SessionEJBClient.java is created
    Ran SessionEJBBean.java
    [Starting OC4J using the following ports: HTTP=8989, RMI=23891, JMS=9227.]
    C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\config>
    C:\Jdev10-2\jdk\bin\javaw.exe -client -classpath C:\Jdev10-2\j2ee\home\oc4j.jar;C:\Jdev10-2\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -XX:MaxPermSize=256m -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    Mar 17, 2009 10:54:42 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Auto-unpacking C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\dms.war...
    Mar 17, 2009 10:54:42 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Unjar C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\dms.war in C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\dms
    Mar 17, 2009 10:54:42 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Finished auto-unpacking C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\dms.war
    Mar 17, 2009 10:54:42 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Auto-unpacking C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\connectors\datasources\datasources.rar...
    Mar 17, 2009 10:54:42 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Unjar C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\connectors\datasources\datasources.rar in C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\connectors\datasources\datasources
    Mar 17, 2009 10:54:42 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Finished auto-unpacking C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\connectors\datasources\datasources.rar
    Mar 17, 2009 10:54:42 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Auto-unpacking C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\datatags.ear...
    Mar 17, 2009 10:54:42 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Unjar C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\datatags.ear in C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\datatags
    Mar 17, 2009 10:54:43 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Finished auto-unpacking C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\datatags.ear
    Mar 17, 2009 10:54:43 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Auto-unpacking C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\datatags\webapp.war...
    Mar 17, 2009 10:54:43 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Unjar C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\datatags\webapp.war in C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\datatags\webapp
    Mar 17, 2009 10:54:46 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Finished auto-unpacking C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\datatags\webapp.war
    Mar 17, 2009 10:54:46 AM com.evermind.server.XMLApplicationServerConfig randomizeJtaAdminPassword
    INFO: Updating JtaAdmin account
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 31654 ms.
    09/03/17 10:54:51 Oracle Containers for J2EE 10g (10.1.3.4.0)  initializedRun SessionEJBClient.java
    Mar 17, 2009 10:55:30 AM oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
    WARNING: Exception returned by remote server: {0}
    javax.ejb.EJBException: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    Error Code: 1017; nested exception is:
         Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    Error Code: 1017; nested exception is: oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    Error Code: 1017; nested exception is:
         Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    Error Code: 1017
    oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    Error Code: 1017
         at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:346)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:75)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at SessionEJB_RemoteProxy_11o700f.queryAddressesFindAll(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
         Nested exception is:
    .....So I would really appreciate any help, I have no good idea where to go next. I'm going to go try wiping a machine in the next cube and installing Oracle from scratch too.
    Thanks,
    Jeff
    Edited by: jeffles on Mar 17, 2009 9:49 AM

  • Oracle TopLink Essentials and CommunicationsException

    Hi ,
    I have server application , using MySql and Oracle TopLink Essentials - 2.0 working fine .
    But in the next day am getting always error :
    Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failureAfter searching get some info , that there is a default connection time for MySql (8h), and after that conection is closing.
    I found some solution which should after 7h restart the connection, so it never will close :
    <property name="idle-timeout-in-seconds" value="25200"/>I add it to the persistence.xml, unfortunately this is not working :(
    Have any one the Idea how to solve this problem ?
    This is Exception stack :
    Local Exception Stack:
    Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
    Last packet sent to the server was 0 ms ago.
    Error Code: 0
    Call: SELECT ID, EMAIL, PASSWORD, USERNAME, CREATIONDATE, DESCRIPTION FROM ADMIN WHERE (EMAIL = ?)
         bind => [and]
    Query: ReportQuery(***.*******.*****.models.Admin)
         *** ****.*******.core.LgAdmin.login(LgAdmin.java:149)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:616)
         at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:406)
         at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)
         at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1417)
         at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:878)
         at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:121)
         at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)
         at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:49)
         at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)
         at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:146)
         at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:274)
         at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:377)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
         at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
         at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
         at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
         at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
         at java.lang.Thread.run(Thread.java:636)
    Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failureThank you for any Help !!

    Hallo ForumKid2.
    Ok, at first , I am really beginner with J2EE :(
    Yes , I open connection as private attribute , with out closing it....
    private final EntityManagerFactory emf = Persistence.createEntityManagerFactory("TestModel", new java.util.HashMap<String, String>());I had an Idea to do it with own factory (Singleton class) to open and close the connection .
    I don't know how to do this via connection pool.. it mean to use some property in persistence.xml?
    But it will not fix the connection error ...or ?
    Anyone has Idea how to solve this problem ???
    Thank you !
    greetings
    andrzej

  • Oracle TopLink in OC4J

    Hi,
    I've got the problem deploying EJB 3.0 persistent entites to OC4J, I asked for help
    in the TopLink forum Need help with EJB3.0 persistence
    but nobody knows how to resolve it. If somebody knows how to resolve it please let me know

    See active crosspost in Developer Tools » TopLink/JPA
    Re: How to verify OC4J uses Oracle Toplink 10.x and not Toplink Essentials
    TopLink/JPA
    /michael
    www.eclipselink.org

  • Monitoring of topLink internal connections  pool

    we wish to monitoring use of Toplink internal connections pool : numbers maximum used, a minimum number used.
    we know to do it with the external pool (OracleAS) but not with the internal pool.
    Regards

    The only way to get this information is through API calls. If you have a Server (oracle.toplink.threetier) you can ask the read and default (write) connection pools.
            // Display Read Connection pool info       
            System.out.println("READ Available: " +
                               server.getReadConnectionPool().getConnectionsAvailable().size());
            System.out.println("READ Minimum: " +
                               server.getReadConnectionPool().getMinNumberOfConnections());
            System.out.println("READ Maximum: " +
                               server.getReadConnectionPool().getMaxNumberOfConnections());
            // Display Write Connection pool info       
            System.out.println("WRITE Available: " +
                               server.getDefaultConnectionPool().getConnectionsAvailable().size());
            System.out.println("WRITE Minimum: " +
                               server.getDefaultConnectionPool().getMinNumberOfConnections());
            System.out.println("WRITE Maximum: " +
                               server.getDefaultConnectionPool().getMaxNumberOfConnections());Doug

  • 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?

  • Oracle.toplink.exceptions.QueryException

    I get the following error when I attempt to create a table from my oject in the workbench:
    Throwable Class Name:
    oracle.toplink.exceptions.QueryException
    Message:
    when trying to generate a table from a class in the workbench i get the followin error:
    Exception Description: The object [MWClassDescriptor[973268] (Address -> null)], of class [class oracle.toplink.workbench.model.desc.MWClassDescriptor], with identity hashcode (System.identityHashCode()) [9,908,840],
    is not from this UnitOfWork object space, but the parent session's. The object was never registered in this UnitOfWork,
    but read from the parent session and related to an object registered in the UnitOfWork. Ensure that you are correctly
    registering your objects. If you are still having problems, you can use the UnitOfWork.validateObjectSpace() method to
    help debug where the error occurred. For more information, see the manual or FAQ.
    Stack trace:
    Local Exception Stack:
    Exception [TOPLINK-6004] (OracleAS TopLink - 10g (10.0.3) Developer Preview (Build 031022)): oracle.toplink.exceptions.QueryException
    Exception Description: The object [MWClassDescriptor[973268] (Address -> null)], of class [class oracle.toplink.workbench.model.desc.MWClassDescriptor], with identity hashcode (System.identityHashCode()) [9,908,840],
    is not from this UnitOfWork object space, but the parent session's. The object was never registered in this UnitOfWork,
    but read from the parent session and related to an object registered in the UnitOfWork. Ensure that you are correctly
    registering your objects. If you are still having problems, you can use the UnitOfWork.validateObjectSpace() method to
    help debug where the error occurred. For more information, see the manual or FAQ.
         at oracle.toplink.exceptions.QueryException.backupCloneIsOriginalFromParent(QueryException.java:158)
         at oracle.toplink.publicinterface.UnitOfWork.getBackupClone(UnitOfWork.java:1539)
         at oracle.toplink.publicinterface.UnitOfWork.calculateChanges(UnitOfWork.java:425)
         at oracle.toplink.publicinterface.UnitOfWork.getChanges(UnitOfWork.java:1595)
         at oracle.toplink.workbench.ui.WorkbenchSession.saveProject(WorkbenchSession.java:680)
         at oracle.toplink.workbench.ui.MainView.saveProject(MainView.java:1914)
         at oracle.toplink.workbench.ui.MainView.saveSelectedProjects(MainView.java:1983)
         at oracle.toplink.workbench.ui.MainView.generateTableDefinitionsForClasses(MainView.java:728)
         at oracle.toplink.workbench.ui.MainView.generateTableDefinitionsForSelected(MainView.java:753)
         at oracle.toplink.workbench.ui.action.ActionManager$86.actionPerformed(ActionManager.java:2055)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

    Hello,
    Without more information, I can't determine what the problem is. This exception's english wording is "Object comparisons can only use the equal() or notEqual() operators. Other comparisons must be done through query keys or direct attribute level comparisons.", and implies that the query expression is using a Like operator where atleast one side of the comparison is an entity instead of a string value. Entity/object comparisons are only supported with the equal or notEqual comparisons.
    Best Regards,
    Chris

  • TopLink on WebLogic or oracle.toplink.PersistenceProvider

    Hy.
    I have applied patch 5KXF to add toplink 11g on WebLogic 10.3.
    Now, in BEA_HOME\patch_wls1030\patch_jars\ there is toplink.jar.
    But how can I use it?
    Inside toplink.jar there is file META-INF\services\META-INF\services\javax.persistence.spi.PersistenceProvider.
    I assume that content of this file is the name of the implementation class.
    It is "oracle.toplink.PersistenceProvider".
    But when I put this name in persistence.xml and try to deploy my EAR, this message appears
    =====================================================================================================
    weblogic.deployment.EnvironmentException: Error processing persitence unit toplink of module toplink.jar: Error instantiating the Persistenc
    e Provider class oracle.toplink.essentials.PersistenceProvider of the PersistenceUnit toplink: java.lang.ClassNotFoundException: oracle.topl
    ink.essentials.PersistenceProvider
    at weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactory(PersistenceUnitInfoImpl.java:322)
    at weblogic.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:123)
    at weblogic.deployment.AbstractPersistenceUnitRegistry.storeDescriptors(AbstractPersistenceUnitRegistry.java:331)
    at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDescriptor(AbstractPersistenceUnitRegistry.java:245)
    at weblogic.deployment.ModulePersistenceUnitRegistry.<init>(ModulePersistenceUnitRegistry.java:63)
    =====================================================================================================
    The persistence.xml file looks like
    =====================================================================================================
    <persistence-unit name="toplink">
    <provider>
    oracle.toplink.essentials.PersistenceProvider
    </provider>
    <jta-data-source>jdbc/miroslav_rehirDS</jta-data-source>
    </persistence-unit>
    =====================================================================================================
    One thing more .... In the filesistem I can't find class oracle.toplink.PersistenceProvider.
    On the other hand it is OK to put
    <provider>
    org.eclipse.persistence.jpa.PersistenceProvider
    </provider>
    Thanks four your replies,
    Miroslav

    Miroslav,
    You may be interested in the latest release of Oracle WebLogic Server.
    See the recent OTN post from 20110115 detailing the latest release of Oracle WebLogic Server and some retesting of the previous issues related to JSR-317 JPA 2.0 support below.
    11g Release 1 Patch Set 3 (WLS 10.3.4)
    The latest release of Oracle WebLogic Server has been available on OTN at the following location since 20110115.
    http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html
    This release provides support for JSR-317 JPA 2.0 container managed applications using the QWG8 patch or a manual prepending classpath change.
    In 10.3.3.0 you were required to use the FilteringClassLoader via the *<wls:prefer-application-packages>* addition to your application managed persistence unit - this workaround as well as the persistence.xml renaming one is now fully deprecated and not required in 10.3.4.0 for both application and container managed persistence contexts.
    As of 20110115 the 5 outstanding issues below look to be fixed by applying the http://download.oracle.com/docs/cd/E17904_01/web.1111/e13720/using_toplink.htm#EJBAD1309 patch for QWG8 or manually prepending to the WebLogic 10.3.4.0 server classpath.
    commEnv.cmd: line 67
    @rem Set BEA Home
    set BEA_HOME=C:\opt\wls1034r20110115
    @rem Enable JPA 2.0 functionality on WebLogic Server 10.3.4 with the following patch line for commEnv.cmd:67
    set PRE_CLASSPATH=%BEA_HOME%\modules\javax.persistence_1.0.0.0_2-0-0.jar;%BEA_HOME%\modules\com.oracle.jpa2support_1.0.0.0_2-0.jar
    A JPA 2.0 EE application using EclipseLink as the JPA2 persistence provider on WebLogic is detailed in the analysis section below1) JPA 2.0 XSD parsing - verified
    2) New JPA 2.0 schema elements like <shared-cache-mode>NONE</shared-cache-mode> - verified
    3) JPA 2.0 runtime API like a entityManager.getMetamodel(); call on the Servlet or Stateless session bean - verified
    4) JPA 2.0 weaving/instrumentation - this will require a more detailed lazy model and more debugging to fully verify
    5) Dependency Injection of a container managed JPA 2.0 entityManager on a EJB component like a stateless session bean - verified
    http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/weblogic#Enabling_JPA2_support
    OTN downloadhttp://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html
    Patching
    http://download.oracle.com/docs/cd/E18476_01/doc.220/e18480/weblogicchap.htm
    Documentationhttp://download.oracle.com/docs/cd/E17904_01/web.1111/e13852/toc.htm
    Supported Oracle WebLogic Server Versionshttp://download.oracle.com/docs/cd/E15315_06/help/oracle.eclipse.tools.weblogic.doc/html/SupportedServerVersions.html
    TopLink JPA 2.0 Specific documentation/patchinghttp://download.oracle.com/docs/cd/E17904_01/web.1111/e13720/using_toplink.htm#EJBAD1309
    EclipseLink Wiki: JPA 2.0 using EclipseLink on WebLogic analysis (XSD, Weaving, DI of @PersistenceContext)http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/weblogic#Enabling_JPA2_support
    thank you
    /Michael O'Brien
    http://www.eclipselink.org

Maybe you are looking for

  • Old screensaver bug still present in Snow Leopard

    This bug has driven me mad in the past (since Tiger!) and I am still getting it on Snow Leopard. Scenario: 1. Invoke screensaver 2. Wake computer 3. Get password prompt for a split second - (it disappears, like a focus issue). 4. left with a blank sc

  • Moving a folder from external to internal hard disk

    I want to move a music folder on my external hard drive to the internal one. I had previously disabled the option of copying files to iTunes library so this folder is not a part of iTunes Music folder Music/iTunes/iTunes Music but is is added to the

  • Ora-01722 invalid number error within view

    Hi, in my oracle 9.2.0.4.0 db, under TEST schema i've a view called PRODUTTIVITA_LINEE. I'm trying to create another view joining PRODUTTIVITA_LINEE with a table called LINEE. But when i execute the select (SELECT PRODUTTIVITA_LINEE.*, LINEE.NAME FRO

  • Installing Windows XP professional and F6 (3rd party SATA drivers)

    Forgive me if this is answered somewhere. I found a posting that was close but not quite the same, or maybe it is. This is  my first system I have put together so please excuse the newby status.  I am Using the K8T Neo2  motherboard (Via Tech VT8237

  • Information on 10G 10.2.0.1  64bit on Windows

    Thanks for taking my questions! Our campus is moving to peoplesoft and I was just asked to have a 64bit version of Oracle 10g up and running by June 6th. This database is just a demo db and this maybe just another install - I'm not sure. The problem