Invalid query key

I have the following class hierarchy
A has a one-to-many relationship with B, B has a one-to-one relationship with C, C has a one-to-one relationship with D and D has a one-to-one relationship with E. B, C, D, and E each have a derived class B1, C1, D1 and E1 respectively.
I am getting Invalid Query Key exception while trying to access a query key defined in E1 using the following toplink code
ExpressionBuilder.get("A").anyOf("B").get("C").get("D").get("E").get("aFieldInE1");
Any help on this will be greatly appreciated.
Thanks,
Milan Dattawade.

I assume by "derived class" you mean subclass. If so, then this query breaks polymorphism. Although you may know that you only want A's that have an E that is specifically E1, the language doesn't know that.
Luckily there is an easy way to handle this. You can create a Query Key in the class E that has the information about the subclass attribute in E1 that you want to be able to query through. In other words, hint to TopLink that you'd like to occasionally query and break polymorphism by assuming you're querying on specific subclass attributes.
See:
http://download-west.oracle.com/docs/cd/B10464_01/web.904/b10313/queries.htm#1108755
(or search your PDF for Foundation Library for "DirectQueryKey") See Javadoc for DirectQueryKey too.
- Don

Similar Messages

  • Invalid query key/Mapping View

    Hi,
    I am mapping a view without any primary key to a ValueObject. I am selecting three fields as primary keys such that the values are unique. I am getting an exception like
    EXCEPTION DESCRIPTION: Invalid query key [lookupType] in expression.
    The expression I am having is
    Expression contactTypeExpr = builder.get("lookupType").equal("COUNTRIES");
    constantsCol = tcaServerSession.readAllObjects(ConstantsLookupVO.class, contactTypeExpr);
    Pls help me regarding this problem.
    I have created a new Class mapping in which also I am facing the same problem.
    Is there any other parameters that I have to consider while mapping objects to DB View.
    Regards
    Solomon

    This error generally occurs when the mapping for this attribute does not exists. Please ensure that the attribute you are attempting to use in the expression has a valid mapping.
    --Gordon

  • Invalid Query Key when using ReadAllQuery.addOrdering()

    Hi,
    I have an object called Request mapped to the Request table and a field within it called creator which is mapped to the User object with a 1-1 mapping. the User object is mapped to the user table.
    Now when I do addOrdering() with an expression as below and execute the ReadAllQuery, I get an exception which says "Invalid Query Key[lastName]".
    raq.addOrdering(raq.getExpressionBuilder().get("creator").get("lastName").ascending());
    where raq is an instance of ReadAllQuery.
    Have anyone experienced this? Any help would be much appreciated.
    Thank you,
    Sanjay Mathew.

    I double checked and the attribute names look ok.
    Please see the code below:
    SearchCriteria p_searchCriteria = new SearchCriteria();
    sc.setSortAttribute (
    "m_creatorUser.m_lastName,m_creatorUser.m_firstName");
    sc.setSortOrder(SearchCriteria.ASCENDING);
    ReadAllQuery raq = new ReadAllQuery(Request.class, queryExpression);
    if (p_searchCriteria.getSortAttribute() != null &&
    p_searchCriteria.getSortAttribute().trim().length() > 0) {
    StringTokenizer st1 =
    new StringTokenizer(p_searchCriteria.getSortAttribute(), ",");
    while (st1.hasMoreTokens()) {
    ExpressionBuilder eb = raq.getExpressionBuilder();
    String sortattr = st1.nextToken();
    StringTokenizer st2 = new StringTokenizer(sortattr, ".");
    Expression orderexpr = null;
    while (st2.hasMoreTokens()) {
    String st2Str = st2.nextToken();
    if (orderexpr == null)
    orderexpr = eb.get(st2Str);
    else
    orderexpr = orderexpr.get(st2Str);
    if (p_searchCriteria.getSortOrder() == null ||
    (p_searchCriteria.getSortOrder() != null &&
    p_searchCriteria.getSortOrder().equals(SearchCriteria.
    ASCENDING))) {
    orderexpr = orderexpr.ascending();
    } else {
    orderexpr = orderexpr.descending();
    raq.addOrdering(orderexpr);
    I tried creating the expression with hard coded attribute names as well like this:
    raq.getExpressionbuilder().get("m_creatorUser").get("m_lastName").ascending()
    In both cases I get "Invalid query key" exception.
    Sanjay.

  • ReadObjectQuery - Invalid query key

    Hello again :)
    A have still stuck on TopLink :(
    I created very simple example:
    DB:
    create table TESTIK
    ID NUMBER not null,
    NAZEV VARCHAR2(255),
    VERSION NUMBER
    I created new project in TopLink WorkBench, created new session.. I mean, there is no problem (but I'm not sure :) ) .
    I created new Dynamic WebApplication in Eclipse, using Glassfish server and framework JSF...
    My source:
    This is my entity, represent table TESTIK
    Testik.class:
    package toplink.model.entity;
    import java.io.Serializable;
    public class Testik implements Serializable { // implements Serializable
         private int id;
         private String nazev;
         private int version;
         public Testik() {
         public int getId() {
              return id;
         public void setId(int id) {
              this.id = id;
         public String getNazev() {
              return nazev;
         public void setNazev(String nazev) {
              this.nazev = nazev;
         public int getVersion() {
              return version;
         public void setVersion(int version) {
              this.version = version;
    This is for create session - i don't now, is it rights? :)
    SessionSetting.class:
    package toplink.services.settings;
    import oracle.toplink.sessions.Project;
    import oracle.toplink.threetier.Server;
    import oracle.toplink.tools.workbench.XMLProjectReader;
    public class SessionSetting extends oracle.toplink.platform.xml. jaxp.JAXPPlatform {
         public SessionSetting() {
         public Server getSession(){
         System.setProperty("toplink.xml.platform", "oracle.toplink.platform.xml.jaxp.JAXPPlatform");
              Project myProject = XMLProjectReader.read("c:/ecl_work/TopLink_Intro/src/META-INF/TopLink_Intro.xml", Thread.currentThread().getContextClassLoader());
              Server serverSession = myProject.createServerSession();
              return serverSession;
    And if I want used some query:
    public Testik findById(int id) {
              SessionSetting ss = new SessionSetting();
              Server session = ss.getSession();
    Testik testik = (Testik) session.readObject(Testik.class, new ExpressionBuilder().get("id").equal(1));
              return testik;
    But this return Exception:
    javax.servlet.ServletException: #{testikManagedBean.najdiTestik}: Exception [TOPLINK-6015] (Oracle TopLink - 11g (11.1.1.0.0) (Build 080909)): oracle.toplink.exceptions.QueryException
    Exception Description: Invalid query key [id] in expression.
    Query: ReadObjectQuery(toplink.model.entity.Testik)
    Where testikManagedBean.najdiTestik call findById(int id) !
    I tried used StoredProcedureCall, ReadObjectQuery, ValueReadQuery, ReadAllQuery and nothing works :(
    Example:
    public Collection<Testik> findAll(){
              SessionSetting ss = new SessionSetting();
              Server session = ss.getSession();
              Collection<Testik> testiky = session.readAllObjects(Testik.class);
              return testiky;
    but in this example, it works a long time and return:
    javax.servlet.ServletException: #{testikManagedBean.vsechnyTestiky}: Exception [TOPLINK-4002] (Oracle TopLink - 11g (11.1.1.0.0) (Build 080909)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Exception input/output: The Network Adapter could not establish the connection
    Error Code: 17002
    Query: ReadAllQuery(toplink.model.entity.Testik)
    I know what it means in this problem, but I do not know where is it, because in the workbench I can normally connect to the database... Is this problem in sessions or where?
    Please, I tried some very simple example, how to use TopLink and Queries and i'm still stuck.. I'm newbie in toplink and I do not know your advice...
    Please, could you help me with my problem?
    Thanks in advance

    I still cannot find a problem :(
    My Toplink_Intro.xml source is here :
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink:object-persistence version="Oracle TopLink - 11g (11.1.1.0.0) (Build 080909)" xmlns:opm="http://xmlns.oracle.com/ias/xsds/opm" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:toplink="http://xmlns.oracle.com/ias/xsds/toplink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <opm:name>TopLink_Intro</opm:name>
    <opm:class-mapping-descriptors>
    <opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
    <opm:class>toplink.model.entity.Testik</opm:class>
    <opm:alias>Testik</opm:alias>
    <opm:primary-key>
    <opm:field table="TESTIK" name="ID" xsi:type="opm:column"/>
    </opm:primary-key>
    <opm:events xsi:type="toplink:event-policy"/>
    <opm:querying xsi:type="toplink:query-policy"/>
    <opm:attribute-mappings>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>id</opm:attribute-name>
    <opm:field table="TESTIK" name="ID" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>nazev</opm:attribute-name>
    <opm:field table="TESTIK" name="NAZEV" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>version</opm:attribute-name>
    <opm:read-only>true</opm:read-only>
    <opm:field table="TESTIK" name="VERSION" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    </opm:attribute-mappings>
    <toplink:descriptor-type>independent</toplink:descriptor-type>
    <toplink:locking xsi:type="toplink:version-locking-policy">
    <toplink:version-field table="TESTIK" name="VERSION" xsi:type="opm:column"/>
    </toplink:locking>
    <toplink:instantiation/>
    <toplink:copying xsi:type="toplink:instantiation-copy-policy"/>
    <toplink:tables>
    <toplink:table name="TESTIK"/>
    </toplink:tables>
    </opm:class-mapping-descriptor>
    </opm:class-mapping-descriptors>
    <toplink:login xsi:type="toplink:database-login">
    <toplink:platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</toplink:platform-class>
    <toplink:user-name>tpl</toplink:user-name>
    <toplink:password>90412C7B7643C5A83BC1D672E05E1D31</toplink:password>
    <toplink:driver-class>oracle.jdbc.OracleDriver</toplink:driver-class>
    <toplink:connection-url>jdbc:oracle:thin:@172.17.2.69:1521:ORCL</toplink:connection-url>
    </toplink:login>
    </toplink:object-persistence>
    and sessions.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink-sessions version="11g (11.1.1.0.0)" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <session xsi:type="database-session">
    <name>MyDBSession</name>
    <event-listener-classes/>
    <logging xsi:type="toplink-log">
    <log-level>fine</log-level>
    </logging>
    <primary-project xsi:type="xml">C:/ecl_work/TopLink_Intro/src/META-INF/TopLink_Intro.xml</primary-project>
    <login xsi:type="database-login">
    <platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</platform-class>
    <user-name>tpl</user-name>
    <password>90412C7B7643C5A83BC1D672E05E1D31</password>
    <sequencing>
    <default-sequence xsi:type="table-sequence">
    <name>Default</name>
    </default-sequence>
    </sequencing>
    <driver-class>oracle.jdbc.OracleDriver</driver-class>
    <connection-url>jdbc:oracle:thin:@172.17.2.69:1521:ORCL</connection-url>
    <struct-converters/>
    </login>
    </session>
    </toplink-sessions>
    Any idea, why I have still this exception:
    javax.servlet.ServletException: #{testikManagedBean.najdiTestik}: Exception [TOPLINK-6015] (Oracle TopLink - 11g (11.1.1.0.0) (Build 080909)): oracle.toplink.exceptions.QueryException
    Exception Description: Invalid query key [id] in expression.
    Query: ReadObjectQuery(toplink.model.entity.Testik)
    in this code?
    Testik testik = (Testik) session.readObject(Testik.class, new ExpressionBuilder().get("id").equal(1));
    Thanks in advance
    Edit:
    And if I used this code:
    Collection<Testik> testiky = session.readAllObjects(Testik.class);
    then returns this exception:
    javax.servlet.ServletException: #{testikManagedBean.vsechnyTestiky}: Exception [TOPLINK-4002] (Oracle TopLink - 11g (11.1.1.0.0) (Build 080909)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-00936: missing word
    Error Code: 936
    Call: SELECT FROM TESTIK
    Query: ReadAllQuery(toplink.model.entity.Testik)
    Edited by: KLD on Nov 10, 2008 12:34 AM

  • QueryException Invalid query key in expression.

    Hi, I'm trying to run this select
    Query q = em.createQuery("SELECT R.receivedOn, COUNT(R)) FROM Responders R,"+ "ConsumerHistory ch WHERE ch.jobid = "+job.getJobid()+" and ch.trackid = R.trackid"+ "GROUP BY R.receivedOn");
    the[i] job.getJobid() is a parameter, the exception it throws
    Exception [TOPLINK-6015] (Oracle TopLink Essentials - 9.1 (Build b33e-beta)): oracle.toplink.essentials.exceptions.QueryException
    Exception Description: Invalid query key [jobid] in expression.
    Query: ReportQuery(com.a2mks.scimark.entidad.Responders)
         at oracle.toplink.essentials.exceptions.QueryException.invalidQueryKeyInExpression(QueryException.java:608)
         at oracle.toplink.essentials.internal.expressions.QueryKeyExpression.validateNode(QueryKeyExpression.java:657)
         at oracle.toplink.essentials.expressions.Expression.normalize(Expression.java:2562)
         at oracle.toplink.essentials.internal.expressions.DataExpression.normalize(DataExpression.java:343)
         at oracle.toplink.essentials.internal.expressions.QueryKeyExpression.normalize(QueryKeyExpression.java:440)
    The ConsumerHistory Class implementacion is
    @Entity(name = "ConsumerHistory")
    @Table(schema = "SCIMARK", name = "CONSUMER_HISTORY")
    public class ConsumerHistory implements Serializable {
    @Id
    @Column(name = "HISTORYID", nullable = false, length = 20)
    private long historyid;
    @Column(name = "JOBID")
    private long jobid;
    @Column(name = "TRACKID")
    private String trackid;
    Can any body give me some ideas.... thanks

    The specification states that "A property or field name specified as an orderby_item must correspond to a basic persistent property
    or field of the associated class or embedded class within it", so you cannot use type.code since it does not represent a property in Item.
    Please file a feature request if you wish to have this added to EclipseLink as an extension to JPA.

  • EJB3 / TopLink EntityManager - invalid query key in expression

    with Glassfish and TopLinka s the entity manager, I'm getting an QueryException that I don't understand. The complaint is that my key (enamelId) is invalid. However I can use the same key in a different query successfully.
    Any thoughts?
    this query gets no complaints:
    SELECT sh FROM Showpiece as sh WHERE sh.enamelId = '0301'
    this query fails:
    SELECT ex FROM Exhibition as ex, Showpiece as sh WHERE sh.enamelId = '0301' AND ex.id = sh.showId
    Exception [TOPLINK-6015] (Oracle TopLink Essentials - 2006.4 (Build 060412)): oracle.toplink.essentials.exceptions.QueryException
    Exception Description: Invalid query key [enamelId] in expression.
    Query: ReportQuery(com.schwarcz.enamels.model.Exhibition)
    at oracle.toplink.essentials.exceptions.QueryException.invalidQueryKeyInExpression(QueryException.java:608)
    at oracle.toplink.essentials.internal.expressions.QueryKeyExpression.validateNode(QueryKeyExpression.java:657)
    at oracle.toplink.essentials.expressions.Expression.normalize(Expression.java:2542)
    at oracle.toplink.essentials.internal.expressions.DataExpression.normalize(DataExpression.java:343)

    I don't remember the specifics of my solution. The base cause was indeed an error in my code. I dimly remember that I had written something so that TopLink was trying to generate a join table and I had defined one as a POJO as well. What I do remember was what I did to find a solution...
    I switched to using the Hibernate entity manager, got some different error messages and was able to correct my code. I now routinely switch back and forth between TopLink and Hibernate. Both seem to me to be pretty likely to produce error messages that are vague and not too helpful.

  • Invalid query key - JPA

    Hello,
    I'm trying to create a select which has 5 different tables and i'm getting the following error:
    Exception [TOPLINK-6015] (Oracle TopLink Essentials - 2006.4 (Build 060412)): oracle.toplink.essentials.exceptions.QueryException
    Exception Description: Invalid query key [
    Query Key usuarioSubgrupoPK
    Base entity.Usuario] in expression.
    Query: ReportQuery(entity.Usuario)
         oracle.toplink.essentials.exceptions.QueryException.invalidQueryKeyInExpression(QueryException.java:608)
         oracle.toplink.essentials.internal.expressions.ObjectExpression.getDescriptor(ObjectExpression.java:209)
         oracle.toplink.essentials.internal.expressions.QueryKeyExpression.getContainingDescriptor(QueryKeyExpression.java:213)
         oracle.toplink.essentials.internal.expressions.QueryKeyExpression.getQueryKeyOrNull(QueryKeyExpression.java:325)
         oracle.toplink.essentials.internal.expressions.QueryKeyExpression.isAttribute(QueryKeyExpression.java:366)
    My select is:
    List<Projeto> pList = em.createQuery(
    "select p "+
    " from "+
    " Usuario u, "+
    " UsuarioSubgrupo usb, "+
    " Subgrupo sb, "+
    " Grupo g, "+
    " Projeto p "+
    " where usb.usuarioSubgrupoPK.cdUsuar = u.cdUsuar "+
    " and usb.usuarioSubgrupoPK.cdSubgr = sb.cdSubgr "+
    " and sb.grupo = g "+
    " and g.projeto = p "+
    " and g.stAdmin = 1 "+
    " and u.cdUsuar = 1 ").getResultList();
    Relevant code:
    Usuario.class
    @Id
    @Column(name = "CD_USUAR", nullable = false)
    @SequenceGenerator(name="SqUsuario",sequenceName="SQ_USUARIO", allocationSize=20)
    @GeneratedValue(strategy=javax.persistence.GenerationType.SEQUENCE, generator="SqUsuario")
    private Long cdUsuar;
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "usuario")
    private java.util.Collection <entity.UsuarioSubgrupo> usuarioSubgrupoCollection;
    UsuarioSubgrupo.class
    @EmbeddedId
    protected UsuarioSubgrupoPK usuarioSubgrupoPK;
    @JoinColumn(name = "CD_USUAR", referencedColumnName = "CD_USUAR", updatable=false, insertable=false)
    @ManyToOne
    private Usuario usuario;
    @JoinColumns({
    @JoinColumn(name = "CD_GRUPO", referencedColumnName = "CD_GRUPO", updatable=false, insertable=false),
    @JoinColumn(name = "CD_SUBGR", referencedColumnName = "CD_SUBGR", updatable=false, insertable=false)
    @ManyToOne
    private Subgrupo subgrupo;
    UsuarioSubgrupoPK.class
    @Id
    @Column(name = "CD_USUAR", nullable = false)
    private Long cdUsuar;
    @Id
    @Column(name = "CD_SUBGR", nullable = false)
    private Long cdSubgr;
    Subgrupo.class
    @Id
    @Column(name="CD_GRUPO", nullable = false, insertable = false, updatable = false)
    private Long cdGrupo;
    @Id
    @Column(name="CD_SUBGR", nullable = false)
    @SequenceGenerator(name="SqSubgrupo",sequenceName="SQ_SUBGRUPO", allocationSize=20)
    @GeneratedValue(strategy=javax.persistence.GenerationType.SEQUENCE, generator="SqSubgrupo")
    private Long cdSubgr;
    @ManyToOne
    @JoinColumn(name = "CD_GRUPO", referencedColumnName = "CD_GRUPO")
    private Grupo grupo;
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "subgrupo")
    private java.util.Collection <entity.UsuarioSubgrupo> usuarioSubgrupoCollection;
    Could someone give me a hand, please?
    Thanks a lot!
    !_Let's share ideas_!

    Is UsuarioSubgrupoPK.class annotated as @Embeddable? If not, that is required.
    Also, try removing the @Id annotations within the UsuarioSubgrupoPK and instead use basic mappings (the default). The @EmbeddedId annotation in UsuarioSubgrupo should be enough to make those fields IDs.

  • Query Key Definition when Inheritance is present

    Let me describe the domain model I am working with. There is a ProjectAgreement class that is a Contract (via extends) that is a VersionedObject (via extends). There is also a ProjectAgreementVersion class that is a ContractVersion (via extends) that is an ObjectVersion (via extends). The domain model also specifies that a VersionedObject has a collection of ObjectVersion instances.
    From the data model perspective, there are four tables of interest : CONTRACT, PROJECT_AGREEMENT, CONTRACT_VERSION, and PROJECT_AGREEMENT_VERSION. The persistent VersionedObject and ObjectVersion attributes are captured in these tables. The CONTRACT_ID column is present on both CONTRACT and PROJECT_AGREEMENT tables and is the primary key in both those tables. The CONTRACT_VERSION_ID column is present on both CONTRACT_VERSION and PROJECT_AGREEMENT_VERSION and is the primary key on both those two tables. There is also a CONTRACT_FK column on the CONTRACT_VERSION table to house the one to many relationship there.
    What I am attempting to do is add a OneToOneQueryKey to the Descriptor, at Descriptor definition time, for ProjectAgreementVersion so that I can write an expression of the form projectAgreementVersionExpression.get("projectAgreementQueryKey").get("someAspectOfAProjectAgreementInstance") ... While TOPLink doesn't complain at startup, I do get an invalid query key exception at run time when this relationship is attempted to be traversed via this query key.
    Here is one version of the query key as I have it defined against the ProjectAgreementVersion Descriptor:
    OneToOneQueryKey projectAgreementQueryKey = new OneToOneQueryKey();
              projectAgreementQueryKey.setName("projectAgreementQueryKey");
              projectAgreementQueryKey.setReferenceClass(ProjectAgreement.class);
              ExpressionBuilder x = new ExpressionBuilder();
              projectAgreementQueryKey.setJoinCriteria(x.getField("CONTRACT_VERSION.CONTRACT_VERSION_ID").equal(x.getParameter("PROJECT_AGREEMENT_VERSION.CONTRACT_VERSION_ID"))
              .and(x.getField("PROJECT_AGREEMENT.CONTRACT_ID").equal(x.getParameter("CONTRACT_VERSION.CONTRACT_FK"))));
              result.addQueryKey(projectAgreementQueryKey);
    Anybody have some ideas of the right combination of getField() and getParameter() calls against the ExpressionBuilder so that the query key is valid in TOPLink's eyes? Could the problem be that I must define the query key via a descriptor amendment method?
    Thanks,
    Doug

    James, thanks for the response. I had originally created and added the OneToOneQueryKey against the ProjectAgreementVersion Descriptor as the Descriptor was being built. I later attempted to defer the QueryKey creation and addition to the Descriptor to Descriptor amendment time, but got the same result.
    I also verify the Descriptor's QueryKeys after adding the OneToOneQueryKey and at the time an Expression is being built to use the QueryKey. At both times, a QueryKey exists by the given name as well as how you suggested. It appears that the QueryKey is present on the ProjectAgreementVersion Descriptor, but is simply invalid. Here is the stack trace this is generated when the ReadAllQuery is executed with the built Expression that uses this QueryKey:
    [java] [2005-07-06 15:53:31.407] LOCAL EXCEPTION STACK:
    [java] EXCEPTION [TOPLINK-6015] (TopLink - 9.0.3 (Build 423)): oracle.topli
    nk.exceptions.QueryException
    [java] EXCEPTION DESCRIPTION: Invalid query key [projectAgreementQueryKey]
    in expression.
    [java] QUERY: ReadAllQuery(ProjectAgreement)
    [java] at oracle.toplink.exceptions.QueryException.invalidQueryKeyInExp
    ression(Unknown Source)
    [java] at oracle.toplink.internal.expressions.RelationExpression.normal
    ize(Unknown Source)
    [java] at oracle.toplink.internal.expressions.CompoundExpression.normal
    ize(Unknown Source)
    [java] at oracle.toplink.internal.expressions.CompoundExpression.normal
    ize(Unknown Source)
    [java] at oracle.toplink.internal.expressions.SQLSelectStatement.normal
    ize(Unknown Source)
    [java] at oracle.toplink.internal.expressions.SubSelectExpression.norma
    lize(Unknown Source)
    [java] at oracle.toplink.internal.expressions.FunctionExpression.normal
    ize(Unknown Source)
    [java] at oracle.toplink.internal.expressions.CompoundExpression.normal
    ize(Unknown Source)
    [java] at oracle.toplink.internal.expressions.CompoundExpression.normal
    ize(Unknown Source)
    [java] at oracle.toplink.internal.expressions.CompoundExpression.normal
    ize(Unknown Source)
    [java] at oracle.toplink.internal.expressions.SQLSelectStatement.normal
    ize(Unknown Source)
    [java] at oracle.toplink.internal.queryframework.ExpressionQueryMechani
    sm.buildNormalSelectStatement(Unknown Source)
    [java] at oracle.toplink.internal.queryframework.ExpressionQueryMechani
    sm.prepareCursorSelectAllRows(Unknown Source)
    [java] at oracle.toplink.queryframework.CursorPolicy.prepare(Unknown So
    urce)
    [java] at oracle.toplink.queryframework.ReadAllQuery.prepare(Unknown So
    urce)
    [java] at oracle.toplink.queryframework.DatabaseQuery.checkPrepare(Unkn
    own Source)
    [java] at oracle.toplink.queryframework.DatabaseQuery.execute(Unknown S
    ource)
    [java] at oracle.toplink.queryframework.ReadQuery.execute(Unknown Sourc
    e)
    [java] at oracle.toplink.publicinterface.Session.internalExecuteQuery(U
    nknown Source)
    [java] at oracle.toplink.threetier.ServerSession.internalExecuteQuery(U
    nknown Source)
    [java] at oracle.toplink.threetier.ClientSession.internalExecuteQuery(C
    lientSession.java:269)
    [java] at oracle.toplink.publicinterface.Session.executeQuery(Unknown S
    ource)
    [java] at oracle.toplink.publicinterface.Session.executeQuery(Unknown S
    ource)
    Any other ideas?
    Thanks,
    Doug

  • Invalid API Key Error in Ecosign API

    I'm using the sample soap code(Developer kit) given by echosign api for testping, but it always show invalid api key error while i'm executing from terminal. Please give the solution as soon as possible, and i'm not able to get solution from google also.
    This is my API Key:
    Client Secret:
    6IaJHev8N48JbsZcM4Itggzt0pAHF0iS
    I tried with this comment in terminal:
    php demo.php https://secure.echosign.com/services/EchoSignDocumentService20?wsdl 6IaJHev8N48JbsZcM4Itggzt0pAHF0iS test
    This is demo.php file:
    <?php
    // get input
    array_shift($_SERVER['argv']);
    $Url = array_shift($_SERVER['argv']);
    $ApiKey = array_shift($_SERVER['argv']);
    $cmd = array_shift($_SERVER['argv']);
    $params = $_SERVER['argv'];
    if (!$cmd) print_usage();
    $S = new SOAPClient($Url);
    call_user_func("cmd_$cmd", $params);
    function cmd_test() {
        global $Url, $ApiKey, $S;
        print "Testing basic connectivity...\n";
        $r = $S->testPing(array('apiKey' => $ApiKey));
        print "Message from server: {$r->documentKey->message}\n";
        print "Testing file transfer...\n";
        $text = file_get_contents('../test.pdf');
        $r = $S->testEchoFile(array('apiKey' => $ApiKey, 'file' => base64_encode($text)))->outFile;
        if (base64_decode($r) === $text) {
            print "Woohoo! Everything seems to work.\n";
        else {
            die("ERROR: Some kind of problem with file transfer, it seems.\n");
    function cmd_send() {
        global $Url, $ApiKey, $S;
        list($filename, $recipient) = reset(func_get_args());
        $r = $S->sendDocument(array(
            'apiKey' => $ApiKey,
            'documentCreationInfo' => array(
                    'fileInfos' => array(
                        'FileInfo' => array(
                            'file'     => file_get_contents($filename),
                            'fileName' => $filename,
                    'message' => "This is neat.",
                    'name'    => "Test from SOAP-Lite: $filename",
                    'signatureFlow' => "SENDER_SIGNATURE_NOT_REQUIRED",
                    'signatureType' => "ESIGN",
                    'tos' => array( $recipient ),
        print "Document key is: {$r->documentKeys->DocumentKey->documentKey}\n";
    function cmd_info() {
        global $Url, $ApiKey, $S;
        list($doc_key) = reset(func_get_args());
        $r = $S->getDocumentInfo(array('apiKey' => $ApiKey, 'documentKey' => $doc_key))->documentInfo;
        print "Document is in status: {$r->status}\n";
        print "Document History: ";
        foreach($r->events->DocumentHistoryEvent as $_) {
            $keytext =
              $_->documentVersionKey
              ? " (versionKey: {$_->documentVersionKey})"
            print "{$_->description} on {$_->date}$keytext\n";
        print "Latest versionKey: {$r->latestDocumentKey}\n";
    function cmd_latest() {
        global $Url, $ApiKey, $S;
        list ($doc_key, $filename) = reset(func_get_args());
        $r = $S->getLatestDocument(array('apiKey' => $ApiKey, 'documentKey' => $doc_key))->pdf;
        //$r = base64_decode($r);
        file_put_contents($filename, $r);
    function print_usage() {
        die(<<<__USAGE__
    Usage:
      demo.php <URL> <API key> <function> [parameters]
    where the function is one of:
      test
      send <filename> <recipient_email>
      info <documentKey>
      latest <documentKey> <filename>
    test will run basic tests to make sure you can communicate with the web service
    send will create a new agreement in the EchoSign system, and returns a documentKey
    info returns the current status and all the history events for a given documentKey
    latest saves the latest version of the document as a PDF with the given filename
    __USAGE__
    --------------------------  End of file ---------------------------------------------------------------

    This is my API Key:
    Client Secret:
    6IaJHev8N48JbsZcM4Itggzt0pAHF0iS
    Client secret is not the same as an api key!
    in addition to the above, integration key or access codes can be had by going to personal preferences>access code and clicking the plus sign.

  • Unable to boot: Mac HD verify error - invalid index key

    Thank you in advance for your assistance. Please provide a detailed response. There is a lot I have to learn about computers.
    I allowed my macbook air mid-2013 os x 10.10.2 to update yesterday. I didn't look at what the update was (just saw the notification and clicked restart). It shut down, but did not restart. When I try to boot, the loading bar slows and tops at approx 35%, and the computer shuts off. I can boot in recovery mode. In disk utility, on the left side the first line is Macintosh HD. I can verify this without errors. The second line is also Macintosh HD written in lighter grey. I cannot interact with this until I click unlock and type in my password. After doing so, it is written in dark black, and I then have the option to verify disk. Doing so, I am given the follow error in the log:
    (in red) Invalid index key.
    (in red) Invalid record count.
    (in red) The volume Macintosh HD could not be verified completely.
    (in black) File system check exit code is 8.
    (in red) Error: This disk needs to be repaired. Click Repair Disk.
    A pop-up message says:
    Disk Utility stopped verifying "Macintosh HD"
    This disk needs to be repaired.
    I click an "ok" box, but the Repair Disk button is not available.
    At this point, I noticed the "mount" button is available. If I click this, it says:
    Mount Failed
    The disk "Macintosh HD" could not be mounted.
    Try running First Aid on the disk and then retry mounting.
    Of course, the only option in First Aid is Verify Disk, which I have already done.
    I also tried reinstalling OS X from safe mode, but the installation failed. I would ideally like to fix this without losing any data, but my computer is backed up so it won't be terrible if I have to start fresh. My SSD failed on my macbook air 2012, so I hope this isn't happening again.
    Thank you.

    Startup Issues - Resolve
    Startup Issues - Resolve (2)
    Startup Issues - Resolve (3)

  • Can we create range variable for Query Key Date

    Hello Gurus,
    Can we create a range variable for Query Key Date ? when I tried to give a range of values for Query Key Date, I am unable to find Range Values option. I found only Single Values.
    so, Please let me know if we can use Range variables for Query Key Date ??
    Thanks in advance,
    Regards,
    Aarthi

    Hi Aarthi,
    This is relevant for the time dependant master data that is being pulled in thw query. Like if you are using a nav attr in the query and this nav attr is time dependant, then which record (from the char master data) is to be pulled into the report, depends upon the key date that you specify.
    The default key date value is the date on which the query is executed, that is <Today>.
    Hope this helps...

  • APD query key date with variable for time dependent MD display attributes

    Hello,
    In a APD I use a query as a source with a query key date that is filled with a customer exit variable.
    When I run the query as a user, the time dependent MD display attributes look fine. However, when I use the query in an APD, I get no values for the time dependent display attributes.
    Any suggestions?
    Thanks

    Hi,
    Try to run query using RSCRM_BAPI Tcode, this you can also schedule in background
    Thanks
    Reddy

  • WAP Error Message Received invalid EAPOL-Key MIC (msg 2/4)

    Hi there
    can anyone help me with this error message Received invalid EAPOL-Key MIC (msg 2/4) .
    Time Stamp
    Severity
    Service
    Description
    Nov  5 2012 15:11:27
    warn
    hostapd[4365]
    Received invalid EAPOL-Key MIC (msg 2/4)
    I only get this message from one device when connecting to the WLAN.
    This happens only from time to time. Sometimes it connects without any problem.
    Appriciate any help.
    Sincerely
    Patrik

    This is an error when the STA (the computer) constructs the packet. 2/4 is indicate of the handshake process where it sends a nonce-value with its own MIC. A MIC is a message integrity check (or code).
    Basically, this error is saying, whatever that computer is sending is invalid. You can try to make the AP behave differently such as force the use of AES instead of AES+TKIP depending on what product you have. Pretty much removing "mixed" wireless networking. As example, try using WPA2 (AES) only.
    Such errors are more common using TKIP since it is the nature of TKIP to send a per-packet-key.
    -Tom
    Please rate helpful posts

  • Web Dynpro ABAP Component configuration - Invalid access Key

    Hi Friends,
    I have copied HRESS_CC_MENU_OVP to ZHRESS_CC_MENU_OVP and trying to configure it. Even after registering the object it is giving the same error Invalid access key.
    We have registered HRESS_CC_MENU_AREA_GROUP and the access key worked fine. But registration for HRESS_CC_MENU_OVP is giving error Invalid access key. We have deleted and registered the object thrice but system is giving the same error.
    Can someone please suggest me where I have gone wrong.
    Thanks,
    Ravi

    Hi,
    Each component will have different access key. you cannot use the same access key to different application.
    You can try with different access key else you have an option of enhancing the HRESS_CC_MENU_OVP.
    Regards,
    Jyothi

  • System copy stuck on "Import ABAP" with "Invalid Migration Key"

    Dear Team,
    I'm performing a system copy from AS400/DB2 (of our ECC DEV) to AIX/DB2. Export has been completed successfully, while importing it is stuck on the "Import ABAP" phase with error "Invalid Migration Key". However the key is generated with correct parameters only and even we have tried the key from SAP NOTE: 1768158 but of no use.
    Below is brief about systems environment:
    Source System
    OS : AS/400 (IBM i-Series V6R1)
    DB : DB/400 (Integrated DB with IBM i)
    NW: NW 7.00 ( ECC 6.0 with SP11)
    Target System
    OS : AIX 7.1
    DB: DB2 10.1 with FP3
    NW: NW 7.00 ( ECC 6.0 with SP11)
    The process is being performed using SWPM SP05
    Kindly find the test_MIGKEY.log for analysis and let me know if any ideas.
    Thanks in advance,
    SUJIT

    I found below error , are you doing this in distributed environment ?
    Is source and target kernels are same ?
    Found error in the log.
    DbSl Trace: DbSlConnect to 'ECT' as 'sapect' failed
    (DB) ERROR: db_connect rc = 256
    DbSl Trace: DbSlConnect to 'ECT' as 'sapect' failed
    (DB) ERROR: DbSlErrorMsg rc = 29
    ERROR: invalid migration keybut the system wrote other errors instead, for example, (DB) ERROR: db_connect rc = 256, this does not involve an incorrect migration key.  The errors should refer here to the actual cause (for example, the connect to the DB does not work). In this case, first check the database connect with the command <Z2 R3trans -x or R3load -testconnect, that must be executed as <sid>adm.Also make sure that the R3load that is used during the export and import has the same kernel release (for example, 7.00). You can check the relevant version of the R3load using 'R3load -version'.
    ===================

Maybe you are looking for

  • The font for Mozilla has changed. How do I get it back to what it was?

    Tonight I changed the AOL display page. After that the font had changed to all of Mazilla. I want it back the way it was. This new one is very hard to read. How can I get it changed back?

  • Acrobat 9 - Export pictures (CMYK RGB)

    Hello, several days ago i upgrades my old Acrobat 6&7 (i have 4 licences in use) to the 9 version 9. During my tests of the most used functions, i found a big problem refering the most used Feature "Export all pictures". Every month i export picures

  • Add Plant, item and PO number to tcode FAGLL03 as display option

    Hi All,   Please explain me the ways to include PLANT, ITEM and PO number in the standard report display. The transaction code is FAGLL03.   It will display the GL line items and using 1SAP-Standard layout, there is no way to select PO number and ITE

  • Reporting agent document  export to server file

    Hello, we want to export the reporting agent document to an output file in the BW server. I have seen that there is the possibility to export it to a local file, does anybody know if it is possible also for the server file? Another idea is to access

  • I need my contacts back!

    I sent my Vivaz for repair last month and all my contacts are gone. Fortunately I have an account on soyericsson.com where I backup and Sync regularly. However I can't Sync my contacts up to now cos Sync service is under maintenance. It was up again