ERROR: objectManager.QueryObjects() failing when querying users

I have a list of user ObjectIDs saved in a community preference and am trying to write a function to itterate through them and display a link to each user's profile page where the hyperlink text is the user's description property.
The profile page links works just fine thanks to the cool pt:OpenerLink transformer tag, but I'm having trouble doing a query for a user's Description property.
I get an "Object Reference not set to an instance of an object." at: Plumtree.Remote.PRC.ObjectManagerWrapper.QueryObjects(Int32 folderID, Int32 startRow, Int32 maxRows, ObjectProperty sortProperty, Boolean ascending, ObjectProperty[] propsToReturn, QueryFilter[] filters) at sam7.portlet3.buildUserLinks3(String strValue) in C:\Plumtree\ZZZRemotePortlets\sam7\portlet3.aspx.vb:line 126
The buildUserLinks3() routine that does the query and builds the link is included below. Line 126 is the queryResults=ObjectManager.QueryObjects(...) call.
What have I missed?
Public Function buildUserLinks3(ByVal strValue As String)
Dim arrValues As Array Dim intObjectID As Integer Dim strOutput As StringBuilder = New StringBuilder
Dim RemoteSession As IRemoteSession Dim ObjectManager As IObjectManager Dim strUserDescription As String
Dim folderID As Integer folderID = -1 'search all folders
Dim startRow As Integer startRow = 0 'start at the first found
Dim maxRows As Integer maxRows = 1 'return a single result
Dim sortProperty As ObjectProperty sortProperty = UserProperty.UniqueName 'sort on the unique name
Dim ascending As Boolean ascending = True 'sort ascending
Dim propsToReturn(2) As ObjectProperty 'choose to return specific properties
propsToReturn(0) = UserProperty.ObjectID propsToReturn(1) = UserProperty.SimpleName
Dim filters(1) As QueryFilter 'filter the results
RemoteSession = RemoteSessionFactory.GetTokenContext(portletRequest.GetRemoteAPIEndpoint(), portletRequest.GetLoginToken()) ObjectManager = RemoteSession.GetObjectManager(ObjectClass.User)
' parse the comma-separated list of User object IDs and look up the user's Properties. If strValue.Length > 1 And (strValue <> "null") Then arrValues = strValue.Split(",") For Each intObjectID In arrValues
' get the user's properties Try
' Set a query filter to sort for a unique objectID filters(0) = New StringQueryFilter(UserProperty.ObjectID, _ Operator.Equals, _ intObjectID.ToString) 'where the objectID equals the itterated value
Dim queryResults As IObjectQuery queryResults = ObjectManager.QueryObjects( _ folderID, _ startRow, _ maxRows, _ sortProperty, _ ascending, _ propsToReturn, _ filters)
' There will be only one returned row based on the query filter above, but itterate anyway... ' it is good form in case something changes later. ' We'll keep overwriting the strUserDescription value until the last returned row. Dim i As Integer Dim queryObject As IObjectQueryRow For i = 0 To queryResults.GetRowCount() queryObject = queryResults.GetRow(i) strUserDescription = queryObject.GetStringValue(UserProperty.Description) Next i
Catch e As Exception 'Response.Write("<BR>" & e.Message & " <BR>") 'Response.Write(e.StackTrace & " <BR>") 'Response.End()
strUserDescription = "UserID " & intObjectID.ToString & vbCrLf & _ "<BR>    - NAME LOOOKUP ERROR" & vbCrLf & _ "<BR>    - " & vbCrLf & e.Message & _ "<BR>    - " & vbCrLf & e.StackTrace & _ "<BR>" & vbCrLf End Try
' handy little transformer tags... yes, precious, my precious... strOutput.Append("<pt:openerLink xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/' ") strOutput.Append("pt:objectID='") strOutput.Append(intObjectID.ToString) strOutput.Append("' ") strOutput.Append("pt:classID='1' ") strOutput.Append("pt:mode='3' ") strOutput.Append("target='myWindow' ") strOutput.Append("onclick=window.top.open('','myWindow','height=500,width=700,status=no,toolbar=no,menubar=no,location=no');") strOutput.Append(">") strOutput.Append(strUserDescription) strOutput.Append("</pt:openerLink>" & vbCrLf & "<BR>" & vbCrLf) Next Else strOutput.Append("") End If Return (strOutput.ToString) End Function

I have a list of user ObjectIDs saved in a community preference and am trying to write a function to itterate through them and display a link to each user's profile page where the hyperlink text is the user's description property.
The profile page links works just fine thanks to the cool pt:OpenerLink transformer tag, but I'm having trouble doing a query for a user's Description property.
I get an "Object Reference not set to an instance of an object." at: Plumtree.Remote.PRC.ObjectManagerWrapper.QueryObjects(Int32 folderID, Int32 startRow, Int32 maxRows, ObjectProperty sortProperty, Boolean ascending, ObjectProperty[] propsToReturn, QueryFilter[] filters) at sam7.portlet3.buildUserLinks3(String strValue) in C:\Plumtree\ZZZRemotePortlets\sam7\portlet3.aspx.vb:line 126
The buildUserLinks3() routine that does the query and builds the link is included below. Line 126 is the queryResults=ObjectManager.QueryObjects(...) call.
What have I missed?
Public Function buildUserLinks3(ByVal strValue As String)
Dim arrValues As Array Dim intObjectID As Integer Dim strOutput As StringBuilder = New StringBuilder
Dim RemoteSession As IRemoteSession Dim ObjectManager As IObjectManager Dim strUserDescription As String
Dim folderID As Integer folderID = -1 'search all folders
Dim startRow As Integer startRow = 0 'start at the first found
Dim maxRows As Integer maxRows = 1 'return a single result
Dim sortProperty As ObjectProperty sortProperty = UserProperty.UniqueName 'sort on the unique name
Dim ascending As Boolean ascending = True 'sort ascending
Dim propsToReturn(2) As ObjectProperty 'choose to return specific properties
propsToReturn(0) = UserProperty.ObjectID propsToReturn(1) = UserProperty.SimpleName
Dim filters(1) As QueryFilter 'filter the results
RemoteSession = RemoteSessionFactory.GetTokenContext(portletRequest.GetRemoteAPIEndpoint(), portletRequest.GetLoginToken()) ObjectManager = RemoteSession.GetObjectManager(ObjectClass.User)
' parse the comma-separated list of User object IDs and look up the user's Properties. If strValue.Length > 1 And (strValue <> "null") Then arrValues = strValue.Split(",") For Each intObjectID In arrValues
' get the user's properties Try
' Set a query filter to sort for a unique objectID filters(0) = New StringQueryFilter(UserProperty.ObjectID, _ Operator.Equals, _ intObjectID.ToString) 'where the objectID equals the itterated value
Dim queryResults As IObjectQuery queryResults = ObjectManager.QueryObjects( _ folderID, _ startRow, _ maxRows, _ sortProperty, _ ascending, _ propsToReturn, _ filters)
' There will be only one returned row based on the query filter above, but itterate anyway... ' it is good form in case something changes later. ' We'll keep overwriting the strUserDescription value until the last returned row. Dim i As Integer Dim queryObject As IObjectQueryRow For i = 0 To queryResults.GetRowCount() queryObject = queryResults.GetRow(i) strUserDescription = queryObject.GetStringValue(UserProperty.Description) Next i
Catch e As Exception 'Response.Write("<BR>" & e.Message & " <BR>") 'Response.Write(e.StackTrace & " <BR>") 'Response.End()
strUserDescription = "UserID " & intObjectID.ToString & vbCrLf & _ "<BR>    - NAME LOOOKUP ERROR" & vbCrLf & _ "<BR>    - " & vbCrLf & e.Message & _ "<BR>    - " & vbCrLf & e.StackTrace & _ "<BR>" & vbCrLf End Try
' handy little transformer tags... yes, precious, my precious... strOutput.Append("<pt:openerLink xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/' ") strOutput.Append("pt:objectID='") strOutput.Append(intObjectID.ToString) strOutput.Append("' ") strOutput.Append("pt:classID='1' ") strOutput.Append("pt:mode='3' ") strOutput.Append("target='myWindow' ") strOutput.Append("onclick=window.top.open('','myWindow','height=500,width=700,status=no,toolbar=no,menubar=no,location=no');") strOutput.Append(">") strOutput.Append(strUserDescription) strOutput.Append("</pt:openerLink>" & vbCrLf & "<BR>" & vbCrLf) Next Else strOutput.Append("") End If Return (strOutput.ToString) End Function

Similar Messages

  • Error: Load operation failed for query 'GetAuthenticationInfo'. The remote server returned an error: NotFound.

    Hello,
    I have a lightswitch web-application in development, which I need to copy from one computer to the other. I have tried doing it both through Git and by simply copying the solution and opening the project on another machine. The project builds without errors,
    but when I try to debug it, it opens a web-browser, loads to 100% and pops up an error - Load operation failed for query 'GetAuthenticationInfo'. The remote server returned an error: NotFound.
    Now, I have tried repairing Visual Studio on my machine, reinstalling .NET framework and setting  <basicAuthentication enabled="false" /> in web.config, yet it still does not run.
    When using Fiddler, it shows an error while loading the application - "HTTP/1.1 500 Internal Server Error" , which I honestly don't know what it means.
    The application uses ComponentOne and Telerik modules, but they are both installed on both machines. 
    The application does run perfectly on the original machine, but it is not working on any other one.
    Both machines are using Win 8.1 and Visual Studio 2013 Update 4.
    I have tried to look this up online, but most people's problem are when they are deploying the app, not just debugging. I would be really happy for any help with this issue.
    Thanks!

    I have the same problem on one of my development machines. Whenever I create a new project, the System.IdentityModel.Tokens.Jwt nuget package is not referenced properly. The project compiles correctly but you are not able to debug as I get the same error
    as you.
    If you open up your references and there is an error next to any of your references make sure that you correct them. In the case of the jwt reference error, I have to remove the jwt reference and then add it back from the packages folder.
    This may not be your problem but could point you in a direction?

  • Error MySQL to Oracle Replication   ERROR   OGG-00146 Failed to Query Meta

    Hello Guys,
    I have a configured replication between MySQL database and Oracle Database using Golden Gate.
    Extract data from MySQL is replicated to Oracle.
    MySQL is on Linux and version is 5.5
    Oracle is 11gR2 RAC on Linux (I am using one node for replication)
    When i start extract and replicat they works fine, but as soon as record is inserted in source database i.e MySQL extract ABENDED with this error in the log file:
    *2013-04-11 16:24:40 ERROR OGG-00146 Oracle GoldenGate Capture for MySQL, smpp7.prm: VAM function VAMRead returned unexpected result: error 600 - VAM Client Report* *<CAUSE OF FAILURE : Failed to Query Metadata from Table : smpp7.sent_sms WHEN FAILED : While Sending Insert and Delete Record WHERE FAILED : MySQLBinLog Reader Module*
    CONTEXT OF FAILURE : No Information Available!>.
    *2013-04-11 16:24:40 ERROR OGG-01668 Oracle GoldenGate Capture for MySQL, smpp7.prm: PROCESS ABENDING*
    This is my extract and replicat:
    Extract
    GGSCI>ADD EXTRACT SMPP7, TRANLOG, BEGIN NOW
    GGSCI>EDIT PARAMS SMPP7
    EXTRACT smpp7
    DBOPTIONS HOST 10.168.20.253, CONNECTIONPORT 14422
    SOURCEDB [email protected]:14422, USERID "*******", PASSWORD "*******"
    RMTHOST 10.168.20.31, MGRPORT 7809
    RMTTRAIL /u01/app/oracle/oradata/GG/dirdat/D2
    TRANLOGOPTIONS ALTLOGDEST /mysql/node3/data/mysql-bin.index
    TABLE smpp7.sent_sms;
    GGSCI>ADD RMTTRAIL /u01/app/oracle/oradata/GG/dirdat/D2, EXTRACT SMPP7, MEGABYTES 5
    GGSCI>INFO RMTTRAIL *
    GGSCI>START EXTRACT SMPP7
    Replicat
    GGSCI>ADD REPLICAT smpp7, EXTTRAIL /u01/app/oracle/oradata/GG/dirdat/D2, checkpointtable ggs_owner.checkpoint
    3) edit params smpp7
    REPLICAT SMPP7
    USERID *******, PASSWORD *******
    ASSUMETARGETDEFS
    HANDLECOLLISIONS
    SOURCEDEFS /u01/app/oracle/oradata/GG/dirdef/smpp7.def
    DISCARDFILE /u01/app/oracle/oradata/GG/dirrpt/smpp7.dsc, PURGE
    MAP "smpp7.sent_sms", TARGET MYSQL_SMPP7.sent_sms, COLMAP (usedefaults,COMPRESS_=compress,SERVICE=@STRCAT(service,"_sms"));
    GGSCI>START REPLICAT smpp7
    I have given full rights to MySQL user:
    GRANT ALL PRIVILEGES ON *.* TO '**********'@'localhost' IDENTIFIED BY 'kannel' WITH GRANT OPTION;
    GRANT ALL PRIVILEGES ON *.* TO '**********'@'10.168.20.253' IDENTIFIED BY 'kannel' WITH GRANT OPTION;
    Can you please help me to get through this problem.
    Regards, Imran

    Hi,
    I have the same error between two Mysql 5.5.
    I have added this line in the extact param file :
    vam params (arliberror -14 warn)
    And on my replicate param file :
    map "aix"."etat", target "FR"."etat", REPERROR (-1403, EXCEPTION);
    It looks working better.
    But I can't modify my max_binlog_size to 4069 (4k). It make have to much file and slow my system.

  • Schedules Error  - Job execution failed because the user who scheduled this

    Hi
    I wonder if anyone can help
    I have a report that I can deliver by email through the BI Publsiher front end without issue. However when I call the report to send by email through my oracle 11G Database, as the same BI User I get the following error message
    "oracle.apps.xdo.servlet.scheduler.ProcessingException: Job execution failed because the user who scheduled this job has no more permission or priviledge to run the job."
    Any suggestions?
    Thanks
    Kev

    The scheduler appears to be the culprit here so try the following:
    1. Open the [repository_home]/Admin/Scheduler/quartz-config.properties file
    2. Add the following entry:
    org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread=true
    3. Restart the environment (xmlpserver)
    4. Rerun the report via the scheduler

  • [SOLVED]Get [FAIL] when loading user specified modules.

    That is it, when the system is booting i get a [FAIL] message when loading user specified modules after upgrading udev, and the kmod new module handling or something as say in the news. I dont have a modprobe.conf or a modprobe.conf.pacsave file either and creating a modprobe.conf file doesn't solve the problem. The strange thing is that the modules are loaded anyways. I mean the ones that are specified in rc.conf. I dont know if the system [FAIL] to load that modules or others...The system works fine for now too.
    Thanks.
    PD: sorry if you notice my poor english.
    Last edited by Hyugga (2012-01-22 23:09:02)

    I had the same problem and removing the governor performance from rc.conf solved the problem. I tried however to remove both governors and only leave powernow-k8 (this is the only one that works for me) leaving rc.conf like this:
    MODULES=(brcmsmac powernow-k8)
    When I boot the laptop and check which governors are available and being used I get the following:
    [netlak@soulrebel ~]$ cpufreq-info
    cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
    Report errors and bugs to [email protected], please.
    analyzing CPU 0:
    driver: powernow-k8
    CPUs which run at the same hardware frequency: 0
    CPUs which need to have their frequency coordinated by software: 0
    maximum transition latency: 8.0 us.
    hardware limits: 800 MHz - 2.10 GHz
    available frequency steps: 2.10 GHz, 1.50 GHz, 800 MHz
    available cpufreq governors: performance
    current policy: frequency should be within 800 MHz and 2.10 GHz.
    The governor "performance" may decide which speed to use
    within this range.
    current CPU frequency is 2.10 GHz.
    This like as if the ondemand governor would not be available but when unplugging the laptop and check again I get this:
    [netlak@soulrebel ~]$ cpufreq-info
    cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
    Report errors and bugs to [email protected], please.
    analyzing CPU 0:
    driver: powernow-k8
    CPUs which run at the same hardware frequency: 0
    CPUs which need to have their frequency coordinated by software: 0
    maximum transition latency: 8.0 us.
    hardware limits: 800 MHz - 2.10 GHz
    available frequency steps: 2.10 GHz, 1.50 GHz, 800 MHz
    available cpufreq governors: ondemand, performance
    current policy: frequency should be within 800 MHz and 2.10 GHz.
    The governor "ondemand" may decide which speed to use
    within this range.
    current CPU frequency is 800 MHz.
    This shows that the ondemand module can be autoloaded when needed, so I leave rc.conf only with powernow-k8.
    Thanks for your help.

  • Why does the Error: 500 SC_INTERNAL_SERVER_ERROR appear when multiple users access my JSPs but does not occur when only one user accesses my JSPs?

    When multiple users run my JSP application, why do some users get an Error: 500 SC_INTERNAL_SERVER_ERROR for certain JSP pages with the error message No such file or directory. The JSP listed on the Error 500 page varies and is not always the same. When only one user runs my JSP application, the problem does not occur?
    The database connection is held when the user logs in or accesses certain parts of the JSP and then is immediately released. No connections to the database are held.
    We are using Solaris 8 with MU_6 plus recommended patches.
    Enterprise Ultra 250
    iAS 6 SP 3

    Is anything showing up in the KXS or KJS logs?
    It sounds like you might having some kind of thread safety issue with your code. Either that or your guess about running out of database connections.

  • DPS App Error, Sign In Failed - When Downloading Developer App in DPS?

    I am getting the following error message when I try to download the developer.ipa version of my app for testing on my device:
    "DPS App Builder Error
    Sign in failed, please try again"
    I have been having this problem since yesterday evening and have tried again several times, and have uninstalled and reinstalled the DPS application but this has not helped.
    Is anyone else having a similar problem or have any ideas as to what I might be doing wrong?

    There may be two issues :
    1. http://helpx.adobe.com/digital-publishing-suite/kb/download-sign-failed.html
    2. Certificate/P12 password error

  • Please Help! ERROR: Application Server failed. when Refreshing

    Please help on this below issue. Thanks.
    We have a requirement that using ASP.NET (C#), we need to open saved .rpt file (saved with data and the rpt file is assigned to the web page as query string) and let the users refresh themselves with latest data by clicking at refresh icon of the CrystalReportViewer. But it throws 'The Report Application Server failed' error message. What could cause this message. below is the piece of code we are using to configure the report.
    private void ConfigureCrystalReports()
    string reportPath = Server.MapPath("Reports
    SEMS0001_UBS.rpt");
    this.CrystalReportSource2.ReportDocument.Load(reportPath);
    CrystalReportViewer1.Visible = false;
    SetDBLogonForReport(this.CrystalReportSource2.ReportDocument);
    int i = 0;
    foreach (ParameterField field in this.CrystalReportSource2.ReportDocument.ParameterFields)
    field.HasCurrentValue = true;
    //this.CrystalReportSource2.ReportDocument.Refresh();
    CrystalReportViewer1.ParameterFieldInfo = this.CrystalReportSource2.ReportDocument.ParameterFields;
    CrystalReportViewer1.Visible = true;
    public void SetDBLogonForReport(ReportDocument reportDocument)
    Tables tables = reportDocument.Database.Tables;
    connectionInfo.ServerName = "server"; //ConfigurationManager.AppSettings["DBServer"];
    connectionInfo.UserID = "user"; //ConfigurationManager.AppSettings["DBUser"];
    connectionInfo.Password = "passwd"; //XsiteWinRpt.ConnUtil.GetOnlyPasswordOfConnString(); //ConfigurationManager.AppSettings["DBPassword"];
    //foreach (CrystalDecisions.Shared.IConnectionInfo connection in reportDocument.DataSourceConnections)
    // connection.SetConnection(ConfigurationManager.AppSettings["DBServer"], "", ConfigurationManager.AppSettings["DBUser"], ConfigurationManager.AppSettings["DBPassword"]);
    // connection.SetLogon(ConfigurationManager.AppSettings["DBUser"], ConfigurationManager.AppSettings["DBPassword"]);
    foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
    TableLogOnInfo tableLogonInfo = table.LogOnInfo;
    tableLogonInfo.ConnectionInfo = connectionInfo;
    table.ApplyLogOnInfo(tableLogonInfo);
    //reportDocument.Database.Tables[0].ApplyLogOnInfo(tableLogonInfo);

    Attaching full code ... Our case is the RPT files are stored wih default parameters and saved data. We need to let users just refresh the rpt files with latest db data and overwrite with the same rpt files. But this code keep showing The application server failed mesg. when the refresh icon of viewer is clicked.
    Attaching the code as it is not properly attached in my previous reply ...
    =======================
    Begin - aspx.cs code
    =======================
    using System;
    using System.Data;
    using System.Data.OleDb;
    using System.Configuration;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.CrystalReports;
    using CrystalDecisions.Shared;
    using CrystalDecisions.Web;
    public partial class _Default : System.Web.UI.Page
        private ConnectionInfo connectionInfo = new ConnectionInfo();
        protected void Page_Load(object sender, EventArgs e)
            if (!IsPostBack)
                //ConfigureCrystalReports();
        protected void  CrystalReportViewer1_Init(object sender, EventArgs e)
            ConfigureCrystalReports();
        private void ConfigureCrystalReports()
            string reportPath = Server.MapPath(@"Reports\Report1.rpt");
            this.CrystalReportSource1.ReportDocument.Load(reportPath);
            CrystalReportViewer1.Visible = false;
            SetDBLogonForReport(this.CrystalReportSource1.ReportDocument);
            foreach (ParameterField field in this.CrystalReportSource1.ReportDocument.ParameterFields)
                field.HasCurrentValue = true;
            //this.CrystalReportSource1.ReportDocument.Refresh();
            CrystalReportViewer1.ReuseParameterValuesOnRefresh = true;
            CrystalReportViewer1.Visible = true;
        public void ReportDocument_RefreshReport(object sender, EventArgs e)
            try
    SetDBLogonForReport(this.CrystalReportSource1.ReportDocument);
    CrystalReportViewer1.ReuseParameterValuesOnRefresh = true;
                this.CrystalReportSource1.ReportDocument.SetDatabaseLogon("user", "passwd", "server", "");
                foreach (ParameterField field in this.CrystalReportSource1.ReportDocument.ParameterFields)
                    field.HasCurrentValue = true;
                    field.AllowCustomValues = true;
                    //field.EnableNullValue = true;               
                this.CrystalReportSource1.ReportDocument.Refresh();
                       this.CrystalReportSource1.ReportDocument.SaveAs(@"C:\Inetpub\wwwroot\XsiteRpt\Reports\Report1.RPT", true);
            catch (Exception ex)
                Msg.Text = ex.Message;
        public void SetDBLogonForReport(ReportDocument reportDocument)
            Tables tables = reportDocument.Database.Tables;
            connectionInfo.ServerName = "server"; //ConfigurationManager.AppSettings["DBServer"];
            connectionInfo.UserID = "user"; //ConfigurationManager.AppSettings["DBUser"];
            connectionInfo.Password = "passwd"; //XsiteWinRpt.ConnUtil.GetOnlyPasswordOfConnString(); //ConfigurationManager.AppSettings["DBPassword"];
            foreach (CrystalDecisions.CrystalReports.Engine.Table table in reportDocument tables)
                TableLogOnInfo tableLogonInfo = table.LogOnInfo;
                tableLogonInfo.ConnectionInfo = connectionInfo;
                table.ApplyLogOnInfo(tableLogonInfo);
    =======================
    End - aspx.cs.code
    =======================
    =======================
    Begin - Assemblies
    =======================
    <assemblies>
                        <add assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
                        <add assembly="CrystalDecisions.Shared, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
                        <add assembly="CrystalDecisions.ReportSource, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
                        <add assembly="CrystalDecisions.Enterprise.Framework, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
                        <add assembly="CrystalDecisions.Enterprise.Desktop.Report, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
                        <add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
                        <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/><add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
          </assemblies>
    =======================
    End - Assemblies
    =======================
    =======================
    Begin - aspx
    =======================
    <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Xsite.aspx.cs" Inherits="_Default" %>
    <%@ Register Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
        Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Refresh Report</title>
        <link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
            rel="stylesheet" type="text/css" />
        <link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
            rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <asp:Panel ID="PanelMsg" runat="server">
            <br />
            <asp:Label ID="Msg" runat="server" Font-Bold="False" Font-Names="Verdana" ForeColor="Navy"></asp:Label>
            <br />
            </asp:Panel>
            <asp:Panel ID="PanelViewer" runat="server">
            <CR:CrystalReportViewer ID="CrystalReportViewer1" OnReportRefresh="ReportDocument_RefreshReport" runat="server" AutoDataBind="True"
                EnableDatabaseLogonPrompt="False" EnableParameterPrompt="False" ReuseParameterValuesOnRefresh="True" HasRefreshButton="True" Height="820px" OnInit="CrystalReportViewer1_Init" ReportSourceID="CrystalReportSource1" ShowAllPageIds="True" Width="1215px" />
            <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">           
            </CR:CrystalReportSource>
            </asp:Panel>
        </div>
        </form>
    </body>
    </html>
    =======================
    End - aspx
    =======================

  • Sdo_filter fail when query against a spatial view in different schema

    We have a table with X,Y coordinates and would like to run spatial query against it. We do not want to change the table structure, so we opt to use a function based index. USER_SDO_GEOM_METADATA is updated and index is built. Then we created a view with spatial column from the table. Everything works fine with the user who owns the table and view.
    When we try to run a spatial query against the view from a different user, it failed with error. However, if we substitute the select from my_view* with the actual SQL statement that created the view, it works. So it looks like Oracle refuse to acknowledge the spatial index if accessed via view. Here is some simplified scripts:
    --- connect as USER1.
    --update meta data
    INSERT INTO USER_SDO_GEOM_METADATA ( TABLE_NAME, COLUMN_NAME, DIMINFO, SRID ) VALUES
    ('LOCATIONS', 'MDSYS.SDO_GEOMETRY(2001,2264,SDO_POINT_TYPE(NVL(X_COORD,0),NVL(Y_COORD,0),NULL),NULL,NULL)',
    SDO_DIM_ARRAY( SDO_DIM_ELEMENT('X', 1300000, 1600000, 1), SDO_DIM_ELEMENT('Y', 400000, 700000, 1) ), 2264 );
    --created index
    CREATE INDEX LOCA_XYGEOM_IDX ON LOCATIONS
    ( SDO_GEOMETRY(2001,2264,SDO_POINT_TYPE(NVL(X_COORD,0),NVL(Y_COORD,0),NULL),NULL,NULL)
    ) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    --create view
    CREATE VIEW USER1.MY_VIEW AS SELECT ID ,X_COORD,Y_COORD, SDO_GEOMETRY(2001,2264,SDO_POINT_TYPE(NVL(X_COORD,0),NVL(Y_COORD,0),NULL),NULL,NULL) SHAPE
    FROM USER1.LOCATIONS WHERE X_COORD>0 AND Y_COORD>0;
    -- run spatial query from view, works fine by user1 by failed on user2.
    SELECT SHAPE FROM (
    SELECT * FROM USER1.MY_VIEW
    ) a WHERE sdo_filter (shape, sdo_geometry ('POLYGON ((1447000 540000, 1453000 540000, 1453000 545000, 1447000 545000, 1447000 540000))', 2264), 'querytype=window') = 'TRUE';
    -- run spatial query from table directly, simply replace the view with actual statements that created the view. works fine by user1 AND user2.
    SELECT SHAPE FROM (
    SELECT ID ,X_COORD,Y_COORD, SDO_GEOMETRY(2001,2264,SDO_POINT_TYPE(NVL(X_COORD,0),NVL(Y_COORD,0),NULL),NULL,NULL) SHAPE
    FROM USER1.LOCATIONS WHERE X_COORD>0 AND Y_COORD>0
    ) a WHERE sdo_filter (shape, sdo_geometry ('POLYGON ((1447000 540000, 1453000 540000, 1453000 545000, 1447000 545000, 1447000 540000))', 2264), 'querytype=window') = 'TRUE';
    When run against the view by user2, the error is:
    ORA-13226: interface not supported without a spatial index
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 8
    ORA-06512: at "MDSYS.SDO_3GL", line 1173
    13226. 00000 - "interface not supported without a spatial index"
    *Cause:    The geometry table does not have a spatial index.
    *Action:   Verify that the geometry table referenced in the spatial operator
    has a spatial index on it.
    Note, the SELECT SHAPE FROM (****) A WHERE SDO_FILTER(....) syntax is a third party application, all we have control is the part inside "(select ...)".
    So it appears Oracle is treating view differently. Have attempted fake the view name into USER_SDO_GEOM_METADATA, did not work. Also, granted select on the index table to user2, did not work.
    if we re-created the view in user2 schema, it worked for user2 but not user1, so it's not something we can do for every user.
    Searched the forum, no good match found. A few posts talked about "union all" in view caused the problem but I do not have the union.
    We are only use Oracle 10g Locator, not full spatial edition.
    Any ideas?
    Thanks!
    Edited by: liu.284 on Oct 4, 2011 12:08 PM

    It seems a bug, where a function-based spatial index is not correctly handled in a view query transformation.
    Not sure if the following works for you or not.
    add a new column "shape" (mdsys.sdo_geometry) in table locations, use a trigger and x_coord/y_coord
    to set values for this new column, and just create a normal spatial index on this new column. (drop the
    function-based spatial index). And create a view like:
    CREATE VIEW USER1.MY_VIEW2 AS SELECT ID , X_COORD, Y_COORD, SHAPE
    FROM USER1.LOCATIONS WHERE X_COORD>0 AND Y_COORD>0;

  • Error with Core Center when switching users

    I can't seem to get this worked out...
    When ever I switch user accouts I get 2 error messages then a restart.  The 2 errors that I get are:
    Core center failed to load hardware monitor
    & no hardware monitor then an unvolintary reboot...
    Any suggestions??

    only run CoreCenter with one user. The error message you get is the "2nd" CoreCenter failed to load when you're in 2nd user account, the "1st" CoreCenter is still running.

  • Receiving an error "Component Install failed" when reinstalling Adobe Cs3

    I had reformatted my hard drive and updated to Windows 7 without uninstalling or deactivating Adobe. So then when I tried to reinstall, it blocked me from activating. After doing an online chat with Adobe, they cleared up the activation block, but I still keep getting an error after installation completes that says all installs failed excpet for the free Adobe Acrobat.

    Run the Cleaner tool: http://www.adobe.com/support/contact/cscleanertool.html
    Delete the caps.db in C:\Program Files\Common files\Adobe\caps and its backups
    Reinstall the programs
    You will get the same error
    Uninstall it again from your Add or Remove Programs system control panel without deleting the caps
    Reinstall again
    This is a bug in the CS3 installer that requires this convoluted procedure. And naturalyl make sure you have sufficient user privileges and turned off your security tools or other potential interferences.
    Mylenium

  • Forms 10.1.2.3 app. OK when connected as admin, FAIL when 'normal' user

    Hi All,
    I have patched our app. server to 10.1.2.3. When I run our application from a Vista SP1 client as Administrator using the Java Plug-in 1.6.0_05, all is OK including webutil/jacob functionality. For example when I want to view a PDF file, the file is opened correctly and displayed as expected. When I connect to the same client PC as a 'normal' user, I get the following error when trying exactly the same :
    ERROR>WUH-407 [Host.getProcessOutput()] OutputSink is null
    Has any of of you experienced the same and/or would you know how to resolve this ?
    Kind regards,
    Gerrit Breebaart

    Hi All,
    I have patched our app. server to 10.1.2.3. When I run our application from a Vista SP1 client as Administrator using the Java Plug-in 1.6.0_05, all is OK including webutil/jacob functionality. For example when I want to view a PDF file, the file is opened correctly and displayed as expected. When I connect to the same client PC as a 'normal' user, I get the following error when trying exactly the same :
    ERROR>WUH-407 [Host.getProcessOutput()] OutputSink is null
    Has any of of you experienced the same and/or would you know how to resolve this ?
    Kind regards,
    Gerrit Breebaart

  • Why am I getting an "internal error",  just "Assertion failed" when calling createKeyword

    Here is my code.  It is called inside a function running under LrTasks.startAsyncTask.  The calls to "Util.writeLog" confirm that createKeyword is called and never returns.  
      Util.catalog:withWriteAccessDo(
          "CreateKwUnderPerson",
          function()
      Util.writeLog("Calling 'createKeyword()'")
      akw = Util.catalog:createKeyword( name, {}, true, nil, true)
      Util.writeLog("'createKeyword()' returned")
                  end
    I find it disconcerting that there is no more informative error message.   This seems to me to be an Adobe bug, even though the problem presumably originates from something I'm doing wrong.

    Thanks, but yes, I did knew this.   It's all working now.   When I first got your message my first reaction was to reply saying "that's not it—it's not nil"; but then I thought "I should check, it would be better if I could say I'd checked", and five minutes after that it was all cleared up.   A lesson. 
    Thanks again.  I did download your debugger (and used parts of the package) but thought that for what I was doing just using a logfile, with tail -F, would be enough.  I'm migrating from Aperture and iPhoto, and thought that at the same time I could try to orgaineze my keywords.   It's been frustrating but enjoyable.
    And you said in the first message "given the nature of Lua".   After trying to use Applescript to work with Aperture, Lua is positively luminous.
    Thanks again,
    Bill MItchell

  • Error as IBAN required when the user confirms the changes to Vendor master

    Hi,
    After making the change to vendor bank details in master user is managed to save the changes with out any errors. Now another user is trying to confirm the changes, here is system is throughing error as IBAN is required for vendor master..
    Scenrio is Co code belongs Switzerland and the vendor country Kuwait..
    Can anybody through some light, to solve the issue without generate or maintaining the IBAN, Since we dont have IBAN no provided for vendor.
    Thanks in advance..

    Hi Murali
    Please check the configuration in FBZP payment method in Country/Payment Method in Company code. In that you can mandaatory the fields like address/IBAN for master records. Pls check that setting  try to save the master.
    Regareds
    Surya

  • Broadcasting fails when dialog user has initial password

    Hi,
    Has anyone found that if a user created as a dialog user has an initial password, broadcasting fails? 
    I found the workaround to this is to set the user type to "service" but this is not ideal in our situation.
    What are other people out there doing?
    We're using SSO currently with parameters set to allow single sign-on if the user has an initial password without needing to reset it.
    Regards
    Amir

    Hello,
    Why do you need to use the regasm utility from the post-build action?
    There is a difference between signing the assembly with a strong name and digital signature. The
    How to: Sign an Assembly with a Strong Name article in MSDN explains how to sign an assembly with a strong name (.snk). See
    How to digitally sign a strong named assembly for adding a digital signature.
    You may also find the
    What's the Difference, Part Five: certificate signing vs strong naming article helpful.

Maybe you are looking for

  • To see the runtime information.

    Hi expertz, I am executing a adhoc report in the browser after running some time it is saing time out error and process is getting terminated.Is there any functionmodule or programm or T code to see the runtime information of the query to find what e

  • Converting 7D camera footage to Apple Pro Res 422 HQ

    I shot footage with the Canon 7D. I brought the footage to Compressor (latest version as part of Final Cut Studio). I am transcoding the footage to Apple Pro Res 422 HQ for editing in Final Cut Pro 7. A few clips have been transcoded. I open up the o

  • HELP - which driver should I use?

    Hi,           We are developing an application using WebLogic 6.0 in conjunction with           TOPLink 2.5.1 for object/relational mapping (manages the persistence           layer). We would like to configure our application to use WebLogic's       

  • Acrobat distiller keeps on quitting when creating pdf

    Hi there, my Acrobat distiller 10 in OS X Mountain Lion keeps on quitting when creating pdf. Please help.

  • 2-D Barcode in Adobe Form

    The Adobe Forms Editor (Acrobat 8.1) allows insertion of PDF417 2-D Barcode but it only allows for field delimiter of 'tab' or 'xml'. Many gov. departments are requiring fields to be delimited with a 'NewLine'. I can see in the form that a custom act