Toplink problem

Hi,
I'm using this code to create new object to database:
public Users newUser(String email) {
UnitOfWork uow = getSessionFactory().acquireUnitOfWork();
Users newInstance = (Users)uow.newInstance(Users.class);
newInstance.setEmail(email);
uow.commit();
return newInstance;
Primary key is generated by sequence (I'm using Oracle 10g database)
Since this object is target in 1-M relationship in table Project_member, I give newInstance as a parameter to newPrmember function.
Problem occurs,since newInstance and it's contents seem to be empty (null) while I try to use it for adding it to PrMember table
What might be the problem?
Thanks in advance,Roland

Hi,
my assumption is that you have to refresh the object to obtain auto generated content. However, you should post your question on the TopLink forum
TopLink/JPA
Frank

Similar Messages

  • Toplink problem during stress tests

    Hello
    I have created simple Three tier application, where SLSBs connects using Toplink to Oracle database. During stress tests I'm having very offen following exception:
    Wyj¦tek [TOPLINK-4002] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.DatabaseException
    Opis wyj¦tku: java.sql.SQLException: Wyj?tek we-wy: The Network Adapter could not establish the connection
    Wyj¦tek wewnŕtrzny: java.sql.SQLException: Wyj?tek we-wy: The Network Adapter could not establish the connection
    Error code: 17002
         at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:221)
         at oracle.toplink.jndi.JNDIConnector.connect(JNDIConnector.java:105)
         at oracle.toplink.sessions.DatabaseLogin.connect(DatabaseLogin.java:218)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.reconnect(DatabaseAccessor.java:1323)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.incrementCallCount(DatabaseAccessor.java:1198)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:633)
         at oracle.toplink.threetier.ServerSession.executeCall(ServerSession.java:506)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:131)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:115)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeSelectCall(CallQueryMechanism.java:194)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.selectAllRows(CallQueryMechanism.java:565)
         at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:733)
         at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllRows(ExpressionQueryMechanism.java:708)
         at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:447)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:493)
         at oracle.toplink.queryframework.ReadQuery.execute(ReadQuery.java:125)
         at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1958)
         at oracle.toplink.threetier.ServerSession.internalExecuteQuery(ServerSession.java:629)
         at oracle.toplink.threetier.ClientSession.internalExecuteQuery(ClientSession.java:392)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1086)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1038)
         at petstore.ejb.OrderFacadeBean.getUserOrders(OrderFacadeBean.java:190)
         at OrderFacadeLocal_StatelessSessionBeanWrapper8.getUserOrders(OrderFacadeLocal_StatelessSessionBeanWrapper8.java:615)
         at petstore.wmodule.OrderFacadeBusinessDelegate.getUserOrders(OrderFacadeBusinessDelegate.java:50)
         at petstore.wmodule.struts.OrderListAction.execute(OrderListAction.java:57)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         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 petstore.wmodule.servlet.EncodingFilter.doFilter(EncodingFilter.java:32)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at petstore.wmodule.servlet.SecurityFilter.doFilter(SecurityFilter.java:43)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: java.sql.SQLException: Wyj?tek we-wy: The Network Adapter could not establish the connection
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:231)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:345)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:431)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:515)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:345)
         at com.evermind.sql.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:116)
         at oracle.toplink.jndi.JNDIConnector.connect(JNDIConnector.java:102)
         ... 40 more
    Toplink session is configured to use external transaction controller and data source. Application run on OC4J 9.0.4.1. Using jdbc debug options I wasn't able to find any causes. Has anyone faced this problem before?
    Regards
    Jarek

    Hi Jarek,
    TopLink uses the datasource similar to any other java application would, so there are no additional restrictions. From the error, you can see that the datasource is attempting to create a new connection and that is what is causing the exception. All TopLink did was call getConnection on the datasource ( DriverManagerDataSource.getConnection ).
    This could be a problem/glitch with the network or that the listener when down temporarily. Things to check would be:
    -how frequently this occurs
    -if it occurs for all connections after this point
    -the state of the database listener (can other applications connect to it, is it up, etc)
    -how many connections to the DB are active at this point
    -how many connections/sessions are active from this application
    -the OC4J and JDBC versions. Latest patches are better with regards to connection pools.
    What is strange though is that you have the min=max, so it should never create new connections after the first time the pool is accessed. Each connection should already have been created, which is why I suggest that you contact OC4J/JDBC support.
    Best Regards,
    Chris

  • Toplink errors 2320 No Database field is selected.

    In the TopLink problems tab in JDev 11.1.1.2.0 I'm getting numerous errors that look like
    JPA Persistence Descriptor 2320 - No database field is selected.
    Right clicking on an error and selecting Goto Source does nothing so I don't know exactly what it's referring to.
    The application seems to run OK but currently this is in development. I''m expecting to deploy to WLS and I don't want problems there.
    Thanks...

    Hi steverar, how are you? I don't know if you're still having this problem but here goes the answer!
    To correct the problem, just change your persistence.xml by executing the following steps:
    1. Open persistence.xml;
    2. In Overview tab, double click the persistence unit;
    3. In General Section, choose the Offline DB that you created for the field "Development Database".
    Then, just connect your entities and fields to the respective tables and columns.
    Cheers!
    Luis

  • 9.0.3.6 -- 9.0.4.5 password woes

    Can anyone help...
    Environment:
    WebSphere 5.0.2.7
    TopLink 9.0.4.5
    Oracle9i Enterprise Edition Release 9.2.0.4.0
    Oracle JDBC driver Version: 9.2.0.3.0
    Special note:
    We use Toplink 9.0.4.5 runtime, but Mapping Workbench 9.0.3
    - We use the exported Project class file from MW 9.0.3
    Problem...
    2 Identical machines (as far as we know), one QA and one Production
    The exact same EAR file runs fine on the QA box and FAILS on the production box with an invalid logon / password Oracle problem
    When we switch the toplink.jar back to 9.0.3.6 on production, it works fine
    The QA / Production databases have different id / passwords, which are manually read from a property file and setup in the DatabaseLogon class for the ServerSession
    The applyLogin() Project class method sets the password to "" (nothing), then our server intialization sets it to the property file value
    Some stack traces which may help are below. I can also
    make our toplink Project file and server initialisation code available:
    [12/3/04 14:13:25:842 PST] 131ae382 ConnectionPoo E CONM6009E: Unable to get connection to the database from datasource (Oracle Production WAS4).
    [12/3/04 14:13:25:905 PST] 131ae382 SystemOut O Toplink problem:
    Exception Description: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    Internal Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    Error Code: 1017...
    [12/3/04 14:13:25:905 PST] 131ae382 SystemOut O Local Exception Stack:
    Exception [TOPLINK-4002] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.DatabaseException
    Exception Description: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    Internal Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    Error Code: 1017
         at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:221)
         at oracle.toplink.jndi.was.DataSourceConnector.connect(DataSourceConnector.java:71)
         at oracle.toplink.sessions.DatabaseLogin.connect(DatabaseLogin.java:218)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.reconnect(DatabaseAccessor.java:1323)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.incrementCallCount(DatabaseAccessor.java:1198)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:633)
         at oracle.toplink.threetier.ServerSession.executeCall(ServerSession.java:506)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:131)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:115)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.cursorSelectAllRows(CallQueryMechanism.java:70)
         at oracle.toplink.queryframework.ScrollableCursorPolicy.execute(ScrollableCursorPolicy.java:74)
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
         java.rmi.RemoteException: ; nested exception is:
         Exception [TOPLINK-7107] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.ValidationException
    Exception Description: Error encountered during string decryption.
    Internal Exception: java.lang.NegativeArraySizeException
    java.rmi.RemoteException: ; nested exception is:
         Exception [TOPLINK-7107] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.ValidationException
    Exception Description: Error encountered during string decryption.
    Internal Exception: java.lang.NegativeArraySizeException
    Local Exception Stack:
    Exception [TOPLINK-7107] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.ValidationException
    Exception Description: Error encountered during string decryption.
    Internal Exception: java.lang.NegativeArraySizeException
         at oracle.toplink.exceptions.ValidationException.errorDecryptingPassword(ValidationException.java:448)
         at oracle.toplink.internal.security.JCEEncryptor.decryptPassword(JCEEncryptor.java:89)
         at oracle.toplink.sessions.DatabaseLogin.prepareProperties(DatabaseLogin.java:1330)
         at oracle.toplink.sessions.DatabaseLogin.connect(DatabaseLogin.java:218)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.reconnect(DatabaseAccessor.java:1323)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.incrementCallCount(DatabaseAccessor.java:1198)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:633)
         at oracle.toplink.threetier.ServerSession.executeCall(ServerSession.java:506)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:131)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:115)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeSelectCall(CallQueryMechanism.java:194)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.selectAllRows(CallQueryMechanism.java:565)
         at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:733)
         at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllRows(ExpressionQueryMechanism.java:708)
         at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:447)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:493)
         at oracle.toplink.queryframework.ReadQuery.execute(ReadQuery.java:125)
         at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1958)
         at oracle.toplink.threetier.ServerSession.internalExecuteQuery(ServerSession.java:629)
    [12/3/04 14:14:03:999 PST] 5ab4238e SystemOut O Toplink problem:
    Exception Description: Error encountered during string decryption.
    Internal Exception: java.lang.NegativeArraySizeException: ...
    [12/3/04 14:14:03:999 PST] 68d6a389 SystemOut O ClientSession(1058005948)--acquire unit of work: 1009296316
    [12/3/04 14:14:03:999 PST] 68d6a389 SystemOut O UnitOfWork(1009296316)--JTS register
    [12/3/04 14:14:03:999 PST] 5f01a38a SystemOut O ServerSession(2074747787)--client acquired
    [12/3/04 14:14:03:999 PST] 3e16638a SystemOut O Toplink problem:
    Exception Description: Error encountered during string decryption.
    Internal Exception: java.lang.NegativeArraySizeException...
    [12/3/04 14:14:03:999 PST] cd4a3bd SystemOut O Toplink problem:
    Exception Description: Error encountered during string decryption.
    Internal Exception: java.lang.NegativeArraySizeException...
    [12/3/04 14:14:04:015 PST] 5f1fa38a TraceNLS u No message text associated with key Connection.requested.with.same.user.id.but.different.password.than.existing.enlisted.connection...A.new.connection.will.be.created.and.enlisted. in bundle com.ibm.ejs.resources.CONMMessages
    [12/3/04 14:14:04:015 PST] 68e9a389 TraceNLS u No message text associated with key Connection.requested.with.same.user.id.but.different.password.than.existing.enlisted.connection...A.new.connection.will.be.created.and.enlisted. in bundle com.ibm.ejs.resources.CONMMessages
    [12/3/04 14:14:04:015 PST] 7ae5a38b TraceNLS u No message text associated with key Connection.requested.with.same.user.id.but.different.password.than.existing.enlisted.connection...A.new.connection.will.be.created.and.enlisted. in bundle com.ibm.ejs.resources.CONMMessages
    [12/3/04 14:14:04:015 PST] 2116380 SystemOut O ServerSession(2074747787)--client acquired
    [12/3/04 14:14:04:015 PST] 1b8123b5 HttpTransport A SRVE0172I: Stopped transport http on port 9,090.
    [12/3/04 14:14:04:015 PST] 7afea38b TraceNLS u No message text associated with key Connection.requested.with.same.user.id.but.different.password.than.existing.enlisted.connection...A.new.connection.will.be.created.and.enlisted. in bundle com.ibm.ejs.resources.CONMMessages
    [12/3/04 14:14:04:015 PST] 68fca389 SystemOut O ServerSession(2074747787)--client acquired
    [12/3/04 14:14:04:015 PST] 2146380 SystemOut O ClientSession(1027941308)--acquire unit of work: 984294332
    [12/3/04 14:14:04:015 PST] 2146380 SystemOut O UnitOfWork(984294332)--JTS register
    [12/3/04 14:14:04:030 PST] 68fca389 SystemOut O ClientSession(906322819)--acquire unit of work: 904160131
    [12/3/04 14:14:04:030 PST] 4677238f SystemOut O Toplink problem:
    Exception Description: Error encountered during string decryption.
    Internal Exception: java.lang.NegativeArraySizeException...
    [12/3/04 14:14:04:030 PST] 68d8a389 SystemOut O ServerSession(2074747787)--client acquired
    [12/3/04 14:14:04:030 PST] 68d8a389 SystemOut O ClientSession(962651011)--acquire unit of work: 960144259
    [12/3/04 14:14:04:030 PST] 68d8a389 SystemOut O UnitOfWork(960144259)--JTS register
    [12/3/04 14:14:04:030 PST] 21e6380 SystemOut O UnitOfWork(1504895887)--After JTS Completion

    Hi Roger,
    This problem is two fold.
    1) TopLink implemented its encryption using JCE 1.2.2. Websphere built their JCE provider for JCE 1.2.1. We’ve seen different exception thrown on the init of a Cipher with a 0 length byte array in JCE 1.2.1 vs. JCE 1.2.2.
    Specifically, JCE 1.2.1 throws an ArrayIndexOutOfBoundsException whereas JCE 1.2.2 throws an IOException. This problem has been fixed in TopLink 9.0.4.6
    2) There is a threading issue with JCE when using many threads. This problem has also been fixed in TopLink 9.0.4.6.
    We haven’t seen a NegativeArraySizeException however. It may be another case of a JCE 1.2.1 vs. JCE 1.2.2 problem. I assume though it is related to the threading issue. So in the meantime I would suggest overriding the decryptMethod in the JCEEncryptor to fix this problem. That is,
    JCE121Encryptor extends JCEEncryptor {
    public synchronized String decryptPassword(String encryptedPswd) {
    return super().decryptPassword(encryptedPswd);
    and set:
    login.setEncryptionClassName(“JCE121Encryptor”);
    Cheers,
    Guy

  • Issue with JDBC

    I may be wrong to post a query related to JDBC here but no choice i am posting here....
    We have multi tier application using
    IIS-Tomcat-InbuiltAppserver-Toplinlik-JDBC- Db
    Appserver is built in Java.
    JDBC:9.2.0.8
    Oracle:9.2.0.6 on AIX 5304
    JDK 1.4
    We are using internal conenction pooling.
    Suddenly we are encountering numerous locks in application log and i have attached the error message below. We have a raised a SR with metalink but still of no use...
    Has anyone ever ecnountered these stuffs
    INFO   | jvm 1    | 2009/03/30 10:57:28 | "VBJ ThreadPool Worker" daemon prio=5 tid=0x03a6dac8 nid=0x1698 runnable [55ce000..55cfd98]
    INFO   | jvm 1    | 2009/03/30 10:57:28 |      at java.net.SocketInputStream.socketRead0(Native Method)
    INFO   | jvm 1    | 2009/03/30 10:57:28 |      at java.net.SocketInputStream.read(SocketInputStream.java:129)
    INFO   | jvm 1    | 2009/03/30 10:57:28 |      at oracle.net.ns.Packet.receive(Unknown Source)
    INFO   | jvm 1    | 2009/03/30 10:57:28 |      at oracle.net.ns.DataPacket.receive(Unknown Source)
    INFO   | jvm 1    | 2009/03/30 10:57:28 |      at oracle.net.ns.NetInputStream.getNextPacket(Unknown Source)
    INFO   | jvm 1    | 2009/03/30 10:57:28 |      at oracle.net.ns.NetInputStream.read(Unknown Source)
    INFO   | jvm 1    | 2009/03/30 10:57:28 |      at oracle.net.ns.NetInputStream.read(Unknown Source)
    INFO   | jvm 1    | 2009/03/30 10:57:28 |      at oracle.net.ns.NetInputStream.read(Unknown Source)
    INFO   | jvm 1    | 2009/03/30 10:57:28 |      at oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:930)
    INFO   | jvm 1    | 2009/03/30 10:57:28 |      at oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:894)
    INFO   | jvm 1    | 2009/03/30 10:57:28 |      at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:383)
    INFO   | jvm 1    | 2009/03/30 10:57:28 |      at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1973)
    INFO   | jvm 1    | 2009/03/30 10:57:28 |      at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java:1231)
    INFO   | jvm 1    | 2009/03/30 10:57:28 |      - locked <0x1527a178> (a oracle.jdbc.ttc7.TTC7Protocol)
    INFO   | jvm 1    | 2009/03/30 10:57:28 |      at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2616)
    INFO   | jvm 1    | 2009/03/30 10:57:28 |      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2963)
    INFO   | jvm 1    | 2009/03/30 10:57:28 |      at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:658)
    INFO   | jvm 1    | 2009/03/30 10:57:28 |      - locked <0x11a58e68> (a oracle.jdbc.driver.OraclePreparedStatement)
    INFO   | jvm 1    | 2009/03/30 10:57:28 |      - locked <0x152798b8> (a oracle.jdbc.driver.OracleConnection)
    INFO   | jvm 1    | 2009/03/30 10:57:28 |      at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:584)
    INFO   | jvm 1    | 2009/03/30 10:57:28 |      - locked <0x11a58e68> (a oracle.jdbc.driver.OraclePreparedStatement)
    INFO   | jvm 1    | 2009/03/30 10:57:28 |      - locked <0x152798b8> (a oracle.jdbc.driver.OracleConnection)
    B) 31-Mar-2009 1710 hrs, locking observed at Oracle driver
    INFO   | jvm 1    | 2009/03/31 17:10:12 | "VBJ ThreadPool Worker" daemon prio=5 tid=0x03aa0560 nid=0x12fc runnable [44ff000..44ffd98]
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      at java.net.SocketInputStream.socketRead0(Native Method)
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      at java.net.SocketInputStream.read(SocketInputStream.java:129)
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      at oracle.net.ns.Packet.receive(Unknown Source)
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      at oracle.net.ns.DataPacket.receive(Unknown Source)
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      at oracle.net.ns.NetInputStream.getNextPacket(Unknown Source)
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      at oracle.net.ns.NetInputStream.read(Unknown Source)
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      at oracle.net.ns.NetInputStream.read(Unknown Source)
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      at oracle.net.ns.NetInputStream.read(Unknown Source)
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      at oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:930)
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      at oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:894)
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:383)
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1973)
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java:1231)
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      - locked <0x1525f140> (a oracle.jdbc.ttc7.TTC7Protocol)
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2616)
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2963)
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:658)
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      - locked <0x16622b00> (a oracle.jdbc.driver.OraclePreparedStatement)
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      - locked <0x1525f1a8> (a oracle.jdbc.driver.OracleConnection)
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:584)
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      - locked <0x16622b00> (a oracle.jdbc.driver.OraclePreparedStatement)
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      - locked <0x1525f1a8> (a oracle.jdbc.driver.OracleConnection)
    INFO   | jvm 1    | 2009/03/31 17:10:12 |      at TOPLink.Private.DatabaseAccess.DatabaseAccessor.n(DatabaseAccessor.java)
    C) 31-Mar-2009 1743 hrs, another similar locking seen at the Oracle driver
    INFO   | jvm 1    | 2009/03/31 17:43:58 | "VBJ ThreadPool Worker" daemon prio=5 tid=0x0385e008 nid=0x16b4 runnable [453f000..453fd98]
    INFO   | jvm 1    | 2009/03/31 17:43:58 |      at java.net.SocketInputStream.socketRead0(Native Method)
    INFO   | jvm 1    | 2009/03/31 17:43:58 |      at java.net.SocketInputStream.read(SocketInputStream.java:129)
    INFO   | jvm 1    | 2009/03/31 17:43:58 |      at oracle.net.ns.Packet.receive(Unknown Source)
    INFO   | jvm 1    | 2009/03/31 17:43:58 |      at oracle.net.ns.DataPacket.receive(Unknown Source)
    INFO   | jvm 1    | 2009/03/31 17:43:58 |      at oracle.net.ns.NetInputStream.getNextPacket(Unknown Source)

    Thank you,
    Based on the error message we suspected there was a contention in READ CONNECTION pool and we increased the parameter to cater additonal concurrent users and we started testing in UAT and didnt greatly help either.
    Then we narrow down to sql which was causiing the CPU to hike upto 100%. We looked into the sql which fetches data from a 5 Million record table which was taking 30 minutes to retrieve just 4 records.
    Then we decided to indexes the coulmns on the where clauses used in the sql. The query which was running for 30 minutes which caused the entire URL to slow down ran in 3-5 seconds.
    I never had seen something likes this whcih can result in such a drastic increase in performance .
    Our develpoment team has been telling all along that this is toplink problem /JDBC problem for slownesss...
    Basically it was an lack of troubleshooting that caused havoc for a week and was fixed in 4 hrs intense troubleshooting
    Thanks

  • Permanent OptimisticLockException

    Hi,
    I'm having some weird problems with an OptimisticLockException on an object. No matter what the application tries to do with this object, toplink throws an OptimisticLockException.
    The weird part is, the application catches the exception, and does a refresh on the object before rethrowing it, so I would expect it to be fresh the next time it's written upon.
    I can see in the logfile that no other unitOfWork modifies the object in the meantime. But frustratingly the next uow fails with the same OptimisticLockException as before.
    The object exists in the database. Restarting the application and thus having brand new cache doesn't change anything.
    Unfortunately the culprit object has been deleted by hand in the database so the only evidence I have are the logfiles. But I have a sneaking feeling that if it happened once, it might happen again.
    Any ideas how this can happen? Or how do I go about debugging the problem?
    by the way, this is a productive environment and SQL logging is turned off for performance reasons.

    Hi,
    Forget it, it's not a toplink problem. It's the database.
    There are apparently some database rows "lost in space". They are there, unless you query them by primary key...
    Example 1-n relationship parent ---> child
    select * from child_table where parent_id = 4 id name parent_id
    1 child1 4
    2 child2 4
    3 child3 4
    select * from child_table where id = 30 rows
    No wonder I kept getting an OptimisticLockException when reading all "children" and then trying to modify child3

  • Problem with multiple Toplink/JPA apps in same server

    Anyone have experence of running serveral Toplink/ EJB-3 Web apps in the same server (OC4J, alas)?
    We seem to get a problem with the second app failing to initialise toplink, with an entity not found message. Each app runs OK on it's own.

    Yes, they access the same datasource and most of the tables overlap.
    We're thinking it might help to have common entity classes and put them in a shared library, but I don't know if this is relevant (setting up shared libraries complicates testing and tends to snowball, I reckon we need about 15 jars all told).
    I''ve had some funnies on OC4J before which I think may be to do with it's use of ClassLoaders, for example I initially put persistence.xml in the libary jar with the data model, but for some reason I get the entity not found error that way. It only seems to work if it's in the classes folder.
    For the moment we're getting arround the problem with multiple OC4J instances in the server.

  • Problem migrating Toplink Workbench project from 9.0.4.5 to 10.1.3.1.0

    Hi all,
    I am having problems migrating my Toplink Workbench project from 9.0.4.5 to 10.1.3.1.0! I used the Toplink Workbench to open and convert the existing project. The conversion succeeded, but when I tried to export the mappings I got this:
    java.lang.NullPointerException
         at oracle.toplink.workbench.mappingsmodel.descriptor.relational.MWRelationalPrimaryKeyPolicy.adjustRuntimeDescriptor(MWRelationalPrimaryKeyPolicy.java:174)
         at oracle.toplink.workbench.mappingsmodel.descriptor.relational.MWRelationalTransactionalPolicy.adjustRuntimeDescriptor(MWRelationalTransactionalPolicy.java:85)
         at oracle.toplink.workbench.mappingsmodel.descriptor.MWDescriptor.buildRuntimeDescriptor(MWDescriptor.java:423)
         at oracle.toplink.workbench.mappingsmodel.descriptor.MWMappingDescriptor.buildRuntimeDescriptor(MWMappingDescriptor.java:860)
         at oracle.toplink.workbench.mappingsmodel.descriptor.relational.MWRelationalClassDescriptor.buildRuntimeDescriptor(MWRelationalClassDescriptor.java:791)
         at oracle.toplink.workbench.mappingsmodel.descriptor.relational.MWTableDescriptor.buildRuntimeDescriptor(MWTableDescriptor.java:955)
         at oracle.toplink.workbench.mappingsmodel.project.MWProject.buildRuntimeProject(MWProject.java:932)
         at oracle.toplink.workbench.mappingsmodel.project.MWProject.exportDeploymentXML(MWProject.java:804)
         at oracle.toplink.workbench.mappingsplugin.ProjectDeploymentXmlGenerationCoordinator.exportProjectDeploymentXml(ProjectDeploymentXmlGenerationCoordinator.java:46)
         at oracle.toplink.workbench.mappingsplugin.ExportDeploymentXmlAction.execute(ExportDeploymentXmlAction.java:27)
         at oracle.toplink.workbench.framework.action.AbstractFrameworkAction.actionPerformed(AbstractFrameworkAction.java:134)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
         at java.awt.Component.processMouseEvent(Component.java:5100)
         at java.awt.Component.processEvent(Component.java:4897)
         at java.awt.Container.processEvent(Container.java:1569)
         at java.awt.Component.dispatchEventImpl(Component.java:3615)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
         at java.awt.Container.dispatchEventImpl(Container.java:1613)
         at java.awt.Window.dispatchEventImpl(Window.java:1606)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    Anyone seen this error before? This is very critical for us. Please help. Thanks.
    Regards,
    gkk1969

    I am seeing the same problem when i try to do Export to Java Source
    java.lang.NullPointerException
         at oracle.toplink.workbench.mappingsmodel.descriptor.relational.MWRelationalPrimaryKeyPolicy.adjustRuntimeDescriptor(MWRelationalPrimaryKeyPolicy.java:174)
         at oracle.toplink.workbench.mappingsmodel.descriptor.relational.MWRelationalTransactionalPolicy.adjustRuntimeDescriptor(MWRelationalTransactionalPolicy.java:85)
         at oracle.toplink.workbench.mappingsmodel.descriptor.MWDescriptor.buildRuntimeDescriptor(MWDescriptor.java:423)
         at oracle.toplink.workbench.mappingsmodel.descriptor.MWMappingDescriptor.buildRuntimeDescriptor(MWMappingDescriptor.java:860)
         at oracle.toplink.workbench.mappingsmodel.descriptor.relational.MWRelationalClassDescriptor.buildRuntimeDescriptor(MWRelationalClassDescriptor.java:791)
         at oracle.toplink.workbench.mappingsmodel.descriptor.relational.MWTableDescriptor.buildRuntimeDescriptor(MWTableDescriptor.java:955)
         at oracle.toplink.workbench.mappingsmodel.project.MWProject.buildRuntimeProject(MWProject.java:932)
         at oracle.toplink.workbench.mappingsmodel.project.MWProject.exportProjectSource(MWProject.java:824)
         at oracle.toplink.workbench.mappingsplugin.ProjectSourceGenerationCoordinator.exportProjectSource(ProjectSourceGenerationCoordinator.java:68)
         at oracle.toplink.workbench.mappingsplugin.ExportJavaSourceAction.execute(ExportJavaSourceAction.java:31)
         at oracle.toplink.workbench.framework.action.AbstractFrameworkAction.actionPerformed(AbstractFrameworkAction.java:134)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
         at java.awt.Component.processMouseEvent(Component.java:5100)
         at java.awt.Component.processEvent(Component.java:4897)
         at java.awt.Container.processEvent(Container.java:1569)
         at java.awt.Component.dispatchEventImpl(Component.java:3615)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
         at java.awt.Container.dispatchEventImpl(Container.java:1613)
         at java.awt.Window.dispatchEventImpl(Window.java:1606)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

  • 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

  • Connection pooling problem in TopLink with JBoss4.0.3

    Hi All
    I am using JBoss4.0.3SP1 with TopLink-10g(9.0.4.5) and Sybase as database. I am implementing connection pooling of JBoss with Sybase. I have done all the changes in JBoss mapping files.
    Now to enable connection pooling in TopLink I have set the <uses-external-connection-pooling> attribute in sessions.xml file to true and I have added <datasource> attribute corresponding to the datasource defined in JBoss. It is working fine but when I delete the username, password...etc attribute from the sessions.xml then I am not able to get the session from datasource.
    Can anyone tell me what to do or where I am making mistake? Any help on this will be appreciated

    I tried that code also but the project object that I am getting is null which is in this line
    DatabaseLogin login = (DatabaseLogin)mySession.getProject().getLogin();
    mySession is an object of oracle.toplink.sessions.Session interface but when I call this method then it returns me a null object of Project class, so I am getting NullPointerException error. I tried to do this stuff by many ways but I am always getting the NullPointereException in setLogin() method of Session. This is the stackTrace of the error.....
    java.lang.NullPointerException
    at oracle.toplink.publicinterface.Session.setLogin(Session.java:2871)
    at com.test.TestCon.executeQurey(TestCon.java:91)
    at org.apache.jsp.Test_jsp._jspService(org.apache.jsp.Test_jsp:55)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Unknown Source)
    Can you please tell me where I am wrong or any other way to do fix this problem.

  • Problem using Toplink with JUnit

    Hi,
    I have a problem using Toplink with JUnit. Method under test is very simple: it use a static EntityManager object to open a transaction and persists data to db. When I invoke the method from a test method, it gives me the exception:
    java.lang.AssertionError
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.computePURootURL(PersistenceUnitProcessor.java:248)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.findPersistenceArchives(PersistenceUnitProcessor.java:232)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.findPersistenceArchives(PersistenceUnitProcessor.java:216)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:239)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initializeFromMain(JavaSECMPInitializer.java:278)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.getJavaSECMPInitializer(JavaSECMPInitializer.java:81)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:119)
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:60)
         at it.valerio.electromanager.model.EntityFacade.<clinit>(EntityFacade.java:12)
         at it.valerio.electromanager.business.ClienteBiz.insertIntoDatabase(ClienteBiz.java:36)
         at it.valerio.electromanager.test.model.ClienteTest.insertDBTest(ClienteTest.java:30)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
         at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
         at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
         at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
         at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
         at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
         at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
         at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
         at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
         at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
         at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
         at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
    Where is the problem???
    Regards,
    Valerio

    EntityFacade class is very simple and it uses a static EntityManager object. Here the code:
    public class EntityFacade {
         private static EntityManager em = Persistence.createEntityManagerFactory("ElectroManager").createEntityManager();
         private static Logger logger=Logger.getLogger(EntityFacade.class);
         public static void insertCliente(Cliente c)
              logger.debug("Inserisco cliente nel db: " + c);
              em.getTransaction().begin();
              c.setId(getNextIdForTable("Cliente"));
              em.persist(c);
              em.getTransaction().commit();
    If I call the method from inside a main it works well, so I think the problem is not the classpath neither the URL in the persistence.xml. However the URL is:
    <property name="toplink.jdbc.url" value="jdbc:derby:c:/programmi/ElectroManager/db/electroManager"/>
    I use the latest build version of TopLink.
    Thanks.

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

  • Toplink transaction-type problem

    we have web application ear file, inside ear file persistence.xml is looking like
    <persistence-unit name="TCA" transaction-type="JTA">
    <provider>oracle.toplink.essentials.PersistenceProvider</provider>
    <jta-data-source>jdbc/TcaConnDS</jta-data-source>
    We have deployed same ear file to 4 different oc4j instances and 2 oc4j instances application working without problem. Another 2 oc4j instances application does not work and we have to modify transaction-type="JTA" to transaction-type="RESOURCE_LOCAL" to make it work.
    Since we have deployed same ear to all oc4j instances, 2 oc4j only work with transaction-type="JTA" and the other 2 only work with transaction-type="RESOURCE_LOCAL".
    I think it is OC4J configuration to affect toplink behavior. Which oc4j configuration can affect toplink transaction-type setting?
    Thanks for the help.

    Very odd. What does not work, what error do you get?
    Are the OC4J servers that same version, what is different about them?
    James : http://www.eclipselink.org

  • COMMIT problem in TopLink, Struts, JSP and ADF Databinding sample

    In the sample Developing a J2EE Application using TopLink, Struts, JSP and ADF Databinding,
    I followed all the steps to build a department browse page and a edit page.
    But when I get to Step number 23 in "Create a JSP to Edit Departments" I have a problem with the commit.
    Only after I make a change in the form and click the sumbit button, the commit and rollback buttons become active. And After I click the commit button the data gets commited to the database but the page inofmation changes to the very first department record, not the current one.
    How do I make those buttons active with out the extra click on the submit?
    After I click the commit button, how do I keep the current data on the screen?
    Thanks for you help.

    Shay,
    Thanks for the reply.
    For #1, I was able to do the following and get away with not having to press submit first. I just removed the bindings for disable. I hope that does not cause any problems?
    <input type="submit" name="event_Commit" value="Commit" />
    <input type="submit" name="event_Rollback" value="Rollback" />
    For #2, How I add an action on an HTML button? My UIModel.xml for the edit department page currently has two actions on it. Commit and RollBack. Is it linked through the "name" attribute of the input tag?

  • Problem updating a date field via UnitOfWork - TopLink 9.0.3

    Hello,
    we want to change an exisiting application that employs TopLink 9.0.3, Build 423.
    The data is stored in an Oracle 9.2.0.6.
    The specific table has a composite primary key consisting of four fields.
    I can easily create a new Object (foo)
    uow.registerNewObject(foo)
    uow.commit()
    and see the results in the database.
    If I obtain an exising Object (bar) and change an integer
    bar = (Bar) Session.readObject(Bar.class, expr);
    cloneBar = (Bar) uow.registerObject(bar);
    cloneBar.setSomething(42);
    uow.commit()
    everything is fine.
    But if I dare to change a Date field
    cloneBar.setSomethingElse(cal.getTime());
    then
    uow.hasChanges()
    returns true
    but the update does not happen. It is neither logged nor is the data changed in the database.
    Is this a known bug?
    What have I done wrong?
    How can I avoid using hard-coded SQL to update my Bar object?
    Bye,
    Stephan

    Hello,
    it is very disturbing, but I finally found the reason for this problem.
    After decompiling the Project class file (we have no source code of this third-party library), I saw that the mapping for this specific field is set to "readOnly".
    I did not know that TopLink is able to have specific fields "readOnly" and others "readWrite", but it can handle this!
    So it seems that the behaviour is not a bug but a feature :-(
    We can change the mapping before creating the session, with the result that the field is updatable.
    Have a nice day.

Maybe you are looking for

  • Why am I no longer able to download and listen to audio books on my iPhone?

    My iPhone 4S no longer will play audio books or sync them from my personal iTunes library.  The audio books will complete the download process on my phone but they do not appear in the music app on my phone so they can't be played.  Does anyone know

  • Date of adv against po or performa invo. or dispatch doc and mat receipt

    Is it possible to generate a report so as to track down all the material receipt made against particular advances made for different line items of p.o or to know whether goods have been received wrt advance payments made within specific time and if n

  • How to convert/restore data from SO_DOCUMENT_READ_API1 in a file ?

    Hi all, I have succeed in finding where my attachment data were stored thanks to the SO_DOCUMENT_READ_API1. But how could I convert/restore those data in the original file ? (data seems to be in a RAW format store in table Object_Content) If I want m

  • Double-click not picked up by Flash properly

    Hi, On some computers my Flash application does not react properly to a double click, while on others everything works just fine. For example, I have a computer with a Quad Core 2,66MHz CPU that runs Ubuntu with Firefox 3.0.5. When I open my Flash ap

  • Grant privileges, roles within Forms

    Hello, i have a forms application where each year can appear new users (e.g. employees), and i when a new employee appears i wanna grant him privileges, roles, etc within Forms. so is it possible having a form(accesible just for dba user) from where