[BUG] Loop optimize error for ^=  (64Bit Runtime1.6.0_18)

Hi,
I don't know if I should make bug report or not. I have found a strange error within a loop iteration up to Integer.MAXVALUE.
Here is the source:
public class problem64bit
      * @param args
     public static void main(final String[] args)
          System.out.println("java.version = \t"
                    + System.getProperty("java.version") + " "
                    + System.getProperty("java.vm.name") + " ("
                    + System.getProperty("sun.arch.data.model") + "Bit)");
          System.out.println("OS = \t\t" + System.getProperty("os.name") + " ("
                    + System.getProperty("os.version") + ")\n");
          booleanInvert(Integer.MAX_VALUE);
          booleanInvert(Integer.MAX_VALUE - 1);
          booleanInvert(Integer.MAX_VALUE - 2);
     private static void booleanInvert(final int max)
          System.out.println("BooleanInvert with max = " + max + " iterations");
          long timeStart = System.currentTimeMillis();
          boolean test1 = false;
          boolean test2 = false;
          boolean test3 = false;
          for (int i = 0; i < max; i++)
               test1 = !test1;
          for (int i = 0; i < max; i++)
               test2 = test2 ? false : true;
          for (int i = 0; i < max; i++)
               test3 ^= true;
          System.out.println("Time: " + (System.currentTimeMillis() - timeStart)
                    + "ms");
          if (test1 != test2 || test1 != test3)
               System.out.println("ERROR: Boolean invert\n\ttest1=" + test1
                         + "\n\ttest2=" + test2 + "\n\ttest3=" + test3);
          } else
               System.out.println("Everything as it should be!");
}The result is different between a x32JRE and a x64JRE
Results on a x32JRE:
java.version =      1.6.0_18 Java HotSpot(TM) Client VM (32Bit)
OS =           Windows 7 (6.1)
BooleanInvert with max = 2147483647 iterations
Time: 7812ms
Everything as it should be!
BooleanInvert with max = 2147483646 iterations
Time: 7469ms
Everything as it should be!
BooleanInvert with max = 2147483645 iterations
Time: 8801ms
Everything as it should be!and here are the results on a x64JRE
java.version =      1.6.0_18 Java HotSpot(TM) 64-Bit Server VM (64Bit)
OS =           Windows 7 (6.1)
BooleanInvert with max = 2147483647 iterations
Time: 13ms
ERROR: Boolean invert
     test1=true
     test2=true
     test3=false
BooleanInvert with max = 2147483646 iterations
Time: 11ms
Everything as it should be!
BooleanInvert with max = 2147483645 iterations
Time: 0ms
Everything as it should be!as you can see, the result on the x32 JRE is the expected one. The x64 JRE is very fast but there seems to be a nasty bug in the optimization code for the loops because only with Interger.MAXVALUE there is a problem.
What to do now - can anybody reproduce the error and sould i report it as a bug? Is it only in the Win(7) x64 JRE?
greetings
Edited by: GandalfTheWhite on Feb 13, 2010 6:30 AM
Edited by: GandalfTheWhite on Feb 13, 2010 6:38 AM
Edited by: GandalfTheWhite on Feb 13, 2010 6:50 AM

Hi,
well this is the first time I hear that eclipse uses its own compiler! But nothing is impossible :-) -> as I know now eclipse uses its own incremental compiler :-(.
Here are the javap codes of the two class files (minimized example!)
But I will update my eclipse with the lates stable build an have a look at the problem again. Thx for your help!
eclipse.class
Compiled from "problem64Bit.java"
public class problem64Bit extends java.lang.Object{
public problem64Bit();
  Code:
   0:     aload_0
   1:     invokespecial     #8; //Method java/lang/Object."<init>":()V
   4:     return
public static void main(java.lang.String[]);
  Code:
   0:     ldc     #16; //int 2147483647
   2:     invokestatic     #17; //Method booleanInvert:(I)V
   5:     ldc     #21; //int 2147483646
   7:     invokestatic     #17; //Method booleanInvert:(I)V
   10:     return
private static void booleanInvert(int);
  Code:
   0:     iconst_0
   1:     istore_1
   2:     iconst_0
   3:     istore_2
   4:     iconst_0
   5:     istore_3
   6:     goto     22
   9:     iload_1
   10:     ifeq     17
   13:     iconst_0
   14:     goto     18
   17:     iconst_1
   18:     istore_1
   19:     iinc     3, 1
   22:     iload_3
   23:     iload_0
   24:     if_icmplt     9
   27:     iconst_0
   28:     istore_3
   29:     goto     39
   32:     iload_2
   33:     iconst_1
   34:     ixor
   35:     istore_2
   36:     iinc     3, 1
   39:     iload_3
   40:     iload_0
   41:     if_icmplt     32
   44:     iload_1
   45:     iload_2
   46:     if_icmpeq     83
   49:     getstatic     #24; //Field java/lang/System.out:Ljava/io/PrintStream;
   52:     new     #30; //class java/lang/StringBuilder
   55:     dup
   56:     ldc     #32; //String ERROR: Boolean invert\n\ttest1=
   58:     invokespecial     #34; //Method java/lang/StringBuilder."<init>":(Ljava/lang/String;)V
   61:     iload_1
   62:     invokevirtual     #37; //Method java/lang/StringBuilder.append:(Z)Ljava/lang/StringBuilder;
   65:     ldc     #41; //String \n\ttest2=
   67:     invokevirtual     #43; //Method java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
   70:     iload_2
   71:     invokevirtual     #37; //Method java/lang/StringBuilder.append:(Z)Ljava/lang/StringBuilder;
   74:     invokevirtual     #46; //Method java/lang/StringBuilder.toString:()Ljava/lang/String;
   77:     invokevirtual     #50; //Method java/io/PrintStream.println:(Ljava/lang/String;)V
   80:     goto     91
   83:     getstatic     #24; //Field java/lang/System.out:Ljava/io/PrintStream;
   86:     ldc     #55; //String Everything as it should be!
   88:     invokevirtual     #50; //Method java/io/PrintStream.println:(Ljava/lang/String;)V
   91:     returnconsole.class
Compiled from "problem64Bit.java"
public class problem64Bit extends java.lang.Object{
public problem64Bit();
  Code:
   0:     aload_0
   1:     invokespecial     #1; //Method java/lang/Object."<init>":()V
   4:     return
public static void main(java.lang.String[]);
  Code:
   0:     ldc     #2; //int 2147483647
   2:     invokestatic     #3; //Method booleanInvert:(I)V
   5:     ldc     #4; //int 2147483646
   7:     invokestatic     #3; //Method booleanInvert:(I)V
   10:     return
private static void booleanInvert(int);
  Code:
   0:     iconst_0
   1:     istore_1
   2:     iconst_0
   3:     istore_2
   4:     iconst_0
   5:     istore_3
   6:     iload_3
   7:     iload_0
   8:     if_icmpge     27
   11:     iload_1
   12:     ifne     19
   15:     iconst_1
   16:     goto     20
   19:     iconst_0
   20:     istore_1
   21:     iinc     3, 1
   24:     goto     6
   27:     iconst_0
   28:     istore_3
   29:     iload_3
   30:     iload_0
   31:     if_icmpge     44
   34:     iload_2
   35:     iconst_1
   36:     ixor
   37:     istore_2
   38:     iinc     3, 1
   41:     goto     29
   44:     iload_1
   45:     iload_2
   46:     if_icmpeq     86
   49:     getstatic     #5; //Field java/lang/System.out:Ljava/io/PrintStream;
   52:     new     #6; //class java/lang/StringBuilder
   55:     dup
   56:     invokespecial     #7; //Method java/lang/StringBuilder."<init>":()V
   59:     ldc     #8; //String ERROR: Boolean invert\n\ttest1=
   61:     invokevirtual     #9; //Method java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
   64:     iload_1
   65:     invokevirtual     #10; //Method java/lang/StringBuilder.append:(Z)Ljava/lang/StringBuilder;
   68:     ldc     #11; //String \n\ttest2=
   70:     invokevirtual     #9; //Method java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
   73:     iload_2
   74:     invokevirtual     #10; //Method java/lang/StringBuilder.append:(Z)Ljava/lang/StringBuilder;
   77:     invokevirtual     #12; //Method java/lang/StringBuilder.toString:()Ljava/lang/String;
   80:     invokevirtual     #13; //Method java/io/PrintStream.println:(Ljava/lang/String;)V
   83:     goto     94
   86:     getstatic     #5; //Field java/lang/System.out:Ljava/io/PrintStream;
   89:     ldc     #14; //String Everything as it should be!
   91:     invokevirtual     #13; //Method java/io/PrintStream.println:(Ljava/lang/String;)V
   94:     returnas far as i can see... there a some differences but more could not make out of it.
greeting gandalf
ps here the source for the smaler sample
public class problem64Bit
      * @param args
      *            Arguments
     public static void main(final String[] args)
          booleanInvert(Integer.MAX_VALUE);
          booleanInvert(Integer.MAX_VALUE - 1);
     private static void booleanInvert(final int max)
          boolean test1 = false;
          boolean test2 = false;
          for (int i = 0; i < max; i++)
               test1 = !test1;
          for (int i = 0; i < max; i++)
               test2 ^= true;
          if (test1 != test2)
               System.out.println("ERROR: Boolean invert\n\ttest1=" + test1
                         + "\n\ttest2=" + test2);
          } else
               System.out.println("Everything as it should be!");
}Edited by: GandalfTheWhite on Feb 16, 2010 11:33 AM

Similar Messages

  • How to get the last error for while loop?

    How to get the last error for while loop? I just want transfer the last error for while loop, but the program use the shift register shift all error every cycle.

    What do you mean by "get" and "transfer"?
    If the shift register is not what you want, use a plan tunnel instead.
    Typically, programmers are interested in the first, not last, error.
    Can you show us your code so we have a better idea what you are trying to?
    LabVIEW Champion . Do more with less code and in less time .

  • [svn] 3722: Bug: BLZ-260 - Error message for a legacy =3. 0 client poll failing against a =3.1 server is unclear

    Revision: 3722
    Author: [email protected]
    Date: 2008-10-17 14:04:59 -0700 (Fri, 17 Oct 2008)
    Log Message:
    Bug: BLZ-260 - Error message for a legacy <=3.0 client poll failing against a >=3.1 server is unclear
    QA: Yes
    Doc: No
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-260
    Modified Paths:
    blazeds/trunk/modules/common/src/flex/messaging/errors.properties
    blazeds/trunk/modules/core/src/flex/messaging/FlexSession.java
    blazeds/trunk/modules/core/src/flex/messaging/client/FlexClient.java

    your problem:
    Missing class: oracle.tip.adapter.jms.JmsManagedConnectionFactory
    Dependent class: oracle.tip.adapter.fw.wsdl.WSDLUtils
    Loader: oracle.bpel.common:10.1.3
    Code-Source: /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar
    Configuration: <code-source> in /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml
    It happens when server is custom installed, try to reinstall it as full version and problem should disappear otherwise your need another full installation to retrieve and replace orabpel.jar file from (or maybe more)

  • This bug has been around for over a year: SecurityError: Error #2123: Security sandbox violation

    Hi,
    The bug of 'SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: file:///xxx/xxx.swf cannot access rtmfp://fms4.acrobat.com/cocomo/na2-sdk-xxx/xxx. No policy files granted access.' was first reported in lccs forum over a year ago:
    http://forums.adobe.com/message/2803074
    But the bug is still around. The bug can be generated by calling BitmapData.draw() on a flash.media.Video object which is attached to a p2p stream. It looks like the solution is to have the publisher to call:
    send("|RtmpSampleAccess", true, true)
    on the NetStream object _before_ the subscriber calls NetStream.play(), in order to give the permission to subscribers for audio and video streams.
    In lccs library, the above permission authorisation happens in WebcamPublisher:
    protected function onNetStatus(p_evt:NetStatusEvent):void
    if (p_evt.info.code=="NetStream.Connect.Success") {
    setTimeout(sendSnapShotPermission, 500);
    _stream.send("|RtmpSampleAccess", true, true);
    protected function sendSnapShotPermission():void
    _stream.send("|RtmpSampleAccess", true, true);
    but it doesn't help the problem. In fact, it is not clear to me when this 'snap shot permission' is sent to the subscriber.
    One more note: This is not a critisism for the lccs development quality, but rather a question on how ready lccs is for production use. After encountering this bug, I had to go through the lccs code (the open source parts), and found out that the library is not really written, well, carefully, and it is full of temporary quick-n-dirty fixes.
    For instance in the above example, sendSnapShotPermission() is called after 500 milliseconds, probably to allow something to happen before calling the method, but how can you be sure that it will happen in 500 milliseconds? Probably,an event listener should have been used. Immediately in the next line, we see:
    _stream.send("|RtmpSampleAccess", true, true);
    which is a duplicate of sendSnapShotPermission(). many examples like this can be found throughout the library.
    Aureliano

    Hi Nigel,
    Two questions:
    1. When the publisher sends the access permission to the subcriber by:
    netStream.send("|RtmpSampleAccess", true, true)
    , on the subscriber side, what event or function can handle the guaranteed receipt of the access permission? Currently it is possible to draw the incoming stream video upon receiving NetStream.Play.Star and waiting for 5 seconds or so:
    public class MyWebcamSubscriber extends WebcamSubscriber {
    override protected function layoutCameraStreams():void
    // trying the event listener seems to work here.
    _streamManager.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
    override protected function onNetStatus(e:NetStatusEvent):void
    super.onNetStatus(e);
    case "NetStream.Play.Start":
    setTimeout(function():void {
    // draw the video from the incoming stream here.
    }, 5000);
    The questions is, which event can let the subscriber know that it has the access permission to the video stream?
    2. In WebcamPublisher, why is that the access permission is sent 3 times?
    a. Once on receiving NetStream.Connect.Success with 0.5 second delay, as in below.
    b. Once immediately upon receiving NetStream.Connect.Success, as in below.
    protected function onNetStatus(p_evt:NetStatusEvent):void
    if (p_evt.info.code=="NetStream.Connect.Success") {
    setTimeout(sendSnapShotPermission, 500);
    _stream.send("|RtmpSampleAccess", true, true);
    protected function sendSnapShotPermission():void
    _stream.send("|RtmpSampleAccess", true, true);
    c. Once in onConnectionTypeChange() with 2 seconds delay:
    protected function onConnectionTypeChange(p_evt:StreamEvent):void
    if ( _streamManager.isP2P) {
    _stream= new NetStream(_connectSession.sessionInternals.session_internal::connection as NetConnection,NetStream.DIRECT_CONNECTIONS);
    setTimeout(sendSnapShotPermission, 2000);

  • I cant download the apple loops and updates for garageband. It keeps saying error occurred while downloading the updates (102). I dont know what to do?

    my macbook 13" i just got in. Says i need to update and download the apple loops.
    Error 102 keeps coming up.
    Ive tried restarting the computer and everything...and i have the internet pages closed and have full internet reception.
    HELP???

    It might be a transitory problem with too much traffic at the AppStore. Try again later.
    Or you may have firewalls or Antivirus filters interfering, or other non-standard start-up items and preferences panes. If the error persists, boot into Safe Mode and try to update in this mode, see:
    Mac OS X: Starting up in Safe Mode
    This will prevent non-standard start-up items, kernel extensions, etc from being loaded and interfering.

  • Bug report: Possible reason for Creative Cloud sync error

    Perhaps this helps someone in resolving/eradicating some "unexplained" sync errors.
    I recently had a persistent sync error for five third-party images in a folder. It made no difference if I transferred the images via another method to my second computer: the error then simply occurred on both computers.
    All the files are okay (not corrupt) but after some investigation, I discovered they had something in common:
    All files had a creation date of 1 January 1970 01:00
    (German OS-X 10.9.1 system, so probably 00:00 GMT, i.e. Unix epoch time).
    Resetting the creation date via the terminal to a recent date, e.g.
    > touch -t 201402171000 filename.jpg
    resolved the problem and the files then synced.
    I hope that helps for future versions of CC.
    Best regards,
    jools

    The attached patch for db-4.7 makes two changes:
      it allows enough for each bucket to have the configured number of threads, and
      it initializes env->thr_nbuckets, which previously had not been initialized.
    Please let us know how it works for you.
    Regards,
    Charles

  • Blue Screen Error for Windows 7 Home Basic 64 Bit

    I have a Sony Vaio E Series with WINDOWS 7 64bit home basic preinstalled. It worked perfectly fine for 2 yrs until last month, I needed to replace the hard drive due to bad sectors. Now, after a month of replacing my hard drive fresh from
    Sony Center, I decided to do a dual boot (install another OS - Windows 8.1 pro) on a separate partition. Everything is averagely fine. But 2 nights ago, I encounter a blue screen error for WIN 7 (my pre installed one). It happened the second time, so I started
    it in safe mode and did a system restore. I don't know if it will prevent future occurence of blue screen, but to make sure, I reinstall my factory default drivers using Vaio CARE... Pls help.
    PS: I have not encountered BLUE SCREEN error in Windows 8.1 yet. Is it OS specific? Here's the error the second time, it happened on my Windows 7:
    Blue screen error for Windows 7 home basic
    Problem signature:
      Problem Event Name:    BlueScreen
      OS Version:    6.1.7601.2.1.0.768.2
      Locale ID:    13321
    Additional information about the problem:
      BCCode:    1000007e
      BCP1:    FFFFFFFFC0000005
      BCP2:    FFFFF80002EE6B80
      BCP3:    FFFFF880035F4DC8
      BCP4:    FFFFF880035F4620
      OS Version:    6_1_7601
      Service Pack:    1_0
      Product:    768_1
    Files that help describe the problem:
      C:\Windows\Minidump\083014-31964-01.dmp
      C:\Users\GARIBALDI\AppData\Local\Temp\WER-76456-0.sysdata.xml
    Read our privacy statement online:
      http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
    If the online privacy statement is not available, please read our privacy statement offline:
      C:\Windows\system32\en-US\erofflps.txt

    Hi Garibaldi11,
    If you are not equipped to debug this problem, you should use some basic troubleshooting techniques.
    •Make sure you have enough disk space.
    •If a driver is identified in the bug check message, disable the driver or check with the manufacturer for driver updates.
    •Try changing video adapters.
    •Check with your hardware vendor for any BIOS updates.
    •Disable BIOS memory options such as caching or shadowing.
    Bug Check 0x7E: SYSTEM_THREAD_EXCEPTION_NOT_HANDLED
    http://msdn.microsoft.com/en-us/library/windows/hardware/ff559239(v=vs.85).aspx
    Bug check 0x1000007E has the same meaning and parameters as bug check 0x7E
    Alex Zhao
    TechNet Community Support

  • Could not load file/URL (file not found) error for JNLP file

    I am completely baffled in trying to figure out why I am getting the following error for some JNLP files but not others:
    Error: could not load file/URL specified: C:\Users\tom\AppData\Local\Temp\javaws2
    java.io.FileNotFoundException: C:\Users\tom\AppData\Local\Temp\javaws2 (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at java.io.FileInputStream.<init>(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)I have Googled around this forum and elsewhere, and have seen reports that this error is IE-specific, and seems to have something to do with no-cache headers being sent, or with the client browser's cache being full or turned off (which is not my case). I saw the information in the JavaWS FAQ, which recommended turning off security constraints for the JNLP's URI. I tried that, and it didn't help. One of the very baffling things is that I have created several variations of the JNLP file, with varying combinations of jars and property resources, and some combinations always work while other combinations never work. Here's an example:
    <jnlp spec="1.0+" codebase="$$codebase">
       <information>
          <title>demo app</title>
          <description>illustrates weird bug</description>
       </information>
       <resources>
          <j2se version="1.5+"/>
          <jar href="randomFile.jar"/>
          <property name="xxx" value="xxxx"/>
          <property name="swing.metalTheme" value="steel"/>
       </resources>
    </jnlp>The above file always fails with the error shown at the top of this message. However, if I remove either of the two properties, it works fine. And I have created other variations with lots of properties, some of which work. All of these variations are in the same directory in the war file, served by the exact same servlet (a slightly modified version of the jnlp.sample.servlet.JnlpDownloadServlet provided with JDK 1.6.0_3). Assuming that a no-cache header is the problem, what on earth could be causing some JNLP files to always be served with a no-cache header, while others are never served with a no-cache header?
    On a related note, any recommended debugging techniques for seeing what headers are being transmitted? I tried adding a simple check for a "debug=true" parameter in the servlet that causes it to set the content type to "text/plain" instead of JNLP, and that allows me to see (rather than execute) the JNLP XML that's being returned, but it doesn't show me the HTTP headers that are being sent back. If any caching headers are being set, I think it must be being set by the servlet container itself, as it's nothing being set in the servlet code that I can see. So I don't see any way on the server side Java code to output or log the actual HTTP response (or is there?). Any tips in that regard much appreciated.
    Edited by: TomC125468 on Aug 19, 2009 1:35 PM

    Hi Luca-Sanna,
    Thanks for the response. Re browsers, yes, it fails in IE but it succeeds in Firefox. The info on the JavaWS FAQ and other places all seem to indicate that it's an IE issue concerning handling of the cache-control headers.
    I should check in my webserver forum (Sun WebServer 7) to see about logging options. Sniffing on the client side is not possible, as my app is required to use HTTPS exclusively, and unfortunately that also precludes a telnet GET request.

  • Error while sending the mail( Database error for ADDR_PERS_COMP_COMM_GE)

    Hello guys,
    I am facing the error    " Database error for <ADDR_PERS_COMP_COMM_GET> <0> " as a pop-up message.
    below is my program.
    types: BEGIN OF t_p0002,
            pernr type PERSNO,       "Personnel number
            nachn TYPE PAD_NACHN,    "Last Name
            VORNA TYPE PAD_VORNA,    "First Name
            gbdat TYPE gbdat,        "Date of Birth
          END OF t_p0002.
    *******************Data of an object which can be changed**************************************
    data   S_maildata type SODOCCHGI1.
    *******************Text field length 255: texts***********************************************
    data : IT_MAILTXT1 type table of SOLISTI1 ,  "Internal table will contain texts of mail header
           WA_MAILTXT1 TYPE SOLISTI1,
           IT_MAILTXT2 type table of SOLISTI1 ,  "Internal table will contain texts of contents in the mail
           WA_MAILTXT2 TYPE SOLISTI1.
    *******************Structure of the API Recipient List*****************************************
    data : IT_MAILREC type table of SOMLRECI1,
           WA_MAILREC TYPE SOMLRECI1.
    DATA : it_pa0002 TYPE TABLE OF t_p0002,
           wa_pa0002 type t_p0002.
    data  Header_text type c LENGTH 15.
    CONSTANTS  content_text type c LENGTH 35 VALUE 'Tomorrow is the birthday of'.
    *******************Event start of selection***************************************************
    start-of-selection.
      PERFORM get_birthdate.   " will give birthday details
      PERFORM document_details. " will give text and mail details
    *&      Form  get_birthdate
          text : subroutine to get employee birthdate details
    form get_birthdate.
      data : l_date like sy-datum.
      refresh it_pa0002.
      l_date = sy-datum + 1.
      SELECT pernr nachn vorna gbdat
        from pa0002
        INTO TABLE it_pa0002
        where gbdat = '19650302'.
    ENDFORM.                    "get_birthdate
    *&      Form  document_details
          text : subroutine to get texts and mail details.
    FORM document_details.
      CLEAR: Header_text,
              wa_MAILREC.
      REFRESH  IT_MAILREC.
      S_maildata-obj_name = 'Birthday Reminder'.
      s_maildata-obj_descr = 'Birthday Reminder'.
      s_maildata-obj_langu = sy-langu.
      READ TABLE IT_MAILTXT1 INTO WA_MAILTXT1
      WITH KEY WA_MAILTXT1-line .
      WA_MAILTXT1-line = 'Birthday Reminder'.
      append WA_MAILTXT1 TO IT_MAILTXT1.
      CLEAR WA_MAILTXT1.
      LOOP at it_pa0002 INTO wa_pa0002.
        READ TABLE IT_MAILTXT2 INTO WA_MAILTXT2
         WITH KEY WA_MAILTXT2-line .
        CONCATENATE content_text ' ( ' wa_pa0002-pernr ' ) ' wa_pa0002-nachn wa_pa0002-vorna
        INTO  WA_MAILTXT2 SEPARATED BY ' '.
        append WA_MAILTXT2 TO IT_MAILTXT2.
        CLEAR WA_MAILTXT2.
        CLEAR wa_pa0002.
      ENDLOOP.
       LOOP AT IT_MAILREC INTO WA_MAILREC.
      WA_MAILREC-RECEIVER = 'Any mail id'.
      WA_MAILREC-rec_type = 'U'.
      append WA_MAILREC TO IT_MAILREC.
       ENDLOOP.
    ********************Function Mofule:To Send new Document*****************************************
      CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
      EXPORTING
      document_data = S_maildata
      DOCUMENT_TYPE = 'RAW'
      PUT_IN_OUTBOX = ' '
      COMMIT_WORK = 'X'
    IMPORTING
    SENT_TO_ALL =
    NEW_OBJECT_ID =
      tables
      OBJECT_HEADER = IT_MAILTXT1
      OBJECT_CONTENT = IT_MAILTXT2
    CONTENTS_HEX =
    OBJECT_PARA =
    OBJECT_PARB =
      receivers = IT_MAILREC
       EXCEPTIONS
       TOO_MANY_RECEIVERS = 1
       DOCUMENT_NOT_SENT = 2
       DOCUMENT_TYPE_NOT_EXIST = 3
       OPERATION_NO_AUTHORIZATION = 4
       PARAMETER_ERROR = 5
       X_ERROR = 6
       ENQUEUE_ERROR = 7
       OTHERS = 8
      IF sy-subrc = 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    "document_details
    After I pressed the exit button the program is getting terminated but still this mail is comming to sost transaction code.
    If I will comment the message code which is after sy-subrc the popup will not come and program will work without any interruption.
    Can anybody please solve this problem?

    Resolved

  • Mail does not create new emails based on the highlighted mailbox, but rather the receiving mailbox of whatever individual email happens to be highlighted. This was not the case prior to Lion. Is this a bug or an error on my part?

    Mail does not create new emails based on the highlighted mailbox, but rather according the receiving mailbox of whatever individual email happens to be highlighted. This was not the case prior to Lion. Is this a bug or an error on my part? (I do have the setting for creating new emails from the highlighted mailbox checked.)

    The questions about time was not only because of thinking about the Time Machine, but also possible impact on recognizing which messages remaining on a POP server (doesn't apply to IMAP) have been already downloaded. In the Mail folder, at its root level, in Mail 3.x there is a file named MessageUidsAlreadyDownloaded3 that should prevent duplicate downloading -- some servers may not communicate the best with respect to that, and the universal index must certainly be involved in updating that index file. If it corrupts, it can inhibit proper downloading. However, setting the account up in a New User Account and having the same problem does not point that way, unless your POP3 server is very different from most.
    That universal index is also typically involved when messages are meant to be moved from the Inbox to another mailbox -- in Mail 3.x the message does not move, but rather is copied, and then erased from the origin mailbox. That requires updating the Envelope Index to keep track of where the message is, and should keep track of where it is supposed to have been removed after the "Move".
    Ernie

  • What are the best optimization settings for Logic 9....

    Hey guys,
    I am running Logic 9 on a Macbook Pro 2.53GHz, Intel Core 2 Duo, 4GB RAM, OSX 10.6.4, with a AK1 soundcard. And I was wondering what the best optimization settings for this setup are?
    I have been having a few issues with drop outs in sound during playback, which is also carried over when i bounce the audio. I did some research and found my latency settings needed to be higher, so I set the I/O buffer size to 512. I am also running all samples from the local hdd, I was thinking maybe put the samples on an external drive. I also changed Logic 9 to 64bit mode.
    Does anyone know if this is right and anything else I need to do with Logic and/or the AK1??

    First, return to 32-bit mode. 64 bit still has some ß-issues and some features that are not working/disabled, and the only perk of 64-bit is that Logic can adress more than 4 GB RAM, which you don't have anyway.
    Samples on the startup drive is not a problem, unless you start using really big third party sample libraries, or zillions of EXS instruments. Some of the Logic content insists on residing on the startup disk anyway, better leave that where it is.
    If you have an external, use that to store your Logic projects, or, in other words, make it your recording disk (as recordings are stored in the project folder). You do record audio too, I assume? Anyway, if you get an external, make it a FireWire one, not USB. FireWire is much easier on the CPU, and +for audio (and sample-) streaming+ more reliable and faster than USB.
    If dropouts you hear during playback also show up in the (offline?) bounce, it is probably not a buffer issue, as the buffer is irrelevant for bouncing offline.
    So how many tracks and what kind of tracks in this project? Which plugins and how many instances of them?

  • "No connectivity with the server" error for one document but not the other, in the same document library

    We have a number of users all of a sudden getting "No connectivity with the server.  The file 'xxx' can't be opened because the server couldn't be contacted." errors trying to open MS Office docs (Word, Excel, etc.) in SharePoint with IE,
    just by clicking the link and selecting the "Read Only" option.  If they select the "Check Out and Edit" option, they can open the document no problem.  One of my customers gets the error on one document but not the other, in
    the same document library!  The older document (a weekly report) was copied and renamed as per standard procedure.  She can read the older document, but not the new one.
    It is definitely a profile issue, as other people have logged onto the machines of the users with problems and do not get the error.  We have also renamed people's c:\user profile folders and the corresponding Profilelist registry entry and the newly
    created profile does not experience the error for these people.  Renaming the profile back restores all their personal settings but the error reappears.  When we copied the old profile's folder structure into the new profile, many of the user settings
    were restored (but not all, like Dreamweaver settings) but the error did not appear.  We think that the system folders files (like AppData) weren't totally copied over so we're going to run another test using xcopy.  We are rebooting between
    logons to make sure all files are unlocked.
    The laptops and computers are mainly 32bit, Win7 Enterprise running IE9 and Office 2010 Professional Plus, but there's a few 64bit machines as well. The SharePoint farm has 1 WFE, 1 App Server running search and CA, and a shared database server running SQL
    2005 SP4.  SharePoint is 64bit MOSS 2007 with the latest CU.
    We've checked the logs on the client as well as on the server and there aren't any helpful entries.  We've also run Process Monitor, also with no helpful entries.  We're planning to run something like Fiddler next.
    It's not everyone, because there are many people are accessing the SharePoint system and the same files.  It is also not a permission thing, as we've tested by giving the users elevated permissions with no changes.  One person experiencing
    the errors is a Site Collection Admin.  That same person ran a test where I coped a simple Excel file into a Document Library which contained a problem file.  They were able to open it Read Only no problems that day, but the next day, the same
    file gave them an error.   In their case, they usually get a "xxx is not checked out" error and only occasionally get the "No connectivity with the server" error.
    We've tried lots of things including:
    Deleting IE cache
    Deleting SharePoint Drafts and webcache folder contents
    Running IE without add-ons
    Upgrading and Downgrading IE
    Uninstalling and re-installing IE
    Reinstalling our SSL certs
    Repairing Office
    Removing and then adding back in the Microsoft Office "Microsoft SharePoint Foundation Support" Office Tool 
    Deleting all HKLM and HKLU Office registry settings
    Toggling IE Compatibility Settings
    Toggling the IE Automatic Logon option
    Toggling the location of checked out files
    Adding the site in the trusted sites list
    Adding the site to the WebClient\Parameters registry locations
    Making sure the WebClient service is started
    Rebooting the machine (lol :)
    This is becoming a serious issue, not just because of the inconvenience for the users having to check out every document they want to read, but we have some files with macros that open up other documents to run which are now failing.  There aren't
    "check out" workarounds for some of those macros.
    We're planning to open a ticket with Microsoft, but I'm throwing it out here first in case someone has run into this before, or may have some suggestions on what to try next.  Thanks!
    -Richard.
    PS  I think this needs to be in the "General" forum instead?

    It took three days of dedicated troubleshooting, but I have found the cause of the errors, and a couple of fixes.  It helped tremendously that my own machine was throwing the error.  I have scheduled a couple of users to work with me to test the
    various fixes, to see which one works best, so the story isn't over yet.
    I had backed up my c:\users profile folder and HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList registry key so I could restore my profile after I was done.  I made a copy of the profile folder and was using that for awhile,
    but then made another copy where I had deleted a lot of content out of it so that the copies would go faster.  Since a newly created profile did not have errors, I was trying to copy back as much of the profile as possible to make it easier for our users
    to get back to work.  Instead of blowing away their profile and starting from scratch (which we know worked) I wanted to narrow down what was causing the error and just skip that from the restore.  The concept was to keep as much as the users profile
    in tact (application settings, etc.) not just restoring their desktop and My Documents folders.
    When we first tested a few weeks ago, simply copying the folder contents didn't reproduce the error.  I then tried xcopy, but got the "can't read file" error.  Then I tried robocopy, and ran into the "junction" problem. 
    I went back to xcopy, and found that placing the excludes.txt file in the windows/system32 folder eliminated the error.
    So the process went as follows: 
    Reboot and log into the machine as another user
    Delete the profile and associated registry key
    Reboot and log into the machine as the affected user, creating a new profile, and there is no error
    Reboot and log in as the other user
    xcopy the contents of the skinned-down backed-up profile to the newly created profile
    Reboot and log in as the affected user, and the error occurs
    Repeat the above, but add items in the excludes.txt file to see what, when eliminated, causes the error not to appear in the last step
    I eventually found that skipping the c:\users\<profile folder>\appdata\local\Microsoft\office\14.0 folder allowed the entire profile to be copied over without the error occurring.  That was strange, because we've cleaned out the cache folders
    before which didn't fix the issue. 
    So I went about it the opposite way, and tried to delete the 14.0 folder from the restored profile, and after reboot, the error still occurred.
    What eventually worked was deleting the 14.0 folder and copying over a 14.0 folder from a newly created profile!
    One way to do this was to:
    Reboot and log in as another user
    Rename the c:\users profile folder
    Rename the appropriate [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList] registry key
    Reboot and log in as the affected user, confirm that there is no error
    Reboot and log in as the other user
    Copy the C:\Users\<profile folder>\AppData\Local\microsoft\Office\14.0 folder to the other user's desktop
    Delete new profile folder, and rename the backup to be the production folder
    Delete the C:\Users\<profile folder>\AppData\Local\microsoft\Office\14.0 folder and then paste the 14.0 copy from the desktop
    Reboot and log in as the affected user, confirm that there is no error
    We've tried this on a couple machines and it works.  I had to run Windows Explorer as Administrator to access the other profile's folders.
    We've also successfully copied a 14.0 folder created by one profile on one affected computer over another profile's folder on another computer, eliminating the error, so we're trying that first, as that is fewer steps.
    We may attempt to script this, but the self-help instructions are only 5 lines long:
    Reboot and log into the affected computer with another account
    Go to <link to location of 14.0 folder on network> and copy the 14.0 folder
    Run Windows Explorer as Administrator
    Go to c:\users\<profile folder>\appdata\local\microsoft\office and delete the 14.0 folder, and paste the copied 14.0 folder (trying to overwrite it makes Win7 want to merge the folders)
    Reboot and log into your normal account, and confirm the error is gone
    I'll come back and report after we go into the field with this fix, but after the few tests, I am cautiously optimistic that this is it.

  • With the new seession in IE gives session error for new user

    Hi,
    In new opened IE if i tries to login with new user. It is switching b/w the files in the status bar(ie., Header1.jsp and ListServicecall.jsp simultaneously) and at end the session error result will arise.
    But for the second time if i login with the same username/password the page is displaying properly. please Can any one help out.
    Thanks,
    Satish R

    First time if the user logins to IE in the HP Service Desk(SD) page. Some of the pages will iteratively loops and give a session expires error. After that the user logins to the page with no error.
    If i create a new copy of the data from the existing folder and if i try to run then the result will be error for that folder also.
    ie., Assume folder 123 where, first time for every new login user the session expire error occurs. later they'll login without any problem.
    If i rename the folder 123 to xyz/create new copy and rename then, the same problem repeats. First time for the new user it will give session expire error and later he can login to the HPSD page with no error.
    Is it require cookies to be programmed in that program.
    Regards,
    Satish R

  • [svn:fx-trunk] 5353: * Added compiler error for Halo Navigators containing non-Containers

    Revision: 5353
    Author: [email protected]
    Date: 2009-03-17 12:59:06 -0700 (Tue, 17 Mar 2009)
    Log Message:
    * Added compiler error for Halo Navigators containing non-Containers
    as their first level child.
    tests Passed: checkintests
    Needs QA: YES
    Needs DOC: NO
    Bug fixes: SDK-19317
    API Change: NO
    Reviewer: Pete F.
    Code-level description of changes:
    compiler/mxml/lang/StandardDefs.java
    Added getContainerPackage(), isHaloNavigator(), CLASS_VIEWSTACK,
    CLASS_ACCORDION, and PACKAGE_MX_CONTAINERS.
    compiler/mxml/builder/ComponentBuilder.java
    Modified
    ComponentBuilder.ComponentAttributeHandler.nestedDeclaration() to
    report an error if a non-container is declared as a child of a
    Halo navigator.
    compiler_en.properties
    Added HaloNavigatorsRequireHaloContainerChildren message.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-19317
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.jav a
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties

  • Modifying Memory Optimization parameter for BPEL process in SOA 11g

    Hello
    I have turned on memory optimization parameter for my BPEL process in the composite.xml (11g)
    this is what I have in composite.xml:
    <property name="bpel.config.inMemoryOptimization">false</property>
    How do we modify this parameter in the EM console at runtime? I changed this property to "true" using the System MBean browser, but it wasn't taking effect. I thought the SOA server must be restarted (similar to what we used to do in 10g). But when I restart the SOA server, the parameter goes back to whatever the value was in the composite.xml ignoring the change I made in the System MBean browser
    Please share your thoughts.
    Thanks in advance.
    Raja

    Deploying a newer version is not an option, as the endpoints could change (not sure if it would in 11g, but in 10g it does) and also, our service consumers will be pointing to the older version.As mentioned above, if clients are using URL without version then call will be forwarded to default version of composite internally. No manual tweaking required for this. Just make sure that while deploying the new version you are marking it as default.
    Besides, we report on service metrics and having multiple versions just complicates things.Not at all. If you are not using versioning feature, you are really under utilizing the Oracle SOA 11g. Remember that metrics can be collected for a single composite with same effort, irrespective of the number of composite versions deployed. Only few product tables refer the version while storing composite name and rest all use only the composite name without version. I do not know how you are collecting service metrics but we use DB jobs for same it works perfectly with any number of composites having multiple versions deployed.
    The idea is to do some debugging and collect audit trail in case there is a production issue by disabling inMemoryOptimization parameter. This is a live production environment and deploying whenever we want is not even an option for us, unfortunately. Why not debug by increasing log level. Diagnostic logs are the best option to debug an issue even in production. For getting audit trail you may re-produce the issue in lower environments. I think no organization will allow re-deployments just for debugging some issue in production until and unless it is too critical issue to handle.
    Does this not supported in 11g? if it isn't, it does seem like a bug to me. You may always go ahead and raise a case with support.
    Regards,
    Anuj

Maybe you are looking for

  • How to turn your imac into just a external monitor

    Hi I was told I could use my IMAC 27" late 2009 as a external monitor for my Mac Book Pro I just got.  I bought a thunderbolt cable but it doesnt work.  Is there a command I need to use on the imac to act as a external monitor ?

  • HP Officejet 6600

    My printer was working fine and I replaced the black ink cartrage and I get an error message that says   "There is a problem with the printer or ink system.  Turn printer off, then on if problem presists contact HP.  I have tried  replacing all of th

  • ORA-02303 when creating database on Exadata using template with BP12

    I get ORA-02303 when creating a RAC database on Exadata. Logs indicate that error happened when applying bundle patch BP12 and probably when running following script: /u01/app/oracle/product/11.2.0.4/dbhome_1/rdbms/admin/catsnap.sql CREATE OR REPLACE

  • Customize the selected answer looking and customize radio btns.

    Hi Everybody, I am new to Adobe Captivate, I am using Captivate 6, I am trying to make a course. On quiz part, if I have two answers for one question, I want to have a selected state effect on the question that user select (like the orange one in the

  • Additional SAP-MI environment via client copy

    Hi there. We need to set up an additional SAP-MI environment for UAT (User acceptance test). Can this be done by creating a new client (and using client copy function) within the existing MI instance? If so, what are the implications to J2EE engine?