OracleDataReader GetInt32 throws invalidcastexception
The example below shows an example of calling the OracleDataReader GetInt32 accessor where field 0 is defined as a NUMBER type in the db. This throws an InvalidCastException with the message "specified cast is invald"
OracleDataReader dr = cmd.ExecuteReader();
dr.Read();
int id = dr.GetInt32(0);
dr.Close();
The documentation specifies that this accessor returns an int from a NUMBER column.
I can work around this using a GetDecimal and casting to an int.
Will this bug be fixed in the next release and when is the next release.
Chris,
I have tried the code you have posted with a table created as follows:
create table int32_tab(col1 Number(9));
insert into int32_tab values(999999999);
and do not see the InvalidCastException. Could you please provide me with more details of your test case.
-Naveen
Similar Messages
-
GetInt32() of Integer Column throws InvalidCastException
Hi,
i've trying to solve the error mentioned above. The only way to solve this Problem as a Kind of workarround is
to change the datatype of the fetched column from integer to number(4). Then everything works fine.
Is there a way to get the integer values via getInt32() ??
In the documentation i've found GetInt32 is used to get Int32 Value of a number column.
Does this also mean that it is not possible to get an int32 value of an Integer Column ?
Edited by: 850179 on 21.06.2011 23:24AFAIK "INTEGER" in Oracle is not a real datatype, it's a synonym for NUMBER(38,0), which is an extremely huge number that won't fit into a .net Int32. Int64 should work.
If you really mean to use an Int32, change the datatype to NUMBER(9,0) or NUMBER(10,0). Note that with NUMBER(10,0) Oracle will let you put in larger numbers then an Int32 so you'll have to watch out for that somewhere in your code (and NUMBER(9,0) is smaller then an Int32 so you pick your poison really). -
OracleDataReader.Read() throws Exception! How can I skip a row?
Hello,
I am trying to do a simple dump of a huge table (~25 million rows) from
an Oracle database using Oracle Data Provider.Net.
I am calling ExecuteReader() on the Command object and then
OracleDataReader.Read() in a loop.
Some where halfway through, an exception is thrown because of corrupt data
(ORA-29275: partial multibyte character)
Oracle.DataAccess.dll version:: *2.111.6.20*
I want to know if it is possible to skip this particular row and continue
with the rest of rows.
When using a try/catch block and trying to read again in the catch block, naturally the
cursor is not valid (i get a "ORA-01002: fetch out of sequence" error).
Is there some sort of "peek" or "skip" in OracleDataReader so that I can
ignore the problematic row(s)?
And there's nothing I can do to fix the actual data :-(
I have only read permission on the target DB. So I cannot change anything.
Thanks in advance!
-Regards,
Venkat.Try, yourField.access="protected" instead of "readOnly"
Kyle -
Hi,
we try to get Data from a Table.
When we use
'select fielda,fieldb,....fieldx from thetable'
all is fine
but when we do a
'select * from thetable'
this error occures:
System.ApplicationException: System.Exception: System.Exception: System.OverflowException: ORA-22053: Ãberlauffehler
at Oracle.DataAccess.Client.OracleDataReader.GetInt32(Int32 i)
at Oracle.DataAccess.Client.OracleDataReader.GetValue(Int32 i)
at Oracle.DataAccess.Client.OracleDataReader.GetValues(Object[] values)
at System.Data.Common.SchemaMapping.LoadDataRow(Boolean clearDataValues, Boolean acceptChanges)
at System.Data.Common.DbDataAdapter.FillLoadDataRow(SchemaMapping mapping)
at System.Data.Common.DbDataAdapter.FillFromReader(Object data, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords)
at Oracle.DataAccess.Client.OracleDataAdapter.Fill(DataSet dataSet, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords)
at Oracle.DataAccess.Client.OracleDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)Hi David,
Thx for this answer, but i think it is not the problem.
I see it in a way like this:
We fill a Database table(Oracle 10g) with values
and the Database accepts the values.
Then we use features from the Database Provider to get the data back . (ODP.Net from Oracle )
The result is an error in the ODP.net method . This is simply a bug.
If i have standard methods like xxxDataAdapter.Fill and simple sql statements then I dont expect a technical problem, where i have to find a way to make it run.
This is not the first problem that we came to, so I think the ODP.Net (and also the new OracleOleDb driver) has some problems with the result of a simple query.
What shall we expect from more complicated functions?
The 9i version didnt have this kind of problem. -
Managed ODP: InvalidCastException when returning large number
I get an InvalidCastException "Specified cast is not valid" when trying to get a value bigger than Decimal.MaxValue as a scalar result from a select.
From the stack trace and inspection of the Oracle.ManagedDataAccess.dll code I would expect OracleDataReader to cast to OracleDecimal (or System.Numerics.BigInteger) instead of System.Decimal for large numbers.
Is this a bug?
Stack trace:
at Oracle.ManagedDataAccess.Client.OracleDataReader.GetDecimal(Int32 i)
at Oracle.ManagedDataAccess.Client.OracleDataReader.GetValue(Int32 i)
at Oracle.ManagedDataAccess.Client.OracleCommand.ExecuteScalar()
at Cora.Data.DBProvider.Tests.CoraParameterTest.BigIntegerOracleTest() in D:\svnroot\tech\lib\Cora.Data.DBProvider\Cora.Data.DBProvider.Tests\CoraParameterTest.cs:line 98
How to reproduce:
- create a table NUNITTEST_PARAM_SIMPLE with a column BIG of type NUMBER(38)
- run sample code
using ( OracleConnection conn = new OracleConnection(ORACONN) )
conn.Open();
using ( OracleCommand cmd = conn.CreateCommand() )
cmd.CommandText = "insert into NUNITTEST_PARAM_SIMPLE (BIG) values (1234567890123456789012345678901234567)";
cmd.ExecuteNonQuery();
using ( OracleCommand cmd = conn.CreateCommand() )
cmd.CommandText = "select BIG from NUNITTEST_PARAM_SIMPLE";
object result = cmd.ExecuteScalar(); // Exception
conn.Close();There is no safe type mapping for ExecuteScalar. It's an uncommon use case.
Even if there was, making the correct conversion implicitly would lead to more work for the application developer. Let's assume ODP.NET performs the "right" conversion. Now, the app needs to manipulate the data. What data type does it treat the returned value as: string or decimal? It could be either. That means twice as much code. One set deals with the data if a decimal was returned. The second deals with the data if a string is returned.
It would be much easier to write code for one scenario, rather than two. That is why ODP.NET safe type mapping is an explicit conversion the developer makes. -
Hi,
I'm developping a book reader application and to display EPUb I'm using a webview with a IUriToStreamResolver to get the resources (from disk or from server). My business code return Stream object (MemoryStream) and I'm using "AsRandomAccessStream"
extension method to get a WinRt Stream (also tried with "AsInputStream").
The issue is that I cannot return the result of these methods to the webview due to an InvalidCastException. The exception is not raised by the webview but by the "TaskToAsyncOperationWithProgressAdapter" in "OnCompleted" method.
If I'm creating an "InMemoryRandomAccessStream" an copy the bytes in it's working. Copying mutiple times the same data (from server to stream/from stream to WinRt Stream/from WinRt stream to webview) is using too much memory and CPU for a mobile
application.
Is it a known issue? Did anyone have a fix for that?Thanks,
Thanks,
Max.Hi,
After multiple try I found the reason but cannot fix it.
It seems that if the UriToStreamAsync method of IUriToStreamResolver doesn't return a WinRT implement of "IInputStream" ("InMemoryRandomAccessStream" or "FileRandomAccessStream") the webview (or
the component that use the "IUriToStreamResolver") call the "ReadAsync" method.
This method return a "IAsyncOperationWithProgress<IBuffer, uint>". But there is a bug when setting the "Completed" handler on this instance. The type needed by the "Completed" property is "AsyncOperationWithProgressCompleteHandler<IBuffer,
uint>". BUT the type passed to this property is in fact a "AsyncOperationCompleteHandler<IInputStream>" which indeed is not correct and throw a "InvalidCastException". I tried to create my own implementation of "IAsyncOperationWithProgress"
to handle this specific case but a "AccessViolationException" is thrown when called the "Complete" delegate.
Please note that this issue doesn't appears with "InMemoryRandomAccessStream" or "FileRandomAccessStream". I assume these two classes follow a more optimized way.
I really need to use a custom IRandomAccessStream to handle encryption of the data that I need to display.
Thanks for the help.
Max. -
AssociatedXMLElement InvalidCastException
Hi
I've tried asking this in the Scripting forum but no reaction so far..
Maybe some of you C++ guys have worked with InDesign as a COM object in VS and have an idea on how to solve this.
I can't use AssociatedXMLElement property in CS3.
It throws an InvalidCastException with the message, "Return argument has an invalid type." if a TextFrame or Rectangle has a Tag
What is wrong with this code...?
Dim Rec As InDesign.TextFrame
Rec = myDocument.TextFrames.FirstItem
Dim x As Object
x = Rec.AssociatedXMLElement
/Andy
Using VS2005 and CS3 5.0.3.662Hi Andy,
I've somehow missed your question in the other forum, but the short answer is: don't use Dim. Turn Option Explicit off. In essence, act as if you are working in VBScript (member of the VB family supported by InDesign), and you'll get much better results. InDesign scripting relies on the Variant type, and is loosly-typed by design. Trying to use stronger typing will only cause problems.
Thanks,
Ole -
OracleDataReader.Read taking too long for the first record
Hi Guys
I am new to ODP.Net. This is my first time working with Oracle and ODP.Net. I wrote a small stored procedure which returns 25 rows and returns a sys_refcursor. I am capturing that in a OracleDataReader and trying to process the data. I use this in a while loop... the first Read is taking around 10 seconds and from the second on, it is pretty quick. Stored procedure performace is really good when I run it from the SQLPlus or data execute call from .Net. Both web server and database are in the same network, which is really good.
Any idea what's going on? Any links or articles ro any help will be greatly appreciated...
I am using Oracle 10g with ODP.net 10.2.0.2.20. and using .Net Framework 3.5 with Visual Studio 2008.
Here is the code I am using (it is really simple)
Private Sub FillSearchResults(ByVal DR As Oracle.DataAccess.Client.OracleDataReader)
Dim objSearch As OCPAFL.DAL.Search
Dim objList As New List(Of Parcel)
Try
'Walk through Projects
While DR.Read()
''''.... do the processing here
End While
Catch ex As Exception
Throw ex
End Try
End Sub
Thanks
ChandraHi,
I dont have any good ideas as to what may be causing it based on the limited information provided, but here's what I'd do to try to troubleshoot it further:
1) Enable client sqlnet tracing (level 16) with timestamps on, and/or ODP tracing, reproduce the complaint, and loook in the trace to see if you can find a gap in the timestamps to try to isolate where the time is being consumed. Is there one 10 second gap? Numerous 2 second gaps? etc. Is the client waiting on data from the server?
2) Enable 10046 trace on the database before executing the proc in the app and check the resulting database trace. Are binds occurring differently? Is anything occurring differently in the execution plan using ODP vs SQLPlus?
Oh, also, support for .NET 3.5 starts with 11.1.6.20 ODP, but I rather doubt that's causing the problem.
Hope it helps,
Greg -
System.OverflowException in OracleDataReader.GetDecimal
The following code
Dim conn As OracleConnection = ...
Dim ssql As String = "select to_date('2003-04-21 09.54','YYYY-MM-DD HH.SS') - to_date('2003-04-21 09.57','YYYY-MM-DD HH.SS') foo from dual"
Dim cmd As New OracleCommand(ssql, conn)
Dim dr As OracleDataReader = cmd.ExecuteReader
dr.read
Dim val As Object = dr(0)
results in the following exception
System.OverflowException: Arithmetic operation resulted in an overflow.
at Oracle.DataAccess.Types.DecimalConv.GetDecimal(IntPtr numCtx)
at Oracle.DataAccess.Client.OracleDataReader.GetDecimal(Int32 i)
at Oracle.DataAccess.Client.OracleDataReader.GetValue(Int32 i)
at Oracle.DataAccess.Client.OracleDataReader.get_Item
DavidOf course!
Thanks,
But that means that this query will behave the same way:
"select 1/3 from dual".
And so almost any calculation executed by the ORACLE could sporatically generate an OverflowException.
This seems to contradict the behavior indicated in the ODP.NET docs:
"Potential Data Loss
The following sections provide more detail about the types and circumstances
where data can be lost.
Oracle NUMBER Type to .NET Decimal Type
The Oracle datatype NUMBER can hold up to 38 precisions whereas .NET Decimal
type can hold up to 28 precisions. If a NUMBER datatype that has more than 28
precisions is retrieved into .NET decimal type, it loses precision."
It says that the data will loose precision, not throw an OverflowException.
The real kicker (and the way I found this) is not in directly accessing the datareader, but rather in the OracleDataAdapter. OracleDataAdapter.fill, at least, should truncate the NUMBER without complaint.
David -
Function module JOB_CLOSE throwing exception
Hello,
We have a batch job which has 2 steps:
1) Step 1 uses job_open, job_submit and job_close and immediately schedules batch job A/P_ACCOUNTS which in turn creates batch input sessions A/P_ACCOUNTS.
2) Step 2 Processes A/P_ACCOUNTS sessions created yesterday or today.
In few cases, job_close is throwing exception job_close_failed. I believe that error is coming due to non availability of work processes. Job A/P_Accounts is defined as a class C batch job. There is a check in the FM job_close which does the following check:
- if the class of a batch job is B or C, it calculates the number of free work processes. If there are no work processes available then JOB_CLOSE throws JOB_CLOSE_FAILED exception.
- If the class is u2018Au2019, it skips this check.
We have an option of changing the class of batch job to A but there are some system critical jobs that are running as class A.
My question is:
In the code, JOB_CLOSE has been called for scheduling the job A/P_ACCOUNTS with parameter start immediately. Can anyone please let me know what will happen if function JOB_CLOSE is not called with start immediately option? Will the batch job A/P_ACCOUNTS wait till the time work processes are available?
Or, can anything else be done to solve the issue?
Regards,
SiddharthHI,
This is my experience with job_close..
when i was working in zprograms then i was able to scedule it any time i wanted..
but in my standard program when i tried it didn't worked....
so i have to use that option of starting it immediately..
and then it is working fine..
now if i schedule 5 jobs... one after another..
its get queued up...and once the processor is free...its working..
my code of job close
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = job_count
jobname = job_name
strtimmed = yes " yes = 'X'
IMPORTING
job_was_released = job_released
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
invalid_target = 8
OTHERS = 9.
regards,
Yadesh -
hi,
as part of my requirement , i have to perform read and write operations of few files [ using the file upload control in my custom visual web part] and on submit button click.
but while writing these files - with the help of fileupload control - and when i use myfileupload.saveas(mylocation);
- i am saving these files into my D:\ drive of my server , where i am executing my code -, am getting access denied error.
it throws system.unauthorizedexception.
i have given full control on that folder where i was trying to store my attached files. and also after following asp.net forums,
i have added iusr group added and performed all those steps such that, the file is saved in my D:\ drive.
but unfortunately that didnt happen.
also
a) i am trying the code with runwithelevatedprivileges(delegate() ) code
b) shared the drive within the d :drive where i want o save the files.
c) given the full privieleges for the app pool identity- in my case , its
network service.
the other strange thing is that, the same code works perfectly in other machine, where the same sp, vs 2012 etc were installed .
would like to know, any other changes/ steps i need to make it on this server, where i am getting the error.
help is appreciated!vishnuS1984 wrote:
Hi Friends,
I have gone through scores of examples and i am failing to understand the right thing to be done to copy a file from one directory to another. Here is my class...So let's see... C:\GetMe1 is a directory on your machine, right? And this is what you are doing with that directory:
public static void copyFiles(File src, File dest) throws IOException
// dest is a 'File' object but represents the C:\GetMe1 directory, right?
fout = new FileOutputStream (dest);If it's a directory, where in your code are you appending the source file name to the path, before trying to open an output stream on it? You're not.
BTW, this is awful:
catch (IOException e)
IOException wrapper = new IOException("copyFiles: Unable to copy file: " +
src.getAbsolutePath() + "to" + dest.getAbsolutePath()+".");
wrapper.initCause(e);
wrapper.setStackTrace(e.getStackTrace());
throw wrapper;
}1) You're hiding the original IOException and replacing it with your own? For what good purpose?
2) Even if you had a good reason to do that, this would be simpler and better:
throw new IOException("your custom message goes here", e);
rather than explicitly invokign initCause and setStackTrace. Yuck! -
Hi,
Today i installed Microsoft Office 2016 preview for my Mac OS X 10.10 Yosemite. Word, Excel and Powerpoint applications are working without any problem. However, Outlook getting crashed and throws an alert message as "microsoft outlook has encountered a problem and needs to close.", it's happens always, when i launch outlook. please suggest me, how can i comet from this issue.
Thanks in advance,
Suresh Balakrishnan.Go to the Microsoft site for help. These forums are not offering support for MS products, especially not for beta products.
-
HI,
I have toff situation where we deployed bi dashboards in our site and it works some time and some times not,
and some times it keep loading and throw a login window.
works when
we restart performance point service and if not work
we re create secure store service and generated new key and create new pps service application
before that we stopped secure store and pps service using c.a in application server
we are using ssas for datasource to connect from dashboard designer
we have seperate server for ssas dbs
seperate application server running: pps service and secure store service
two web front ends: one of running secure store
1 Domain controller + central admin service running
some times after 4 -5 hours bi dashboards works , we dashboards not display data and throw un expected errors,
also when we try to connect using a dashboard designer from a seperate client machine in same domain ,we have same issue , we unable to connect to ssas datasource server, and if connect some times unable to deploy dashboards.
we tried every thin icreased server time out values in ssas server
:\Program Files\Microsoft SQL Server\MSAS10_50.MSSQLSERVER\OLAP\Config\msmdsrv.ini. in this location
and in
c:\program files\common files\microsoft shared\web server extensions\14\webclients\ppsmonitoringServer\client.config
maxStringContentLength="2147483647"
maxNameTableCharCount="2147483647"
maxBytesPerRead="2147483647"
maxArrayLength="2147483647"
maxDepth="2147483647" />
even we have same issue
is some thing happening when dashboards working some time and after some time not
is a secure store crashing or its still request pending in IIS and not authenticating to data soruce why
below are the logs
Here are the results of the log analysis :
server wfe1
09/01/2014 14:43:44.66 w3wp.exe (0x2128) 0x158C PerformancePoint Service PerformancePoint Services 39 Critical A PerformancePoint service application call was aborted by the caller. This may indicate the HttpRuntime executionTimeout for the Web Application
is configured to a value smaller than the DataSourceQueryTimeout for the PerformancePoint Service Application. 8bc44f14-acef-49bf-b1c1-2755ea7e6e24
09/01/2014 14:43:44.66 w3wp.exe (0x2128) 0x158C PerformancePoint Service PerformancePoint Services ef8z Critical حدث
استثناء
أثناء عرض
عنصر ويب.
قد تساعد
معلومات التشخيص
التالية في
تحديد سبب
هذه المشكلة: Microsoft.PerformancePoint.Scorecards.BpmException: لقد
انتهت
مهلة الطلب
أو تم
إجهاضها. تم
تسجيل تفاصيل
إضافية من
أجل المسؤول. رمز
خطأ "خدمات PerformancePoint"
هو 20700. 8bc44f14-acef-49bf-b1c1-2755ea7e6e24
09/01/2014 14:43:44.66 w3wp.exe (0x2128) 0x158C SharePoint Foundation Runtime ba3q Medium Redirect to error.aspx?ErrorText=Request%20timed%20out%2E failed. Exception: System.Web.HttpException: The remote host closed the connection. The error code is 0x800704CD.
at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect) at System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush() at System.Web.HttpResponse.Flush(Boolean finalFlush)
at System.Web.HttpResponse.End() at Microsoft.SharePoint.Utilities.SPUtility.Redirect(String url, SPRedirectFlags flags, HttpContext context, String queryString) 8bc44f14-acef-49bf-b1c1-2755ea7e6e24
09/01/2014 14:47:32.69 w3wp.exe (0x2128) 0x2154 Web Content Management Publishing Cache 7363 Critical Object Cache: The super reader account utilized by the cache does not have sufficient permissions to SharePoint databases. To configure the account use
the following command 'stsadm -o setproperty -propertyname portalsuperreaderaccount -propertyvalue account -url webappurl'. It should be configured to be an account that has Read access to the SharePoint databases. Additional Data: Current default
super reader account: NT AUTHORITY\LOCAL SERVICE 78c107cd-0d4b-46f5-8e1a-0d9b4ebc7b29
09/01/2014 15:07:40.74 w3wp.exe (0x2128) 0x209C PerformancePoint Service PerformancePoint Services 20 Critical The user "i:Anonymous" attempted to access an item in the following location:
http://www.xxx.xxx.sa/ar-sa/Notary/Rspointer/Lists/PerformancePoint Content/28_.000 Verify that the location exists and that the user has the "Read Items" permission.
Exception details: Microsoft.PerformancePoint.Scorecards.BpmException: لقد
انتهت
مهلة الطلب
أو تم
إجهاضها. تم
تسجيل تفاصيل
إضافية من
أجل المسؤول. at Microsoft.PerformancePoint.Scorecards.Store.Dao.SPListItemDao.Get(ISPFcoCache cache, Guid webSiteID, RepositoryLocation location, SPListItem item)
at Microsoft.PerformancePoint.Scorecards.Store.Dao.SPListItemDao.Get(ISPFcoCache cache, Guid webSiteID, RepositoryLocation location) at Microsoft.PerformancePoint.Scorecards.Store.SPDataStore.SPItemGet(RepositoryLocation location, String
spObjectTypeId) abf0263d-7333-4e4f-9cd4-a3a4dcb700c0
09/01/2014 15:13:25.92 w3wp.exe (0x2128) 0x18DC PerformancePoint Service PerformancePoint Services 20 Critical The user "i:Anonymous" attempted to access an item in the following location:
http://www.xxx.xxx.sa/ar-sa/Notary/Rspointer/Lists/PerformancePoint Content/218_.000 Verify that the location exists and that the user has the "Read Items" permission.
Exception details: Microsoft.PerformancePoint.Scorecards.BpmException: لقد
انتهت
مهلة الطلب
أو تم
إجهاضها. تم
تسجيل تفاصيل
إضافية من
أجل المسؤول. at Microsoft.PerformancePoint.Scorecards.Store.Dao.SPListItemDao.Get(ISPFcoCache cache, Guid webSiteID, RepositoryLocation location, SPListItem item)
at Microsoft.PerformancePoint.Scorecards.Store.Dao.SPListItemDao.Get(ISPFcoCache cache, Guid webSiteID, RepositoryLocation location) at Microsoft.PerformancePoint.Scorecards.Store.SPDataStore.SPItemGet(RepositoryLocation location, String
spObjectTypeId) b35bf864-54f4-43fa-88a8-44cdf938bfa2
09/01/2014 15:11:10.87 w3wp.exe (0x2128) 0x1F88 PerformancePoint Service PerformancePoint Services 20 Critical The user "i:Anonymous" attempted to access an item in the following location:
http://www.xxx.xxx.sa/ar-sa/Courts/Bic/Lists/PerformancePoint Content/4_.000 Verify that the location exists and that the user has the "Read Items" permission.
Exception details: Microsoft.PerformancePoint.Scorecards.BpmException: لقد
انتهت
مهلة الطلب
أو تم
إجهاضها. تم
تسجيل تفاصيل
إضافية من
أجل المسؤول. at Microsoft.PerformancePoint.Scorecards.Store.Dao.SPListItemDao.Get(ISPFcoCache cache, Guid webSiteID, RepositoryLocation location, SPListItem item)
at Microsoft.PerformancePoint.Scorecards.Store.Dao.SPListItemDao.Get(ISPFcoCache cache, Guid webSiteID, RepositoryLocation location) at Microsoft.PerformancePoint.Scorecards.Store.SPDataStore.SPItemGet(RepositoryLocation location, String
spObjectTypeId) 7cea0eb6-214f-4d7b-a6e7-97a0fe11c956
09/01/2014 15:11:40.87 w3wp.exe (0x2128) 0x2150 PerformancePoint Service PerformancePoint Services 20 Critical The user "i:Anonymous" attempted to access an item in the following location:
http://www.xxx.xxx.sa/ar-sa/Notary/Rspointer/Lists/PerformancePoint Content/162_.000 Verify that the location exists and that the user has the "Read Items" permission.
Exception details: Microsoft.PerformancePoint.Scorecards.BpmException: لقد
انتهت
مهلة الطلب
أو تم
إجهاضها. تم
تسجيل تفاصيل
إضافية من
أجل المسؤول. at Microsoft.PerformancePoint.Scorecards.Store.Dao.SPListItemDao.Get(ISPFcoCache cache, Guid webSiteID, RepositoryLocation location, SPListItem item)
at Microsoft.PerformancePoint.Scorecards.Store.Dao.SPListItemDao.Get(ISPFcoCache cache, Guid webSiteID, RepositoryLocation location) at Microsoft.PerformancePoint.Scorecards.Store.SPDataStore.SPItemGet(RepositoryLocation location, String
spObjectTypeId) 4154222b-6ff0-4b64-81b8-d08501a19278
server wfe 2
09/01/2014 14:50:59.05 w3wp.exe (0x1294) 0x1D88 Web Content Management Publishing Cache 7363 Critical Object Cache: The super reader account utilized by the cache does not have sufficient permissions to SharePoint databases. To configure the account use
the following command 'stsadm -o setproperty -propertyname portalsuperreaderaccount -propertyvalue account -url webappurl'. It should be configured to be an account that has Read access to the SharePoint databases. Additional Data: Current default
super reader account: NT AUTHORITY\LOCAL SERVICE 382f711d-cdad-4c5d-be88-2e7d6f36dde2
09/01/2014 14:50:59.05 w3wp.exe (0x1294) 0x1D88 Web Content Management Publishing Cache 7363 Critical Object Cache: The super reader account utilized by the cache does not have sufficient permissions to SharePoint databases. To configure the account use
the following command 'stsadm -o setproperty -propertyname portalsuperreaderaccount -propertyvalue account -url webappurl'. It should be configured to be an account that has Read access to the SharePoint databases. Additional Data: Current default
super reader account: NT AUTHORITY\LOCAL SERVICE 382f711d-cdad-4c5d-be88-2e7d6f36dde2
09/01/2014 14:50:59.05 w3wp.exe (0x1294) 0x1D88 Web Content Management Publishing Cache 7363 Critical Object Cache: The super reader account utilized by the cache does not have sufficient permissions to SharePoint databases. To configure the account use
the following command 'stsadm -o setproperty -propertyname portalsuperreaderaccount -propertyvalue account -url webappurl'. It should be configured to be an account that has Read access to the SharePoint databases. Additional Data: Current default
super reader account: NT AUTHORITY\LOCAL SERVICE 382f711d-cdad-4c5d-be88-2e7d6f36dde2
09/01/2014 14:50:59.05 w3wp.exe (0x1294) 0x1D88 Web Content Management Publishing Cache 7363 Critical Object Cache: The super reader account utilized by the cache does not have sufficient permissions to SharePoint databases. To configure the account use
the following command 'stsadm -o setproperty -propertyname portalsuperreaderaccount -propertyvalue account -url webappurl'. It should be configured to be an account that has Read access to the SharePoint databases. Additional Data: Current default
super reader account: NT AUTHORITY\LOCAL SERVICE 382f711d-cdad-4c5d-be88-2e7d6f36dde2
In the Roiscan logs we get an error in regards to the English Language pack:
Review Items
============
Error: Product {90140000-1015-0409-1000-0000000FF1CE} - Microsoft SharePoint Foundation 2010 1033 Lang Pack: has unexpected
file state(s).
adilchinnijagadeesh,
You suck!
Signed: The rest of the universe.
... and quit crossposting FFS... it really is quite annoying! -
Unable to throw 'Error: A value is required' on a field from bean
Scenario: I have an input text field and a button on a page. The input text is not required initially. I want this to be set to required after the button is clicked. So, I am doing this on the action listener of the button and returning to the page. This just returns to the page but does not throw the required error. The error is thrown the second time I click on the button(No listeners are called this time as the required property is already set). I want the error message to display immediately after clicking the button, the first time(after returning from the bean).
Options Tried:
I used the following in the action listener of the bean
setValueMandatory(true); //Used this as a binding value for the required property on the input field
textValue.setValid(false); //textValue is my input text's binding to the bean
textValue.validate(facesContext);
textValue.processUpdates(facesContext);
textValue.processValidators(facesContext);
AdfFacesContext.getCurrentInstance().addPartialTarget(textValue);
FacesContext.getCurrentInstance().renderResponse();
I am able to focus on the field using the cursor but unable to throw the message. Clearly, some form submit or an action need to occur on the page to render the response(or, repaint the page programmatically). But, how do I do this from the bean?
Jdev Version: 11.1.1.4Divya,
Have you tried passing the Component instead of null in my previous code?
here is the sample i tried and it works fine.
jspx code snippet
<af:inputText label="Label 1" id="it1" binding="#{pageFlowScope.attributeValuesBean.rtx}"/>
<af:commandButton text="commandButton 1" id="cb1"
actionListener="#{pageFlowScope.attributeValuesBean.throwMessage}"/>backing bean snippet
private RichInputText rtx; // add getter and setter
public void throwMessage(ActionEvent actionEvent) {
// Add event code here...
FacesMessage fms = new FacesMessage("A value is required");
fms.setSeverity(FacesMessage.SEVERITY_ERROR);
FacesContext ctx = FacesContext.getCurrentInstance();
ctx.addMessage(getRtx().getClientId(), fms);
}-Arun -
How to throw Custom Error message in Portal
Hi Experts !
I am working on CRM 5.0 and using BADI CRM_ORDER_STATUS for LEAD transaction.
This BADI is checking the userid when user is trying to change the status of a lead. if userid is not correct than it is throwing an Error Message in GUI but this message is reflecting in Portal as an Exception but what I need here is a custom Message similar to GUI.
Pls suggest .
With Thanks & Regards
NavneetHi Experts !
I am working on CRM 5.0 and using BADI CRM_ORDER_STATUS for LEAD transaction.
This BADI is checking the userid when user is trying to change the status of a lead. if userid is not correct than it is throwing an Error Message in GUI but this message is reflecting in Portal as an Exception but what I need here is a custom Message similar to GUI.
Pls suggest .
With Thanks & Regards
Navneet
Maybe you are looking for
-
How to find the user belongs to ?
Hi all, i want to find the user in which role he belongs to ? in which view we can find these information? pls help me Thanks Regards, M.Murali...
-
I am making a slideshow in imovie (first time). I imported all of my photos, but now i need to change the order of the photos. How can i do that? Thanks a bunch! John
-
Can't remember security answers
I have just upgraded to a new iPad and iTunes won't allow me to purchase an app without answering security questions. I have never provided any info and have no idea on the answers. How can I access my ITunes Store or provide answers to new security
-
MacBook Pro & External Keyboard: Different Settings?
I use an external Win layout keyboard with my MacBook Pro. It's connected via USB. I would like to be able to have the keys remapped on the external keyboard, and I can do that with Double Command. However, when I disconnect the external keyboard, th
-
Hi this is my Oracle 10g application datasources.xml connecting to Oracle 10g database. <data-source class="com.evermind.sql.DriverManagerDataSource" name="XXXDataSource" location="jdbc/XXXDataSource" xa-location="jdbc/xa/XXXDataSource" ejb-location=