OOME when doing RMI with wlclient.jar

Hi,
I'm calling EJB-components that are hosted on a WLS 8.1 server.
The client uses wlclient.jar from WLS 9 distribution (WebLogic Server 9.2 Fri Jun 23 20:47:26 EDT 2006 783464) and jre 1.5.0_11.
I get OOME at the client after doing several hundred EJB calls.
I have checked that the client code does not leak ejb-references, initial contexts etc. I have also tried to call ejb remove and close the initialcontext and start anew but it does not help, the "com.sun.corba.se.impl.orbutil.CacheTable" still becomes the top heap consumer.
The outline of how the program proceeds is:
1. create initial context
2. lookup ejb home
3. call the create-method of a stateless session bean
4. call some ejb business methods several hundred times
-- here is the OOME, most often not during the ejb call, but when memory is examined the RMI-implementation objects are filling the heap
5. call ejb remove
6. close initial context
So that's the problem. How could I get around this?
I included some HPROF statistics below. HPROF made the stats immidiately after the OOME . All the top rank rows are related to RMI implementation classes, not application classes.
Regards,
Kari
SITES BEGIN (ordered by live bytes) Tue Oct 06 12:02:10 2009
percent live alloc'ed stack class
rank self accum bytes objs bytes objs trace name
1 10.29% 10.29% 3758560 3614 39151840 37646 310238 byte[]
2 9.31% 19.60% 3400848 45698 3400848 45698 312167 char[]
3 5.46% 25.06% 1994432 62326 3528256 110258 312197 com.sun.corba.se.impl.orbutil.CacheTable$Entry
4 3.21% 28.27% 1172952 8747 1172952 8747 312066 char[]
5 3.00% 31.27% 1096752 45698 1096752 45698 312166 java.lang.String
6 2.90% 34.17% 1059688 6869 1089912 7103 310593 byte[]
7 2.30% 36.47% 838592 26206 2827456 88358 312171 com.sun.corba.se.impl.orbutil.CacheTable$Entry
8 2.19% 38.65% 798200 25112 798200 25112 306612 char[]
9 2.02% 40.67% 738552 30773 769344 32056 310605 java.util.HashMap$Entry
10 1.99% 42.66% 727064 6991 3915184 37646 310235 com.sun.corba.se.impl.encoding.CDROutputStream_1_2
11 1.84% 44.50% 671712 1294 1196448 3818 312195 com.sun.corba.se.impl.orbutil.CacheTable$Entry[]
12 1.84% 46.34% 671712 1294 1196448 3818 312196 com.sun.corba.se.impl.orbutil.CacheTable$Entry[]
13 1.65% 48.00% 604472 6869 625064 7103 310578 com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl
14 1.65% 49.65% 603792 25158 628680 26195 300952 java.util.HashMap$Entry
15 1.65% 51.30% 602688 25112 602688 25112 306611 java.lang.String
16 1.50% 52.80% 549520 6869 568240 7103 310599 com.sun.corba.se.impl.protocol.giopmsgheaders.RequestMessage_1_2
17 1.50% 54.31% 549520 6869 568240 7103 310587 java.util.HashMap$Entry[]
18 1.44% 55.74% 524352 4 524352 4 302751 java.util.HashMap$Entry[]
19 1.26% 57.00% 460632 3387 475592 3497 310457 com.sun.corba.se.impl.interceptors.ClientRequestInfoImpl
20 1.21% 58.21% 441072 9189 2515152 52399 304085 java.nio.HeapByteBuffer
21 1.05% 59.27% 385000 6875 397768 7103 310405 com.sun.corba.se.impl.legacy.connection.SocketFactoryContactInfoImpl
22 1.03% 60.29% 375120 15630 375120 15630 313808 java.lang.StackTraceElement
23 1.00% 61.29% 364728 3507 1939496 18649 309771 com.sun.corba.se.impl.encoding.CDRInputStream_1_2
24 0.96% 62.25% 349696 3877 5040200 58488 310969 char[]
25 0.90% 63.15% 329712 6869 340944 7103 310231 com.sun.corba.se.impl.encoding.CDROutputObject
26 0.77% 63.92% 279904 8747 279904 8747 312070 com.sun.corba.se.impl.orbutil.CacheTable$Entry
27 0.75% 64.67% 275040 6876 365360 9134 304217 char[]
28 0.75% 65.42% 274760 6869 284120 7103 310586 java.util.HashMap
29 0.74% 66.16% 271200 3390 289920 3624 310960 java.util.HashMap$Entry[]
30 0.74% 66.91% 271200 3390 289920 3624 310941 com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_2
31 0.74% 67.65% 271120 3389 287360 3592 311344 java.util.HashMap$Entry[]
32 0.67% 68.32% 243984 10166 257856 10744 310884 java.util.HashMap$Entry
33 0.67% 68.99% 243984 10166 257856 10744 310879 com.sun.corba.se.spi.servicecontext.UnknownServiceContext
34 0.65% 69.64% 239272 2583 908696 10308 300090 char[]
35 0.60% 70.24% 219808 6869 227296 7103 310799 com.sun.corba.se.impl.encoding.BufferManagerWriteStream
36 0.60% 70.84% 219808 6869 227296 7103 310584 com.sun.corba.se.spi.servicecontext.ServiceContexts
37 0.57% 71.42% 209928 8747 209928 8747 312065 java.lang.String
38 0.56% 71.98% 205776 8574 205776 8574 313784 java.lang.StackTraceElement
39 0.54% 72.52% 196800 5427 427112 11183 310920 byte[]
40 0.54% 73.06% 196352 1700 444904 4043 310971 char[]
41 0.47% 73.53% 172056 7169 172056 7169 312484 java.lang.StackTraceElement
42 0.47% 73.99% 170000 2125 178800 2235 311358 java.util.HashMap$Entry[]

Andy Piper wrote:
Configuration:
=============
* Windows 2000 Prof SP3
* Sun JDK 1.4.1_01 (1.4.2)Incidentally you should be using 1.4.1_03 (or later) in the client if
you are using wlclient.jar.I tried some combinations of WL and client JDKs,
even that:
* WL started under Sun JDK 1.4.2
* client started under Sun JDK 1.4.2
* all classes (EJBs, value objects, etc)
compiled under Sun JDK 1.4.2
>
>
FAIL because of java.rmi.MarshalException
weblogic.iiop.IIOPInputStream.checkChunk(IIOPInputStream.java:449)
at
weblogic.iiop.IIOPInputStream.read_longlong(IIOPInputStream.java:1002)There is known bug with reading longs inside a chunked value. This is
fixed in SP2 and the relevant CR is CR124377 - you can get a patch for
SP1 from support.It's realy very nice news for us.
Thank you very match for help and quick response.
Best regards,
Eugene Voytitsky

Similar Messages

  • Error when doing importing with impdp

    Hi,
    I tried to do export then import the schema from and to same schema. However, when doing export with expdp everything was okay.
    Problem begins when I tried to do importing by using impdp. I also tried to drop the current schema and created the new one but it still doesn't work.
    If I didn't drop the current schema, it logs looks like this
    Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE
    ORA-31684: Object type SEQUENCE:"HSS"."LCM-MIGRATION_ID-SEQ" already exists
    ORA-31684: Object type SEQUENCE:"HSS"."WKS_IDENTITY_SEQ" already exists
    ORA-31684: Object type SEQUENCE:"HSS"."ESS_FAILOVER_RESOURCE_SEQ" already exists
    ORA-31684: Object type SEQUENCE:"HSS"."ESS_FAILOVER_LEASE_OWNER_SEQ" already exists
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    ORA-39151: Table "HSS"."HSS_COMPONENT" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
    ORA-39151: Table "HSS"."HSS_COMPONENT_LINKS" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
    ORA-39151: Table "HSS"."HSS_COMPONENT_PROPERTY_VALUES" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
    ORA-39151: Table "HSS"."HSS_COMPONENT_TIERS" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
    ORA-39151: Table "HSS"."ESS_CLUSTER_SERVER_MAPPING" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
    ORA-39151: Table "HSS"."HSS_COMPONENT_TYPES" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
    ORA-39151: Table "HSS"."CSS_IDENTITY" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
    ORA-39151: Table "HSS"."CSS_GROUP_MEMBERS" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
    ORA-39151: Table "HSS"."CSS_USERS" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
    Job "HSS"."SYS_IMPORT_FULL_01" completed with 95 error(s) at 08:47:21
    And then this is the log when doing importing, I only highlighted the necessary part which I think related with my problem
    Starting "HYPSS"."SYS_IMPORT_FULL_01": HYPSS/******** TRANSFORM=oid:n:type directory=test_dir logfile=imptest.log dumpfile=HYPSS.dmp
    Processing object type SCHEMA_EXPORT/USER
    ORA-31684: Object type USER:"HYPSS" already exists
    . . imported "HYPSS"."CSS_ROLE_LOCALES" 1.630 MB 6358 rows
    . . imported "HYPSS"."HSS_COMPONENT_FILES" 601.5 KB 33 rows
    . . imported "HYPSS"."HSS_COMPONENT_PROPERTY_VALUES" 130.7 KB 1657 rows
    . . imported "HYPSS"."CES_APPS" 10.54 KB 1 rows
    etc....
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    ORA-39083: Object type INDEX_STATISTICS failed to create with error:
    ORA-01403: no data found
    ORA-01403: no data found
    Failing sql is:
    DECLARE I_N VARCHAR2(60); I_O VARCHAR2(60); c DBMS_METADATA.T_VAR_COLL; df varchar2(21) := 'YYYY-MM-DD:HH24:MI:SS'; BEGIN DELETE FROM "SYS"."IMPDP_STATS"; c(1) := 'TRIGGER_NAME'; c(2) := 'TRIGGER_GROUP'; DBMS_METADATA.GET_STAT_INDNAME('HYPSS','QRTZ_TRIGGERS',c,2,i_o,i_n); INSERT INTO "SYS"."IMPDP_STATS" (type,version,flags,c1,c2,c3,c5,n1,n2,n3,n4,n5,n6,n7,n8,n
    Processing object type SCHEMA_EXPORT/TABLE/COMMENT
    The source schema is on USERS tablespace (default). The destination schema I tried to put on the same tablespace but it doesn't work. However when I changed the destination tablespace, it also doesn't work.
    Anybody got the idea why this occurs? Thanks.

    got error like this
    ORA-39152: Table "HSS"."CSS_GROUP_MEMBERS" exists. Data will be appended to existing table but all dependent metadata will be skipped due to table_exists_action of append
    ORA-39152: Table "HSS"."CSS_USERS" exists. Data will be appended to existing table but all dependent metadata will be skipped due to table_exists_action of append
    ORA-39152: Table "HSS"."CSS_ROLES" exists. Data will be appended to existing table but all dependent metadata will be skipped due to table_exists_action of append
    ORA-39152: Table "HSS"."CSS_DELEGATED_MEMBERS" exists. Data will be appended to existing table but all dependent metadata will be skipped due to table_exists_action of append
    ORA-39152: Table "HSS"."CSS_ROLE_MEMBERS" exists. Data will be appended to existing table but all dependent metadata will be skipped due to table_exists_action of append
    ORA-39152: Table "HSS"."CSS_ROLE_LOCALES" exists. Data will be appended to existing table but all dependent metadata will be skipped due to table_exists_action of append
    ORA-39152: Table "HSS"."CSS_GROUPS" exists. Data will be appended to existing table but all dependent metadata will be skipped due to table_exists_action of append
    ORA-29913: error in executing ODCIEXTTABLEFETCH callout
    ORA-00001: unique constraint (HSS.COMPONENT_LINKS_PK_IND) violated
    ORA-31693: Table data object "HSS"."HSS_COMPONENT_TYPES" failed to load/unload and is being skipped due to error:
    ORA-00001: unique constraint (HSS.COMPONENT_TYPES_PK_IND) violated
    ORA-39111: Dependent object type COMMENT skipped, base object type VIEW:"HSS"."VW_APPLICATIONS" already exists
    ORA-39111: Dependent object type COMMENT skipped, base object type VIEW:"HSS"."VW_APPLICATIONS" already exists
    ORA-39111: Dependent object type COMMENT skipped, base object type VIEW:"HSS"."VW_APPLICATIONS" already exists

  • When does RMI create sockets

    Hi
    Is the following sentence correct: "Creating an instance of a class that extends UnicastRemoteObject does not create any sockets. Creation of sockets is not done before the instance is registered with a Registry".
    Soeren Mors

    From the RMI FAQ:
    http://java.sun.com/products/jdk/1.2/docs/guide/rmi/faq.html#connection
    F.1 At what point is there a "live" connection between the client and the server and how are connections managed?
    When a client does a "lookup" operation, a connection is made to the rmiregistry on the specified host. In general, a new connection may or may not be created for a remote call. Connections are cached by the RMI-transport for future use, so if a connection is free to the right destination for a remote call, then it is used. A client cannot explicitly close a connection to a server, since connections are managed at the RMI-transport level. Connections will time out if they are unused for a period of time.
    F.5 Is there only one socket connection between a client process and the server, no matter how many stubs exist in that client process?
    RMI reuses the socket connections between client and server whenever possible. The current implementation creates additional sockets on demand when they are needed. For example, if the existing socket is in use by a call then a new socket is created for the new call. Typically, there are at least two sockets open since the distributed garbage collector needs to make remote calls when remote objects are returned from the server. If a cached connection remains unused for a period of time, the connection is closed.

  • How to solve crash problem when doing "package" with Indesign CS 5.5?

    Hello everyone,
    I've been having trouble with Indesign CS 5.5 when I use the package tool.
    I work with indesign for a long time, create my document files, and when everything is done, finished, i go and do the Package.
    But at a certain point it crashes and the file becomes demaged... even the original one i've worked initially!!
    This happens everytime...
    Does anyone ever had this problem?
    Need your help guys?
    Thanks

    This is not normal behavior. I wonder what is different for you.
    If you deselect "Check Links Before Opening Document," you should not be prompted to "Do not Update Links." This suggest you have corrupt preferences. So try:
    Trash, Replace, Reset, or Restore the application Preferences: http://forums.adobe.com/thread/526990

  • Get rid of annoying Recommended Applications list when doing Open With

    Whenever you try to specify a file to open with another application, by way of ctrl clicking it, it pops up the file dialog, but most of the files are greyed out until you change the drop down at the top from "recommended applications" to "all applications." This is INCREDIBLY annoying, and I either need to know how to add applications to the recommended list, or to make it default to All applications.
    An example of this problem, is when opening a video file. It's a .avi so it opens with QuickTime via flip4mac by default, which is fine. Now I really want to open it with EyeTV, which definitely supports .avi's, and I prefer watching them with EyeTV. But when I right click it to open with eyetv this one time, in the open with menu it lists every other freaking video playing app I have besides EyeTV. VLC, mplayer, Audacity, real player, even my HP printer software for some reason. But to get to EyeTV I have to go through like 5 extra steps.
    Thanks.

    Each application tells LaunchServices the file types that it can use, which is used to enable the various applications in the "Recommended Applications" or "Open With" lists. If an application can't handle a particular file type, or if the application isn't set up correctly, then it won't show up in these lists because the system doesn't know that the application can handle it. File Types can be added to an application's Info.plist file (inside the application package), in the CFBundleDocumentTypes dictionary by using the Property List Editor application (or equivalent). You can make an application unusable by messing with this file, so you do need to know a little about what you are doing (and always make a backup copy). There are several articles on Apple's developer site, such as Property Key List Reference, and Document Types.

  • Crazy lag / slow / when doing anything with text

    CS6 on PC with 16 gig new ram and i7 and inDesign and Illustrator are both giving me lags. Especially on ID, when I try and use the type tool to select text it takes four to fifteen seconds for the top toolbar to turn over to text! WT*?

    How many Fonts are currently installed on your PC? Are you using a Font management program? From InDesign preferences, set the Live Screen Drawing to "Never" which is inside the Interface panel. Turn the Preflight panel off by unchecking the On option within the Preflight panel. Within Preferences > File Handling panel uncheck the option "Always Save preview images with Documents". Disable Autocorrect if its on within the preferences. Within the Pages panel, go to Panel Options from the flyout menu and uncheck "Show Thumbnails". From the preferences > Display performance choose Fast display.
    HTH

  • Strange error when doing anything with yaourt

    Hi
    I have just installed yaourt from the AUR on my arch install (with LXDE, if that makes a difference) and whenever I do anything with it, it gives me the following error:
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    This will happen whenever I run any command to do with yaourt, such as:
    yaourt -s virtualbox
    Normally, I only get one error, and then the command continues as normal. It does not appear to be affecting yaourt in any way. However, if I run the command as root, with sudo, I get many errrors. This is the output from running "sudo yaourt -s virtualbox":
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    Basically, my question is whether or not this is 'normal', and whether or not it would be ok to just ignore it. It is quite annoying, so can anyone see a way to stop it?
    Thanks

    Hmmm... I haven't done anything, except maybe update the mirrors with pacman -Syy, and now the problem is gone. I don't know how I fixed it!
    Sorry for any inconvenience.
    Would I mark the thread as solved? Because it wasn't really solved, the problem merely 'disappeared'. What should I do?

  • What's the group used for when doing auth with LDAP?

    I thought searching by user is enough, just as ldapsearch does, defining Base DN, user entry's object class, etc.
    I saw in some examples, besides users, seems like something about group is also defined, such as group filter etc.
    How are these parameters are used? Is search of groups preceding users?
    Thank you!

    I hear the Arch Linux Magazine could always use some contributions, if you're inclined towards that sort of thing. I've been wanting to write an article for a while, but I've not run into anything in my Arch experience so far that's really inspired an article out of me.

  • Keynote quits when doing anything with Quicktime

    If I open a file with quicktime files in it, or if I attempt to add a quicktime file to the Keynote presentation, it will undexpectedly quit.
    Here is the beginning of the error message:
    Link (dyld) error:
    Symbol not found: _ATGetMoviePlayabilityState
    Referenced from: /System/Library/QuickTime/QuickTimecomponents.component/Contents/MacOS/QuickTim eComponents
    Expected in: /System/Library/frameworks/QuickTime.framework/Versions/A/QuickTime
    I have updated completely, ran disk permissions and trashed all iWork and Keynote preferences.
    I have also found that this will happen in Pages too, same exact error message.
    Thank you for any help, this is really getting frustrating.

    i too recently installed all available/current QuickTime updates and still experienced an instant system restart while viewing a quicktime video in Keynote.
    I'm on keynote 3.0.2 with QuickTime 7.2

  • Losing picture quality when doing slideshows with Final Cut Pro

    Whenever I put images in final cut and export them, the quality of the images look utter garbage. The pictures im taking are 2848X4288. Whatever Frame Size I make and whenver i Export them, the images doesnt look as sharp.
    Could anyone suggest that I do something so I can keep the same quality of pictures?
    thanks!

    I'd size them down in Photoshop, to match your sequence settings aspect ratio, or a bit larger if you want to zoom in/out or pan/scan.
    You can adjust them to 72dpi for use in SD video...not sure about HD.
    K

  • JNDI validation - problem in Security.runAs with wlclient.jar !!!!!HELP

    Hi,
    I am getting the error given below in calling the following thin client program.
    public static void main(String[] args) throws NamingException
              Security.runAs(new Subject(), new PrivilegedAction(){
                   public Object run() {
                        Properties props = new Properties();
                        TopicConnectionFactory confac = null;
                        props.put(InitialContext.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
                        props.put(InitialContext.PROVIDER_URL,CLUSTER);
                        try {
                             InitialContext jndiContext = new InitialContext(props);
                             jndiContext.close();
                        } catch (NamingException e) {
                             e.printStackTrace();
                             System.exit(0);
                        return null;
    java.lang.SecurityException: SubjectManager not installed
         at weblogic.security.subject.SubjectManager$1.createAbstractSubject(SubjectManager.java:169)
         at weblogic.security.subject.SubjectManager$2.run(SubjectManager.java:285)
         at java.security.AccessController.doPrivileged(Native Method)
         at weblogic.security.subject.SubjectManager.getAbstractSubject(SubjectManager.java:273)
         at weblogic.security.subject.SubjectManager.runAs(SubjectManager.java:234)
         at weblogic.security.Security.runAs(Security.java:48)
         at com.test.jms.JMSConnectionTest.run(JMSConnectionTest.java:62)
         at com.test.jms.JMSConnectionTest.main(JMSConnectionTest.java:55)

    i think that you need create a subject like that.
    LoginContext loginContext = null;
    try {
    loginContext = new LoginContext(username, password, url);
    loginContext.login();
    } catch {}
    Subject subject = loginContext.getSubject();
    Security.runAs(subject, new SimpleAction .......

  • JAAS authentication is not working with IIOP and wlclient.jar

    Hi,
    I'm currently working on a remote client that requires authentication with JAAS.
    The Application server is Weblogic 9.2 MP1.
    The client is deployed with wlclient.jar and the used protocol is iiop.
    I'm also using the default UsernamePasswordLoginModule module for authentication.
    The LoginContext.login goes smoothly but the Principal Set in the obtained Subject object is empty!
    Using the same code with weblogic.jar and t3 protocol the principals are filled(i.e. I can see the groups where the involved user is member).
    Any suggestions ??
    regards,
    Luca

    So, when you execute this, where exactly does it crash/stop, or what is the output you get from those dbms_output lines? Do you know the output of memberOf and are you sure that things will match?

  • WlClient.jar & JAAS authentication Issues

    If I run the JAAS example (examples/security/jaas) that comes with
    wl8.1 sp1 but use wlclient.jar instead of weblogic.jar, the
    LoginContext.login() method returns a Subject even if I pass in an
    invalid user/password combination. If weblogic.jar is in the
    classpath, a javax.security.auth.login.LoginException is thrown which
    is what I want to happen for invalid credentials. When running with
    wlclient.jar, the code doesn't fail until it actually attempts to
    access the EJB at which point it gets a org.omg.CORBA.NO_PERMISSION.
    I am trying to use JAAS to login from a swing app and I want to use
    wlclient.jar instead of weblogic.jar, but I need to be able to
    determine whether the login was successful without waiting until I
    access a secured EJB. Why does wlclient.jar behave differently than
    weblogic.jar? How can I determine if my login worked if Weblogic is
    going to return a Subject no matter what username/password I pass in?

    Hi,
    I have a similar problem when using wlclient.jar. I am able to authenticate using
    the UsernamePasswordLoginModule (with authOnLogin true), but I get an error when
    invoking a secured EJB:
         UsernamePasswordLoginModule.initialize(), debug enabled
         UsernamePasswordLoginModule.initialize(), authOnLogin enabled
         UsernamePasswordLoginModule.login(), username weblogic
         UsernamePasswordLoginModule.login(), URL t3://localhost:7001
         Logged in
         Invoking EJB
         java.rmi.AccessException: CORBA NO_PERMISSION 0 Maybe; nested exception is:
              org.omg.CORBA.NO_PERMISSION: vmcid: 0x0 minor code: 0 completed: Maybe
              at com.sun.corba.se.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:95)
              at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
    The login is successfull, but I get the org.omg.CORBA.NO_PERMISSION when invoking
    the EJB. If I replace wlclient.jar with weblogic.jar it works fine! But we can't
    use weblogic.jar in our deployed client, because a) it's HUGE, b) it conflicts
    with Ant 1.6.1.
    Any ideas?
    "Memo S" <[email protected]> wrote:
    >
    Here is the answer
    A UsernamePasswordLoginModule LoginModule was added for use by the IIOP
    thin-client.
    This class has the same API as that of the weblogic.security.auth.login.UsernamePasswordLoginModule
    class, but in this implementation, there is a new property called authOnLogin.
    When true, this property forces the login method to perform authentication
    (rather
    than on the first invocation). The default for this new property is false.
    Regards.
    Memo S
    "Ganapathi" <[email protected]> wrote:
    If I run the JAAS example (examples/security/jaas) that comes with
    wl8.1 sp1 but use wlclient.jar instead of weblogic.jar, the
    LoginContext.login() method returns a Subject even if I pass in an
    invalid user/password combination. If weblogic.jar is in the
    classpath, a javax.security.auth.login.LoginException is thrown which
    is what I want to happen for invalid credentials. When running with
    wlclient.jar, the code doesn't fail until it actually attempts to
    access the EJB at which point it gets a org.omg.CORBA.NO_PERMISSION.
    I am trying to use JAAS to login from a swing app and I want to use
    wlclient.jar instead of weblogic.jar, but I need to be able to
    determine whether the login was successful without waiting until I
    access a secured EJB. Why does wlclient.jar behave differently than
    weblogic.jar? How can I determine if my login worked if Weblogic is
    going to return a Subject no matter what username/password I pass in?

  • Weblogic.jar vs wlclient.jar problems

    Hi,
    I have a swing client and am trying to get authentication working correctly.
    A problem i am running across occurs when i try to login using empty strings.
    new LoginContext("Sample", new SampleCallbackHandler("", "", server));
    With weblogic.jar, no exceptions are thrown.
    With wlclient.jar, this is thrown: "UsernamePasswordLoginModule Error: NamingException on authenticate, Unhandled exception in lookup"
    Is this a bug, or am i doing something wrong? Thanks in advance.
    Chetan

    Hello Sir
    Did u solve the problem
    i am also getting the same problem
    please help me if u found the solution

  • Exception : SubjectManager not installed when doing Security.runAs()

    Hi
    I am getting an exception : Subjectmanager not installed while running Security.runAs(new Subject , .....
    The problem occurs onley when there is only wlclient.jar in the classpath .
    Anyone knows the solution
    I don't want to add weblogic.jar in the classpath .

    Sachin Shukla <> writes:
    Initialization of the client jar is a hairy dance. It generally
    happens implicitly when an ORB is created. This sounds like a use-case
    we missed. If you create your initial context first it should probably
    resolve itself.
    andy
    I am getting the exception "SubjectManager not installed" when calling Security.runAs with thin client jar. This is the first statement on entering main(). This error doesnt occur when using weblogic.jar.
    I was doing this because the principal and credentials set on main thread, for JNDI authentication were getting passed to all the child threads. To evade this, I thought of calling the following code in every new thread - Security.runAs(new Subject(), new PriviledgedAction(){
    public Object run(){
    //do stuff
    Thanks in advance
    Sachin

Maybe you are looking for

  • HT202213 How to share families itunes library to iphone 4 without syncing?

    I have my iphone 4 synced to my Macs itunes library and I want to "share" my moms itunes library music to my iphone WITHOUT "syncing" my phone to her itunes account. Is this even possible? and how would I do this? I remember "sharing" my cousins itun

  • Can someone please tell me how to format a new disk to ZFS format?

    I have a Sun v240 with Solaris 10 update 8 installed on a single 73GB harddisk. Everything is working fine. I just purchased a another identical harddisk online. I plugged the disk into my v240 and ran 'devfsadm' and solaris found the new disk. I wan

  • Videos on itunes music store

    hi, i have an acc on itunes music store and i can logg in but i have a small question i'd like to download movies from the store cuz i read tthat that was possible somewhere but i can't find them where can i find the movies in the store?

  • Envy 17 3D Demo Movie Disappeared

    Have had the Envy 17 for 3 weeks. Have viewed the 3D Demo "Megamind" a couple of times with no problem. Now, if I try to launch the 3D Demo, SmartDVD starts, but the Available 3D Demos box appears, but is blank. Have tried to launch the demo from the

  • Sudoku-Generator

    Does anybody know PL/SQL-code for generating Sudoku-puzzles? Cheers, Nuerni