Named query not found

Please help me, for God's sake, the following error is occurring:
*12:03:28,550 ERROR [STDERR] Caused by: java.lang.IllegalArgumentException: Named query not found: Configuracao*
ConfiguracaoManagerBean.java
public Configuracao getConfiguracao(Long codcid, String parametro) {
          EntityManager em = (EntityManager) ctx.lookup('sincronia-unit');
          Query query = em.createNamedQuery("*Configuracao*");
          query.setParameter("codcid", codcid);
          query.setParameter("parametro", parametro);
          try {
               return (Configuracao) query.getSingleResult();
          } catch (NoResultException e) {
               return null;
Configuracao.java
package br.com.dsfnet.entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
@NamedQueries({
     @NamedQuery(name = "Configuracao", query = "Select o From Configuracao o Where o.codcid = :codcid and o.parametro = :parametro")
@Table(name = "TBLCONFIGSIN", schema = "SPDNET")
public class Configuracao implements Serializable {
     private static final long serialVersionUID = 1L;
     @Column(name = "CODCID")
     private Long codcid;
     @Column(name = "PARAMETRO")
     private String parametro;
     @Column(name = "VALOR")
     private String valor;
     public void setCodcid(Long codcid) {
          this.codcid = codcid;
     public Long getCodcid() {
          return codcid;
     public void setParametro(String parametro) {
          this.parametro = parametro;
     public String getParametro() {
          return parametro;
     public void setValor(String valor) {
          this.valor = valor;
     public String getValor() {
          return valor;
Grateful now

You specified both a datasource and a dbtype. In this case, since you are querying a database (and not running a query-of-queries), you should leave out the dbtype attribute. See the cfquery documentation for details.

Similar Messages

  • MSS Report Export to excel - ERROR - load: class query not found

    Hi All,
    I am navigating and getting error as follows:
    Manger Services ->My reports -> Report Selection -> HIS Reports -> General -> Employee Details -> add some people and click start report -> report shows -> click local file -> save as spreadsheet get ERROR - load: class query not found in the status bar or IE and IE then locks up
    Please reply if any one has some clue.
    Thanks & Regards,
    Vishal

    Hey Vishal,
    This issue gave us a  very hard time. The query was HRIS manager. when you add some attributes to be exported to excel and then select export. It hangs there. or hangs at the step where you select save as spreadsheet, OR after it where it runs a query to export.
    I came to know that Java JRE is used in the last step. So for solving this issue, go to java.com, on the first screen there will be big link to install java(i guess JRE). install it and then try exporting your query. I am sure it will work.
    Just notice that after doing installation of Java you will get coffee cup in you system tray.
    Thanks.
    Ankur.
    P.S. Points if works.

  • Remote Authentication Naming Service Not Found

    Hey everybody,
    I found this thread:
    http://swforum.sun.com/jive/thread.jspa?threadID=54004
    That thread mentions (or implies) there is something different that must be accomplished when performing remote authentications vs local authentications but never actually states what is different.
    Anyhow, I am attempting to perform a remote authentication, and am running into problems. I have taken the code listed in the above thread and modified it for my usage, with a few modifications. However, I keep getting this error:
    [#|2006-02-13T15:50:56.321-0500|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=25;|ERROR: updateNamingTable : Naming Service is not available.
    |#]
    [#|2006-02-13T15:50:56.332-0500|WARNING|sun-appserver-pe8.1_02|javax.enterprise.system.stream.err|_ThreadID=25;|
    com.sun.identity.authentication.spi.AuthLoginException(1):null
    com.sun.identity.authentication.spi.AuthLoginException(2):null
    com.sun.identity.authentication.spi.AuthLoginException: Failed to create new Authentication Context: Naming Service is not available.
            at com.sun.identity.authentication.AuthContext.createAuthContext(AuthContext.java:1310)
            at com.sun.identity.authentication.AuthContext.createAuthContext(AuthContext.java:1261)
            at com.sun.identity.authentication.AuthContext.<init>(AuthContext.java:178)
            at infrastructure.SessionBean1.login(SessionBean1.java:224)
            at infrastructure.login.button1_action(login.java:267)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at ...When I connect to the service via http://myserver.mydomain.tld/amserver/namingservice I recieve a message that looks like:
    Webtop 2.5 Platform Low Level request servletWhich indicates it is running properly. I also am using the AMConfig.properties that is running on the server to pull my values and my code (listed below) prints out all the values it reads. I am using the base dn for the orgname as indicated in various documentation.
    My code looks like:
        public boolean login(String username, String password) {
            try {
                ResourceBundle resources = ResourceBundle.getBundle("AMConfig");
                String orgname = null;
                Properties props = new Properties();
                Enumeration keyEnum = resources.getKeys();
                while ( keyEnum.hasMoreElements() ) {
                    String key = (String) keyEnum.nextElement();
                    String value = (String) resources.getString(key);
                    props.setProperty(key, value);
                    if ( key.equalsIgnoreCase("com.iplanet.am.defaultOrg") ) {
                        orgname = value;
                    this.getFacesContext().addMessage(null, new FacesMessage(key + " = " + value));
                SystemProperties.initializeProperties(props);
                // Authenticate the user and obtain SSO Token
                AuthContext lc = null;
                lc = new AuthContext(orgname);
                lc.login();
                while (lc.hasMoreRequirements()) {
                    Callback[] callbacks = lc.getRequirements();
                    for (int i = 0; i < callbacks.length; i++) {
                        if (callbacks[i] instanceof NameCallback) {
                            NameCallback nc = (NameCallback) callbacks;
    nc.setName(username);
    } else if (callbacks[i] instanceof PasswordCallback) {
    PasswordCallback pc = (PasswordCallback) callbacks[i];
    pc.setPassword(password.toCharArray());
    } else {
    log("Unknown Callback: " + callbacks[i]);
    return false;
    lc.submitRequirements(callbacks);
    if (lc.getStatus() != AuthContext.Status.SUCCESS) {
    log("Invalid credentials");
    return false;
    // Obtain the SSO Token
    token = lc.getSSOToken();
    log("SSOToken: " + token.getTokenID());
    log("User DN: " +
    token.getPrincipal().getName());
    // Obtain AMUser object
    db = new AMStoreConnection(token);
    user = db.getUser(token.getPrincipal().getName());
    // Get the attributes and display them
    log("Attributes: " + user.getAttributes());
    } catch (Exception e) {
    this.getFacesContext().addMessage(null, new FacesMessage("An exception occurred, unable to login.", e.getMessage()));
    e.printStackTrace();
    return false;
    Any ideas?
    Thanks!
    Joshua Preston.

    The most common reason for this error is improper
    communication with your LDAP server . Is your DS
    setup correctly and are you able to authenticate
    using amadmin ?Yes, our DS is setup correctly and I am able to authenticate using amadmin.

  • BAPI_USER_CHANGE "named argument not found" error in VBA

    Folks,
    I'm trying to update SAP users' email addresses en masse via a VBA routine.  The subroutine I'm trying to run is here, at least in skeletal form (it still needs MAPI code to pick up the email information, but that's outside the scope of the question:)
    Sub UpdateUsers()
    Dim gConnection As Object 'global connection object
    Dim boUser As Object
    Dim oAddress As Object, oPOHeader As Object, oAddressX As Object, oReturn As Object
    Dim oCommitReturn As Object, oBAPIService As Object
    Dim db As Database, rs As Recordset
    Dim strDbName As String
    Dim oBAPICtrl As New SAPBAPIControl
        'Database file name
        strDbName = CurrentDb.Name
        'Open database file
        Set db = DBEngine.OpenDatabase(strDbName)
        'Database table/query to take data from
        Set rs = db.OpenRecordset("users", dbOpenDynaset, dbSeeChanges)
        'Set up connection object for SAP.  Note that the SAP BAPI ActiveX object must be available on the form or otherwise.
        Set gConnection = oBAPICtrl.Connection
        'Log in to SAP.  Seems like passwords must be in uppercase.  There are examples of people defaulting some (or all)
        'of the login values
        gConnection.logon
        'Set up the transaction commit.  You need this for the effects of an update BAPI to actually take effect.
        Set oBAPIService = oBAPICtrl.GetSAPObject("BapiService")
        'This table object contains error message data regarding how well the commit worked.
        Set oCommitReturn = oBAPICtrl.DimAs(oBAPIService, "TransactionCommit", "Return")
        'Buzz through the Access table.
        With rs
        .MoveFirst
        Do While .EOF <> True
        'Initialize all BAPI objects for each transaction.
        Set boUser = Nothing
        Set oPOHeader = Nothing
        Set oAddress = Nothing
        Set oAddressX = Nothing
        Set oReturn = Nothing
        'Initialize all BAPI object structures to what is required.
        'To see what BAPI's are available and how to call them, go to http://ifr.sap.com/catalog/query.asp
        'Note that the first line actually establishes a primary key (PO, in this example.)
        Set boUser = oBAPICtrl.GetSAPObject("USER", !Uname)
        Set oAddress = oBAPICtrl.DimAs(boUser, "Change", "Address")
        Set oAddressX = oBAPICtrl.DimAs(boUser, "Change", "Addressx")
        Set oReturn = oBAPICtrl.DimAs(boUser, "Change", "Return")
        'Populate all tabular BAPI structures with appropriate information, as required by the BAPI.
    '    oAddress.rows.Add
        oAddress.Value("E_MAIL") = "[email protected]"
    '   oAddressX.rows.Add
        oAddressX.Value("E_MAIL") = "X"
        'Actually call the BAPI here.
        boUser.Change UserName:=!Uname, _
                       Address:=oAddress, _
                       Addressx:=oAddressX, _
                       Return:=oReturn
        'See how things worked by checking the first line of the "return" object.  Type code of "S" means success.
        If oReturn.Value(1, "TYPE") <> "S" Then
        'If we had a non-successful return code, pop up a message box here indicating what went wrong.
            MsgBox ("Error changing user" + !User + vbCrLf + oReturn.Value(1, "MESSAGE"))
        Else
        'If we received a successful return code, do a commit.  You have to do this in order for the update to work.
            oBAPIService.TransactionCommit Wait:="X", _
                                             Return:=oCommitReturn
           .Edit
           !done = True
           .Update
        End If
        .MoveNext
        Loop
    End With
    'Log out of SAP.
    gConnection.logoff
    MsgBox ("Done.")
    End Sub
    Can anyone see what's going on with the BAPI call to BAPI_USER_CHANGE and what I'm not providing it that it wants (or am providing it wrong?)
    Thanks,
    Eric

    <b>Got it working--if you ever want to do this (or something similar,) here's how:</b>
    Option Compare Database
         Public objSession As MAPI.Session
         Public txtFirstName As String
         Public txtMiddleInit As String
         Public txtLastName As String
         Public txtTitle As String
         Public txtPhoneNumber As String
         Public txtFaxNumber As String
         Public txtOFCName As String
         Public txtEmailAddress As String
    Sub UpdateUsers()
    Dim gConnection As Object 'global connection object
    Dim boUser As Object
    Dim oAddress As Object, oPOHeader As Object, oAddressX As Object, oAdSMTP As Object, oReturn As Object
    Dim oCommitReturn As Object, oBAPIService As Object
    Dim db As Database, rs As Recordset
    Dim strDbName As String
    Dim oBAPICtrl As New SAPBAPIControl
        'Database file name
        strDbName = CurrentDb.Name
        'Open database file
        Set db = DBEngine.OpenDatabase(strDbName)
        'Database table/query to take data from
        Set rs = db.OpenRecordset("users", dbOpenDynaset, dbSeeChanges)
        'Set up connection object for SAP.  Note that the SAP BAPI ActiveX object must be available on the form or otherwise.
        Set Functions = CreateObject("SAP.Functions")
        Set FUNC = Functions.Add("BAPI_USER_CHANGE")
        Set eUsername = FUNC.exports("USERNAME")
        FUNC.exports("ADDRESSX").Value("E_MAIL") = "X"
        'Buzz through the Access table.
        With rs
        .MoveFirst
        Do While .EOF <> True
           eUsername.Value = !uname
           GetProperties (!uname)
           FUNC.exports("ADDRESS").Value("E_MAIL") = txtEmailAddress
           FUNC.Call
           .MoveNext
        Loop
    End With
    MsgBox ("Done.")
    End Sub
    Sub GetProperties(strUserid As String)
           Dim objAddrEntries As AddressEntries
           Dim objAddressEntry As AddressEntry
           Dim objFilter As AddressEntryFilter
           Dim strCompareUserid As String
           Dim collAddressLists As AddressLists
           Dim objAddressList As AddressList
           Dim collAddressEntries As AddressEntries
           ' create a session and log on
           Set objSession = CreateObject("MAPI.Session")
           objSession.Logon , , , False
           Set objAddrEntries = objSession.AddressLists("Global Address List").AddressEntries
           Set objFilter = objAddrEntries.Filter
           objFilter.Fields.Add CdoPR_ACCOUNT, strUserid
           objFilter.Or = False
           strUserid = LCase(strUserid)
           'Initializing
           txtFirstName = ""
           txtMiddleInit = ""
           txtLastName = ""
           txtTitle = ""
           txtPhoneNumber = ""
           txtFaxNumber = ""
           txtEmailAddress = ""
           On Error Resume Next
            For Each objAddressEntry In objAddrEntries
                strCompareUserid = objAddressEntry.Fields(CdoPR_ACCOUNT).Value
                strCompareUserid = LCase(strCompareUserid)
                If strCompareUserid = strUserid Then
                    txtFirstName = objAddressEntry.Fields(CdoPR_GIVEN_NAME).Value
                    txtMiddleInit = objAddressEntry.Fields(CdoPR_INITIALS).Value
                    txtLastName = objAddressEntry.Fields(CdoPR_SURNAME).Value
                    txtTitle = objAddressEntry.Fields(CdoPR_TITLE).Value
                    txtPhoneNumber = objAddressEntry.Fields(CdoPR_BUSINESS_TELEPHONE_NUMBER).Value
                    txtFaxNumber = objAddressEntry.Fields(CdoPR_PRIMARY_FAX_NUMBER).Value
                    txtEmailAddress = objAddressEntry.Fields(&H39FE001F).Value
                    Exit Sub
              End If
           Next
    End Sub

  • Query not found appearing?

    Expert's,
    Here is a typical issue with respect to the query.I have created a query by using save as option and I modify that query and gave the technical name also I could execute that query which is now created.But when I am searching or change option or execute option then <b>query is not entry is Displaying.</b>
    Please help me.

    vasu - do you have any display authorizatiosn set up - and are you facing this issue with the same user id or across user ids ?
    also see if the query exists in the metadata repository
    Arun
    P.S give your BI versions and patch levels
    Message was edited by:
            Arun Varadarajan

  • Javax.naming.* Not Found

    I have downloaded the j2sdkee1.3 for comiling my Ejb files.All the files get compiled but my client file which uses javax.naming package doesnt get compiled.The error message says its unable to find javax.naming package. Can somebody help me on this issue please.
    Thanx

    i too am having the same problem any suggestions???

  • Javax.naming.NameNotFoundException: buslogic.HRAppFacade not found, help!!!

    I have followed the tutorial on http://www.oracle.com/technology/obe/obe1013jdev/10131/10131_ejb_30/ejb_30.htm to create my own EJB with Jdeveloper, but I got some errors. Please help.
    When I run the client, it gave out the following errors:
    javax.naming.NameNotFoundException: buslogic.HRAppFacade not found
         at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:52)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at client.HRAppFacadeClient.main(HRAppFacadeClient.java:15)
    Process exited with exit code 0.
    I have created the entity and facade (with interface), but the client couldn't lookup the facade, giving out the above error. How to solve the problm? Thanks.
    The following is my source code:
    Employees.java
    package buslogic.persistence;
    import java.io.Serializable;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.NamedQuery;
    import javax.persistence.Table;
    import javax.persistence.Id;
    import javax.persistence.NamedQueries;
    @Entity
    @NamedQueries({
    @NamedQuery(name = "Employees.findAll", query = "select o from Employees o"),
    @NamedQuery(name = "Employees.findEmployeeById", query = "select o from Employees o where o.empid = :empid")
    @Table(name = "\"employees\"")
    public class Employees implements Serializable {
    @Id
    @Column(name="empid")
    private int empid;
    @Column(name="name")
    private String name;
    @Column(name="phone")
    private int phone;
    public Employees() {
    public int getEmpid() {
    return empid;
    public void setEmpid(int empid) {
    this.empid = empid;
    public String getName() {
    return name;
    public void setName(String name) {
    this.name = name;
    public int getPhone() {
    return phone;
    public void setPhone(int phone) {
    this.phone = phone;
    (HRAppFacadeBean.java)
    package buslogic;
    import buslogic.persistence.Employees;
    import java.util.List;
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    @Stateless(name="HRAppFacade")
    public class HRAppFacadeBean implements HRAppFacade, HRAppFacadeLocal {
    @PersistenceContext(unitName="EJB_Project")
    private EntityManager em;
    public HRAppFacadeBean() {
    public Object mergeEntity(Object entity) {
    return em.merge(entity);
    public Object persistEntity(Object entity) {
    em.persist(entity);
    return entity;
    /** <code>select o from Employees o</code> */
    public List<Employees> queryEmployeesFindAll() {
    return em.createNamedQuery("Employees.findAll").getResultList();
    /** <code>select o from Employees o where o.empid = :empid</code> */
    public Employees queryEmployeesFindEmployeeById(int empid) {
    return (Employees)em.createNamedQuery("Employees.findEmployeeById").setParameter("empid", empid).getSingleResult();
    public void removeEmployees(Employees employees) {
    employees = em.find(Employees.class, employees.getEmpid());
    em.remove(employees);
    (HRAppFacade.java)
    package buslogic;
    import buslogic.persistence.Employees;
    import java.util.List;
    import javax.ejb.Remote;
    @Remote
    public interface HRAppFacade {
    Object mergeEntity(Object entity);
    Object persistEntity(Object entity);
    List<Employees> queryEmployeesFindAll();
    Employees queryEmployeesFindEmployeeById(int empid);
    void removeEmployees(Employees employees);
    (HRAppFacadeLocal.java)
    package buslogic;
    import buslogic.persistence.Employees;
    import java.util.List;
    import javax.ejb.Local;
    @Local
    public interface HRAppFacadeLocal {
    Object mergeEntity(Object entity);
    Object persistEntity(Object entity);
    List<Employees> queryEmployeesFindAll();
    Employees queryEmployeesFindEmployeeById(int empid);
    void removeEmployees(Employees employees);
    }

    I hit the exact same error. In my case it was due to missing "@Id" line in Departments.java. I must have accidently deleted it when pasting in some code.
    (my clue was the errors I got when starting imbedded OC4J)
    This section of Departments.java should read as follows:
    public class Departments implements Serializable {
    @Id
    @GeneratedValue(strategy=SEQUENCE, generator="DEPARTMENTS_SEQ")
    @Column(name="DEPARTMENT_ID", nullable = false)
    After fixing this, I ran a "make" of "HRApp", restarted the embedded OC4J server (terminate it, then right click HRAppFacadeBean.java, and click Run).
    Then ran the application...

  • Data Not Found in a Query

    Hi guys,
    I have built a Query on a Multiprovider which is based on a Remote Cube and Basic Cube.  I can see Data for my filters via ListCube in both Multi Provider and Remote Cube.
    The Query is showing Data when Restrict to Value Range [First Value, Last Value] for a Characteristic.  It is not showing data when the Restriction is deleted.
    Any Suggessions over this strange Problem ?
    If the question is not clear please let me know.
    I went to RSRT and compared the SQL Query and found
    that it is not picking up this dimension table , "/BIC/DBCS_CMR13" "D3"
    and SID Table "/BIC/SPCMRBG" "S2". 
    How can i resolve this issue.
    <b>SQL Query showing results</b>
    CREATE OR REPLACE VIEW "/BI0/0300129574" AS
    SELECT
    /*+ STAR_TRANSFORMATION  FACT(F) */
    "DU"."SID_0CURRENCY" AS "S____004"
    ,"D1"."SID_PCMRFNL1" AS "S____197"
    ,"DT"."SID_0FISCPER3" AS "S____047"
    ,"D4"."SID_PCMRTOD" AS "S____215"
    ,"H1"."PRED" AS "S____207"
    , COUNT( * )  AS "1ROWCOUNT"
    , SUM ( "H1"."FACTOR" *  "F"."/BIC/PCMRLFIG"  )  AS "PCMRLFIG"
    FROM
    "/BIC/FBCS_CMR1" "F"
    , "/BIC/DBCS_CMR1U" "DU"
    , "/BIC/DBCS_CMR12" "D2"
    , "/BIC/DBCS_CMR11" "D1"
    , "/BIC/DBCS_CMR1T" "DT"
    , "/BIC/DBCS_CMR14" "D4"
    , "/BIC/DBCS_CMR1P" "DP"
    , "/BI0/SFISCYEAR" "S1"
    , "/BIC/DBCS_CMR13" "D3"
    , "/BIC/SPCMRBG" "S2"
    , "/BIC/DBCS_CMR18" "D8"
    , "/BI0/0300129573" "H1"
    WHERE
    "F"."KEY_BCS_CMR1U"
    = "DU"."DIMID"
    AND "F"."KEY_BCS_CMR12"
    = "D2"."DIMID"
    AND "F"."KEY_BCS_CMR11"
    = "D1"."DIMID"
    AND "F"."KEY_BCS_CMR1T"
    = "DT"."DIMID"
    AND "F"."KEY_BCS_CMR14"
    = "D4"."DIMID"
    AND "F"."KEY_BCS_CMR1P"
    = "DP"."DIMID"
    AND "DT"."SID_0FISCYEAR"
    = "S1"."SID"
    AND "F"."KEY_BCS_CMR13"
    = "D3"."DIMID"
    AND "D3"."SID_PCMRBG"
    = "S2"."SID"
    AND "F"."KEY_BCS_CMR18"
    = "D8"."DIMID"
    AND "D2"."SID_PCMRCNC"
    = "H1"."SUCC"
    AND
    "DP"."SID_0CHNGID"
    = 0
    )) AND ((
    "S1"."FISCYEAR"
    = '2006'
    )) AND ((
    "DP"."SID_0RECORDTP"
    = 0
    )) AND ((
    "DP"."SID_0REQUID"
    <= 5284
    )) AND ((
    "S2"."/BIC/PCMRBG"
    BETWEEN ' ' AND 'ERRM'
    )) AND ((
    "D8"."SID_PORU"
    = 332
    )))) AND ((((
    "DT"."SID_0FISCPER3"
    = 10
    )) AND ((
    "D4"."SID_PCMRTOD"
    = 265
    AND
    "H1"."SUCC"
    <> 2000008999
    GROUP BY
    "DU"."SID_0CURRENCY"
    ,"H1"."PRED"
    ,"D1"."SID_PCMRFNL1"
    ,"DT"."SID_0FISCPER3"
    ,"D4"."SID_PCMRTOD"
    <b>SQL Query not showing results</b>
    CREATE OR REPLACE VIEW "/BI0/0300129258" AS
    SELECT
    /*+ STAR_TRANSFORMATION  FACT(F) */
    "DU"."SID_0CURRENCY" AS "S____004"
    ,"D1"."SID_PCMRFNL1" AS "S____197"
    ,"DT"."SID_0FISCPER3" AS "S____047"
    ,"D4"."SID_PCMRTOD" AS "S____215"
    ,"H1"."PRED" AS "S____207"
    , COUNT( * )  AS "1ROWCOUNT"
    , SUM ( "H1"."FACTOR" *  "F"."/BIC/PCMRLFIG"  )  AS "PCMRLFIG"
    FROM
    "/BIC/FBCS_CMR1" "F"
    , "/BIC/DBCS_CMR1U" "DU"
    , "/BIC/DBCS_CMR12" "D2"
    , "/BIC/DBCS_CMR11" "D1"
    , "/BIC/DBCS_CMR1T" "DT"
    , "/BIC/DBCS_CMR14" "D4"
    , "/BIC/DBCS_CMR1P" "DP"
    , "/BI0/SFISCYEAR" "S1"
    , "/BIC/DBCS_CMR18" "D8"
    , "/BI0/0300129257" "H1"
    WHERE
    "F"."KEY_BCS_CMR1U"
    = "DU"."DIMID"
    AND "F"."KEY_BCS_CMR12"
    = "D2"."DIMID"
    AND "F"."KEY_BCS_CMR11"
    = "D1"."DIMID"
    AND "F"."KEY_BCS_CMR1T"
    = "DT"."DIMID"
    AND "F"."KEY_BCS_CMR14"
    = "D4"."DIMID"
    AND "F"."KEY_BCS_CMR1P"
    = "DP"."DIMID"
    AND "DT"."SID_0FISCYEAR"
    = "S1"."SID"
    AND "F"."KEY_BCS_CMR18"
    = "D8"."DIMID"
    AND "D2"."SID_PCMRCNC"
    = "H1"."SUCC"
    AND
    "DP"."SID_0CHNGID"
    = 0
    )) AND ((
    "S1"."FISCYEAR"
    = '2006'
    )) AND ((
    "DP"."SID_0RECORDTP"
    = 0
    )) AND ((
    "DP"."SID_0REQUID"
    <= 5284
    )) AND ((
    "D8"."SID_PORU"
    = 332
    )))) AND ((((
    "DT"."SID_0FISCPER3"
    = 10
    )) AND ((
    "D4"."SID_PCMRTOD"
    = 265
    AND
    "H1"."SUCC"
    <> 2000008999
    GROUP BY
    "DU"."SID_0CURRENCY"
    ,"H1"."PRED"
    ,"D1"."SID_PCMRFNL1"
    ,"DT"."SID_0FISCPER3"
    ,"D4"."SID_PCMRTOD"

    Is seems to be referring to a different infoobjcet ( S1 and S2 in both options seem to refer to different SID tables - one is FISCYEAR and the other is the /BIC/SPCMRBG )
    Is there any difference in the infoobjects in the query ? and also execute the query ( both versions ) in RSRT searching for Multiprovider explain...
    Arun

  • OBIEE 11g : query log not found

    Hi,
    I am not able to see the query log in 11g answers manage session throwing error query log not found.
    I am using obiee 11g. 11g admin client is installed in local machine and I upload the rpd through enterprise manager. But I can not able to open the rpd in online mode that's why cannot change the query log level=2 (as in obiee 10g) for seeing the query log in Answers. Usually after making changes in 11g rpd, I upload that in server via enterprise manager console.
    Can anyone please tell me what should be correct option to see the query log and how I can open the rpd in online mode and how I can set the query log level in obiee 11g????
    Please help.
    Thanks
    Titas

    Hi,
    Its known bug and it can be done by below methods,
    Method1:
    If you enabled loglevel for each users wise it may be override with below place also can you confirm both places.
    enabled Tools-->Options-->Repository-->
    System log level by default will be 0 just try to increase to 2 or 3 and save it.
    Method1:
    by each report wise enabling loglevel
    try putting the below syntax in prefix section of advanced tab.
    SET VARIABLE LOGLEVEL=2,DISABLE_CACHE_HIT=1;
    It should generate the log with database sql as well.
    Method 3:
    Create Session variable(LOGLEVEL) with initblock
    in your init block --> datasource place put it like below query
    select 3 from IW_POSITION
    Note:just point any existing physical table from u r RPD.
    Then try to save it and test it.
    Refer screen
    http://bidevata.wordpress.com/2012/03/03/no-log-found-error-in-obiee-11g/
    Thanks
    Deva
    Edited by: Devarasu on Oct 11, 2012 11:44 PM

  • Getting 404 not found error-while creating classic report - after sql query

    my work space - upgrade
    while iam trying to develop a page today in work space - under classic report - after i provided the query and when pressed next to go to report attribuites section - iam facing 404 not found issue.,
    this is happening just today.
    and all teh other pages are working fine - do not know what ios the issue - can anybody help me here please..
    query used for classic report
    select DISTINCT cust.customer,prod.ebs_team
    from
    CUSTOMER_11i@upgrade Cust
    ,BUG_PRODUCTS@upgrade PROD
    where 1=1
    and cust.product_id = prod.product_id
    and prod.prodline = 'EBS'
    and IS_CUST_11 = 'YES'
    and NVL(IS_CUST_121,'NO') = 'NO'
    and NVL(IS_CUST_12,'NO') = 'NO'
    order by 1;
    with regards
    Shiva Prasad.k
    Edited by: user759720 on Feb 14, 2012 5:00 AM

    Hi Shiva,
    to diagnose a 404 error please have a look at http://www.inside-oracle-apex.com/oracle-apex-got-404-not-found-2/
    This should give you sufficient information to find out what is actually failing.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • "Source not found" Error creating URL Data control with query parameters

    Hi,
    I have a restful service for which i want to create a URL data control. I am able to create the URL data control successfully when i am not passing any parameters in the Source field. But if i am specifying the parameters in the source field like this Department=##ParamName##, something weird is happening. After giving the param string in the Source field, it asks for default param value to test the url. It tests the url successfully. After that i select XML as the data format in which i am mentioning the xsd like this . "file:///C:/..../something.xsd" . And this is when i am getting the error. "Invalid Connection. The source is not found". I am giving exactly same path for xsd which i gave while creating URL data control without query parameters. Infact i was able to create the URL data control with query parameters successfully till afternoon. after that it started giving me this error all of a sudden. Infact as soon as i was able to create a URL data contol with query parameter successfully, i took a backup of the application before moving further. But even that backup is not working now.
    As far as i understand, i dont think there will be any change in xsd if query params are passed to a web service. Please correct me if i am wrong.
    Just dont know what could be the issue. Please help
    Thanks

    Hi,
    xsd is used for the URL service to know what the returned data structure is so it can create the ADF DC metadata
    Frank

  • Javax.naming.NameNotFoundException: SessionEJBBean not found

    Please help I am getting error: javax.naming.NameNotFoundException: SessionEJBBean not found.
    I am using JDeveloper 10g as editor.
    The embedded server is running, SessionEJBBean is also there. I have restarted the computer, changed 'SessionEJB' from 'SessionEJBBean'. Yet No success. This is what I get.:
    javax.naming.NameNotFoundException: SessionEJBBean not found
    at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:52)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at friends.SessionEJBClient.main(SessionEJBClient.java:11)
    Process exited with exit code 0.
    SessionEJBClient.java
    package friends;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    public class SessionEJBClient {
    public static void main(String [] args) {
    try {
    final Context context = getInitialContext();
    SessionEJB sessionEJB = (SessionEJB)context.lookup("SessionEJBBean");
    } catch (Exception ex) {
    ex.printStackTrace();
    private static Context getInitialContext() throws NamingException {
    // Get InitialContext for Embedded OC4J
    // The embedded server must be running for lookups to succeed.
    return new InitialContext();
    }Thank you.

    Thanks Karma-9 for your reply. My issue has got resolved as I followed this link:
    http://www.oracle.com/technology/obe/obe1013jdev/10131/10131_ejb_30/ejb_30.htm
    However I have now new problem in hand, when I am trying to insert data in database
    using JSP. I am having problem with request.getParameter(). It is not
    recognised by JSP. A red underline is being shown below
    request.getParameter(). One more thing, in JSP page, if I take cursor over
    'request' in request.getParameter, it shows, 'Name request not found'. When
    I take cursor over 'getParameter' in request.getParameter, it shows, 'Method
    getParameter (java.lang.String) not found in<unknown>'.
    This is my code:
    MyPage.jsp
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page import="java.sql.*, javax.naming.Context,
    javax.naming.InitialContext, javax.naming.NamingException,
    friendspackage.*, java.text.*, java.util.*"%>
    <%!
    public void jspInit () {
    String name, city;
    name = request.getParameter("name");
    city = request.getParameter("city");
    try {
    final Context context = getInitialContext();
    SessionFriends sessionFriends =
    (SessionFriends)context.lookup("SessionFriends");
    sessionFriends.addFriends("name","city");
    //System.out.println( "Success" );
    } catch (Exception ex) {
    ex.printStackTrace();
    private static Context getInitialContext() throws NamingException {
    // Get InitialContext for Embedded OC4J
    // The embedded server must be running for lookups to succeed.
    return new InitialContext();
    %>MyPage.html
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=windows-1252"></meta>
    <title>My Friends</title>
    </head>
    <body>
    <form name="MyFriends" action="MyFriends.jsp" method="post">
    Name:
    <input type="text" name="name">
    City:
    <input type="text" name="city">
    <input type="submit" value="Submit">
    </form>
    </body>
    </html>Please let me know if I have to make any changes in web.xml which is:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"
    xmlns="http://java.sun.com/xml/ns/j2ee">
    <description>Empty web.xml file for Web Application</description>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    </web-app>Thank you again.
    Anurag

  • PCO Query: tag not found

    Hi,
    I am writing values to a datablock on a PLC using SAP PCO and OPC as middleware.
    It is working for all tags in the datablock except for 2.
    This is a screenshot of both tags in the OPC Quick client (I am using Kepware OPC server).
    I can read and write the tags from here.
    I have created a small test. In the MII workbench I created a PCO Query.
    Next I dragged the two tags from the tag browser on the left, to the right.
    For both tags I filled in a value.
    When I execute the query I get following error messages.
    M1 Order Dispatch/OrderQuantityTarget: Tag PoederMagazijn/ATS PLC/M1 Order Dispatch/OrderQuantityTarget not found.
    M1 Order Dispatch/OrderQuantityConfirmed: Tag PoederMagazijn/ATS PLC/M1 Order Dispatch/OrderQuantityConfirmed not found.
    Any other tags work fine.
    Thank you for your time.

    Hi Philippe,
    I tested a similar tag name in Kepware with the Simulator device as I do not have a Siemens hardware connection at present. I was able to read and write DWord tags without issues on these versions:
    Kepware V5.15.585.0
    MII 14.0 SP5 Patch 15
    PCo 2.305.2141.1051 (Patch 3)
    Additional question:  What is the Agent Instance Tag Query Cache Mode set for?
    Regards, Steve

  • Javax.naming.NameNotFoundException: UserBeanRef not found

    Can someone help me out ?
    I am still new using Sun Application Server provided with J2EE 1.4 SDK and accessing Oracle.
    I am getting "javax.naming.NameNotFoundException: UserBeanRef not found"
    This is taken from the ejb-jar.xml of my enterpise bean jar file
    <ejb-local-ref>
    <ejb-ref-name>UserBeanRef</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <local-home>LocalUserHome</local-home>
    <local>LocalUser</local>
    <ejb-link>UserBean</ejb-link>
    </ejb-local-ref>
    ... and this is the code I am using to invoke (trying actually) the bean
    InitialContext ic = new InitialContext();
    Object o = ic.lookup("UserBeanRef");
    LocalUserHome home = (LocalUserHome) o;
    user = home.findByPrimaryKey(username);
    I can't understand what's wrong with this ?? any suggestions please

    use the following code for the lookup:
    Object o = ic.lookup("java:comp/env/UserBeanRef");

  • Javax.naming.NameNotFoundException: java:comp/UserTransaction not found

    Hi,
    trying to obtain UserTransaction from client:
    UserTransaction t = (UserTransaction)context.lookup("java:comp/UserTransaction");
    but I get this error:
    javax.naming.NameNotFoundException: java:comp/UserTransaction not found
         at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:164)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
    Any help?

    The problem has been resolved. It was a usage-related issue. Thank you all.

Maybe you are looking for

  • MSI KT3 Ultra-ARU

    Can anyway say to me the PCI/AGP dividers of MSI Kt3 ULTRA -ARU? Thanx in advance

  • Firefox is giving me a JavaScript error when I click on a video. Help?

    OK, so I am using FireFox 5.0. And every time I click a Youtube video, I get this error message: [Javascript Application] error.BVDCORE.videoFormats is undefined Can anyone tell me how to fix it? The video works fine, it's just extremely annoying to

  • Saving a pdf onto a disk

    I've set up my document with bookmarks. Now I'm trying to save the document on a CD. When I save it to the CD and someone opens it I want it to open with the bookmarks page showing. I can't get the document to save that way. Anyone have an idea how t

  • Third party adapters not working

    I bought two different adaptors for my iPhone 5 (to be able to use my old 30-pin cables) and I am pretty sure they worked when I first used them. However, after the latest iOS updates for the iPhone 5 and the iPad 4, neither adaptor works. My devices

  • Naming merged layers, Adjustment Issue

    I'm using PS CS5 for Mac. When I highlight and then merge 2 layers, the new layer takes the name of the top layer. Is there a way to have it take the name of the bottom of two layers?  For instance, if I put a Hue and Saturation Adjustment layer on a