Half the time, Locator.getCompositeInstances() fails due to EJB permissions

Within an embedded Java statement in a BPEL process, I am trying to get a handle on all composites that have the same ECID as the current composite. I think I have got the code I need, but I am running into the strangest problem: with every test instance, the section of the code that I will paste below will either work perfectly, OR raise this exception: *"EJB Exception: ; nested exception is: java.lang.RuntimeException: Caller doesn't have enough permission to call this method"*. When I created a SoapUI testscript to launch a number of test cases sequentially, it even seemed to be perfectly alternating (ok-error-ok-error...). I know what that looks like, but, I do not run on a load balanced cluster - just an admin server and a single soa-infra1 managed server.
I use the following code:
try
oracle.soa.management.facade.Locator locator = oracle.soa.management.facade.LocatorFactory.createLocator();
oracle.soa.management.util.CompositeInstanceFilter filter = new oracle.soa.management.util.CompositeInstanceFilter();
filter.setECID(this.getRootId());
addAuditTrailEntry("About to execute query");
java.util.List<oracle.soa.management.facade.CompositeInstance> instances = locator.getCompositeInstances(filter);
addAuditTrailEntry("Done with query");
catch (java.rmi.RemoteException re)
this.setCompositeInstanceTitle("Error");
addAuditTrailEntry(re.getMessage());
The audit trail tells me that the statement that fails is locator.getCompositeInstances(filter). I have put a call in to "locator.getServiceEngines()" to see if any call to the locator would fail, but that statement never gives me trouble.
Anyone out there has a clue as to what I'm missing here? Is this not the correct way to obtain a valid Locator within embedded Java?
Thanks,
Peter

Update:
1.) It's not a perfect "error-ok-error-ok" pattern. But it does average out to a 50/50 success/failure rate.
2.) In the logs, after turning up the EJB security logging, I see many lines indicating "pushing" and "popping" of prinicpals. And as I expected, sometimes the principal is empty, sometimes it's "weblogic".
3.) When I change the LocatorFactory.createLocator() call to include the standard "external" context factory settings, everything works flawlessly:
java.util.Hashtable props = new java.util.Hashtable();
props.put(javax.naming.Context.PROVIDER_URL, "t3://localhost:8001/soa-infra");
props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
props.put(javax.naming.Context.SECURITY_PRINCIPAL, "weblogic");
props.put(javax.naming.Context.SECURITY_CREDENTIALS, "welcome1");
props.put("dedicated.connection", "true");
locator = oracle.soa.management.facade.LocatorFactory.createLocator(props);
So apparently, you are not allowed to use the "default" Locator returned by LocatorFactory.createLocator() when inside embedded Java. Am I mistaken, or was that fine in 10.1.3? It feels utterly strange hardcoding these credentials and other values in embedded Java (or even parametrizing them).
Thanks,
Peter
Edited by: Peter_Ebell on Oct 18, 2010 8:42 AM

Similar Messages

  • I have lost my iphone and at the time it was off due to battery low... i cant locate it with Find my iphone app since its offline. how do i go about to find it?

    Hi Team, I have lost my iphone 5c and at the time it was off due to battery. Up to now I haven't been able to locate it using Find my iphone app... Please help me with ideas.

    Sorry, there is no magic way to find it. You will need to search for it, as you would with any other object.

  • Auto Import CD then Eject unreliable (works half the time)

    I'm trying to re-rip my large collection of CDs, so I set my iTunes General Preferences to:
    When you insert a CD: [Import CD and Eject]
    Unfortunately, it doesn't work half the time. When it does work, it works as you might expect. I insert the CD, it spins up, iTunes mentions that it is looking up the track info online, and then it starts importing. When it's done it ejects. Perfect.
    However, sometimes I insert the CD and things go differently. It spins up, iTunes acts like it's doing something, but then it stops as if no CD were present. There's no CD listed on my desktop nor on the left panel of iTunes. My only option here is to use the top menu bar Eject -> Eject Superdrive tool, then reinsert. The second insertion of the CD makes it work as listed in the previous paragraph.
    At first it seemed to fail every few CDs, but now I have to do the in-out-in thing on every CD. Because this requires MORE attention on my part than doing it the normal, manual way, I have resorted to the old manual way. Insert CD, iTunes shows the CD, and then I say Import. Then I manually eject.
    Anyone know why the auto feature isn't working reliably?
    Thanks!
    Michael

    Actually the problem seems unrelated to whether I have auto-import turned on or not. The problem appears to be general, and related to CD identification.
    I notice when it fails that iTunes has begun doing the CDDB (or whatever it's called now) lookup, but that only flashes briefly and then it goes away as if there were no CD in the drive. I eject, immediately reinsert, and it works the next time.
    Now that I'm nearly done re-ripping my collection (450 CDs), I'd estimate that it fails to see/recognize/mount 1 out of every 5 CDs on the first try.

  • I am unable to burn mp3 audio files to cd.I have tried different speeds but every time it ays failed due to media write error.Can anyone help what to do?

    I am unable to burn mp3 audio files to cd.Every time it says failed due to media write error.I have tried different speeds.Can anyone help pls?

    There are several different incompatible media sold as writeable CDs. You MUST match the media to the abilities of your drive.
    I was flummoxed by buying 8x media when my drive was a 2x drive. I needed the other type, and there was nothing helpful in the diagnostics or the packaging that helped me understand that.
    EDIT: There is an interesting helpful feature buried in System Profiler ... (read the last two lines of the report):
    About this Mac > ( More Info ) > Report > Disc burning

  • Officejet 8100 unable to connect to printer, still prints half the time

    Just started getting a pop up today. Every time i print to the 8100 it tells me it can't connect to the printer, that it can't find it over the network or wirelessly. But, it still prints most of the time. I've tested the connection with other USB cables all of them are about 4ft long. They are not going through extenders or hubs, all directly connecting to the computer. I've unplugged all other USB devices (except keyboard and mouse, which are both dell generics the computer came with), and i've tested it in each of the USB ports. I ran the scan doctor another post mentioned and it came back with no errors. Though the printer still prints, it fails to print a good 3rd of the time. only way to fix that is to unplug the printer from the computer, turn it off, plug it back into the computer, then turn it on again. Really, incredibly inconvenient here.

    Hi , Welcome to the HP Forums! I understand that your HP Officejet 8100 is unable to connect, even though it still prints half the time on Windows 7. I am happy to take a look into this for you!  Please try the steps within this guide, 'Printer is offline' Message Displays on the Computer and the Printer Does Not Print: Windows 7, and let me know what happens!  Hope to hear from you soon!  “Please click the Thumbs up icon below to thank me for responding.”

  • With my iPod Touch I need to reboot the wi-fi about half the time when accessing wi-fi connected apps, more like 80 percent when using Viggle. Irritating.

    My iPod Touch has a quirky wi-fi connection. About half the time I need to go to settings and reboot the wi-fi to use apps like weather and mail, more like 80 percent with Viggle. It is irritating. Is it an iPod software problem? I don't have this problem with other platforms.

    Do you have this problem when connected to other networks?
    Try the following to rule out a software problem:                 
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on the router
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If you ony have the problem with your network that indicates a problem with your router.

  • Disk Utility not recognizing connected disks half the time

    About half the time i run Disk Utility all i get is the Disk Utility window that's blank on the left side where my connected drives should be and in the main area of the DU window is the message "Gathering disk information" will a spinning wheel type thing under it. The only way i can quit DU is by forcing a quit. I don't have any idea why this happens so much. I've run repair permissions and repair disk from the install disk. No problems detected.
    Any ideas?
    thx
    lenn

    disk utility can only repair directly attached drives. it can not work on network drives like Time Capsule. but you can try repairing the sparse bundle itself. drag it to disk utility's left pane, select it there and choose "repair disk".

  • Final Cut Constantly crashes, Plus error code -600 half the time

    Please someone help. I have the newest and fastest Imac available and final cut studio 2, all of the software is up to date. I'm currently running tiger. What is wrong. I've had no problems in the past, and recently the problems keep coming up more and more. I can't even open my project for more than 2 minutes before it will jam up on me. I have to force quit the program, then half the time I'll get error code -600. So I'll have to restart the computer and try again. I have my media files on an external hard drive. I don't know what is wrong. Is it because I have all the files including the project files on the hard drive? Anyone have any suggestions? Should I re-install my final cut program or move all my files from my external hard drive to the one and only internal one. (defeats the purpose of only being able to use one hard drive though.)

    I'm using standard DV files. I've seached and searched for answers to this problem, and no one has answered anyone yet, other than try to update your software. I forgot to mention that also this system will not restart, and has to be forced off by holding down the power button, and also it loses an entire day of work! Twice it has done this to me. I have backups set to every 10 minutes, I also saved the project on 2 seperate files, and on seperate hard drives. Both projects reverted back to an entire day missing, back up files and all. I never lost this much data and work with premiere. The only reason I switched is because my TV Station uses final cut pro, and everyone hates it. I'm starting to find out why..... Is there a number I can call, the forums don't seem to have any answers, neither does google.

  • Mail doesn't send half the time

    My SMTP server is TalkTalk ( UK) and when I send mail it works fine... half the time.
    The other half I get the 'sending' wheel spinning. nothing in my activity window, and eventually the following alert:
    <Cannot send message using the server smtp.talktalk.net>
    Sometimes, the message appears simultaneously as I get the 'whoosh' of sent mail and when I 'Try with Selected Server' the email goes immediately, and my correspondents report a double post!
    Other times, I get no whoosh, I 'Try With Selected server' and then I get the whoosh.
    So the server is fine.
    There is something wrong with my mac
    any ideas?
    peter

    I will ask them what their time-out is, thanks.
    I tend to avoid automated downloads/uploads and have everything set to manual, as I use my mac for audio production and don't like the idea of background tasks suddenly kicking in ( while perhaps recording or rendering is taking place) . It probably doesn't matter with the new processors, but it's a habit I will stick to until proven unnecessary.
    What I should really do is have a boot partition just for audio, but I rather like being able to instantly switch tasks - I have a very disorganised lifestyle
    'Blink': sorry - this is jargon from my online conferencing system, cix. It uses a Mail-type reader to run conversations offline rather than using it as an online forum. It means a simultaneous upload/download of messages.
    peter

  • Ethernet Port only working half the time

    I recently moved into a dorm/hotel for the summer, and my internet worked for the first four days I was there. Then one day, it just didn't. It doesn't recognize that the cable is plugged into the wall. The AirPort is fine, and I've been using the wireless connections in the lobby. I had the IT department at the school check the ports in the room, and they believe they're fine. The ethernet cable seems to work in the lobby port, it works half the time in my friends room, but not at all in my room. Any ideas on what's going on or how to fix it?

    You can use http://support.apple.com/kb/ts5180. if that does not work you have to do repair.

  • Alerts only working half the time, phone only rings half the time on incoming calls,settings all ok

    my alerts for text messages, vip emails and voicemail are only sounding half the time and same with phone ringing on incoming calls...have checked settings, all are ok, have powered phone down and back up..any suggestions why i dont get alerts and phone ring all the time?

    You can use http://support.apple.com/kb/ts5180. if that does not work you have to do repair.

  • My AIM iChat works half the time can this be the issue?

    I saw that AIM allows you to use your email as your screen name. My email is through a web hosting site. For example it's like [email protected]
    Half the time I open up ichate\, it says I'm online and my status says I'm available with the little green bullet. My buddy collumn has the arrow down, but theres no one under it. It looks almost as if every person is offline. Why is this happening? Can it be my web hosting email screen name thats the problem?
    I think I may have ran into this issue even with my old screen name but I can't remember. Any suggestions? It feels like its starting to be the majority of the time it's not working now.
    Thanks

    Hi
    Yes AIM does allow you to register any Email address.
    It come about from allowing Apple @Mac.com names and later @Me.com names, as well as several other ISPs email names, to be Valid AIM Screen Names.
    If you search for it there is a different Registration Screen for this.
    If your Buddy List is set up to Show Groups (View menu) and you only have one Group you will only see one grey bar with the Arrow that can be turned On and Off to Display the list or Not.
    If you turn Off Show Groups then there is no grey Bar.
    The Grey Bar should have the Name of the Group, what is this please ?
    I would also use the View Menu to turn On Show Off line Buddies (I am not sure from your description this sis what you are doing)
    If you delete a Group then you lose all the Buddies that were in that Group as well.
    If the group you do have is "Recent Buddies" this is a Special Group only held on the AIM servers of people you have had contact with that are not in your Buddy List.
    In iChat 4 and 5 you can turn Off the Display of this Group in the iChat Preferences > Accounts.
    Next Level.
    In iChat > Preferences > Accounts > Security Tab you can set who sees you as On-line.
    Check you are not set to Block everyone.
    If it is set to Allow Specific People then Buddies need to be in that list (Recent Buddies cannot be in this list)
    NOTE:- Some of these settings can be influenced by using the same iChat details in a second (Test) Mac User account and using Parental Controls.
    You will only really sort it by taking off the Parental Controls.
    Based somewhat on the Note issue a second login can also effect things if it was logged in first.
    9:53 PM Monday; October 4, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Chrome doesn't start half the time after upgrading to Lion.

    When I click on the Google Chrome icon either on the dock or from Applications, nothing happens half the time. The icon on the dock doesn't do the bouncy thing any more, it just sits there like a smug little twit, taunting me, daring me to do something. If I logout and login, it often starts working. Sometimes I need to reboot the machine. Lion is updated on a daily basis, so it isn't old OS libraries that's causing the problem. Any suggestions?

    odd, works here like a charm..
    try this..(i assume you have installed this under applications and no other google products installed)
    remove google chrome.app
    remove <username>/library/google
    remove <username>/library/application support/google
    remove /library/google
    after that reboot and try to reinstall google chrome

  • I recently upgraded to Mavericks and the time machine is failing to backup.  Time Machine began only backing up twice a day and now has stopped.

    I recently upgraded to Mavericks and the time machine is failing to backup.  Time Machine began only backing up twice a day and now has stopped.

    This is the error message I got:
    2014-03-18 17:02:30 -0400 com.apple.backupd[4971]: Error: (22) setxattr for key:com.apple.backupd.HostUUID path:/Volumes/TOSHIBA EXT/Backups.backupdb/Quincy’s iMac size:37
    2014-03-18 17:02:30 -0400 com.apple.backupd[4971]: Backup failed with error 2: 2

  • IPad calendar showing duplicates half the time

    My iPad iCal shows duplicates of about half my calendar entries.  My calendars are Google calendar delegates, and I've never had any trouble with them syncing across my Macbook, Google account, or Android phone.  I do not use Mobile Me, and I have calendar syncing turned off in iTunes, so they should be syncing wirelessly through the google delegate. 
    So why does my iPad show duplicates half the time when my Macbook/phone/google don't?  Why are there duplicates only half the time?  How can I fix this without manually deleting and re-entering every event that shows up in duplicate?  (I can't just delete one of the duplicates - deleting one erases both.  If I re-enter it on my Macbook, it shows up as just one event, but it's a lot of work to do all of that manually).

    Settings > Date &amp; Time > 24-hour time -Off.
    Also you might want to check time zone settings, and go into International and check the Region Format. Then do a reset of the phone by holding the sleep/wake and home buttons together until you see the Apple logo and then release. That will restart the phone. This should correct it.

Maybe you are looking for

  • File Browse Item and validation

    Hello I have a page with multiple items and validations. One of the items is "File Browse..." When I select a file on my computer and submit the page, a new record is created in "APEX_APPLICATION_FILES". In the page I have a process that saves the bl

  • Trouble install

    I recently lost my cd and when i install a new driver i usually uninstall everything and do it clean. when i tryd this without the cd i cannot get the drivers to install properly. i have an audigy 2 zs and in add remove the driver wont even show up a

  • CcBpm Sync - Proxy

    Hi Guys, I've been trying to get this working since last week monday but I get the same error everytime I try some other approach. Its a simple Soap -> ECC (sync) -> Proxy interface. If this works I'll add a 2nd interface to the bpm.. Error I get: "T

  • [svn:fx-trunk] 14083: Removed svn:executable property from some . xml files in trunk.

    Revision: 14083 Revision: 14083 Author:   [email protected] Date:     2010-02-09 22:48:11 -0800 (Tue, 09 Feb 2010) Log Message: Removed svn:executable property from some .xml files in trunk. QE notes: None Doc notes: None Bugs: None Reviewer: None Te

  • Adobe CS4 for Mac v Windows

    I am starting out as a Freelance video editor. My sister is in fashion design. Due to our tight budget we plan on sharing the Adobe CS4. I use a MacbookPro while my sister an HP laptop. As a solution I thought of buying the Windows version of CS4 whi