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
Should I even use the compressor route? i want my to export hdv footage to dvd studio pro and burn to dvd. i want to understand the best way so it looks like the original mini hdv tape. can anyone help that has experience in this area?you can use com [More]
In the past, I had some problems with my laptop so I recently re-installed Windows 7 yesterday. I got everything running fine. But today, I am having problems with flash player. Youtube videos don't play correctly and some websites don't display like [More]
I'm working with an Oracle database (read-only access) and Crystal Reports 2008.  I have created a report and added three parameters for which I have already done all necessary steps in the select expert.  But when I do a Print preview of the report, [More]
When I recieve a call from a contact the photo (sync'd with Facebook) doesn't appear when the phone is ringing. Once answered the photo appears on the in call screen. I'm sure it appeared whilst ringing in iOS 6?I have this same problem with SMS, rec [More]
Hi, I've an Interactive Report that shows date-ordered records (game fixtures for our local Ice Hockey team). I'm using highlights and filters to make the output more "meaningful". Any advice on how to introduce a horizontal blank-record "g [More]
Hi, I'll present my problem as straightforward as possible: ever since August 2nd (when I installed a number of updates, including Airport Extreme Update 2007-004 and Security Update 2007-007 Intel), my machine started to freeze needing a hard reboot [More]
Cheers all. They didn't use to do that, but now the fans are constantly running. It doesn't matter if Tiger or Leopard, on both operating system there is almost no CPU usage. CPU Bottom temp is around 50C Tried resetting PRAM and PMU several times. D [More]
I'm new in java and i can't find anywhere: Like i have PrintWriter object (and OutputStreamWriter(System.out,"codepage"); I want the same thing, to read form windows console, for example a String... (is there an object, that is similar to Output [More]
I've tried two different Zoom USB modems without sucess. Anyone found an external modem that works with ML? DanI don't know what you have tried, but here are Apple support articles: http://support.apple.com/kb/PH10933 http://support.apple.com/kb/PH11 [More]
Hi experts, We got a requirement from our users to sub-contract certain production processing steps (or called external processing per SAP). Same part number would be used for the goods issue and goods receipt. But would like to make the delivery for [More]