An exception occurred while creating a user in the IOM by using APIs

Get the UserManager service
UserManager usrService = oimClient.getService (UserManager.class);
for (; i < = n; i ++)
{

userAttribute.put("act_key","1");
userAttribute.put ("User ID", username + i);
userAttribute.put ("FirstName", firstname + i);
userAttribute.put ("Name", lastname + i);
userAttribute.put ("Password", password);
userAttribute.put ("Role", "Full Time");
userAttribute.put (Type "Xellerate", "End user");
User user = new User (null, userAttribute);
Result = usrService.create (user) UserManagerResult;
}

trying to create the user returns this:

Exception in thread "main" java.lang.ClassCastException: java.lang.String
at oracle.iam.identity.usermgmt.impl.UserManagerImpl.create(UserManagerImpl.java:403)
at oracle.iam.identity.usermgmt.api.UserManagerEJB.createx (unknown Source)
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:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
to $Proxy324.createx (Unknown Source)
at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemoteImpl.createx(UserManager_nimav7_UserManagerRemoteImpl.java:1005)
at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemoteImpl_WLSkel.invoke (unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:590)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
to weblogic.rmi.internal.BasicServerRef$ 1.run(BasicServerRef.java:478)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:119)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Process has finished with exit code 1.

Your ACT_KEY must be a value of type long.

-Kevin

Tags: Fusion Middleware

Similar Questions

  • How to remove the user from the IOM by using Trusted Recon

    We trust Sun to IOM LDAP Recon. We delete usually old Sun LDAP users periodically. According to the requirement, these users should also be eliminated from IOM as well as all its databases that are put into service.

    Looks like that, the behavior by default of 'iPlanet Trusted remove user Recon Task' is to set the user status to 'Deleted' and 'Revoked' about the users corresponding IOM and resources put into service. How can I remove users from the IOM as well as the database placed in service in the case of user removed from Sun's LDAP?

    Thank you!
    Kabi

    Once a user is created in the IOM, you cannot remove it. As you said, the default behavior for the removal of the recon user approved is that the user will be disabled in IOM and revoked from all target applications. Revoke the user will remove the user from the target applications.

    This is done for the purpose of audit so that later we can determine which users have been removed or terminated.

    But as a you can manually delete the records of user database directly which is not recommended.

  • SQL exception occurred while downloading PL/SQL (Web ADI)

    Hello

    I have a problem loading data using Web ADI, I get the error 'SQL exception occurred while downloading PL/SQL', I tried to restart Apache, also looked in the BNE.log file for the exact error, but I'm still not sure about this exception, can someone please help?

    BNE:text = "SQL exception occurred while downloading of PL/SQL."
    BNE:cause = "insert a database error"

    RDBMS: 11.2.0.3.0
    Oracle Applications: 12.0.6

    Thank you
    Bharat

    So, as I understand, it's that:

    (a) you have a custom table
    (b) you have developed a page of OAF who exports the table data in EXCEL which is exactly the same format as that of the ADI
    (c) user makes a few changes to data
    (d) and additions Excel using WEBADi.

    If my interpretation above is correct:

    Create a Style UPDATE Integrator who will download data make ADI change and only download from tehre only no need a Page of the OFA.

    You just need to create a view to download ADI (with parameters, where applicable) and then download the same.

    In case you want more details you can check out the link described, it has a very good example:
    http://www.SlideShare.NET/AshishHarbhajanka/WebADI-asampleimplementation
    OR
    http://oracleapps-atechniciansview.blogspot.com.es/2011/05/WebADI-sample-implementation.html

  • I get my connection wizard of wireless network to work when I get the RunDLL error "an exception occurred while trying to run"wzcdlg.dll, FlashConfigCreateNetwork"

    Original title: wireless network connection wizard does not work

    How can I get my connection wizard of wireless network to work when I get the RunDLL error "an exception occurred while trying to run 'wzcdlg.dll, FlashConfigCreateNetwork' I can see no wireless connections more.  Not sure why all of a sudden it stopped working.  Thank you!

    Hi ChadWilliams_1974,

    Try the following methods:

    Method 1: Try the steps from the link.

    Troubleshooting network connection problems:

    http://www.Microsoft.com/windowsxp/using/networking/maintain/troubleshoot.mspx#3

    Method 2: Reset TCP/IP Protocol, you can run the fix it from the link below and check if the problem is resolved.

    How to reset the Protocol Internet (TCP/IP)

    http://support.Microsoft.com/kb/299357

    I hope this helps.

  • get an exception occurred while trying to run C:\WINDOWS\System32\shell32.dll.Control_RunDLL appwiz.cpl «»

    Original title: continue to get an exception has occurred

    An exception occurred while trying to run "appwiz.cpl C:\WINDOWS\System32\shell32.dll.Control_RunDLL . The other question is one that I posted yesterday that being to keep the screen with Oxffbadd11 seems to know one had this problem as one of soaps still responded to this post

    Hello

    1. don't you make changes on the computer before this problem?

    Please wait for the response from Microsoft support engineer for the number that you have posted here.

    Run the SFC scan on the computer and check.

    SFC tool scans system files and replaces incorrect versions of system files by using the correct versions.
    To run the System File Checker tool, follow these steps:
    1. Click Start and type cmd in the box start the search.
    2. right click on cmd in the list programs and then click Run as administrator.
    If you are prompted for an administrator password or a confirmation, type your password or click on continue
    3. at the command prompt, type the following line and press ENTER:
    sfc/scannow

    Reference: http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/system_file_checker.mspx?mfr=true

  • Failed to save the system or create the image of the system, error: the problem occurred while trying to connect with the VSS writers (0 x 80042318).

    Original title: cannot backup Windows 7 system.

    When I try to back up the system or create the image of the system I get the following message, the error was detected in the Volumn Service VSS (Shadow Copy) the problem occurred while trying to connect with the VSS writers.  Verify that the event system Service and the VSS service are running and look for errors related to event logs. (0 x 80042318).

    Hi bernardolahoustino,

    Please keep us informed. Please let us know the State of the question, so that we can help you further.

  • An error occurred while Windows was working with the Control Panel file C:\WINDOWS\system32\ALSNDMGR. CPL.

    Title:C:\Windows\System32\ALSNDMGR. Original CPL.

    Running Windows XP PRO this message "an error occurred while Windows was working with the Control Panel file.

    C:\WINDOWS\system32\ALSNDMGR.cpl.

    Can I re-enstall or the download file?

    Hello
     
     
    1. Once you get the error message?
    2. What is the card its installed on the computer? E.g. Realtek
    3. do you have a cleaning registry registry booster software installed on the computer or third party?
    4. are you able to play sounds on the computer?
    5. have you done any software or hardware changes on your computer before this problem?
     
    Alsndmgr.cpl made reference to the Manager his control panel Realtek Semiconductor AC97 file.
     
    If you have the card Realtek sound on your computer, try the following steps
     
    Method 1:
     
     
    If you have your CD of the sound card, I suggest to uninstall the card drivers sound sound card support applications and reinstall them.

    Reference:
     

    How to manage devices in Windows XP

     
    See also:
    Method 2:
     
    You can still download the drivers from the Realtek or the sound card manufacturer's Web site.

    http://www.Realtek.com.tw/

     
     
    Hope the information is useful.

    Thank you for the help, I downloaded the 97 Realteck PGM. He cured the issue.

  • The following error occurred while importing IMG_ #. JPG: The system cannot find the specified file.

    It really starts to annoy me. For some reason, Windows does not allow me to import my photos with Windows more, I was able to import pictures all the time, but all of a sudden it stopped. I tried the import with the program auto-importation of Windows and then I tried to use the import software called Windows Live Gallery. Both gave me the same error message "the following error occurred while importing IMG_ #.» JPG: The system cannot find the specified file. "I tried looking up this error on many sites and have not led to what. I tried to re-formating my memory card but it did not work. Please help me, I can not import all the images and is running out of memory cards, I don't want to delete the images I took because I can not import to my computer.

    Thank you.

    Hello
     
    1. you try to import these images on the camera?
    2. have you checked if the image files are present on the device?
     
    First cross check if the photos are present on the device and if you are importing from the right location. Try to copy the files manually and paste it on the desktop and see if it works.
     
    For more information on troubleshooting camera connection problems, visit this link:
    http://Windows.Microsoft.com/en-us/Windows-Vista/Troubleshoot-camera-connection-problems
     
    Post back with the results, so that we can help you better.
     
    Kind regards
    Syed
    Answers from Microsoft supports the engineer.

  • Create a user for the current user.

    Hi all

    Recently, I created a user to the user in another server.

    Oracle version: 10.2.0.1.0

    I got similar roles even as production.

    In Production:

    SQL > select granted_role, dealer of dba_role_privs where dealer in ('TRADELOANS');

    GRANTED_ROLE BENEFICIARY
    ------------------------------ ------------------------------
    RESOURCES TRADELOANS
    CONNECT TRADELOANS

    In Test:

    SQL > select granted_role, dealer of dba_role_privs where dealer in ('TRADELOANS');

    GRANTED_ROLE BENEFICIARY
    ------------------------------ ------------------------------
    RESOURCES TRADELOANS
    CONNECT TRADELOANS

    But the user has complained it is getting error like "user has no privilege CREATE SESSION". He also says that he is able to connect to the production, but for the test, it's getting the error


    Can someone let me know where I made the mistake?

    Concerning
    Arun

    Hi.May it is not the role of 'connect' role by default, you get this error. pls post

    select DEFAULT_ROLE from dba_role_privs
    where grantee in ('TRADELOANS')
    and GRANTED_ROLE='CONNECT';
    

    Then, if you get "" then follows

    alter user TRADELOANS default role connect,resource; 
    

    You can connect

  • I want to create sub-task "Human task" programmatically by using APIs, any help?

    I want to create sub-task "Human task" programmatically by using APIs, any help?

    Solved

    ' public void createSubTask (String title, String username) survey StaleObjectException, {WorkflowException}

    oracle.bpel.services.workflow.task.model.ObjectFactory objFac = new oracle.bpel.services.workflow.task.model.ObjectFactory ();

    oracle.bpel.services.workflow.metadata.routingslip.model.ObjectFactory rObjFac = new oracle.bpel.services.workflow.metadata.routingslip.model.ObjectFactory ();

    DecomposeTaskModel.IParticipantGenerator generator = null;

    DecomposeTaskModel decomposeTaskModel = new DecomposeTaskModel();

    DecomposeTaskModel.SimpleGenerator simpleGenerator = decomposeTaskModel.new SimpleGenerator();

    generator = simpleGenerator;

    Assignee list = new ArrayList();

    assignee. Add (new TaskAssignee (username, "user"));

    Participants participants = generator.generate (null, null, assignee,);

    DTI DecomposeTaskInfo = objFac.createDecomposeTaskInfo ();

    dti.setTitle (title);

    RoutingSlip rs = rObjFac.createRoutingSlip ();

    rs.setParticipants (participants);

    This.Task is WorklistServiceLocator.getTaskService () .decomposeTask (this.task.getSystemAttributes (.getTaskId ()), rs, wfCtx, dti);.

    }

  • Disable users from the IOM AND ALLOW THEIR MANUELLEMENT in OID...

    Hello

    I have connected to OID IOM.

    When I disable a user to the IOM, the attribute orclisenabled for this user is set to DISABLED
    Now when I change manually DISABLED active in OID and the task of reconstruction of target, the IOM user remains disabled and when I check the profile of the resources, the user OID resource is ENABLED.

    This should not happen. I want the case, when I manually ENABLE users disabled in OID and recon task, the user still needs to get disabled in OID

    Is it possible to achieve this condition?

    Hi Elise,.

    I think that the reason is due to the improver method to set the jar file. Simply copy the java code into Notepad and save it as java file only.Compile this java code so that you will get the java class. The you can create c like

    jar filename.jar javafilename.class cf

    Using this command, we can create a jar file. Just try it this way. I think that this will solve your problem.

    Thank you best regards &,.

    Rajesh.

  • How to get all the users of the IOM, whose field Manager is not null or empty

    Hello world

    How to get all the users of the IOM, whose field Manager is not null or empty (using java code)

    Thank you

    Published by: user11205212 on January 18, 2010 12:38 AM

    Hey beginner,.

    I come to write this line where he can put his sql query... in the next post I provided the example sql also...

    Concerning
    VM

    Published by: user12280771 on January 18, 2010 22:11

  • Exception occurred while linking has been invoked in SOA 11 g

    Hello
    I use MsSQL server 2008 as a database. I'm getting following error while deploying my project on unix machine (domain soa_server1) .i code created this project in jdeveloper. The senario for this project is given below
    My bpel calls the stored procedure that accepts two parameters and after you have added text to the input parameters will return output parameters.


    Errors:
    Anomaly of the non-recoverable system:

    Exception occurred when the link was invoked. Exception occurred during invocation of the JCA binding: "cannot persist tracking reference ID '. The called JCA adapter threw an exception of resource. Please review the error message above carefully to determine a resolution.

    Anomaly of the non-recoverable system:

    Exception occurred when the link was invoked. Exception occurred during invocation of the JCA binding: "JCA binding run operations reference 'CallMsSQLStoredProcedure' has no reason to: could not create/access the TopLink Session.» This session is used to connect to the data store. Caused by weblogic.jdbc.extensions.PoolLimitSQLException: weblogic.common.resourcepool.ResourceLimitException: no currently available in the pool sqlcon resources to allocate to applications, please don't increase the size of the pool and try again... You may need to configure the connection settings in the deployment descriptor (i.e. DbAdapter.rar#META-INF/weblogic-ra.xml), and then restart the server. This exception is considered as reproducible, probably due to a communication failure. To be classified as not reproducible instead, add property nonRetriableErrorCodes with the value '0' for the deployment descriptor (i.e. weblogic - RA.Xml). Auto retry a reproducible fault set composite.xml for this invoke these properties: jca.retry.interval, jca.retry.count and jca.retry.backoff. All properties are integers. ". The called JCA adapter threw an exception of resource. Please review the error message above carefully to determine a resolution.

    Published by: 850198 on August 2, 2011 08:45

    You have reached your limit of connection pool. You can go to servers > soa_server1 > surveillance > JDBC and check the number of connections in use. There must be a memory leak happening in the adaper. You must release the connections manually. You can go to datasources > your data source > control and begin to stop the source of data and reduce it if necessary that will solve the problem temporarily. You need to check why this leak occur.

    Hope this helps!

  • Exception occurred while reading the license file.

    Hello

    I have installed Weblogic 9.2 server on 64-bit JVM on Solaris. I have some EJB deployed there. When I use it to try to connect to these EJB of Windows 32 bit OS I get the following error.

    Exception in thread "main" java.lang.RuntimeException: Exception occurred during playback of the license file.
    at weblogic.security.utils.SSLSetup.getLicenseLevel(SSLSetup.java:143)
    at weblogic.security.utils.SSLSetup.getSSLDelegateInstance(SSLSetup.java:196)
    to weblogic.security.utils.SSLContextWrapper. < init > (SSLContextWrapper.java:27)
    at weblogic.security.utils.SSLContextWrapper.getInstance(SSLContextWrapper.java:22)
    at weblogic.security.utils.SSLSetup.getSSLContext(SSLSetup.java:380)
    at weblogic.security.SSL.SSLClientInfo.getSSLSocketFactory(SSLClientInfo.java:56)
    at weblogic.socket.ChannelSSLSocketFactory.getSocketFactory(ChannelSSLSocketFactory.java:125)
    at weblogic.socket.ChannelSSLSocketFactory.createSocket(ChannelSSLSocketFactory.java:75)
    at weblogic.socket.AbstractMuxableSocket.createSocket(AbstractMuxableSocket.java:207)
    at weblogic.rjvm.t3.MuxableSocketT3.newSocketWithRetry(MuxableSocketT3.java:252)
    at weblogic.rjvm.t3.MuxableSocketT3.connect(MuxableSocketT3.java:421)
    at weblogic.rjvm.t3.MuxableSocketT3S.createConnection(MuxableSocketT3S.java:79)
    at weblogic.rjvm.ConnectionManager.createConnection(ConnectionManager.java:1749)
    at weblogic.rjvm.ConnectionManager.findOrCreateConnection(ConnectionManager.java:1410)
    at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:448)
    at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:326)
    at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:261)
    at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:204)
    at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:226)
    at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:189)
    at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:154)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:350)
    at weblogic.jndi.Environment.getContext(Environment.java:307)
    at weblogic.jndi.Environment.getContext(Environment.java:277)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
    at javax.naming.InitialContext.init(InitialContext.java:223)
    to javax.naming.InitialContext. < init > (InitialContext.java:197)
    at Test.main (Test.java:26)

    But the same client work when I use the same Solaris machine...

    Please help with this for me. It is money to me.
    Thanks in advance, Sachin

    Check if your certificates have not expired.

  • create a user in the primary database, but has not spread to sleep

    I created a user scott/tiger on primary and I hope to do a few tests.

    However I don't see it at all in waiting for the database. It was 30 minutes.

    I ran archive_log $ v and v$ archive_gap, nothing is pending.

    Why does this happen?

    Do you have archives of 8826 sequences are transported in standby mode or not?

    the primary message & eve

    Select sequence #, name from v$ archived_log where sequence # > 8825 and the name is not null;

    MRP run in standby mode?

    Eve post

    $ps - ef | grep mrp

    Do you have set all the parameters in sqlnet.ora standby server? If Yes please do it after.
    also a few primary alert information & standby log file too.

    Published by: CKPT on December 12, 2011 21:39

Maybe you are looking for