Error executing filter in query using a Collection as a parameter

Hi,
I am getting a null pointer exception when executing my query. When it
gets to Kodo it looks like the following:
Filter -
((emailView._email._text.ext:stringContains(keyword)
|| emailView._email._subject.ext:stringContains(keyword))
&& (folders.contains(emailFolder) &&
emailFolder._views.contains(emailView)))
variables - com.mail.data.EmailView emailView;com.mail.data.EmailFolder
emailFolder;
ordering - (there is no ordering)
imports - import java.util.Collection;import
com.mail.data.EmailFolder;import com.mail.data.EmailMessage;
parameters - java.lang.String keyword,java.util.Collection folders
class/extent - com.mail.data.EmailView
Basically I am trying to get all the EmailViews that contains an
EmailMessage whose text or subject contains a keyword. The views
returned should only be contained in certain folders which are passed as
a parameter.
So my object model is like this:
EmailFolder -- 1 to many --> EmailView -- 1 to 1 --> EmailMessage
I tried the following filter first which works:
(_email._text.ext:stringContains(keyword)
|| email.subject.ext:stringContains(keyword))
But when I try filtering with the folders it throws a
NullPointerException. The folders passed to the filter are valid, and
contain valid EmailViews, and those EmailViews contain valid
EmailMessages that have non-null text and subject fields.
The following is the relevant part of the stack trace:
javax.jdo.JDOUserException: The given filter/ordering String
"((emailView._email._text.ext:stringContains(keyword) ||
emailView._email._subject.ext:stringContains(keyword)) &&
(folders.contains(emailFolder) &&
emailFolder._views.contains(emailView)))" is not valid. Make sure all
parentheses are properly matched and that the filter uses proper Java
syntax.
NestedThrowables:
java.lang.NullPointerException
at com.solarmetric.kodo.query.FilterParser.evaluate(UnknownSource)
at
com.solarmetric.kodo.query.QueryImpl.getExpression(UnknownSource)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.getExpression(UnknownSource)
at
com.solarmetric.kodo.query.QueryImpl.executeWithMap(UnknownSource)
at
com.solarmetric.kodo.query.QueryImpl$SynchronizedQuery.executeWithMap(Unknown
Source)
NestedThrowablesStackTrace:
java.lang.NullPointerException
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCExpressionFactory$PathImpl.<init>(Unknown
Source)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCExpressionFactory.getPath(Unknown
Source)
at com.solarmetric.kodo.query.FilterParser.eval(Unknown Source)
at com.solarmetric.kodo.query.FilterParser.getValue(UnknownSource)
at com.solarmetric.kodo.query.FilterParser.eval(Unknown Source)
at com.solarmetric.kodo.query.FilterParser.getValue(UnknownSource)
at com.solarmetric.kodo.query.FilterParser.eval(Unknown Source)
at
com.solarmetric.kodo.query.FilterParser.getExpression(UnknownSource)
at com.solarmetric.kodo.query.FilterParser.eval(Unknown Source)
at
com.solarmetric.kodo.query.FilterParser.getExpression(UnknownSource)
at com.solarmetric.kodo.query.FilterParser.eval(Unknown Source)
at
com.solarmetric.kodo.query.FilterParser.getExpression(UnknownSource)
at com.solarmetric.kodo.query.FilterParser.evaluate(UnknownSource)
at
com.solarmetric.kodo.query.QueryImpl.getExpression(UnknownSource)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.getExpression(UnknownSource)
at
com.solarmetric.kodo.query.QueryImpl.executeWithMap(UnknownSource)
at
com.solarmetric.kodo.query.QueryImpl$SynchronizedQuery.executeWithMap(UnknownSource)
Thanks in advance,
Khamsouk

As the exception said, this is not a valid query string.
What happens if you do:
folders.contains(emailFolder) &&
emailFolder._views.contains(emailView) &&
(emailView._email._text.ext:stringContains(keyword) ||
emailView._email._subject.ext:stringContains(keyword))
The point here is that a 'relation.contains(var)' statement must be
followed by '&& something that uses the var'.
-Fred
Khamsouk Souvanlasy <[email protected]> wrote:
Filter -
((emailView._email._text.ext:stringContains(keyword)
|| emailView._email._subject.ext:stringContains(keyword))
&& (folders.contains(emailFolder) &&
emailFolder._views.contains(emailView)))
variables - com.mail.data.EmailView emailView;com.mail.data.EmailFolder
emailFolder;--
Fred Lucas
SolarMetric Inc.
202-595-2064 x1122
http://www.solarmetric.com

Similar Messages

  • Problem executing a partition query using occi in c++

    i am trying to execute a simple select query which returns a row from the table. The query is
    m_stmt->setSQL("select * from table partition(:1) where mdn = :2");
              m_stmt->setString(1,"P9329");
              //m_stmt->setInt(2,9320496213);
              ResultSet * rs = m_stmt->executeQuery();
              while(rs->next())
              cout<<"the value of preferences is aaaaaaaaaaaa"<< rs->getString(3);                    
    The problems that i am facing are as follows :
    1) if i execute the query using the actual values in the select query, it seems to be working fine, but when i try the above method to make it more dynamic (the values shown would be replaced by variables) it is giving me the following errors :
    a)if i put the partition value as a position parameter and put the mdn as the direct value in the query then it says the SQL command not ended properly
    b) if i put the partition value directly and put the mdn as a position parameter then the error is "Invalid Character "
    Any help would be much appreciated..ty in advance

    Hi Leonard,
    Thanks for letting me know that...thats pretty disappointing. Looks like I'll have to change my strategy in my implementation.
    Do you know if I can also develop functions using Acrobats SDK library methods such as "PDDocCreate()", "PDDocSave", etc. in OLE [MFC] applications?
    The reason why I ask is because I have previously created a plugin that creates a PDF file and embeds a 3D annotation... so this would be the same sort of idea that the 3D Tool Menu Item achieves.
    Now, if I were to use the function code within my OLE application, I will have to also include the PIMain.c file in my project as well correct?
    I hope this idea is a good one... please let me know if this approach is possible.
    Thanks.

  • Executing a merge query for a collection

    Hello All,
    I am trying to use a merge query to find common and uncommon ids between a table and a list I pass to my pl-sql proc. I am not sure if I am doing the right thing, please guide me...
    Here is my code...
    Procedure process_content(i_eidlist IN ocs_eid_list_t, i_id IN number, o_new_email_list OUT ocs_eid_list_t) AS
    lv_last_processed_row_id number;
    lv_common_email_list ocs_eid_list_t;
    lv_internet_id varchar2;
    Begin
    lv_last_processed_row_id := 0;
    MERGE INTO table c
    USING TABLE(i_eidlist)a
    ON (c.eid in a)
    --WHEN MATCHED THEN UPDATE SET c.row_id = job_no_seq.NEXTVAL,c.copy_count=1 returning row_id bulk collect into lv_row_id_list;
    WHEN MATCHED THEN SELECT c.eid bulk collect into lv_common_email_list returning row_id bulk collect into lv_row_id_list
    WHEN NOT MATCHED THEN SELECT c.eid bulk collect into o_new_email_list;
    I am assuming that the merge query is going to iterate over the i_eidlist, and find me the common and uncommon elements. However, I get an error saying the sql block is ignored.
    Thanks
    Abhishek
    글 수정: A.J.

    I do not think it is possible in one pass. The best I could come up with:
    DECLARE
        COMMON_LIST NAME_LIST;
        UNCOMMON_LIST NAME_LIST;
        EMPLOYEE_LIST NAME_LIST;
        CHECK_LIST NAME_LIST := NAME_LIST('KING','QUEEN');
    BEGIN
        SELECT  ENAME
          BULK COLLECT INTO EMPLOYEE_LIST
          FROM  EMP;
        COMMON_LIST := EMPLOYEE_LIST MULTISET INTERSECT CHECK_LIST;
        UNCOMMON_LIST := EMPLOYEE_LIST MULTISET EXCEPT CHECK_LIST;
    DBMS_OUTPUT.PUT_LINE('-- COMMON_LIST --');
    FOR i IN 1..COMMON_LIST.COUNT LOOP
      DBMS_OUTPUT.PUT_LINE(COMMON_LIST(i));
    END LOOP;
    DBMS_OUTPUT.PUT_LINE('-- UNCOMMON_LIST --');
    FOR i IN 1..UNCOMMON_LIST.COUNT LOOP
      DBMS_OUTPUT.PUT_LINE(UNCOMMON_LIST(i));
    END LOOP;
    END;
    /Run results showing contents:
    SQL> DECLARE
      2      COMMON_LIST NAME_LIST;
      3      UNCOMMON_LIST NAME_LIST;
      4      EMPLOYEE_LIST NAME_LIST;
      5      CHECK_LIST NAME_LIST := NAME_LIST('KING','QUEEN');
      6  BEGIN
      7      SELECT  ENAME
      8        BULK COLLECT INTO EMPLOYEE_LIST
      9        FROM  EMP;
    10      COMMON_LIST := EMPLOYEE_LIST MULTISET INTERSECT CHECK_LIST;
    11      UNCOMMON_LIST := EMPLOYEE_LIST MULTISET EXCEPT CHECK_LIST;
    12  DBMS_OUTPUT.PUT_LINE('-- COMMON_LIST --');
    13  FOR i IN 1..COMMON_LIST.COUNT LOOP
    14    DBMS_OUTPUT.PUT_LINE(COMMON_LIST(i));
    15  END LOOP;
    16  DBMS_OUTPUT.PUT_LINE('-- UNCOMMON_LIST --');
    17  FOR i IN 1..UNCOMMON_LIST.COUNT LOOP
    18    DBMS_OUTPUT.PUT_LINE(UNCOMMON_LIST(i));
    19  END LOOP;
    20  END;
    21  /
    -- COMMON_LIST --
    KING
    -- UNCOMMON_LIST --
    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    TURNER
    ADAMS
    JAMES
    FORD
    MILLER
    PL/SQL procedure successfully completed.
    SQL> SY.

  • Error executing a Oracle query when connection is fetched from Datasource

    Hi Folks,
    I am struggling with a rather wierd issue. The DBA of my application has exposed some function based view(not exactly sure what that means) which returns results like any query over a table. I am having a tough time consuming it in my java application. The name of the view is - `networknode_api.get_ftapp_networknode_hrchy` The SQL for it is(syntax might be a bit strange as there is actual word `table` in the query)
    view plaincopy to clipboardprint?
    Note: Text content in the code blocks is automatically word-wrapped
    01.SELECT * FROM table (networknode_api.get_ftapp_networknode_hrchy('19-Feb-2013'));
    SELECT * FROM table (networknode_api.get_ftapp_networknode_hrchy('19-Feb-2013'));
    The query returns a hierarchical result data, provided below is a sample output (ignore the ouput if the formatting is too werid)
    Parent_NODE | Child_NODE | NODE_DISPLAY_NAME | BEGIN_DATE | END_COB_DATE | LVL
    null | CCN | Connent Node | 01/20/2013 | 10/19/2013 | 1
    CCN | AVT | Avg Vol Turn | 01/20/2013 | 10/19/2013 | 2
    AVT | L:2 | L:2 | 01/20/2013 | 10/19/2013 | 3
    AVT | L:6 | L:6 | 01/20/2013 | 10/19/2013 | 3
    CCN | NUT | Nap Up Turn | 01/20/2013 | 10/19/2013 | 2
    I have the following method in my DAO -
    public List<NetworkNodeGroupDTO> fetchNetworkNodeHierarchy(Date cobDate) {
    try {
    InitialContext ic = new InitialContext();
    //DataSource ds1 = (DataSource) ic.lookup("jndiDsFlex");
    //Connection conn = ds1.getConnection();
    /* Using the RmiDataSource class for performance optimizations */
    weblogic.jdbc.common.internal.RmiDataSource ds = (weblogic.jdbc.common.internal.RmiDataSource) ic.lookup("jndiDsNex");
    Connection conn = ds.getConnection();
    Statement stmt = conn.createStatement();
    boolean hasRows = stmt.execute("SELECT * FROM table (networknode_api.get_ftapp_networknode_hrchy('19-Feb-2013'))");
    rs = stmt.getResultSet();
    while(rs.next()) {
    System.out.println(rs.getString("parent_node"));
    System.out.println(rs.getString("child_node"));
    System.out.println(rs.getString("node_display_name"));
    stmt.close(); stmt = null;
    conn.close(); conn = null;
    } catch(Exception ex) {
    ex.printStackTrace();
    return null; // please ignore the return type for now
    Exception is thrown at line - stmt.execute(....)
    java.sql.SQLSyntaxErrorException: ORA-00904: : invalid identifier
    I debugged through the code and noted the driver and connection details that the connection object has embedded. Using that I wrote a sample java jdbc code-
    public static void main(String[] args) throws Exception {
    try {
    //Class.forName("oracle.jdbc.driver.OracleDriver");
    //Class.forName("weblogic.jdbc.rmi.Driver");
    Driver myDriver = (Driver) Class.forName("weblogic.jdbc.jts.Driver").newInstance();
    } catch (ClassNotFoundException e) {
    System.out.println("Where is your Oracle JDBC Driver?");
    e.printStackTrace();
    return;
    Connection connection = null;
    try {
    connection = DriverManager.getConnection(
    "jdbc:oracle:thin:@//ssn20331020-rt.eu.prog.net:1522/NEXSERV",
    "sample",
    "sample1234");
    } catch (SQLException e) {
    System.out.println("Connection Failed! Check output console");
    e.printStackTrace();
    return;
    Statement stmt = connection.createStatement();
    stmt.execute("SELECT * FROM table (flex_compnode_api.get_ftapp_compnode_hrchy('19-Feb-2013'))");
    ResultSet rs = stmt.getResultSet();
    int i = 0;
    while(rs.next()) {
    String pNode = rs.getString("parent_node");
    String cNode = rs.getString("child_node");
    String dName = rs.getString("node_display_name");
    System.out.println("Hello: "+i++);
    The above code works perfectly fine. Also tried the above code using normal Oracle JDBC driver and too works fine. I am baffled; what goes wrong when using the connection from a DataSource object. Does the driver treat SQL statements differently based on how the connection object is obtained? Appreciate your inputs/comments for same.
    The oracle db version is - Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    Application Server - Weblogic 10.3

    Below is the stacktrace and the driver details which are same for both the standalone basic Jdbc program and one where connection is fetched through datasource.
    Driver name: Oracle JDBC driver
    Driver version : 11.2.0.2.0
    Driver major ver: 11
    Driver minor ver: 2
    java.sql.SQLSyntaxErrorException: ORA-00904: : invalid identifier
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:440)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:837)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:445)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:191)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:523)
    at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:193)
    at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:852)
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1153)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1275)
    at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:1890)
    at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1855)
    at oracle.jdbc.driver.OracleStatementWrapper.execute(OracleStatementWrapper.java:304)
    at weblogic.jdbc.wrapper.Statement.execute(Statement.java:458)
    at com.rfs.gs.ggl.nex.persistence.jpa.FlagDao.fetchCompositeNodeHierarchy(FlagDao.java:258)
    at com.rfs.gs.ggl.nex.service.mars.GSServiceBean.searchCompositeNode(GSServiceBean.java:192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.jee.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:104)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.jee.intercept.JeeInterceptorInterceptor.invoke(JeeInterceptorInterceptor.java:69)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:55)
    at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy119.searchCompositeNode(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:73)
    at $Proxy92.searchCompositeNode(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:101)
    at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:83)
    at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:152)
    at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:264)
    at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)
    at weblogic.wsee.jaxws.tubeline.FlowControlTube$FlowControlAwareTube.processRequest(FlowControlTube.java:148)
    at weblogic.wsee.jaxws.tubeline.FlowControlTube.processRequest(FlowControlTube.java:99)
    at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:604)
    at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:563)
    at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:548)
    at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:445)
    at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:275)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:454)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:250)
    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:140)
    at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:319)
    at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:232)
    at weblogic.wsee.jaxws.JAXWSServlet.doPost(JAXWSServlet.java:310)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at weblogic.wsee.jaxws.JAXWSServlet.service(JAXWSServlet.java:87)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3594)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    <Timestamp Fri Feb 22 11:41:19 EST 2013 (1361551279781)>

  • Error executing essbase report script using maxl

    Hi,
    V 11.1.2.1 (64 bit) on windows
    An essbase report script errors when it is run from maxl. When I run it directly in maxl the error is
    Error - 1030205 - Client directory does not exisit: ...EssbaserServer\<instance>\client
    When I run it within EAS the error is
    Client directory does not exisit: EPMSystem11R1/common/EssbaseRTC-64/11.1.2.0client
    Unexpected essbase error 1030205
    The client is installed but the folder locations do not exist. There is a calc script which does a data export which works fine. The essbase report can be manually executed without a problem. This worked fine in 9.3.1.
    Here is the script (without actual names)
    export database 'app'.'database' using report_file 'AReport' to data_file 'c:\\Output.txt';
    I would appreciate any help. I have looked at the knowledge base and can't find anything relevant.
    Thanks in advance,
    Nathan
    I would appreciate

    Hi,
    The issue is now resolved.
    The client folder must be created where the EAS service is, not Essbase. Once this was done the report script could not be found. In discussion over the phone with Oracle we did some testing, as they use a non distributed environment. If you use 'using report file' you need to specify the path to the report file i.e.
    D:\Oracle\Middleware\user_projects\epmsystem\EssbaseServer\<instance>\app\<app name>\<database>\report.rep'
    The .rep must also be included.
    If you use 'using server report file' you only need to specify the report name, without the extension, and the data file path. You specify the path as normal i.e. D:\nathan.txt but you can get away with simply a file name such as 'nathan.txt'. In a distributed environment this exports to the server where the EAS service is to
    <drive>:\Oracle\Middleware\user_projects\domains\EPMSystem
    When Oracle support did this it went to the Essbase bin folder as it was a non distributable environment.
    The subtle differences between 9.3.1 and 11.1.2.1......
    Thanks to all those who contributed.
    Nathan

  • How to execute SQL SELECT QUERY using VB in FDMEE

    Hi Experts,
    We are struggling with converting some of the FDM VB Scripts to FDMEE. While in FDM it was possible to simply create a RS Object, it doesnt seem to work in FDMEE. Can you please help me with some code samples that will help me execute SELECT Query and taking the output of the Query to Appropriate Variables.
    Also it seems that the Accelerators in erstwhile FDM are no longer available in FDMEE. So we have to re-write our entire code all over again
    Thanks

    There are plenty of code examples in the FDMEE guide and al of the API methods are documented for both Visual Basic and Jython. Personally, I think, if you are having to re-factor your code because you have migrated from FDM to FDMEE I would look at doing it in Jython not the VB API. Jython is the scripting language that will be the mainstream choice going forward and athough the VB API is present to ease the move from FDM to FDMEE I wouldn't be sure how long it will be supported and you therefore may have to perform another code migration not too far down the line. Jython is a very powerful and easy to use if you spend a bit of time familiarizing yourself with the syntax and also opens up the opportunity to leverage the myriad of Java classes out there. Also all of your import scripts have to be in Jython with no VB alternative.
    One other piece of advice is do not try and replicate allyour old code line for line. Look at what you were trying to achieve, assess whether it is still relevant or can it be faciliated by the new extended out of the box constructs and functionality FDMEE offers over classic FDM.

  • Errors executing bulk query when updating a Sharepoint Linked List from Access

    Hi all,
    I have a Sharepoint list that is a Linked List with MS Access. It has just under 5,000 items (4,864), thus meaning it avoids the reduction in functionality lists of greater than 5,000 items have.
    Among the list are five calculated columns. These take the information from another column (different employee numbers), and by using a formula produce a clickable link to my company's Directory page, where that particular employee's info is displayed. I'm
    not sure if these five columns are relevant to my query, but I'm mentioning them in case.
    My problem is this: Frequently when I run any query on the list that updates the list, I get this error: "There were errors executing the bulk query or sending the data to the server. Reconnect the tables to resolve the
    conflicts or discard the pending changes".
    When I review the errors, it says they conflict with errors a previous user made (with that previous user being me). It frequently highlights several columns, despite the info in them being identical, and the calculated columns (with the original showing
    the value they contained and the new showing #VALUE! (as Access can't display the formulas).
    However, if I click Retry All Changes, all the update stick and everything seems fine. Why is this happening? It's proving very annoying and is really stopping the automation of my large number of queries. A list of 5000 items isn't particular big (and they've
    got roughly 100 columns, although I didn't think that was too large either, given Excel's 200+ column limit).
    Is this due to poor query design and SQL? Is this due to connectivity issues (which I doubt, as my line seems perfect)? Is this due to Access tripping over itself and not executing the update on each row in the table, but rather executing them concurrently
    and locking itself up? I'm at wit's end about it and really need to get this sorted.
    Thanks in advance for any suggestions.

    Hi amartin903,
    According to your description, my understanding is that you got an error when you used a linked list from Access.
    The table that you are updating is a linked table that does not have a primary key or a unique index. Or, the query or the form is based on a linked table that does not have a primary key or a unique index. Please add the primary key or a unique index.
    Here is a similar post, please take a look at:
    http://social.technet.microsoft.com/Forums/en-US/545601e9-a703-4a02-8ed9-199f1ce9dac8/updating-sharepoint-list-from-access?forum=sharepointdevelopmentlegacy
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Executing Select query using JDBC Receiver Adapter

    I created couple types in Oracle and also new function instead of procedure
    Can I execute the above query using JDBC Receiver Adapter.
    select *
    from  the ( select cast( apr.get_distribut('', '', '', 'hdfcgd', 'CAN') as dsrTable )
             from dual );
    If possible how my message structure should look like...

    Hi vikram,
       If you use JDBC as Receiver Adapter you can only post the data to the data base I do no think so we can select the records from the data base.
       If you use JDBC as Sender hope,we can the select query in the sender communication channel.
        Hope I am clear.
      Thanks and Regardds,
      Chandu.

  • Executinga BW query using ABAP

    I saw this blog on how to execute a BW query using abap. My question is, where do we create the function module Y_EXECUTE_QUERY? I mean under which function group? Thanks.

    This is the blog I was referring to:
    /people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-i

  • Error executing database query, invalid use of:

    I have a problem ColdfusionMX tutorial when I get to add tags
    on top of the code view. And I write the same thing as the
    tutorial.
    I get an error message that says:
    Error executing database query.
    error occurred while processing request.
    Invalid use of ", ", () in query expression
    I need help desperatly,
    Geordeslys,

    The web site you are accessing has experienced an unexpected
    error.
    Please contact the website administrator.
    The following information is meant for the website developer
    for debugging purposes.
    Error Occurred While Processing Request
    Error Executing Database Query.
    Invalid use of '.', '!', or '()'. in query expression
    'ARTISTS.ARTISTID = ART.ARTISTID AND ART.MEDIAID = MEDIA. MEDIAID'.
    The error occurred in
    C:\CFusionMX7\wwwroot\CFIDE\gettingstarted\tutorial\TMPhy0vtntf3u.cfm:
    line 1
    1 : <cfquery name="artwork" datasource="cftutorial">
    2 : SELECT FIRSTNAME, LASTNAME, ARTNAME, DESCRIPTION, PRICE,
    LARGEIMAGE, ISSOLD, MEDIATYPE
    3 : FROM ARTISTS, ART, MEDIA
    Dear CF_dev2,
    Is that what you mean by complete CF code?
    Georgeslys,
    SQL SELECT FIRSTNAME, LASTNAME, ARTNAME, DESCRIPTION, PRICE,
    LARGEIMAGE, ISSOLD, MEDIATYPE FROM ARTISTS, ART, MEDIA WHERE
    ARTISTS.ARTISTID = ART.ARTISTID AND ART.MEDIAID = MEDIA. MEDIAID
    DATASOURCE cftutorial
    VENDORERRORCODE 3092
    SQLSTATE  
    Resources:
    Check the ColdFusion documentation to verify that you are
    using the correct syntax.
    Search the Knowledge Base to find a solution to your problem.
    Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
    .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; IEMB3;
    IEMB3)
    Remote Address 127.0.0.1
    Referrer
    Date/Time 03-Sep-07 07:11 PM
    Stack Trace (click to expand)
    at
    cfTMPhy0vtntf3u2ecfm1461475070.runPage(C:\CFusionMX7\wwwroot\CFIDE\gettingstarted\tutoria l\TMPhy0vtntf3u.cfm:1)
    at
    cfTMPhy0vtntf3u2ecfm1461475070.runPage(C:\CFusionMX7\wwwroot\CFIDE\gettingstarted\tutoria l\TMPhy0vtntf3u.cfm:1)
    com.inzoom.adojni.ComException: Invalid use of
    &apos;.&apos;, &apos;!&apos;, or
    &apos;()&apos;. in query expression
    &apos;ARTISTS.ARTISTID = ART.ARTISTID
    AND ART.MEDIAID = MEDIA. MEDIAID&apos;. in Microsoft JET
    Database Engine code=3092 Type=1
    at com.inzoom.ado.Command.jniExecute(Native Method)
    at com.inzoom.ado.Command.execute(Command.java:40)
    at com.inzoom.jdbcado.Statement.exec(Statement.java:34)
    at com.inzoom.jdbcado.Statement.execute(Statement.java:107)
    at
    coldfusion.server.j2ee.sql.JRunStatement.execute(JRunStatement.java:212)
    at coldfusion.sql.Executive.executeQuery(Executive.java:753)
    at coldfusion.sql.Executive.executeQuery(Executive.java:675)
    at coldfusion.sql.Executive.executeQuery(Executive.java:636)
    at coldfusion.sql.SqlImpl.execute(SqlImpl.java:236)
    at
    coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:500)
    at
    cfTMPhy0vtntf3u2ecfm1461475070.runPage(C:\CFusionMX7\wwwroot\CFIDE\gettingstarted\tutoria l\TMPhy0vtntf3u.cfm:1)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
    at
    coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
    at
    coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
    at
    coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:225)
    at
    coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
    at
    coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
    at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at
    coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115)
    at coldfusion.CfmServlet.service(CfmServlet.java:107)
    at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
    at
    jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

  • Errors executing SQL query in EJB 2.0 QL using RAD-6.0 on WAS-6.0

    I have 3 tables in my database which is running on DB2 UDB ESE V-8.2
    The tables are emp, dept & policy_master respectively
    Table emp has columns id, name, deptid, and policyid.Here dept id and policyid are foreign keys which are referenced by dept and policy_master tables
    In the dept table column deptid is primay key and non-key is dept name
    In my policy_master table i have column policyid as primay key and non-key column is policy name
    Now i want to find records in emp table by deptid column in emp table which should return a emp local interface
    Now for that i had written ejbql "select object(o) from emp o where o.deptid=?1" using finder method namely findByDeptid(String deptid) in emp entity bean.
    When i execute the entity bean using RAD Test Client,I am getting following 2 errors namely:
    1. "WQRY0036E: Emp o does not have a field deptid in ejb-jar.xml "
    2. "Class must implement the inherited abstract method CMPEmpLocalHome.findByDeptid(String) EJSLocalCMPEmpHome_0783c8c6.java TestEJB/ejbModule/sample"
    When i analysed the problem i found that the deptid in emp bean is not defined as a CMP field in the map file & deployment descriptor that is why i am not able to write such kind of ejb queries.The deptid field in emp table is having a foreign key relationship with dept table.
    Detailed Discription of tables structure
    Table EMP
    Column name Type name Length Scale Nulls
    EMPID VARCHAR 4 0 No (Primary Key)
    FIRSTNAME VARCHAR 10 0 Yes
    LATSNAME VARCHAR 10 0 Yes
    DEPTID VARCHAR 4 0 No (Foreign Key Refrenced By Dept Table)
    POLICY_ID VARCHAR 10 0 No (Foreign Key Refrenced By Policy Master Table)
    Table DEPT
    Column name Type name Length Scale Nulls
    DEPTID VARCHAR 4 0 No (Primary Key)
    DEPTNAME VARCHAR 10 0 Yes
    DEPTLOCATION VARCHAR 10 0 Yes
    Table POLICY_MASTER
    Column name Type name Length Scale Nulls
    POLICY_ID VARCHAR 10 0 No (Primary Key)
    POLICY_NAME VARCHAR 10 0 Yes
    Now I want to find all record using findByDeptid method in EMP table. So for that what ejb ql I have to write.
    I used "select object(o) from emp where deptid=?1" then I am getting error in "ejb-jar.xml" that field does not exist.
    So please tell me how can I find records in emp table so that the bean returns a local interface.
    Please provide some assisstance as soon as possible
    Thanks in Advance,
    Mahesh.B.S

    I have 3 tables in my database which is running on DB2 UDB ESE V-8.2
    The tables are emp, dept & policy_master respectively
    Table emp has columns id, name, deptid, and policyid.Here dept id and policyid are foreign keys which are referenced by dept and policy_master tables
    In the dept table column deptid is primay key and non-key is dept name
    In my policy_master table i have column policyid as primay key and non-key column is policy name
    Now i want to find records in emp table by deptid column in emp table which should return a emp local interface
    Now for that i had written ejbql "select object(o) from emp o where o.deptid=?1" using finder method namely findByDeptid(String deptid) in emp entity bean.
    When i execute the entity bean using RAD Test Client,I am getting following 2 errors namely:
    1. "WQRY0036E: Emp o does not have a field deptid in ejb-jar.xml "
    2. "Class must implement the inherited abstract method CMPEmpLocalHome.findByDeptid(String) EJSLocalCMPEmpHome_0783c8c6.java TestEJB/ejbModule/sample"
    When i analysed the problem i found that the deptid in emp bean is not defined as a CMP field in the map file & deployment descriptor that is why i am not able to write such kind of ejb queries.The deptid field in emp table is having a foreign key relationship with dept table.
    Detailed Discription of tables structure
    Table EMP
    Column name Type name Length Scale Nulls
    EMPID VARCHAR 4 0 No (Primary Key)
    FIRSTNAME VARCHAR 10 0 Yes
    LATSNAME VARCHAR 10 0 Yes
    DEPTID VARCHAR 4 0 No (Foreign Key Refrenced By Dept Table)
    POLICY_ID VARCHAR 10 0 No (Foreign Key Refrenced By Policy Master Table)
    Table DEPT
    Column name Type name Length Scale Nulls
    DEPTID VARCHAR 4 0 No (Primary Key)
    DEPTNAME VARCHAR 10 0 Yes
    DEPTLOCATION VARCHAR 10 0 Yes
    Table POLICY_MASTER
    Column name Type name Length Scale Nulls
    POLICY_ID VARCHAR 10 0 No (Primary Key)
    POLICY_NAME VARCHAR 10 0 Yes
    Now I want to find all record using findByDeptid method in EMP table. So for that what ejb ql I have to write.
    I used "select object(o) from emp where deptid=?1" then I am getting error in "ejb-jar.xml" that field does not exist.
    So please tell me how can I find records in emp table so that the bean returns a local interface.
    Please provide some assisstance as soon as possible
    Thanks in Advance,
    Mahesh.B.S

  • 5200:Error Executing Query

    Hi,
    I am getting below error while running a report in FR.
    5200:Error Executing Query:
    Could you please let me know what is the problem and how to resolve it.
    Thanks,

    Hi,
    This might be due to corrupt POV this can be resolved by just deleting POV for the use and again setting it up.
    Regards,
    Gyan

  • Error while executing the workbook query.

    Hi guyz
    i'm getting an error while executing the workbook Query. The actual problem is there is a filter for REQUID in the query definition for removing the doble count. there is customer exit written. the report works fine in DEVELOPMENT but it is not working in quality.
    The query on which this workbook is created is working fine, but the problem is when we execute the workbook i'm facing this issue.
    we re-transported the queries but still we are facing the same problem.
    while we execute the query we are prompted for variable entry(Optional) for date. when we press OK we get the below error
    " NO SID value found for the value REQU_4DQT75Y2RJPVT4PXZ4LHC70V3 of characteristic"
    the request is not available in the BW system. the request was deleted long back, but it is still referring to the same the request id
    could someone please tell me where we went wrong and why we are getting this error.
    Regards,
    Anil Vadde

    Hey ,I think data load to your target on which the query was based had some issue.
    Can you check the data load to the data target.change the status of request concerned to red and delete.do reconstruct if neeed..I think the request had some issue.
    Even you can go to RSRQ or RSMO and filter on the basis of this request and see its status.
    Regards,
    RK

  • Error executing Query - Workspace report error.

    Hi All,
    One of our user is getting "5200:Error executing Query" message while running the report in Hyperion Financial reporting workspace,how ever if I run this report with my login on his system I am able to run it.
    Could you please put some flash on it what may be the reason behind the same.
    waiting for your reply.....
    Thanks,

    Hi, in general the 5200 error means that the user cannot connect to run the report.
    What this means is that the user either doesn't have:
    - the necessary Workspace permissions, or
    - the necessary data source permissions to run the report. This can either be correct essbase permissions or perhaps the report uses a member they do not have access to see.
    I think from memory there should be a Details button on the error message which the user sees which should provide more detailed information. Can you confirm and reply back?
    Cheers, Iain

  • Error while executing UNION ALL query

    Hello everyone,
    I'm executing the below query on Oracle 9.2.0.8 version.
    select hdr.*
    from ttl_hdr hdr, ttl_service ser
    where hdr.cus_nbr = ser.cus_nbr
    and hdr.dn in ('1232','2342',343','343')
    union all
    select hdr.*
    from ttl_hdr_his hdr, ttl_service ser
    where hdr.cus_nbr = ser.cus_nbr
    and hdr.dn in ('1232','2342',343','343')
    and I encounter following error:
    ORA-01790: expression must have same datatype as corresponding expression
    But instead of * if I'm specifying a list of few columns, it executes the query properly.
    Can anybody tell me what the problem is ?
    regards,
    Rossy

    Hi,
    All columns in your tables TTL_HDR and TTL_HDR_HIS are not with same data type.
    I'm sure you get same error if you specify all columns that * brings.
    Specify column names and use conversion function to get data type same to column from both selects.
    PS: and I think this is not Application Express related
    Br, Jari

Maybe you are looking for

  • Power cord part number for Officejet 4500

    I have lost the power cord to my OfficeJet 4500 wireless printer, Prod #CQ663A#1H3 and need an orderable HP part number? Does such a number exist?? Please help.....

  • Playlist-Library file relationship questions...

    Hello, I periodically sync my library with a family member.(via vpn) Here's what I've found: iTunes Library.xml seems to contain almost all the information that shows up in iTunes, i.e. playlists and songs. If I copy over the target iTunes Library.xm

  • What is the best stabilization plug in for final cut pro x?

    The clip stabilization in final cut pro  x works ok but I need something better. Is there any third party product that will do a better job? Thanks George

  • Deski reports audit

    Does XI-R2 SP4 auditor captues the deski reports (pulished in CMS repository, but not scheduled) usage (who used, when, etc.)? When I query on Activty universe I am not getting any information? I have valid auditor connection. Am I missing any config

  • BPS Hierarchy - variable exit

    Requirement is to restrict the countries based on the selected Geography, I have created a hierarchy on country and trying to write a hierarchy user exit on country variable . UPF_VARIABLE_USER_EXIT_HIER is the one I am using, Can somebody explain ho