Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Exception: java.lang.RuntimeException: Caller doesn't have enough permission to call this method.

PADARTHI VAMSIDec 17 2013 — edited Feb 26 2020

Hi All,

    I am getting the exception "Exception: java.lang.RuntimeException: Caller doesn't have enough permission to call this method.", when i try to execute the code  "Composite MFTComposite = (Composite)locator.lookupComposite(compositeNameRevision); ".Below mentioned the sample code , i am using this code for getting the running instances.

try{   

          String componentInstanceID = new Long(getInstanceId()).toString();   

          addAuditTrailEntry("Component Instance ID is "+componentInstanceID);   

          Locator locator = LocatorFactory.createLocator();   

          addAuditTrailEntry("Created locator..");   

         String compositeRevision = (String)getVariableData("compositeRevision"); 

addAuditTrailEntry("compositeRevision..1111"+compositeRevision);   

          String compositeNameRevision = "ManagedFileTransfer/MFT!" + compositeRevision;

          Composite MFTComposite = (Composite)locator.lookupComposite(compositeNameRevision);  

          addAuditTrailEntry("MFT Composite lookup complete..setting filter");   

          CompositeInstanceFilter filter = new CompositeInstanceFilter();   

          filter.setState(CompositeInstance.STATE_RUNNING);  

          filter.setTitle((String) getVariableData("transferName"));  

          List<CompositeInstance> instances = MFTComposite.getInstances(filter);   

          StringBuffer message = new StringBuffer();  

          if ((instances != null) && (instances.size() > 1)) {   

              addAuditTrailEntry("currently running MFT Instances..");   

              for (CompositeInstance instance : instances) {   

                message.append("Instance: " + instance.getId() + " Creation date: " + instance.getCreationDate() + ",");        

                addAuditTrailEntry("Instance: " + instance.getId() +   

                             " creation-date: " + instance.getCreationDate());  

              }   

          }  

          setVariableData("runningInstance", message.toString());    

        } catch (Exception ex) {   

            setVariableData("runningInstance", ex.getMessage());  

            addAuditTrailEntry("Exception: " + ex);   

        }

Appreaciate your quick response.

Thank You,

Vamsi.P

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 17 2014
Added on Dec 17 2013
2 comments
1,634 views