Sitemap

Amicuk Programming Answers

GetCallerPrincipal() returns wrong object

2015-10-11   Views:0

Advertisement

I have implemented my own realm and was successfull doing so. I also created my own User object and that is returned in the authentication method. My problem is that when I call getCallerPrincipal() from within an EJB the object returned has the corr

I have implemented my own realm and was successfull doing so. I also
created my own User object and that is returned in the authentication
method.
My problem is that when I call getCallerPrincipal() from within an EJB
the object returned has the correct login name but is an instance of
weblogic.security.acl.User. Is this normal? I fille my own object with
som extra info and was hoping that I could access them.
Has anyone the same experience? Is this a bug or is my
doing/understanding wrong?
// Björn Caroll
Itech AB
http://www.itech.se/

The replay answer
Advertisement
Did you happen to solve the issue? We are experiencing the exact same thing in our QA environment, although it doesn't appear to be the result of a heavy load. It happens from time to time when at most 3 users are unit testing the application. Problem is, nobody in development can replicate it.... Very frustrating to say the least. Anyhow, hopefully you figured it out, as I don't see any other posts on any other forums with a fix for this and I can't find a bug for OAS 10.1.3.1 for this either.

Go to See the other 2 answers

GetCallerPrincipal() returns wrong object

Category:DefaultRelease time:2015-10-11Views:130

I have implemented my own realm and was successfull doing so. I also created my own User object and that is returned in the authentication method. My problem is that when I call getCallerPrincipal() from within an EJB the object returned has the corr[More]

Returning an object that contains a collection WL 9.2

Category:DefaultRelease time:2015-10-11Views:130

Hello, I have a class like this: public class data { private Collection<MyObject> coll; //MyObject is another class If I return this object from a web service call, i.e. @WebService public class HelloWorld {      @WebMethod public data hello() { I g[More]

Returning an Object Array

Category:DefaultRelease time:2015-10-11Views:130

I am unable to figure out the way in which I can return an object array from a cpp file to java. Is there any obvious error which you can spot in my CPP file? When I try to return a single object in the native function, it works fine but when I try t[More]

When a Method Returns an Object, does it return a copy or a pointer?

Category:DefaultRelease time:2015-10-11Views:130

When you have a method that returns an Object, is the Object returning a copy of the Object returned inside of the Method or is it an Actual pointer to the Object inside of the method's coresponding Object? so say you have an object ... Class Somethi[More]

Calling a method that returns an object Array

Category:DefaultRelease time:2015-10-11Views:130

Hello. During a JNICALL , I wish to call a method which returns an object array. ie my java class has a method of the form public MyObject[] getSomeObjects(String aString){ MyObject[] theObjects=new MyObject[10]; return theObjects Is there an equival[More]

Returning cloned objects from EJB Local Interfaces

Category:DefaultRelease time:2015-10-11Views:130

We'd like to let our WAS 5/J2EE container manage our transactions/unit of work. However, we don't want to have our objects serialized, so we intend to use LocalInterfaces. Additionally, we want to return value objects that support Toplink indirection[More]

Try to create a method to return an object as xml

Category:DefaultRelease time:2015-10-11Views:130

I'm trying to create a method for an object to return the objects attributes in xml format. here is what I have done so far: -- create the object hierachy create or replace type ras4.atomic_tp as object      (atomic_instance_id     varchar2(8),      [More]

Problem in returning the object + reflection + hashMap + list

Category:DefaultRelease time:2015-10-11Views:130

Hi All, i am very new to java forums... i'm sorry to disturb you all.. i don't exaclty know how to raise a question in forums.. Here my query is :::: i have xlsReader file,which will read the data from the xls file. after reading it,i am adding the c[More]

XI calling an Oracle Stored Procedure which returns an Object to XI

Category:DefaultRelease time:2015-10-11Views:130

I am currently trying to call an Oracle Packaged/Procedure from XI which accepts a couple of parameters as I/O and returns an Object as one of the parameters. I have created the Object within the Oracle Database CREATE OR REPLACE TYPE xy_jdbc AS OBJE[More]

How to return a object from a method in a java program to a C++ call (JNI )

Category:DefaultRelease time:-0001-11-30Views:130

Sir, I am new to java and i have been assigned a task to be done using JNI. My question is, How can i return an object from a method in a java program to a call for the same method in a C++program using JNI. Any help or suggesstions in this regard wo[More]

Error "The Query Returned no Objects" while exporting Universe in UDT?

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I have created a Universe on top of BEx Query using UDT in SAP BO 4.1 and tried to Export the Universe to Repository the following error is appearing. "The Query Returned no Objects" so "The Universe couldn't be exported". Could yo[More]

Hot
Hi experts, i have  to make a simple ABAP program which extract open and cleared items and display like FBL1N report. My new report must contain some extra functionalities like if a document(invoice) was checked or not. My questions are: - Is there a [More]
hi all, i want to take open sale order in my report coming in tcode VA05, so can anyone please tell me from which table can i get it? regards saurabh.Hii, not sure but check in this table check the table VBBE, it stores open items in the order. VBUP [More]
I tried updating from 3.6.12 to 3.6.13 on my IMac and get a pop up window that says Unable to update because I do not have system permissions required to update. If I download the latest version and try to replace the existing version it says "The op [More]
Hi Exports, PI7.0 My scinario is File to Mail. This is simple one pick the .txt format file and send with attachement by mail. We do not have any design objects by using Integration Repository. We confirgured with Integration directory direclty.  In [More]
I was listening to itunes on my way to work on my computer.  I paused what I was listening to while I walked from my car to my office.  Once I set up my Macbook Air on my desk, I wanted to resume listening, but now nothing works.  I can't get anythin [More]
Dear Gurus This is regarding Stock Transfer Order. I am transfering the Stock from One Plant to Another in Same Co Code. MAterial-1 Which is Processed in Plant-1 and is sent to Plant-2. After Processing and sending it to Plant-2. My Client wants that [More]
Hi guys, I've been trying for a couple of weeks now to try and forward a port from my HH5 but to no avail. What seems like such a simple task has got me puzzled. I've watched videos on YouTube and prowled loads of forums but still can't seem to do an [More]
I realize that this question is probably very "photoshop basic," but I can't figure it out to save my life! In school we learned how to use Photoshop CS3 for Macs, which had a history palate on the right side of the screen.  It was way easy to u [More]
I don't know if this is a silly question, but I need the answer. I need to know how to build an IF-construction with STRINGS, but I think it only works with boolean expressions. To be clearer, this is what I want: If aString = StringValue then do som [More]
When I try to charge the battery, my i-pad says: "charging off", how can I change this, so my i-pad will just start to charge as before, without any complications?Perform a Reset... Try again... Reset  ( No Data will be Lost ) Press and Hold the [More]