Security Exception while using Custom Entity Property Manager

Hi,
I am using Portal 7.0 UUP example (specified in dev2dev.com site) to implement
custom entity property manager.
It all works fine using Portal 7.0 admin tool.
Now I am proving the same concept by writing java code to insert record in UUP_Example
table.
This is the code I am writing in my class
UserManager userManager = getUserManager(); (calling method to get Remote Interface
of UserManager).
ProfileWrapper pw = userManager.createUser(identifier,password,"User");
MyEntityPropertyManager myEntityPropertyManager=getMyEntityPropertyManager();(calling
method to get remote interface of MyEntityPropertyManager)
long num=myEntityPropertyManager.createUniqueId(null,identifier);
pw.setProperty("UUPExample","word1","mike_headen");
Code gets compiled successfully but when I execute these statements, following
run time exception occurs:
EJB Exception: ; nested exception is: java.lang.SecurityException: Users can only
be modified by themselves, or by a member of the role DelegatedAdminRole||SystemAdminRole.
This problem comes while executing last statement i.e
pw.setProperty("UUPExample","word1","ajay_dogra");
I know I am missing something here. Any guidance will be highly appreciated.
Thanks
Mike

Mike,
You approach is wrong and you have to code your program in a different way to
get rid of this problem.
Here, you are trying to update User property using pw.setProperty() even before
authenticating and logging in the user.
Why you are getting this error becuase user is not logged in and u are trying
to update the user property.
These are the steps you need to perform to update/insert user properties at the
time of login.
1. createUser(using usermanager.createUser).
2. Authenticate user(Authentication.login(identifier, password, req);
3. Initialse the profile in session
ProfileWrapper profile =
ProfileFactory.getProfile(identifier, null);
4. Fire UserRegistrationEvent and Session Login event.
5. Update user property using profilewrapper.setProperty.
Hope this helps,
You can either perform these steps in java or can use the usemanager custom tag
in ur JSP.
Thanks
Sanjay
Thanks
Sanjay
"Mike" <[email protected]> wrote:
>
Hi,
I am using Portal 7.0 UUP example (specified in dev2dev.com site) to
implement
custom entity property manager.
It all works fine using Portal 7.0 admin tool.
Now I am proving the same concept by writing java code to insert record
in UUP_Example
table.
This is the code I am writing in my class
UserManager userManager = getUserManager(); (calling method to get Remote
Interface
of UserManager).
ProfileWrapper pw = userManager.createUser(identifier,password,"User");
MyEntityPropertyManager myEntityPropertyManager=getMyEntityPropertyManager();(calling
method to get remote interface of MyEntityPropertyManager)
long num=myEntityPropertyManager.createUniqueId(null,identifier);
pw.setProperty("UUPExample","word1","mike_headen");
Code gets compiled successfully but when I execute these statements,
following
run time exception occurs:
EJB Exception: ; nested exception is: java.lang.SecurityException: Users
can only
be modified by themselves, or by a member of the role DelegatedAdminRole||SystemAdminRole.
This problem comes while executing last statement i.e
pw.setProperty("UUPExample","word1","ajay_dogra");
I know I am missing something here. Any guidance will be highly appreciated.
Thanks
Mike

Similar Messages

  • Security Exception while using OIM client API with Webcenter

    Hi,
    We are using OIM 11g Client api for creating user from our WebCenter portal application. But we are getting security as well as no such service exception while calling login from the OIM client.
    Exception::
    oracle.iam.platform.utils.NoSuchServiceException: java.lang.reflect.InvocationTargetException
         at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:197)
         at oracle.iam.platform.OIMClient.getService(OIMClient.java:174)
         at oracle.iam.platform.OIMClient.loginSessionCreated(OIMClient.java:209)
         at oracle.iam.platform.OIMClient.login(OIMClient.java:136)
         at oracle.iam.platform.OIMClient.login(OIMClient.java:114)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:193)
    Caused by: java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[weblogic, Administrators]
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
    oracle.iam.platform.utils.NoSuchServiceException: java.lang.reflect.InvocationTargetException
    Client Code::
    System.setProperty("java.security.auth.login.config", "Path to authwl.conf");
    System.setProperty("OIM.AppServerType", "weblogic");
    env = new Hashtable();
    env.put(OIMClient.JAVA_NAMING_FACTORY_INITIAL,"weblogic.jndi.WLInitialContextFactory");
    env.put(OIMClient.JAVA_NAMING_PROVIDER_URL, "t3://host:14000/oim");
    client = new OIMClient(env);
    try {
    client.login(OIMUserName, OIMPassword);
    } catch (LoginException e) {
    e.printStackTrace();
    The exception is coming after executing the login code (not login exception).We logged into our application using weblogic user(even for any other user in OID,shared by OIM, is having same behaviour). The code is being executed from integrated webogic server and oim_server is running on a different server under a separate domain.
    Please suggest.
    Thanks

    There are files needed in your project.
    from the <OIMHOME>/config folder_
    xl.policy
    authwl.conf
    log.properties
    from the <OIMHOME>/ext folder_
    commons-logging.jar
    jakarta-oro-2.0.8.jar
    javagroups-all.jar
    jhall.jar
    log4j-1.2.8.jar
    mail.jar
    oscache.jar
    spring.jar
    wlfullclient.jar
    from the <OIMHOME>/lib folder_
    iam-platform-auth-client.jar
    iam-platform-context.jar
    iam-platform-pluginframework.jar
    iam-platform-utils.jar
    oimclient.jar
    XellerateClient.jar
    xlAPI.jar
    xlDataObjectBeans.jar
    xlUtils.jar
    xlVO.jar

  • Exception while using unit of work commit

    Hi,
    I have using this code to create a object
    KbAdAlerts alert = new KbAdAlerts();
    alert.setAlertId(kmData.getAlertId());
    alert.setAlertDesc(kmData.getOutcome());
    alert.setAlertLastRevisionDate(KmUtils.convertReviewDate(kmData.getReviewDate()));
    alert.setAlertType(kmData.getAlertType());
    System.out.println("Alert Object :" + alert);
    KbAdAlerts alertClone = (KbAdAlerts) uow.registerObject(alert);
    System.out.println("Clone Alert:" + alertClone);
    uow.printRegisteredObjects();
    uow.commit();
    I am getting exception while using uow.commit(). I have gone into alert object and everything seems to be fine.
    Could you help me in this issue.
    Thanks,
    Ashish
    Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-01400: cannot insert NULL into ("AD_OWNER"."KB_AD_ALERTS"."ALERT_ID")
    Error Code: 1400
    Call:insert into kb_ad_alerts(alert_id, alert_desc, alert_type, alert_last_revision_date)
    values
    (NULL, NULL, NULL, NULL)
    Query:InsertObjectQuery(oracle.ccr.admin.model.KbAdAlerts@6108)
         at oracle.toplink.exceptions.TopLinkException.<init>(TopLinkException.java:46)
         at oracle.toplink.exceptions.DatabaseException.<init>(DatabaseException.java:50)
         at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:282)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:658)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:707)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:496)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:442)
         at oracle.toplink.publicinterface.UnitOfWork.executeCall(UnitOfWork.java:1603)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:117)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:103)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.insertObject(DatasourceCallQueryMechanism.java:238)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObject(DatabaseQueryMechanism.java:355)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMechanism.java:433)
         at oracle.toplink.queryframework.InsertObjectQuery.executeCommit(InsertObjectQuery.java:60)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.performUserDefinedWrite(DatabaseQueryMechanism.java:622)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.performUserDefinedInsert(DatabaseQueryMechanism.java:586)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWriteWithChangeSet(DatabaseQueryMechanism.java:479)
         at oracle.toplink.queryframework.WriteObjectQuery.executeCommitWithChangeSet(WriteObjectQuery.java:110)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQueryMechanism.java:259)
         at oracle.toplink.queryframework.WriteObjectQuery.executeDatabaseQuery(WriteObjectQuery.java:47)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:603)
         at oracle.toplink.queryframework.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:519)
         at oracle.toplink.queryframework.ObjectLevelModifyQuery.executeInUnitOfWorkObjectLevelModifyQuery(ObjectLevelModifyQuery.java:100)
         at oracle.toplink.queryframework.ObjectLevelModifyQuery.executeInUnitOfWork(ObjectLevelModifyQuery.java:72)
         at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2532)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:981)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:938)
         at oracle.toplink.internal.sessions.CommitManager.commitNewObjectsForClassWithChangeSet(CommitManager.java:240)
         at oracle.toplink.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:161)
         at oracle.toplink.publicinterface.Session.writeAllObjectsWithChangeSet(Session.java:3123)
         at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(UnitOfWork.java:1242)
         at oracle.toplink.publicinterface.UnitOfWork.commitToDatabaseWithChangeSet(UnitOfWork.java:1330)
         at oracle.toplink.publicinterface.UnitOfWork.commitRootUnitOfWork(UnitOfWork.java:1097)
         at oracle.toplink.publicinterface.UnitOfWork.commit(UnitOfWork.java:865)
         at oracle.ccr.admin.model.FeedbackServices.writeFeedback(FeedbackServices.java:116)
         at oracle.ccr.admin.view.AlertDetails.updateTables(AlertDetails.java:834)
         at oracle.ccr.admin.view.AlertDetails.commandButton1_action(AlertDetails.java:822)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
         at oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211)
         at oracle.adf.view.faces.component.UIXCollection.broadcast(UIXCollection.java:94)
         at oracle.adf.view.faces.component.UIXTable.broadcast(UIXTable.java:205)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:629)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

    Hi,
    I am having a similar problem that results in this stack trace. The funny thing is that it occurs after a session.logout/login and re-read of the object I'm trying to update. The other thing is that if I remove objects from the transaction it just happens somewhere else - on a different object/descriptor. I am attempting to upgrade from 9.03 runtime to the 10.0.3.1 builder/runtime. I am connecting to a Sybase 12.5 db.
    Any ideas on this one?
    Thanks,
    Bret
    This is the sql that is found in the DatasourceCallQueryMechanism. We are not using any custom SQL.
    SQLCall(INSERT INTO Invoice (id, description, billingAddress, customerNote, invoiceNumber, startDate, stopDate, sentDate, commitDate, customerId, dueDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?))
    java.lang.NullPointerException
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.insertObject(DatasourceCallQueryMechanism.java:213)
         at oracle.toplink.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:156)
         at oracle.toplink.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:170)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMechanism.java:426)
         at oracle.toplink.queryframework.InsertObjectQuery.executeCommit(InsertObjectQuery.java:65)
         at oracle.toplink.queryframework.InsertObjectQuery.executeCommitWithChangeSet(InsertObjectQuery.java:75)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQueryMechanism.java:251)
         at oracle.toplink.queryframework.WriteObjectQuery.executeDatabaseQuery(WriteObjectQuery.java:47)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:620)
         at oracle.toplink.queryframework.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:542)
         at oracle.toplink.queryframework.ObjectLevelModifyQuery.executeInUnitOfWorkObjectLevelModifyQuery(ObjectLevelModifyQuery.java:100)
         at oracle.toplink.queryframework.ObjectLevelModifyQuery.executeInUnitOfWork(ObjectLevelModifyQuery.java:72)
         at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2578)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:988)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:945)
         at oracle.toplink.internal.sessions.CommitManager.commitNewObjectsForClassWithChangeSet(CommitManager.java:243)
         at oracle.toplink.internal.sessions.CommitManager.commitAllObjectsForClassWithChangeSet(CommitManager.java:218)
         at oracle.toplink.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:174)
         at oracle.toplink.publicinterface.Session.writeAllObjectsWithChangeSet(Session.java:3177)
         at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(UnitOfWork.java:1282)
         at oracle.toplink.publicinterface.UnitOfWork.commitToDatabaseWithChangeSet(UnitOfWork.java:1370)
         at oracle.toplink.publicinterface.UnitOfWork.commitRootUnitOfWork(UnitOfWork.java:1137)
         at oracle.toplink.publicinterface.UnitOfWork.commit(UnitOfWork.java:905)
         at com.tbs.database.DBBroker.mergeSingleObject(DBBroker.java:288)
         at com.tbs.database.DBBroker.merge(DBBroker.java:235)
         at com.tbs.database.DBBrokerSetInvoker.merge(DBBrokerSetInvoker.java:73)
         at com.tbs.database.TbsDataSource.merge(TbsDataSource.java:353)
    /////////////////////////////////

  • Implementing a Generic UUP Entity Property Manager

    Guys,
    My Environment is Weblogic 9.2.1 running on Solaris using Sun JDK
    1.5.x. What I am trying to accomplish is:
    Create a Entity Property manager that is deployed outside any portal
    application. Later on when portal applications are developed and
    deployed they can configure their applications to use these entity
    property managers along with their own entity property manager. In
    order to do that I need to deploy these entity property managers as
    EJBs outside any application as an EJB modules. Here is my questions:
    1. Can I deploy an Entity Property Manager independently outside any
    portal application in WebLogic Portal 9.2.
    2. If I can How can I configure my applications to use a remote Entity
    Property Manager EJB.
    Thanks.
    James Bond.

    Guys,
    My Environment is Weblogic 9.2.1 running on Solaris using Sun JDK
    1.5.x. What I am trying to accomplish is:
    Create a Entity Property manager that is deployed outside any portal
    application. Later on when portal applications are developed and
    deployed they can configure their applications to use these entity
    property managers along with their own entity property manager. In
    order to do that I need to deploy these entity property managers as
    EJBs outside any application as an EJB modules. Here is my questions:
    1. Can I deploy an Entity Property Manager independently outside any
    portal application in WebLogic Portal 9.2.
    2. If I can How can I configure my applications to use a remote Entity
    Property Manager EJB.
    Thanks.
    James Bond.

  • Invalid_path exception while using UTL_FILE.FOPEN

    Hi
    I am getting invalid_path exception while using the UTL_FILE.fopen subprogram. I tried finding out the reason but could not solve it. Please help.
    Below is my piece of code.
    create directory utldr as 'e:\utldir';
    declare
    f utl_file.file_type;
    s varchar2(200);
    begin
    dbms_output.put_line('1');
    f := utl_file.fopen('UTLDR','utlfil.txt','r');
    dbms_output.put_line('2');
    utl_file.get_line(f,s);
    dbms_output.put_line('3');
    utl_file.fclose(f);
    dbms_output.put_line('4');
    dbms_output.put_line(s);
    exception
    when utl_file.invalid_path then
    dbms_output.put_line('invalid_path');
    end;
    the result is:
    1
    invalid_path

    I am executing it from sys. The same user who created the directory.
    The output is as below:
    SELECT * FROM dba_directories
    OWNER     DIRECTORY_NAME     DIRECTORY_PATH
    SYS     MEDIA_DIR      d:\avale\rel4\demo\schema\product_media\
    SYS     LOG_FILE_DIR     d:\avale\rel4\assistants\dbca\logs\
    SYS     DATA_FILE_DIR     d:\avale\rel4\demo\schema\sales_history\
    SYS     EMP_DIR     E:\Oracle Directory
    SYS     REMOTED     \\10.1.1.12\oracle directory
    SYS     UTLDR     e:\utldir
    SELECT * FROM dba_tab_privs WHERE table_name='UTLDR'
    GRANTEE     OWNER     TABLE_NAME     GRANTOR     PRIVILEGE     GRANTABLE     HIERARCHY
    PUBLIC     SYS     UTLDR     SYS     READ     NO     NO

  • Watched folder error - "Exception while getting principal from Directory manager"

    Hi! I've been having problems with a LiveCycle ES installation.
    I've configured a watched folder that starts a process with an Office
    Document, converts it to PDF and applies a Rights Management Policy.
    It runs on behalf of an Active Directory user.
    Sometimes it works flawlessly, but most of the time it fails, giving a
    ridiculously long failure log with the longest trace stacks I've ever
    seen in life... resumed:
    =======================
    ALC-DSC-600-000: com.adobe.idp.dsc.provider.service.scheduler.impl.SchedulerRuntimeException : Failure to invoke the job [watched_folder_endpoint_name]
    Caused by: ALC-FEP-011-000: com.adobe.idp.dsc.service.file.impl.FileProviderRuntimeException: Failed to get the context on behalf of user [username], domain [company_domain] for watch folder [watched_folder_endpoint_name]
    Caused by: | [com.adobe.idp.um.api.impl.AuthenticationManagerImpl] errorCode:16386 errorCodeHEX:0x4002 message:Exception while getting principal from Directory manager| [IDPLoggedException] errorCode:12801 errorCodeHEX:0x3201 message:Exception while getting principal from Directory manager
    chainedException:javax.ejb.TransactionRolledbackLocalException: null;
    CausedByException is:
    nullchainedExceptionMessage:null; CausedByException is:
    null chainedException
    trace:javax.ejb.TransactionRolledbackLocalException: null;
    CausedByException is:
    null
    =======================
    I vaguely suspect is the server's clock going out of sync with the domain controller's clock, but I tried everything I knew of about it with no consistent results.
    It's LiveCycle 8.0.1 SP2 installed on a Windows 2003 Server.
    Manual install, JBoss Clustered configuration (the second node is actually turned off for the time being)
    SQL Server 2005 as backend Database
    Users on Active Directory on a Windows 2003 Server -which is a "copy" of the main domain controller.
    Watched folder is in a mounted share of another Windows 2003 Server acting as fileserver.
    Any clue will be greatly appreciated!!

    Hello,
    sorry in advance for my english. i am beginning in Adobe LiveCycle and i think that you can help me : i want to configure a watched folder to automatically convert in pdf file and apply a right management policy. Can you tell me how you configure it ? many thanks in advance. regards

  • Exception while running custom scheduler OIM 11g R1

    I have OIM 11g R1 installed on win 32 platform, and am getting the following exception while running the custom scheduler: Samplescheduledtask
    <Jan 12, 2013 7:37:13 PM IST> <Warning> <oracle.iam.scheduler.impl> <BEA-000000>
    <XSD Validation Exception: org.xml.sax.SAXParseException: cvc-elt.1: Cannot fin
    d the declaration of element 'scheduledTasks'.>
    <Jan 12, 2013 7:37:13 PM IST> <Warning> <oracle.iam.scheduler.impl> <BEA-000000>
    <XSD Validation Exception: org.xml.sax.SAXParseException: cvc-elt.1: Cannot fin
    d the declaration of element 'scheduledTasks'.>
    <Jan 12, 2013 7:37:13 PM IST> <Warning> <oracle.iam.scheduler.impl> <BEA-000000>
    <XSD Validation Exception: org.xml.sax.SAXParseException: cvc-elt.1: Cannot fin
    d the declaration of element 'scheduledTasks'.>
    <Jan 12, 2013 7:37:13 PM IST> <Warning> <oracle.iam.scheduler.impl> <BEA-000000>
    <XSD Validation Exception: org.xml.sax.SAXParseException: cvc-elt.1: Cannot fin
    d the declaration of element 'scheduledTasks'.>
    <Jan 12, 2013 7:37:13 PM IST> <Warning> <oracle.iam.scheduler.impl> <BEA-000000>
    <XSD Validation Exception: org.xml.sax.SAXParseException: cvc-elt.1: Cannot fin
    d the declaration of element 'scheduledTasks'.>
    <Jan 12, 2013 7:37:13 PM IST> <Warning> <oracle.iam.scheduler.impl> <BEA-000000>
    <XSD Validation Exception: org.xml.sax.SAXParseException: cvc-elt.1: Cannot fin
    d the declaration of element 'scheduledTasks'.>
    java.lang.ClassNotFoundException: ADP ClassLoader failed to load: oracle.iam.sam
    ple.scheduledtask.SampleScheduledTask
    at com.thortech.xl.dataobj.tcADPClassLoader.findClass(tcADPClassLoader.j
    ava:219)
    at oracle.iam.transUI.impl.CustomTaskLoaderImpl.getClassInstance(CustomT
    askLoaderImpl.java:12)
    at oracle.iam.scheduler.impl.quartz.QuartzJob.execute(QuartzJob.java:146
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
    ava:529)
    java.lang.ClassNotFoundException: ADP ClassLoader failed to load: oracle.iam.sam
    ple.scheduledtask.SampleScheduledTask
    at com.thortech.xl.dataobj.tcADPClassLoader.findClass(tcADPClassLoader.j
    ava:219)
    at oracle.iam.transUI.impl.CustomTaskLoaderImpl.getClassInstance(CustomT
    askLoaderImpl.java:12)
    at oracle.iam.scheduler.impl.quartz.QuartzJob.execute(QuartzJob.java:146
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
    ava:529)
    java.lang.ClassNotFoundException: ADP ClassLoader failed to load: oracle.iam.sam
    ple.scheduledtask.SampleScheduledTask
    at com.thortech.xl.dataobj.tcADPClassLoader.findClass(tcADPClassLoader.j
    ava:219)
    at oracle.iam.transUI.impl.CustomTaskLoaderImpl.getClassInstance(CustomT
    askLoaderImpl.java:12)
    at oracle.iam.scheduler.impl.quartz.QuartzJob.execute(QuartzJob.java:146
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
    ava:529)
    Following is the code of the custom scheduler:
    package oracle.iam.sample.scheduledtask;
    import java.util.HashMap;
    import oracle.iam.scheduler.vo.TaskSupport;
    public class SampleScheduledTask extends TaskSupport {
    public void execute(HashMap hashMap) throws Exception {
    // Display a message when this scheduled task is run
    System.out.println("Running the OIM Sample Scheduled Task...");
    public HashMap getAttributes() {
    return null;
    public void setAttributes() {
    kindly suggest......
    Regards,
    KK
    Edited by: 958122 on Jan 12, 2013 11:38 PM

    Hi,
    Please use the below commands to register the plugin:
    set the environment variable ORACLE_HOME, OIM_ORACLE_HOME, ANT_HOME,JAVA_HOME,MW_HOME and execute
    $ORACLE_HOME/server/plugin_utility/ant -f pluginregistration.xml register
    and provide the necessary input.
    $ORACLE_HOME/server/bin/PurgeCache.sh All
    and provide the necessary input
    Restart the OIM managed server
    http://docs.oracle.com/cd/E21764_01/doc.1111/e14309/plugins.htm#CHDHECGH
    Regards,
    Sunny

  • Problem in DII client while using custome type

    Hi All,
    I am accessing a webservice using JAX-RPC DII cleint. Webserviuce is deployed on a websphere app server 6.0
    In Webservice i have 1 complextype called Address.
    When i try to call the webservice and try to pass the complex type as parameter to web service i get deserialization error for complexType.
    I tried to register it using TypeMappingRegistry but again iam getting
    exception like "you can't modify default typemapping".
    here is my code
    public class DIITip implements SerializerConstants {
    public static void main(String args[]) {
    try {
    QName serviceName = new QName("http://localhost:9080/AddressBookService/services/AddressBook/wsdl/AddressBook.wsdl","AddressBookService");
    ServiceFactory factory = ServiceFactory.newInstance();
    Call call = service.createCall();
    QName operationName = new QName("http://addr","setAddressFromName");
    call.setOperationName(operationName);
    // The input parameter
    call.addParameter(
    "arg_0_1", // parameter name
    QNAME_TYPE_CPLX_TYPE, // parameter XML type QName
    Address.class, // parameter Java type class
    ParameterMode.IN); // parameter mode
    // The return
    call.setReturnType(XMLType.XSD_BOOLEAN);
    // The operation is an RPC-style operation.
    call.setProperty(Call.OPERATION_STYLE_PROPERTY,"rpc");
    call.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY,"http://schemas.xmlsoap.org/soap/encoding/");
    call.setTargetEndpointAddress("http://localhost:9080/AddressBookService/services/AddressBook");
                   Address addr = new Address();
                   addr.setStreetName("Jogesh");
                   addr.setCity("Puri");
                   addr.setState("Orisaa");               
         TypeMappingRegistry registry = service.getTypeMappingRegistry();
         TypeMapping mapping2 = registry.getTypeMapping("");
         TypeMapping typeMapping = registry.getTypeMapping(SOAPConstants.URI_ENCODING);
    QName type = new QName("http://addr", "Address");
    CombinedSerializer serializer = new addr.Address_SOAPSerializer(type,
    ENCODE_TYPE, NULLABLE, SOAPConstants.NS_SOAP_ENCODING);
    serializer = new ReferenceableSerializerImpl(SERIALIZE_AS_REF, serializer);
    registerSerializer(typeMapping,addr.Address.class, type, serializer);
    // Invoke the operation
    Object[] actualArgs = {addr};
    Boolean obj = (Boolean) call.invoke(actualArgs);
                   if (null!= obj)
                        System.out.println(obj.getStreetName()+" "+obj.getCity()+" "+obj.getState());
                   }else
                        System.out.println("Obj is null");
    catch (Throwable t) {
    t.printStackTrace();
    private static void registerSerializer(TypeMapping mapping, Class javaType, QName xmlType,
    Serializer ser) {
    mapping.register(javaType, xmlType, new SingletonSerializerFactory(ser),
    new SingletonDeserializerFactory((Deserializer)ser));
    Anybody know how to register/use complext type while using DII client
    Many thanks for any help offered.
    capri

    Hey Capri,
    did you solved your problem?
    I' am also looking for a solution to add complex Types.
    I use webservices with apache axis. There I don't have to add the parameter to the call object. In the server-config.wsdd, there are all information about the complex type. So I only have to invoke webservice with my object.
    But now I want to invoke a BPEL-Process as webservice. I think at this term I have to add the parameter to the call object.
    regards,
    kirie

  • How to disable CD-DRIVE checking, while using a Dolphin file manager

    Hello.
    I  would like ask for a help. I have one problem that's quite annoying. It is related to checking cd-drive when using a dolphin file menager. It always cheecks it when Dolphin is launched from K or launcher on taskbar for the first time, again it happens when i close it and open again.
    Is there a way to disable checking of cd-drive in Dolphin? This behaviour occurs on KDE with all linux system that i checked: Slackware, Arch, Kubuntu. Look at this:
    Disabling CD-DRIVE checking, while using a file manager
    I would like to disable it in order to speed up opening Dolphin, launching it.

    Udisks2 is what dolphin uses to handle external drives of all kinds (USB, optical, etc).  Udisks is an automounting tool that allows normal users to mount disks.  The permission handling before was handled with consolekit and has now been replaced by systemd-logind (which is much better anyway).  So what I am suggesting is that it might be that dolphin is using udisks2 as the tool that polls for the existence of a disc in your optical drive.
    Unfortunately, it is a bit more confusing than that because udisks2 is the replacement for the original udisks.  It is totally different and not compatible.  So I remember seeing a way to turn off optical drive polling, but I cannot remember if it was udisks or udisks2.  But it was done with a udev rule. 
    So I think if you tried to google for "udisks optical (or cd or dvd) polling" or something like that, you might be able to figure out how this is done.
    Edit: unfortunately, I do not use dolphin or udisks2.  But I do have the original udisks installed.
    Edit2: It seems that the method I remembered is for the original udisks.
    Last edited by WonderWoofy (2013-07-25 17:51:56)

  • Security exception while trying to access EJB from stand alone client

    Hi!, I am trying a sample EJB application to R&D some security related issues. I want to access EJB through a web application as well as a stand-alone client. I have set approriate <method-permission> in EJB deployment descriptor. I am using users.properties/roles.properties file for authentication mechanism. I am using JBoss 3.2.
    - On the web application side I am using BASIC authentication and the servlet is able to access the EJB OK, as long as I am using a login/password that has access to the EJB.
    - Now I am trying to access the EJB using a stand alone Java class. These are the things I have tried till now:
    =>Created a InitialContext with appropriate principal, credentials and tried getting a reference to EJB home interface. That resulted in security exception.
    =>Logged into a LoginContext by using appropriate JBossSX classes and then tried getting a EJB home interface. Again security exception.
    Now I am not sure what to do. I read at some places about client side container but not sure what that is. Does anyone has any ideas to try? Is there any other way I can make a swing application and a web application authenticate to EJB container?
    Also can anyone point me to any documentation that gives some idea about how the security credentials gets propagated from web application/standalone client to EJB container?

    It would be better if you can post your code...and DD that way we can help you better

  • Exception while using Nested types in Oracle

    Hi All,
    I am getting an exception while trying to use Nested types in Oracle. The same thing works in other systems. So it might be some problem with my configuration. Can anyone please help me out with this one. Thanks in advance..
    java.sql.SQLException: Internal Error
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.initCollElemTypeName(OracleTypeCOLLECTION.java:1074)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.getAttributeType(OracleTypeCOLLECTION.java:1107)
    at oracle.jdbc.oracore.OracleNamedType.getFullName(OracleNamedType.java:81)
    at oracle.jdbc.oracore.OracleNamedType.getFullName(OracleNamedType.java:68)
    at oracle.sql.TypeDescriptor.initSQLName(TypeDescriptor.java:237)
    at oracle.sql.TypeDescriptor.getName(TypeDescriptor.java:198)
    at oracle.sql.StructDescriptor.getClass(StructDescriptor.java:1105)
    at oracle.sql.STRUCT.toJdbc(STRUCT.java:574)
    at oracle.jdbc.oracore.OracleTypeUPT.unpickle81UPT(OracleTypeUPT.java:502)
    at oracle.jdbc.oracore.OracleTypeUPT.unpickle81rec(OracleTypeUPT.java:456)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81ImgBodyElements(OracleTypeCOLLECTION.java:1011)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81ImgBody(OracleTypeCOLLECTION.java:952)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81(OracleTypeCOLLECTION.java:764)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.unlinearizeInternal(OracleTypeCOLLECTION.java:243)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.unlinearize(OracleTypeCOLLECTION.java:217)
    at oracle.sql.ArrayDescriptor.toJavaArray(ArrayDescriptor.java:891)
    at oracle.sql.ARRAY.getArray(ARRAY.java:315)
    at weblogic.jdbc.wrapper.Array_oracle_sql_ARRAY.getArray(Unknown Source)
    Regards,
    Praveen G S

    Ok .. i got around this issue myself ..
    For others who might have had to face the same problem, let me tell them the problem that i had... i ll b happy if it helps someone ...
    The issue was improper privleges of the Nested Types in the schema to which my server was connecting. Once proper privelges were given, everything started working just fine ...

  • Security Exception while accessing Administration Portal Page

    Hi all
    I am getting following exception while trying to access the login page of WebLogic Administration Portal. Please help me out
    Error 500--Internal Server Error
    java.security.AccessControlException: access denied (java.io.FilePermission C:\bea\weblogic81\samples\domains\portal\portalServer\.wlnotdelete\EJBCompilerCache\-w3xmqrhp3amn\com\bea\p13n\usermgmt\profile\ProfileFactory.class read)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
         at java.security.AccessController.checkPermission(AccessController.java:401)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
         at java.lang.SecurityManager.checkRead(SecurityManager.java:863)
         at java.io.File.exists(File.java:678)
         at weblogic.utils.classloaders.ClasspathClassFinder.getSourcesInternal(ClasspathClassFinder.java:311)
         at weblogic.utils.classloaders.ClasspathClassFinder.getSource(ClasspathClassFinder.java:266)
         at weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:80)
         at weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:69)
         at weblogic.utils.classloaders.CodeGenClassFinder.getSource(CodeGenClassFinder.java:30)
         at weblogic.utils.classloaders.MultiClassFinder.getClassSource(MultiClassFinder.java:61)
         at weblogic.utils.classloaders.CodeGenClassFinder.getClassSource(CodeGenClassFinder.java:24)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:383)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:266)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    Thanks

    Well, have you tried the obvious to add the following permission to your web server's policy file?
    grant "file:<wherever my servlet resides>\myservlet.jar" {
    permission java.io.FilePermission "c:\j2sdk1.4.1\jre\lib\javax.comm.properties", "write,delete";
    }

  • Error while using custom xslt: Cannot find the script or external object that implements prefix 'ScriptNS0'.

    Hi,
    We had a complex map. Because of some requirement, we used custom xslt on this map. Somehow at runtime that custom xslt is giving below error:
    Cannot find the script or external object that implements prefix 'ScriptNS0'.
    I checked below links, it seems this is a bug in Biztalk 2010/Visual stuio 2010.
    http://sandroaspbiztalkblog.wordpress.com/2012/07/29/biztalk-mapper-patterns-calling-an-external-assembly-from-custom-xslt-in-biztalk-server-2010/
    The above link suggest to add a xml element in the .btm file. I tried that as well but no luck. Can anyone suggest me reason and solution for this?
    Thanks, Girish R. Patil.

    When using the Custom XSLT option, you have to maintain the Extension Xml yourself, just as you would for inline custom Xslt that calls external Assemblies.
    Docs:
    http://msdn.microsoft.com/en-us/library/aa547368.aspx
    Sample:
    http://blog.vertica.dk/2013/03/20/using-custom-xslt-in-biztalk/

  • Error while using customizing object DNL_PLANT to download Plants

    Hi All,
    I am using customizing object  DNL_PLANT to download plants from the R/3 system to the our CRM system.
    From the table T001W (in R/3) to the table CRMM_LOCMAP (in CRM).
    From this I am able to download the required Plants from the R/3 to CRM.
    But the issue i am facing is that there are few entries (BP) defined as ( VERB- Affilated to Companies ) are also downloaded to the same table.
    And these BP have been asssigned one more role other than VERB i.e. BBP003 now. These BP were intially present in the CRM system with role VERB only.Now they have two roles i.e. VERB and BBP003.
    Is there anyway we can revert these entries from the table (CRMM_LOCMAP).
    Or we remove the etra role (BBP003) added to the BP, by removing thses role by simply using BP transaction and removing the role.
    Please suggest.
    Cheers,
    Sharad

    Hi,
    is this a static class with an inner class you created: GlAccountClasses.GaclAcctType ? If not then this cannot be found. If you want to pass the reference to another View Object, use
    a) a method exposed on the other VO Impl class
    b) The ViewLink accessor
    If you are using Groovy on a VO level then it doesn't help if you have accessors defined on the EO level
    This may help too: http://blogs.oracle.com/raghuyadav/entry/groovy_samples
    Frank

  • Security Exception thrown using xerces.jar (XML parser)

    Hi All,
    My standalone version of a swing application works fine, however when runnning through webstart, I get the following security exception thrown (this is the debug output from web start console):
    Permission requested for: file:/C:/Program Files/Java Web Start/.javaws/cache/http/Dmis-dt-04501/P7001/DMDimsPriceWebApp/RMxerces.jar
    FileToEntry: C:\Program Files\Java Web Start\.javaws\cache\http\Dmis-dt-04501\P7001\DMDimsPriceWebApp\RMxerces.jar
    Returning: DisckCacheEntry[R;http://mis-dt-04501:7001/DimsPriceWebApp/xerces.jar;null;Wed Dec 31 19:00:00 EST 1969;C:\Program Files\Java Web Start\.javaws\cache\http\Dmis-dt-04501\P7001\DMDimsPriceWebApp\RMxerces.jar;null]
    Returning cache input stream for: C:\Program Files\Java Web Start\.javaws\cache\http\Dmis-dt-04501\P7001\\DMDimsPriceWebApp\RTxerces.jar
    No certificates in codesource
    No certificates in cache
    Add sandbox permissions
    java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
    java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
         at java.security.AccessController.checkPermission(AccessController.java:399)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
         at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278)
         at java.lang.System.getProperty(System.java:560)
         at org.apache.xml.utils.TreeWalker.<init>(TreeWalker.java:149)
         at org.apache.xml.dtm.ref.dom2dtm.DOM2DTM.<init>(DOM2DTM.java:1602)
         at org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(DTMManagerDefault.java:188)
         at org.apache.xml.dtm.ref.DTMManagerDefault.getDTMHandleFromNode(DTMManagerDefault.java:437)
         at org.apache.xpath.XPathContext.getDTMHandleFromNode(XPathContext.java:194)
         at org.apache.xpath.XPathAPI.eval(XPathAPI.java:274)
         at org.apache.xpath.XPathAPI.selectNodeList(XPathAPI.java:202)
         at org.apache.xpath.XPathAPI.selectNodeList(XPathAPI.java:182)
    Is this because the jar is not signed?
    Thanks!
    -Travis

    In case anyone is interested, I've solved my own problem. I had to sign the jars and then also add the: <security>
    <all-permissions/>
    </security>
    tag to the jnlp file.

Maybe you are looking for

  • Build Failed - Scenario 3

    I am at a loss.  I have searched all the forums regarding this specific error message and none of the fixes seem to work for me. The error is when I try to build my Java DC for Scenario 3 I get the following error: I have reinstalled the Netweaver De

  • Where is the Adapter Framework/SDK ?

    Hi I have developed a JCA 1.5 resource adapter for integration test purpose. I thought the "hard" part done...obviously I was wrong. I know I can integrate it within BPEL PM as "explained" in this link: http://www.oracle.com/technology/products/integ

  • TS2446 Re: "Your apple ID has been disabled"

    I can login to my account with my ID & password, but i'm having a problem to buy a application or update when ever i try. i did change my password too. following messages may appear, " your apple ID has been disabled, contact iTune support, at http:/

  • Can I use .htaccess file for authentication if running pl/sql gateway?

    The server is on Windows system with Apache as the web listener and webDB as pl/sql gateway so if any script is under pls/, server would invoke pl/sql. My question is: I know .htaccess can be used for directory protection, in this case(with the pls/)

  • Cisco Prime Version 1.4.1 and upgrading WLC SW version to 7.6.130.0

    Dear All, we have learned that Software Version 7.5.102.0 has been deferred by Cisco. We now plan to upgrade our WiSM2 Controllers to Version 7.6.130.0 but have seen that a Pre-Requiste is that our CPI must be running 1.4.1 or higher. Question: We ca