ReadAllQuery using named EJBQL from Mapping Workbench

Hi,
how to use named EJBQL queries defined in Mapping Workbench in code.
ReadObject queries can be done using:
MyObject o = (MyObject)getUnitOfWork().executeQuery("findById", MyObject.class, id);
But I need to a Collection back. So how do I have to do this???
Andy

If you want a collection back you must define the query as a ReadAllQuery in the Mapping Workbench.
then your code will be,
List objects = (List)getUnitOfWork().executeQuery("findById", MyObject.class, id);
However you will probably use something other than id for the query, as the id will normally only return a single object.
If you just want a colleciton back from the ReadObject then just create and add the object to the collection.

Similar Messages

  • New problem  --  My java code can't see my CLASSES from Mapping Workbench

    Donald and others -
    I am VERY new to TopLink......
    I was at the last Oracle Developer Days in Northern Virginia. Donald convinced me and my co-workers to use TopLink for our upcoming project. I have been having tons of problems getting it to work correctly. Maybe I need a TOPLINK license plate, like Donald!!!
    Here is my newest problem. I can create a DatabaseSession, login to it, write a query and log out of it.
    However, I can only do this if I remove my classes from the Mapping Workbench. As soon as I add even one class to the Mapping Workbench......I get an error as follows:
    LOCAL EXCEPTION STACK:
    EXCEPTION [TOPLINK-3007] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.ConversionException
    EXCEPTION DESCRIPTION: The object [mil.usa.lbit.isr.TestIsr], of class [class java.lang.String], could not be converted to [class java.lang.Class]. Please ensure that the class [class java.lang.Class] is on the CLASSPATH. You may need to use alternate API passing in the appropriate class loader as required, or setting it on the default ConversionManager
    INTERNAL EXCEPTION: java.lang.ClassNotFoundException: mil.usa.lbit.isr.TestIsr
    Can anyone tell me where I need to put my class files so the java code can see them via the ISR.xml deployment file.
    I currently have these files in a .jar file on the system path and in my web-inf folder and in my project settings. I put them everywhere I could think of, but no luck.
    Here is my code:
    package mil.usa.lbit.isr;
    import mil.usa.lbit.LbitColors;
    import java.util.*;
    import java.math.*;
    import oracle.toplink.sessions.*;
    import oracle.toplink.tools.schemaframework.*;
    import oracle.toplink.exceptions.*;
    import oracle.toplink.expressions.*;
    import oracle.toplink.queryframework.*;
    import oracle.toplink.tools.workbench.*;
    public class TestIsr extends ISR {
    public DatabaseSession session;
         public Project project;
    public TestIsr() {
    this.name = "TestISR";
    this.color = LbitColors.AMBER;
    this.metric = 97.00;
    public boolean isConnected() {
    if (session == null)
    System.out.println("Not Connected");
    return false;     
    System.out.println("Connected");
    return session.isConnected();
    public void loginToDatabase() {
    Project builderProject;
    System.out.println("Attempt to login to database using TopLink:");
    project = XMLProjectReader.read("C:\\LBIT TopLink\\ISR\\ISR.xml");
    session = project.createDatabaseSession();
    session.login();
    System.out.println("Logged in");
    public void runQuery() {
    ExpressionBuilder builder = new ExpressionBuilder();
    Expression expression = builder.get("isr_id").equal(3);
    System.out.println(expression);          
    //TestIsr isr = (TestIsr) session.readObject(TestIsr.class, expression);
    //System.out.println(isr);     
    public void logoutOfDatabase() {
    session.logout();     
    System.out.println("Logged out");          
    public static void main(String[] args) {     
    TestIsr testing = new TestIsr();
    testing.isConnected();     
    testing.loginToDatabase();          
    testing.isConnected();
    testing.runQuery();
    testing.logoutOfDatabase();     
    Thanks in advance.
    Donald please email me and maybe we can chat on the phone if you want to offer some help.
    Andy

    Thanks for the reply!
    However, I did try to implement that yesterday.
    When I add the "getClass().getClassLoader()" to the "XMLProjectReader.read" call, the codes loses site of my project (.xml) file.
    Here is the new line:
    project = XMLProjectReader.read("C:\\LBIT TopLink\\ISR\\ISR.xml", getClass().getClassLoader());
    Here is the new error:
    EXCEPTION [TOPLINK-7099] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.ValidationException
    EXCEPTION DESCRIPTION: Could not find xml project file which is specified in properties file: xmlProjectFile=C:\LBIT TopLink\ISR\ISR.xml.
         oracle.toplink.exceptions.ValidationException oracle.toplink.exceptions.ValidationException.projectXMLNotFound(java.lang.String, java.lang.Exception)
         oracle.toplink.sessions.Project oracle.toplink.tools.workbench.XMLProjectReader.read(java.lang.String, java.lang.ClassLoader)
    But my code could find that file before I added the "getClass().getClassLoader()" code.
    Maybe I can avoid this problem by "deploying the XML file in my application jar?" Could you please explain more about this option after answering the first part of my question.
    Any other posters feel free to help me too.
    I know TopLink is a powerful tool, I just keep hitting these hurdles. ARRRRRRRGGGG!!!
    Thanks again,
    Andy

  • Is there a way to use a bookmark from Maps as the home/work address of a contact?

    I'm trying to use location-based reminders. But the Home and Work addresses I have in my own contact card are not recognized by Apple Maps.
    Is there a way to use Apple Maps to set the Home and Work addresses in my contact card to something that it will be able to understand?
    Edit: It doesn't have to be with Apple Maps. Google Maps or any other service where I can bookmark my "Current Location" would be fine. I just want an effieient way to use Location-based reminders when manually inputting an address is not an option, but locating it on a map is.

    Unfortunately there is no way to do that current stage , you would need to add the tags manually.
    Thanks,
    Sanjit

  • Null pointer exception from 10.1.3dp4 Mapping Workbench

    Using 10.1.3dp4 Mapping Workbench I opened a very simple 9.0.4 project successfully. I then successfully saved the project in a different folder. I then successfully logged into the database. When I right click on the database and "Add or update existing tables from database" or select a table and "Refresh from database", I get the following error:
    What am I doing wrong?
    java.lang.NullPointerException
         at oracle.toplink.workbench.mappingsmodel.db.MWDatabase.buildExternalDatabase(MWDatabase.java:480)
         at oracle.toplink.workbench.mappingsmodel.db.MWDatabase.getExternalDatabase(MWDatabase.java:473)
         at oracle.toplink.workbench.mappingsmodel.db.MWDatabase.catalogNames(MWDatabase.java:716)
         at oracle.toplink.workbench.mappingsplugin.ui.db.TableImporterDialog.buildCatalogs(TableImporterDialog.java:171)
         at oracle.toplink.workbench.mappingsplugin.ui.db.TableImporterDialog.initialize(TableImporterDialog.java:142)
         at oracle.toplink.workbench.mappingsplugin.ui.db.TableImporterDialog.<init>(TableImporterDialog.java:114)
         at oracle.toplink.workbench.mappingsplugin.ui.db.AddOrRefreshTablesAction.execute(AddOrRefreshTablesAction.java:42)
         at oracle.toplink.workbench.mappingsplugin.ui.db.AddOrRefreshTablesAction.execute(AddOrRefreshTablesAction.java:36)
         at oracle.toplink.workbench.framework.action.AbstractFrameworkAction.actionPerformed(AbstractFrameworkAction.java:135)
         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)

    I just started the Mapping Workbench and it works fine, so at a minimum, stopping and restarting the workbench will do it. Sorry but I don't know if closing and reopening the project will do the trick.

  • 9.0.4 Mapping Workbench anomaly

    Environment:
    I recently converted from Mapping Workbench 9.0.3.5 (build 436) to 9.0.4 (build 031126).
    Classes:
    I have three classes A, B, and C. C extends B and B extends A. C is defined/known to the Workbench with its attributes and inherited attributes from B and A mapped.
    Anomaly:
    In my IDE I added a private attribute to B. In the 9.0.4 Workbench I “Refresh Classes” with C selected [or “Refresh Classes” with the project selected] and then “Map Inherited Attributes” [all permutations of the submenu and all of the classes available on “To Selected Class”] yet the new attribute does not show up in the Workbench.
    I open the “pre-conversion” project in 9.0.3 and “Refresh Classes” with C selected and the attribute shows up immediately and can be mapped.
    So I’m wondering what I’m doing wrong in the 9.0.4 version that keeps it from seeing the attribute I’ve placed into B.
    Thanks,
    Arvid

    Support was added for this in the Mapping Workbench in 9.0.4.1 (bug #3310537). You can upgrade to the latest 9.0.4 patch release on metalink.
    thanks,
    Karen

  • Using SQL as query type from the mapping workbench

    Hi
    We are upgrading a project from toplink 2.x to 9.03. The old used the java builder syntax for the finders, this is not supported anymore in 9.03. Therefore we need to convert these finders to either EBQL or SQL.
    As our developers here mostly know standard SQL we'll like to use this. But in the toplink doc's we cant find any good examples how to use this. All the examples are also only with EBQL.
    The questions is mostly how do you define the bind parameters in the SQL query string in the workbench.
    select * from user where user.username = ?
    select * from user where user.username = ?1
    select * from user where user.username = #param1
    select * from user where user.username = #param1#
    select * from user where user.username = #1
    select * from user where user.username = #1#
    Any help?
    /Denver

    What do you mean by "The old used the java builder syntax for the finders, this is not supported anymore in 9.03"?
    TopLink still absolutely supports the Java builder syntax! In 9.03 we added Mapping Workbench support but just for EJBQL and SQL for that release -- you can still use the expression builder in code! In the upcoming 9.04 I've seen that you can use the builder syntax in the mapping workbench too!
    - Don

  • XSLT using Java function from graphical mapping (RFClookup)

    Hi,
    I was wondering if it is possible to use the standard Java functions of the graphical mapping (RFCLookup, Datetrans, ...) or from my own UDF inside an xslt mapping. Does anyone have every tried this or is an example available ?
    Regards Bernd

    Hi Bernd,
    here you can find an example how to use RFC lookup from an XSLT Mapping:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc8efd4ee14?quicklink=index&overridelayout=true
    Is this what you're looking for?
    Regards,
    Gábor

  • Using Java 1.5 with TopLink Mapping Workbench 10g(9.0.4.9) - Exception

    We're getting a ExternalClassNotFoundException when refreshing classes in 10g(9.0.4.9) workbench. The classes were recently compiled in JAVA 1.5. We have just migrated from RAD6 using Java 1.4 to RAD8 using Java 1.5. Is there a way to use this verion of the workbench with JAVA 1.5? Or is our only alternative to upgrade to a later version on the workbench.

    I strongly suggest to upgrade to AS 10.1.3 to get this.
    Think of future support of AS 9.0.4. You will get not critical patch updates anymore.
    --olaf                                                                                                                                                                                                                                                                                                               

  • Which mapping workbench to use?

    Is the Toplink Mapping Workbench integrated with JDeveloper same as the standalone Toplink Mapping Workbench?
    In the Mapping Workbench that comes integrated with JDeveloper 10.1.2, will I be able to specify AllFieldsLockingPolicy?
    Is the Mapping Workbench 10.1.3 compatible with JDeveloper 10.1.2?
    -Madhav

    Hi Madhav,
    The TopLink Mapping Editor in JDeveloper for versions 9.0.5 - 10.1.3 has equivalent functionality as the 9.0.4 Mapping Workbench. However, the 10.1.3 version of the Mapping Workbench does have additional features that have not yet been included in any released JDeveloper versions. One of these feature included in the Mapping Workbench is AllFieldsLockingPolicy configuration. In version 11 of JDeveloper, the functionality will be equivalent with the Mapping Workbench and better in some cases. In terms of compatibility, we have not yet implemented a migration tool to go between the Mapping Workbench and JDeveloper. Let me know if you need more information.
    Thanks, John

  • Mapping Workbench 9.0.4.5 Queries Tab

    I'm looking for documentation on how I can use this screen (The Queries tab on the Descriptor) to modify Toplink behaviar via the mapping workbench.
    If I were really strong on building Toplink mappings outside of the worbench, this might be obvious. So far, we have stayed within the confines of the mapping workbench.
    Thanks

    Robert,
    The most common usage of this tab is to graphically define named queries. These queries define parameter based queries using TopLink expressions, EJB QL, or SQL.
    http://download-west.oracle.com/docs/cd/B10464_01/web.904/b10316/dscriptr.htm#1041139
    Using this will allow you to minimize the amount of query code you need to write and maintain. This further reduces coupling of the persistence layer from to application and provides better diagnostics on queries. As you mappings change any queries that are broken by changes can be indicated versus having to find the query issue at runtime.
    To execute the queries in see 'Named Queries' at:
    http://download-west.oracle.com/docs/cd/B10464_01/web.904/b10313/queries.htm#1128980
    Doug

  • NOT Using Named Parameters in a Native Query

    Hi!
    like it is written in the Toplink JPA Extensions reference Toplink supports using named parameters in native queries.
    See example from http://www.oracle.com/technology/products/ias/toplink/jpa/resources/toplink-jpa-extensions.html:
    Example 1-11 Specifying a Named Parameter With #
    Query queryEmployees = entityManager.createNativeQuery(
    "SELECT OBJECT(emp) FROM Employee emp WHERE emp.firstName = #firstname"
    queryEmployeeByFirstName.setParameter("firstName", "Joan");
    Collection employees = queryEmployees.getResultList();
    But I want to use "#" in the SQL statement so I want to disable this parameter binding somehow and let the query just execute the SELECT statement I deliver.
    I have tried to add the property
    <property name="toplink.jdbc.bind-parameters" value="false"/>
    into the persistence.xml and I have also tried to add the query hint
    query.setHint(TopLinkQueryHints.BIND_PARAMETERS, HintValues.FALSE);
    but none of them prevents the # to be uses as a paramter. this causes the exception:
    Exception [TOPLINK-6132] (Oracle TopLink Essentials - 9.1 (Build b22)): oracle.toplink.essentials.exceptions.QueryException
    Exception Description: Query argument ######' not found in list of parameters provided during query execution.
    Query: ReadAllQuery(de.merck.compas.material.SimilarLocalMaterialListItemBV)
    The SQL Statement is
    SELECT * FROM TABLE (
    CAST ( RCGC.PHA_P_COMPASMDM.LookupSimilarMats
    ( 'COC003','10021500150000000997','30','30','040','standard','','001001','001001','123456','##########','X','X','X','X','U' )
    AS RCGC.PHA_COMPAS_SIMILAR_MATS ) )
    I am using the latest Toplink essentials build together with an Oracle 9.2i DB in a Java SE web application.
    Can anyone give me a little hint what to do?
    Thanks and best regards,
    Alex

    I hope this is what you need:
    [TopLink Fine]: 2007.01.19 02:56:48.278--ServerSession(17712783)--Connection(723185)--Thread(Thread[http-8080-Processor2
    3,5,main])--SELECT APPL_CGP_MATLOC, CHANGE_REQ_MATLOC, CD_PHA_MAT_LOC, LCOMP, LOC_MAT_NAME, APPL_GDM_MATLOC, LOC_MAT_NAM
    E_SHORT, APPL_PDW_MATLOC, PHA_MAT_LOC_LCOMMENT, APPL_TP_MATLOC, DIVISION, APPL_WRS_MATLOC, ARTICLE_ID_MDA, LU_PHA_MAT_LO
    C, LOC_MAT_NAME_OLD, LDT_PHA_MAT_LOC, PHA_MAT_LOC_STATUS, CU_PHA_MAT_LOC, MAT_LOC_ID, RCOMP, MAT_ID FROM RCGC.PHA_V_COMP
    AS_MAT_MATLOC WHERE ((MAT_LOC_ID = '123456') AND (RCOMP = '001001'))
    [TopLink Fine]: 2007.01.19 02:56:48.398--ServerSession(17712783)--Connection(32404901)--Thread(Thread[http-8080-Processo
    r23,5,main])--SELECT MAT_ID, DESCRIPTION, PHA_MATERIAL_LCOMMENT, PACKSIZE, LU_PHA_MATERIAL, PACKSIZE_UNIT, LDT_PHA_MATER
    IAL, CONTAINER_NAME, CU_PHA_MATERIAL, PURPOSE, CD_PHA_MATERIAL, CONTENT, CONTAINER_ID, AI_FACTOR, PHA_MATERIAL_STATUS, C
    MG_SPEC_APP, PROD_LEVEL, PACKAGE_SIZE, PRODUCT_ID FROM RCGC.PHA_V_COMPAS_MATERIAL WHERE (MAT_ID = '10021500150000000997'
    [TopLink Fine]: 2007.01.19 02:56:48.468--ServerSession(17712783)--Connection(723185)--Thread(Thread[http-8080-Processor2
    3,5,main])--SELECT PRODUCT_ID, PROD_GRP_ID, APPL_FORM_NAME, PRODUCT_NAME, GALENIC_FORM_NAME, APPL_FORM_ID, PHA_PRODUCT_S
    TATUS, PHA_PRODUCT_LCOMMENT, GALENIC_FORM_ID, LU_PHA_PRODUCT, INN, LDT_PHA_PRODUCT FROM RCGC.PHA_V_COMPAS_PRODUCT WHERE
    (PRODUCT_ID = 'COC003')
    [TopLink Fine]: 2007.01.19 02:56:48.568--ServerSession(17712783)--Connection(32404901)--Thread(Thread[http-8080-Processo
    r23,5,main])--SELECT APPL_CGP_MATLOC, CHANGE_REQ_MATLOC, CD_PHA_MAT_LOC, LCOMP, LOC_MAT_NAME, APPL_GDM_MATLOC, LOC_MAT_N
    AME_SHORT, APPL_PDW_MATLOC, PHA_MAT_LOC_LCOMMENT, APPL_TP_MATLOC, DIVISION, APPL_WRS_MATLOC, ARTICLE_ID_MDA, LU_PHA_MAT_
    LOC, LOC_MAT_NAME_OLD, LDT_PHA_MAT_LOC, PHA_MAT_LOC_STATUS, CU_PHA_MAT_LOC, MAT_LOC_ID, RCOMP, MAT_ID FROM RCGC.PHA_V_CO
    MPAS_MAT_MATLOC WHERE (MAT_ID = '10021500150000000997')
    [TopLink Warning]: 2007.01.19 02:56:48.638--UnitOfWork(4469532)--Thread(Thread[http-8080-Processor23,5,main])--Exception
    [TOPLINK-6132] (Oracle TopLink Essentials - 9.1 (Build b22)): oracle.toplink.essentials.exceptions.QueryException
    Exception Description: Query argument ######' not found in list of parameters provided during query execution.
    Query: ReadAllQuery(de.merck.compas.material.SimilarLocalMaterialListItemBV)
    Local Exception Stack:
    Exception [TOPLINK-6132] (Oracle TopLink Essentials - 9.1 (Build b22)): oracle.toplink.essentials.exceptions.QueryExcept
    ion
    Exception Description: Query argument ######' not found in list of parameters provided during query execution.
    Query: ReadAllQuery(de.merck.compas.material.SimilarLocalMaterialListItemBV)
    at oracle.toplink.essentials.exceptions.QueryException.namedArgumentNotFoundInQueryParameters(QueryException.jav
    a:206)
    at oracle.toplink.essentials.internal.databaseaccess.DatasourceCall.getValueForInParameter(DatasourceCall.java:6
    86)
    at oracle.toplink.essentials.internal.databaseaccess.DatasourceCall.getValueForInOutParameter(DatasourceCall.jav
    a:704)
    at oracle.toplink.essentials.internal.databaseaccess.DatasourceCall.translateQueryString(DatasourceCall.java:630
    at oracle.toplink.essentials.internal.databaseaccess.DatabaseCall.translate(DatabaseCall.java:850)
    at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQuer
    yMechanism.java:212)
    at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQuer
    yMechanism.java:199)
    at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCa
    llQueryMechanism.java:270)
    at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQu
    eryMechanism.java:600)
    at oracle.toplink.essentials.queryframework.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:302)
    at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:
    709)
    at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:609)
    at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:677)
    at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:7
    31)
    at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2218)
    at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:937)
    at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:909)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:346)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.getResultList(EJBQueryImpl.java:447)
    at de.merck.compas.material.SimilarLocalMaterialListItemBC.selectList(SimilarLocalMaterialListItemBC.java:40)
    at de.merck.compas.material.SimilarLocalMaterialListItemBC.selectSimilar(SimilarLocalMaterialListItemBC.java:53)
    at de.merck.compas.material.MaterialMaintainFS.init(MaterialMaintainFS.java:158)
    at de.merck.compas.material.MaterialListSV.startMaterialMaintain(MaterialListSV.java:186)
    at de.merck.compas.material.MaterialListSV.processPage(MaterialListSV.java:97)
    at de.merck.jsfw.servletFramework.AbstractServlet.processPage(AbstractServlet.java:141)
    at de.merck.jsfw.servletFramework.ControllerServlet.processLastPage(ControllerServlet.java:240)
    at de.merck.jsfw.servletFramework.ControllerServlet.processRequest(ControllerServlet.java:206)
    at de.merck.jsfw.servletFramework.ControllerServlet.doGet(ControllerServlet.java:181)
    at de.merck.jsfw.servletFramework.ControllerServlet.doPost(ControllerServlet.java:191)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at de.merck.comp.ntml.NTLMFilter.negotiate(NTLMFilter.java:384)
    at de.merck.comp.ntml.NTLMFilter.doFilter(NTLMFilter.java:165)
    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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
    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:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java
    :664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:595)
    The Toplink manifest file with version number:
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.6.5
    Created-By: 1.5.0_09-b03 (Sun Microsystems Inc.)
    Specification-Title: Java Persistence API
    Specification-Vendor: Sun Microsystems, Inc., Oracle Corp.
    Specification-Version: 1.0
    Implementation-Title: TopLink Essentials
    Implementation-Vendor: Sun Microsystems, Inc., Oracle Corp.
    Implementation-Version: 9.1 build: b22
    Thanks again for your help!

  • JDeveloper Mapping Workbench - Create Table References?

    How can I create a Table Reference in JDeveloper's Mapping Workbench?
    For example, I have ITEM and ITEM_DETAILS tables. The DB does not have a FK defined from ITEM_DETAILS and ITEM. So I need to create the Toplink Table Reference myself.
    In the standalone Toplink Workbench I see how to do this.
    In JDeveloper 10.1.3.1 mapper UI I don't see how this is done.

    You can edit the offline DB objects stored in your JDeveloper project to add the FK constraints not on the database.
    If you also use these table definitions to re-generate the schema there is a check-box in the lower left of the FK panel that allows you to specify that a FK constraint is for offline purposes only. You can still select it in TopLink but it will not be re-generated onto the database.
    Doug

  • TopLink Mapping WorkBench - Interfaces

    Hi,
    I am using toplink workbench version 9.0.4.5 ,Oracle DB 10g(9.0.4),jdk version 1.4.2
    I get an issue with interfaces in mapping workbench. When I select refresh classes option, the implementors selected for the interfaces are not retained.
    Is this the expected behaviour ?
    Is there any patch for this problem ?
    I had applied patch number 3941343 for this mapping work bench. Is there any other pathces we should be applying to this version ?
    Thanks
    Priya

    I am using 10.1.3.0.1 and for me there are still grave issues with interface management in the WB.
    First of all, I get a NullPointerException when clicking the "add" Button on the interface descriptor's implementor list after having refreshed all classes by selecting the project packages and doing "refresh classes" from the context menu. I have to close and restart the WB in order to be able to continue working.
    Then, some attributes which are not common among the implementor classes are detected as common query keys.
    Lastly, if I use variable one-to-one relationships and de-select some class indicator values, the de-selected implementor descriptors are displayed as selected after workbench restart again, showing me errors about missing class indicator values for selected descriptors (Error 0055).

  • Inheritance in mapping workbench

    I try to use an existing class design with TopLink: I have for each table classes for value objects (*VO) containing only the attributes from the database tables (including the foreign keys). And I have classes for composite objects (*CO) inherited from *VO, additional containing the references to other VO and CO objects.
    A simple example:
    class FirstVO           // attributes for first database table
    private long id;     // database primary key
    private long secondId;// database foreign key to second table
    class FirstCO extends FirstVO      // references from first database table
    private SecondVO second;     // object reference to second table's object
    class SecondVO           // attributes for second database table
    private long id;     // database primary key
    In TopLink mapping workbench I have done the mapping for classes *VO. That's okay.
    When I try to do the mapping for class FirstCO, I get problems:
    - TopLink mapping workbench recognizes the class hierarchy for FirstCO fine and displays it in class info.
    - But there is not way in workbench to do the mapping of the inherited attributes for class FirstCO.
    - It does not recognize that it could use the mapping from inherited class FirstVO also for FirstCO. Setting in Descriptor/...FirstClassCO.ClassDescriptor.xml the attribute Descriptor/mappings/Mapping/inherited to true will not change this (but a green arrow up is displayed with FirstCO).
    - The workbench displays an error about class FirstCO: The following primary key fields are unmapped: ID
    How can I map this field?

    Have you setup the descriptor inheritance? Right click on the Descriptor's FirstVO and FirstCO, and select "Advanced properties--inheritance". Set the Parent Decriptor for FirstCO to be FirstVO (it's on the bottom of the inheritance tab). When you do that, you should be able to map the inherited attributes with no problems. Basically, you can remap (aka override" the mappings for superclass in subclasses.
    - Don

  • Mapping Workbench & JDeveloper

    I am having significant problems working with both the Toplink Mapping Workbench 10g (9.0.4.2 build 040311) and JDeveloper 10g (Version 9.0.5.2 build 1618) on the same project.
    For instance, I created an empty Toplink-enabled Project in JDeveloper. Closed JD and opened the .mwp project from the Workbench. Created some CMP 2.0 Entity EJBs and exported the model java source. Closed WB in order to open JD and add the ejb-jar.xml file to the project, but JB now errored on the .mwp project file. This seems such a basic incompatibility that I’m wondering whether I’m not using the tools the way they are intended.
    What is the recommended way of working with Toplink and JDeveloper? I know that some of the workbench functionality is available within JD, but there seemed to be things that I couldn’t do without the workbench (e.g. export model java source)
    I’d appreciate any advice anyone can give me

    Matthew,
    Switching between the workbench and JDeveloper is not supported at this time. You can however, import a workbench project in JDeveloper by performing manual steps. Please look at the JDeveloper release notes for that information.
    Exporting model java source is not available in JDeveloper since you will always be working with your .java to begin with.
    To get yourself started quickly, you can use POJO from tables (TopLink) wizard in JDeveloper.

Maybe you are looking for

  • Invoking Managed Bean at a Page Level

    I know JSF is component based, but I have a situation where I am writing an application using Nagios ( http://www.nagios.org ), which is an OSS network monitoring tool. The tool monitors/notifies systems (db, ldap, mq, etc) using unique URL's. I've w

  • ABAP web service/ Virtual Interface

    Hi all, I'm trying to create a webservice for a ZRFC,when using the wizard in SE37>utilites>more utilities>create web service> from function module ,it's creating only the Webservice ,not prompting for a "virtual interface" .Same thing happens in se8

  • Shell script & runtime

    Hi, I have an application that needs to run a shell script and this shell script has some arguments. This is the shell script : #!/bin/tcsh -f source ~tripos/setup/ta_root setenv LD_LIBRARY_PATH ${TA_3DB}/lib:${TA_ROOT}/lib_share unsetenv LD_LIBRARYN

  • Have a Dual 2.5 GHz PowerPC G5 w Geforce 6200 Video card.  Need to replace. Do I need a mac specific, or will a PC version work?

    I need a Geforce 6200 Video card. The present card is 'flaky', causing ocaisional freezes on startup.  Does the replacement have to be mac specific, or will a PC version work?

  • LabPC analog input estrange behaviour

    Hi, I have a LabPC board and I have found ?an estrange? behaviour when I connect an analog input signal to one channel (e.g.: to channel 0) and I leave the rest of channels open. I know this is not the way to do it, but I would like to know what?s ha