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 separate the OSB logs based on proxy service names. I went through following threads: 1. alsb logging 2. https://kr.forums.oracle.com/forums/thread.jspa?threadID=1556555 I was wondering if i can change DEFAULT BEHAVIOUR OF 'LOG' action i [More]
When I take photos or videos, two black spots appear at the screen, this just happens when taking a photo or video so I guess that it might be something with the camera. I would like to know why is this happening and if there is any solution. This is [More]
Gmail doesn't work properly with any version of firefox from 3.6 to 11. I have tried several newer versions of firefox and they ALL DO NOT WORK PROPERLY with GMAIL!!!!!! THIS IS VERY FRUSTRATING & ANNOYING!! I can't click on any links or it just keep [More]
Yesterday I used the iTunes store to purchase and download an album.  Three of the songs won't play all the way through.  When I try to the option "Create AAC Version" these three songs give an error message, but the other songs work just fine.  [More]
hi, <b>in bapi_salesorder_cretefromdat2 i can get netprice by giving import parameters like customerNo,salesArea,material, etc.......That means customer should be assinged to a plant(one sales area can have many plants( material price can vary from [More]
Hello,    Is it possible configure a Purchase Order Output determination when Goods Receipt is posted? We want to send ORDCHG IDOC message to a third party system when Goods Receipt takes place.   Thanks,   VenuUSE the message type WMMBXY.. its sends [More]
Greetings everyone! I am really new to the Adobe world, but I love everything about it!! I am designing a form that has a list of products, I have already put them in a table. But I need it to add according to the quanity the enter and at the end of [More]
Hi Gang Does anyone know where you can get a High Resolution Image of the standard FBI Warning Disclosure which appears at the beginning of a Video? Thanx MikeYou can't just use the FBI version wthout permission and those dudes are the wrong people t [More]
Cannot open yahoo or sky inboxes or compose in them when I access them through Firefox. Also have error message on Firefox that an attempt to change my settings has been blocked. Cannot delete it.Can you provide more information on the settings alert [More]
(P-shop CS5, Mac OS 10.6.8) I have a doc with several layers. I have layer style "Bevel & Emboss" applied to an element on one layer. But, when I apply layer style "Inner Shadow" to an element on another layer, it messes with the l [More]