Threadproblem - java.lang.IllegalMonitorStateException

does anybody know why i'm getting a IllegalMonitorStateException here:
public class Test()
private TestThread test = null;
public Test()
test = new TestThread()
test.start();
foo();
private foo()
test.notify();
public class TestThread
extends Thread
private synchronized void doIt()
try
wait();
catch (InterruptedException e)
System.out.println("check");
public void run()
while (true)
doIt();
}

test.notify();To call the notify method you must have the monitor of the object. You gain the monitor through e.g. the synchronized-statement:
synchronized (test) {
test.notify();
See the API documentation of the Object.notify method and the threading tutorial for details:
http://java.sun.com/j2se/1.4.2/docs/api/
http://java.sun.com/docs/books/tutorial/essential/threads/multithreaded.html

Similar Messages

  • Java.lang.IllegalMonitorStateException: current thread not owner

    Hello,
    my program runs an exe that doesn't return a zero when it's finished, therefore, I can't use a waitFor().
    To solve this problem i look at the length of the file which has to be manipulated by this exe every 200ms and see whether it's length stopped changing. This should mean it's job is done...
    But using this code:
    public void run(String filename)
              System.out.println("start runtime");
              Runtime rt = Runtime.getRuntime();
              String[] callAndArgs = { "lssvmFILE.exe", filename };
              try
                   Process child = rt.exec(callAndArgs);
                   child.wait(200);
                   filesize = 0;
                   while(filesize != file.length())                            {
                        filesize = file.length();
                        child.wait(200);
                   //child.waitFor();
                   System.out.println("Process exit code is:   " + child.exitValue());
              catch(IOException e)
              {     System.err.println( "IOException starting process!");}
              catch(InterruptedException e)
              {     System.err.println( "Interrupted waiting for process!");}
              System.out.println("end run");
         }i get this on my System.out:
    Exception occurred during event dispatching:
    java.lang.IllegalMonitorStateException: current thread not owner
            at java.lang.Object.wait(Native Method)
            at LssvmFile.run(LssvmFile.java:292)
            at LssvmFile.start(LssvmFile.java:189)
            at GUI.actionPerformed(GUI.java:137)
            at java.awt.Button.processActionEvent(Button.java:329)
            at java.awt.Button.processEvent(Button.java:302)
            at java.awt.Component.dispatchEventImpl(Component.java:2593)
            at java.awt.Component.dispatchEvent(Component.java:2497)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)

    Here's the code:
    I already found out that the sleep function indeed caused this exe to run so slow. It seems that everything stops when sleep is used. By setting the delay to 2ms the duration is satisfactory (some seconds).
    I also tried skipping the sleep and just using a while, but that ended in an endless loop. Setting the delay to 1ms lead to a stop when the filelength was 0 (i guess that was on the moment that the exe cleared the file and prepared to write) so it seems to me that 2ms is quite a good trade off.
    this part of the code is preceeded by writing the data to the file and afterwards the new data will be read in again...
         //Close the stream
              outFileStream.close();
         //Run lssvmFILE.exe to compute alpha & b
              long originalfilesize = file.length();
              run(filename);
              //wait untill job done
              Thread thread = new Thread();
              long filesize = file.length();
              try{thread.sleep(2);}
              catch(InterruptedException e){};
              while(filesize != file.length() || originalfilesize ==file.length())
                   filesize = file.length();
                   try{thread.sleep(2);}
                   catch(InterruptedException e){};
         //Set up Instream (read from file)
         //----------------------Bedankt!
    Bart

  • Java.lang.IllegalMonitorStateException problem

    Hi all,
    I'm using Future objects but I'm getting java.lang.IllegalMonitorStateException.
    The stack trace is the following:
    java.util.concurrent.ExecutionException: java.lang.IllegalMonitorStateException: current thread not owner
    [java]      at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:215)
    [java]      at java.util.concurrent.FutureTask.get(FutureTask.java:85)
    [java]      at stock.GUI$1.mouseClicked(GUI.java:168)
    [java]      at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
    [java]      at java.awt.Component.processMouseEvent(Component.java:5491)
    [java]      at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    [java]      at java.awt.Component.processEvent(Component.java:5253)
    [java]      at java.awt.Container.processEvent(Container.java:1966)
    [java]      at java.awt.Component.dispatchEventImpl(Component.java:3955)
    [java]      at java.awt.Container.dispatchEventImpl(Container.java:2024)
    [java]      at java.awt.Component.dispatchEvent(Component.java:3803)
    [java]      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    [java]      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3901)
    [java]      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    [java]      at java.awt.Container.dispatchEventImpl(Container.java:2010)
    [java]      at java.awt.Window.dispatchEventImpl(Window.java:1774)
    [java]      at java.awt.Component.dispatchEvent(Component.java:3803)
    [java]      at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    [java]      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    [java]      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    [java]      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    [java]      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    [java]      at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    [java] Caused by: java.lang.IllegalMonitorStateException: current thread not owner
    [java]      at java.lang.Object.wait(Native Method)
    [java]      at dsm.mrmw.ReadHandler.remoteRead(ReadHandler.java:145)
    [java]      at dsm.mrmw.ReadHandler.call(ReadHandler.java:107)
    [java]      at dsm.mrmw.ReadHandler.call(ReadHandler.java:28)
    [java]      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
    [java]      at java.util.concurrent.FutureTask.run(FutureTask.java:123)
    [java]      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
    [java]      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
    [java]      at java.lang.Thread.run(Thread.java:595)
    where:
    - the chunk of code in GUI.java is
    try {
       Future<ISharedObject> result = memory.read(address); // the "read" call creates a ReadHandler object to satisfy the request
       try {
         SharedObject value = result.get(3, TimeUnit.SECONDS);   // line 168
         Stock s = (Stock) value.getObject();
       } catch (InterruptedException e1) {
         e1.printStackTrace();
       } catch (ExecutionException e1) {
         e1.printStackTrace();
      } catch (TimeoutException e1) {
         e1.printStackTrace();
    } catch (BadAddressException e1) {
         e1.printStackTrace();
    }while the chunk of code responsible for the exception in ReadHandler, a Callable object, is:
    // the line 107 is the call of this method
    private final ISharedObject remoteRead() throws ReadException,
         DuplicateRequestException {
              try {
                    *  Creates a new destination and stores it into the
                    *  subscriptions hash table.
                   Subscription toSubscribe = subscribe();
                   // Sends "synchronization" request ONLY if this subscription is
                   // not already present.
                   if (subscriptions.putIfAbsent(
                             toSubscribe.destination, toSubscribe) == null) {
                        toSubscribe.sendRequestMsg();
                   if (memory.queueThread(address.toString(), this) == null) {
                        try {
                             wait(timeoutInMillisecs);   // line 145
                        } catch (InterruptedException e) {
                             Thread.currentThread().interrupt();
                        return memory.get(address);
                   // else the request has already been submitted but it's still pending
                   throw new DuplicateRequestException();
              } catch (NamingException e) {
                   if (logger.isEnabledFor(Level.INFO)) {
                        logger.info("Unable to satisfy the remote read request: " +
                                  e.getLocalizedMessage());
                   throw new ReadException();
              } catch (JMSException e) {
                   if (logger.isEnabledFor(Level.INFO)) {
                        logger.info("Unable to satisfy the remote read request: " +
                                  e.getLocalizedMessage());
                   throw new ReadException();
              } finally {
                   memory.removeWaitingThread(address.getDestination());
         }How can I solve this error?
    Best regards,
    Michele

    I'll reply by by own: the solution seems to be making the remoteRead() method synchronized (or to use a synchronized block)

  • Java.lang.IllegalMonitorStateException

    This is my code
    BatchFile b= new BatchFile();
    boolean isgenerated=b.runBatch(checkExistSub,folder);
    if(isgenerated)
    boolean runBatch(String checkExistSub, File folder)
         boolean isBatchExecuted=false;
         fold = new File(folder+"\\");
         path1= "cmd /c C:\\temp\\ps.bat \"" + checkExistSub +"\"";
         try
              Process procapplyxsl = Runtime.getRuntime().exec(path1,null,fold);
              wait(1000);
              isBatchExecuted= true;
         catch(InterruptedException inte)
         catch(IOException ioe)
         return isBatchExecuted;
    Why am I getting the following error
    Exception in thread "main" java.lang.IllegalMonitorStateException: current thread not owner
    at java.lang.Object.wait(Native Method)
    at BatchFile.runBatch(BatchFile.java:117)
    at Main.execute(Main.java:459)
    at Main.main(Main.java:488)
    Java Result: 1

    I got the solution. Thanks to everyone.
    Message was edited by:
    Simmy

  • Synchronizing unrelated threads - java.lang.IllegalMonitorStateException

    Hi,
    I'm trying to synchronize two unrelated threads using a third object, but getting java.lang.IllegalMonitorStateException: current thread not owner error. Does any one know what am I doing wrong and how to fix it. A simulated code is posted below.
    Thanks in advance.
    // ----------- beginning of code --------------------------
    // Code that throws java.lang.IllegalMonitorStateException: current thread not owner error.
    public class ThreadTest
    public static void log( String message )
         System.out.println( Thread.currentThread().getName() + ":" + message );
    public static void main( String args[] )
         Thread thread1 = new Thread1();
         Thread thread2 = new Thread2();
         thread1.start();
         thread2.start();
         try
         thread1.join();
         thread2.join();
         catch (InterruptedException e)
         e.printStackTrace();
         log( "All Done...");
    class Thread1 extends Thread
    public void run()
         synchronized( Common.done )
         while (!Common.done.booleanValue())
              ThreadTest.log("Waiting on Common.done");
              try
              Common.done.wait();
              catch (InterruptedException e)
              e.printStackTrace();
    class Thread2 extends Thread
    public void run()
         synchronized( Common.done )
         ThreadTest.log( "Sleeping for 10 seconds ");
         try
              Thread.sleep( 10 * 1000 );
         catch (InterruptedException e)
              e.printStackTrace();
         ThreadTest.log( "Calling notifyAll");
         Common.done = Boolean.TRUE;
         // ******* Why am I getting 'java.lang.IllegalMonitorStateException: current thread not owner' in the next line
         Common.done.notifyAll();
    class Common
    public static Boolean done = Boolean.FALSE;
    // ----------- end of code --------------------------

    // ******* Why am I getting'java.lang.IllegalMonitorStateException:
    current thread not owner' in the next line
    Common.done.notifyAll(); Because x.notifyAll() has to be inside a
    synchronized(x) block.
    The code you posted looks like it meets that
    criteria, so I would have to conclude the code you
    posted does not represent the actual code you are
    running.Hi.. It is inside synchronized( Common.done) block... Thats why I'm confused....

  • Service call exception; nested exception is: java.lang.IllegalMonitorStateE

    Hi All,
    when we try to run the Message Monitoring in our RWB then we get the following error:
    Service call exception; nested exception is: java.lang.IllegalMonitorStateException
    Has anybody of you an idea what this error occurs?
    Thank you for the support..
    Kind Regards
    Markus

    hi,
    restarting the java stack would be enough. You can do that at SMICM. Before you should deregister all queues in SMQR so that incoming messages has to wait in the queue. Of coz all synchronous msgs would fail, as well messages going to your Java Inbound Adapters.
    note:reward points if solution found helpfull.....
    regards
    chandrakanth.k

  • Error while opening a dwg file :java.lang.NoSuchMethodException: Method

    Hello Experts,
    I tried to integrate WebCenter Content with Autovue ,the integration was good untill i get this error while trying to open a dwg file checked in Content Server using View in Autovue option in Actions :
    java.lang.NoSuchMethodException: Method fileOpen(com.cimmetry.core.SessionID, com.cimmetry.core.DocID, com.cimmetry.core.Authorization, <null>, java.lang.Boolean, <null>) not found in class com.cimmetry.jvueserver.VCETConnection
         at com.cimmetry.jvueserver.ar.a(Unknown Source)
         at com.cimmetry.jvueserver.ar.a(Unknown Source)
         at com.cimmetry.jvueserver.ar.a(Unknown Source)
         at com.cimmetry.jvueserver.ar.d(Unknown Source)
         at com.cimmetry.jvueserver.ar.a(Unknown Source)
         at com.cimmetry.jvueserver.ah.run(Unknown Source)
    Any suggestions would help me,
    Thanks in Advance
    Raj

    Hi Raj,
    The solution to this problem is posted in My Oracle Support:
    Error: "java.lang.NoSuchMethodException: Method fileOpen" when Trying to View Files Using AutoVue Integrated to Oracle Universal Content Management (UCM) (Doc ID 1341644.1).
    It has all the details, step by step.
    Jeff

  • Java.lang.NoSuchFieldError: ADFM_SINGLE_DC_FRAME Error While Running a Page

    Hi
    I am having a simple JSF Page when i try to run the page in Jdev 11g i am getting the following exception
    JSF Page Code:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1" binding="#{backingBeanScope.backing_ContactList.d1}">
          <af:messages binding="#{backingBeanScope.backing_ContactList.m1}"
                       id="m1"/>
          <af:form id="f1" binding="#{backingBeanScope.backing_ContactList.f1}">
            <af:panelStretchLayout binding="#{backingBeanScope.backing_ContactList.psl1}"
                                   id="psl1">
              <f:facet name="bottom"/>
              <f:facet name="center"/>
              <f:facet name="start"/>
              <f:facet name="end"/>
              <f:facet name="top"/>
            </af:panelStretchLayout>
          </af:form>
        </af:document>
      </f:view>
      <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_ContactList-->
    </jsp:root><pre>
    Target URL -- http://127.0.0.1:7101/DataBoundApp-ViewController-context-root/faces/ContactList.jspx
    <Feb 5, 2010 11:44:54 AM GMT+05:30> <Error> <HTTP> <BEA-101020> <[ServletContext@1038384[app:DataBoundApp module:DataBoundApp-ViewController-context-root path:/DataBoundApp-ViewController-context-root spec-version:2.5]] Servlet failed with Exception
    java.lang.NoSuchFieldError: ADFM_SINGLE_DC_FRAME
         at oracle.adf.model.BindingContext.getCurrentFrame(BindingContext.java:1930)
         at oracle.adf.model.BindingContext.setSessionContext(BindingContext.java:448)
         at oracle.adf.model.BindingRequestHandler.initializeBindingContext(BindingRequestHandler.java:371)
         at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:182)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:189)
         Truncated. see log file for complete stacktrace
    >
    <Feb 5, 2010 11:44:54 AM GMT+05:30> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'DefaultServer' has triggered at Feb 5, 2010 11:44:54 AM GMT+05:30. Notification details:
    WatchRuleType: Log
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
    WatchData: DATE = Feb 5, 2010 11:44:54 AM GMT+05:30 SERVER = DefaultServer MESSAGE = [ServletContext@1038384[app:DataBoundApp module:DataBoundApp-ViewController-context-root path:/DataBoundApp-ViewController-context-root spec-version:2.5]] Servlet failed with Exception
    java.lang.NoSuchFieldError: ADFM_SINGLE_DC_FRAME
         at oracle.adf.model.BindingContext.getCurrentFrame(BindingContext.java:1930)
         at oracle.adf.model.BindingContext.setSessionContext(BindingContext.java:448)
         at oracle.adf.model.BindingRequestHandler.initializeBindingContext(BindingRequestHandler.java:371)
         at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:182)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:189)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101020 MACHINE = HARIKEMPULA TXID = CONTEXTID = TIMESTAMP = 1265350494331
    </pre>
    can anybody please tell me what is the issue.

    Any body please help me on this. i am not getting why this error is coming?
    Regards
    Hari

  • Exception in thread "main" java.lang.NoClassDefFoundError

    Am using java 1.3.1 on Red Hat Linux 7.1
    i get this error
    Exception in thread "main" java.lang.NoClassDefFoundError
    while running a simple program HelloWorld.java
    help

    When you use the "java" command, the only required argument is the name of the class that you want to execute. This argument must be a class name, not a file name, and class names are case sensitive. For example, "java HelloWorld.java" won't work because the class name isn't HelloWorld.java, it's HelloWorld. Similarly, "java helloworld" won't work because a class defined as "public class HelloWorld {" is not named helloworld due to case sensitivity. Finally, the .class file must be in a directory that is in the Classpath - that's where java.exe searches to find the file that contains the class.

  • Java.lang.Exception: Overwriting file

    Hi All,
    We are having some trouble with one of our interfaces where XI creates files in append mode and gets the filename from the Payload. From last couple of days, we are getting the below error for some reason. There are no other extra config setups in the file CC.
    Any help to figure out the issue would be highly appreciated.
    2008-08-12 14:04:56 Error Attempt to process file failed with java.lang.Exception: Overwriting file '
    host\folder\otci001\Archive\08122008_140453_OTCI001.txt' not allowed due to configuration flag
    2008-08-12 14:04:56 Error Exception caught by adapter framework: Overwriting file '
    host\folder\otci001\Archive\08122008_140453_OTCI001.txt' not allowed due to configuration flag.
    Thanks,
    AJ.

    HI,
    Once the file is appended, are you doing any further processing with file. because the error "not allowed due to configuration flag" and as youhave said its not for al the messages indicates to single point.
    If the attempt to append the data in file if in case that is in processing and have locked with some other process flow marked after XI...
    You may also need to look into the FTP log details...for more details
    Thanks
    Swarup

  • Sender  Mail Adapter - java.lang.NullPointerException in CC monitoring

    hi,
    I configured my Sender Mail Adapter correctly.
    I have the correct POP URL, authentication. I'm not using PayloadSwapBean right now.
    I can't get rid of the exception inside my Channel monitoring.
    exception caught during processing mail message; java.lang.NullPointerException
    does anyone know why?
    I've been told the POP account has emails already.
    I will try to create an outlook account for this POP e-mail account in the mean time to see the e-mails.
    Thank you

    thanks aaron.
    I don't see the folder ./SYS/../j2ee/...
    will it be under another folder?  I don't see a trace log folder either.
    I think the problem might be in the Module tab.
    I tried.
    AF_Modules/PayloadSwapBean
    localejbs/AF_Modules/PayloadSwapBean
    /localejbs/AF_Modules/PayloadSwapBean
    sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean
    localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean
    /localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean
    they all produce the same error. I wonder if these Beans actually exist.
    I think we might have to reinstall this Mail Adapter altogether.
    Or maybe it's really the connection to the Mail Server. But would it display this kind of message.
    This is what I'm looking at.
    Also, i had to use this URL
    pop://server:995/
    (995 is using SSL and it is the default port).  When I use this, I see the Java Null Pointer Exception a lot less frequently. Weird.

  • OID can not display some users - java.lang.ArrayIndexOutOfBoundsException:0

    We have set up AD to OID synchronization for users and groups using Import connector, and it worked fine. The users in OID can log into applications protected by OAM. But recently I found that some users that could be displayed in OID before can not be displayed now. If I click on the DN in Oracle Directory Manager, a error window pops up. It is a long error message, and the first a few lines are as follows :
    0
    java.lang.ArrayIndexOutOfBoundsException:0
    at oracle.ldap.admin.AttrOptions.<init>(entry.jave:3151)
    at Oracle.ldap.admin.Entry.getProp(entry.java:457)
    I don't see any error message in the integration profile or log files. I am testing things on an account that is having this trouble, and the strange thing is that it can not log into application protected by OAM any more, but it can log into OAM console.
    We use OID 10.1.2.3 on Windows, and OAM 10.1.4.0.1.
    I searched in Metalink but didn't find anything helpful. Any help is appreciated. Thanks for your time.
    Hailie

    Pramod,
    Thank you for your reply. Please see below my answers to your questions:
    -> Do you see any pattern in the users (DN) that are unable to be displayed/login?
    Yes I do see some pattern. There is one change on the problem user's dn - the "\" after the last name is gone.
    Before: cn=smith\, john, cn=users,dc=abc,dc=com
    Now: cn=smith, john, cn=users,dc=abc,dc=com
    However I check in Active directory "\" is presented. In OID if I right click on cn=smith, john and try to delete it, I got a error message "LDAP: error code 34 - Error in DN Normalization". Is that caused by the missing of "\"?
    -> Does ldapsearch on these users (with all attributes) show something (special chars, etc)?
    ldapsearch on cn=cn=smith, john,cn=users,dc=abc,dc=com returns no objects:
    $ldapsearch -L -D "cn=orcladmin" -w "*****" -h host -p 389 -b "cn=smith, john,cn=users,dc=abc,dc=com" -s sub "objectclass=*"
    ldap_search: No such object
    ldap_search: matched: cn=Users, dc=abc,dc=com
    Ldap search on cn=smith\, john,cn=users,dc=abc,dc=com:
    $ldapsearch -L -D "cn=orcladmin" -w "*****" -h host -p 389 -b "cn=smith\, john,cn=users,dc=abc,dc=com" -s sub "objectclass=*"
    dn: cn="smith, john",cn=users,dc=abc,dc=com
    uid: [email protected]
    employeenumber: 916963
    cn: smith, john
    registeredaddress: 512
    krbprincipalname: [email protected]
    orclsamaccountname: ABC.COM$JSmith
    sn: johnsmith
    displayname: John
    orclobjectguid: lJO0N+8H4UW/30yHukSfsw==
    orclobjectsid: AQUAAAAAAAUVAAAAohxTYWIV3XFeP55cYjwAAA==
    orcluserprincipalname: [email protected]
    objectclass: oblixorgperson
    objectclass: inetorgperson
    objectclass: orcluserv2
    objectclass: person
    objectclass: orcladuser
    objectclass: organizationalPerson
    objectclass: top
    obver: 10.1.4.0
    -> Do you see the same behavior when you use any generic LDAP browser (Ex: Apache Directory Studio) instead of ODM?
    I don't have Apache Directory Studio installed yet. I will try that later.
    -> Does the changelog for the particular synch (for the affected users) show something?
    Here is what I found in ActiveChgImp.aud
    (weeks ago)
    97426524 : Success : MODIFY : cn=smith\, john,cn=users,dc=abc,dc=com
    (Recently change - The back slach after smith was gone, and "" showed up)
    97469970 : Success : MODIFY : cn="smith, john",cn=users,dc=abc,dc=com
    -> If login to OAM is possible, can the user modify his/her profile, and does it save the changes? If it does, can you try logging in to apps?
    This user can log into OAM identity system, but when I click on "My profile" under "User manager", I got a error message "You do not have sufficient access rights".
    If I log into identity system as orcladmin, I was able to modify it and save the changes. But in OID the user is still not displayed. Same error message. When I tried to add it as administrator, I could search on it, add it, but when I press "done", it didn't show up on the admin list. The users that can be displayed in OID can be added to admin list without a problem.
    Thanks,
    Hailie

  • Data Federator Connection to R3 - java.lang.NullPointerException

    Hi.
    We are trying to add a SAP R3 DataSource in Data Federator XI 3.0 SP2.
    Test Connection gives us the following message: "The connection was established but there is no table for the given connection parameters", what it seems to be ok according to the SAP doc.
    However, when we try to get a list of the Functions or Infosets in the SAP system, an error comes because of a "java.lang.NullPointerException". Checking the application log we get the following:
    2010/03/30 12:21:27.059|<=|||0|26537104| |||||||||||||||"[LeSelect.Api.LSStatementImpl] - [Execution Thread 4]Executing query: CALL executeConnectorCommand '/TEST//TEST/user_bla/sources/draft/R3SYS', 'GET_FUNCTION_LIST * * 200'"
    2010/03/30 12:21:27.074|>=|E||0|26537104| |||||||||||||||"[LeSelect.Core.n] - [Execution Thread 4]Bad Wrapper Error:
    java.lang.NullPointerException
         at LeSelect.Wrappers.SAPR3.H.F(y:343)
         at LeSelect.Wrappers.SAPR3.H.executeCommand(y:285)
         at LeSelect.Core.B.D.R(y:151)
         at LeSelect.Core.QueryEngine.H.p.G(y:131)
         at LeSelect.Core.QueryEngine.H.p.A(y:105)
         at LeSelect.Core.QueryEngine.B.J.A(y:72)
         at LeSelect.Core.QueryEngine.Executor.y.A(y:227)
         at LeSelect.Core.QueryEngine.m.A(y:284)
         at LeSelect.Api.LSStatementImpl.lsExecuteQuery(y:314)
         at LeSelect.B.E.D.V(y:935)
         at LeSelect.B.E.K.B(y:105)
         at LeSelect.B.E.G$_A.run(y:691)"
    We registered the callback program and did all of the steps indicated for the installation, also checked the possible sources of the error according to OSS Note 1278491.
    Any idea how to solve this? Thanks.

    Hello, we have the similar problem: while connecting from Data Federator to SAP ERP we get the following error - "Wrapper /ZTEST/sources/ZTEST reported an exception which is not a WrapperException: java.lang.NullPointerException: null"
    It's necessary to install "SAP BusinessObjects Data Federator Infoset, SAP Query and ABAP Functions Connector Prototype"
    SAP BusinessObjects Web Intelligence Reporting for SAP ERP
    for connection to SAP ERP.
    Are there any ideas? Thanks

  • Cannot convert ÿØÿà of type class java.lang.String to class BFileDomain.

    Hi All,
    I am using Jdeveloper 11.1.2.3.0.
    I have a scenario of making an ADF page where I have a IMAGE field to show on the page. So,I have a table called "PRODUCT" with fields called photo with BFILE type. Now when I the data i have inserted using the DML command and i can see the path at the backend.
    However,when i am runnig my ADF page in the Filed called "PHOTO" I can only see a junk character stating 'yoyo'.
    When I click on it, it says ERROR "Cannot convert ÿØÿà of type class java.lang.String to class oracle.jbo.domain.BFileDomain".
    Your help will be appreciated ASAP.
    Regards,
    Shahnawaz

    Hi,
    did you show the id-value in the user interface as a input-component, and did the input-component include a converter?
    If yes, show the id as output-text and remove any existing converter-components.
    Best Regards

  • Cannot convert type class java.lang.String to class oracle.jbo.domain.Clob

    Cannot convert type class java.lang.String to class oracle.jbo.domain.ClobDomain.
    Using ADF Business Components I have a JSFF page fragment with an ADF form based on a table with has a column of type CLOB. The data is retrieved from the database and displayed correctly but when any field is changed and submitted the above error occurs. I have just used the drag and drop technique to create the ADF form with a submit button, am I missing a step?
    I am using the production release of Jdeveloper11G

    Reproduced and filed bug# 7487124
    The workaround is to add a custom converter class to your ViewController project like this
    package oow2008.view;
    import javax.faces.application.FacesMessage;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import javax.faces.convert.Converter;
    import javax.faces.convert.ConverterException;
    import oracle.jbo.domain.ClobDomain;
    import oracle.jbo.domain.DataCreationException;
    public class ClobConverter implements Converter {
         public Object getAsObject(FacesContext facesContext,
                                   UIComponent uIComponent,
                                   String string) {
           try {
             return string != null ? new ClobDomain(string) : null;
           } catch (DataCreationException dce) {
             dce.setAppendCodes(false);
             FacesMessage fm =
               new FacesMessage(FacesMessage.SEVERITY_ERROR,
                                "Invalid Clob Value",
                                dce.getMessage());
             throw new ConverterException(fm);
         public String getAsString(FacesContext facesContext,
                                   UIComponent uIComponent,
                                   Object object) {
           return object != null ?
                  object.toString() :
                  null;
    }then to register the converter in faces-config.xml like this
    <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee">
      <application>
        <default-render-kit-id>oracle.adf.rich</default-render-kit-id>
      </application>
      <converter>
        <converter-id>clobConverter</converter-id>
        <converter-class>oow2008.view.ClobConverter</converter-class>
      </converter>
    </faces-config>then reference this converter in the field for the ClobDomain value like this
              <af:inputText value="#{bindings.Description.inputValue}"
                            label="#{bindings.Description.hints.label}"
                            required="#{bindings.Description.hints.mandatory}"
                            columns="40"
                            maximumLength="#{bindings.Description.hints.precision}"
                            shortDesc="#{bindings.Description.hints.tooltip}"
                            wrap="soft" rows="10">
                <f:validator binding="#{bindings.Description.validator}"/>
                <f:converter converterId="clobConverter"/>
              </af:inputText>

Maybe you are looking for

  • Report and HTML content

    Hi, I have a lot of HTML formatted text stored in a blob field. The HTML code has some <b>a href</b> tags (something like this: a href = "53127" or a href = "53127_1" or a href = "53127_2" ...). I created a appIication using APEX (10gXE) and I can di

  • Shopping cart with  I1111 - Item in Transfer Process.

    Hi All, I have a shopping cart in our Production system with 5 line items, all had the status "I1111 - Item in Transfer Process". I have run report BBP_ALERT_SB_NOTTRANSFERED and 4 out of 5 items have changed the status from "I1111 - Item in Transfer

  • Satellite A215 - Fn key are no longer available after Vista reinstall

    Hi all,not. I recently re-installed Vista on my laptop and I noticed that the Function key options are no longer available for Brightness adjustments, Computer lock and such likes. If anyone has a direct link to the drivers for this that would be gre

  • Update firmwire of Nokia 6110 navigator

    Hi! I've trouble updating my firmwire to at least version 4.21 on my Nokia 6110 navigator. I have product code 0550917 and the latest possible firmwire seems to be 3.58 but I need at least 4.21 to install some software programs I need in my phone. Ca

  • Contacts copy lumia 620 with broken screen

    Hi, Is there any way to get contacts copied from lumia 620 if the screenclass is broken and you can´t use the phone? What i can do is to connect it to my pc via usb. Contacts are only in the phone not in skydrive etc.