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 , I want to cancel the process if any mapping error occur in transformation step for that I designed by below steps. 1.Block step ( mentioned exeption) 2. transformation step ( Inside block mentioned block step exception) 3. exception branc inside [More]
Gurus, Scenario is to Enhance the Context menu in a Web template with some Custom Values. I found some notes in SAP.HELP but could not get thru it. If anyone has added some Custom developed menu's in the Context menu, can you let me know as well. Urg [More]
Good day Guys First of all I am not an Exchange Expert, and I might be asking a very stupid question, but please bare with me. :)  While I was on leave our Mail server fell over and The company got a Specialist to help out for the time being. We wher [More]
i want to connect my blackberry 9360 internet with my ipad miniThat will only work if you can set up your BB as a wifi hotspot. If so just connect the iPad to that wifi hotspot as any other wifi network.Read other 2 answers [More]
Hey I am getting the iphone 3G, 16gb, and I have an ipod classic 80gb. I want to keep everything I have on the classic the same; the music, videos, games. However, for the iphone I dont want to add the music of videos, just the apps. Is there a way t [More]
I just noticed that my Time Machine backups are taking an unusually long time. So when the last one finished, I immediately ran a second backup with Time Machine preferences open so I could watch the progress bar. It said it was "Preparing (about) 3, [More]
Hi,     I have a formula variable in my IP application where user can input the percentage for a function, which web item I should used in WAD to bind the user's input data with the formula variable? The input field item does not have the data bindin [More]
The pop ups for quest and the like are over sized and I can not hit a send button or close the pop up to continue playing the game. It looks really large and it has been going on for the last 2 days.You can try these steps in case of issues with web [More]
Hi there, I am wondering if it is possible to move each layer to that they do not overlap. I also want to be able to move the layer in 3D like in after effects. the reason is I want to have each layer represent each face of a 3D cube. For instance. A [More]
I can't believe I can't get this working. Say I have 15 images with the same 10 keywords in every file. One of the keywords is "banana" and I want to remove it from all 15 files. I select all the 15 files. When I do that one becomes "active [More]