Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4906728

REGRESSION: 2 Regression-test ImageTransferTests tests failed

XMLWordPrintable

    • tiger
    • x86, sparc
    • linux, solaris_9, solaris_10
    • Verified



      Name: vsR10238 Date: 08/14/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b14,JDK1.5.0-b13
      Testbase : Regression-test
      Platform[s] : RedHat Advanced Server 2.1 (Gnome), Solaris 9 (sparc) (CDE), Solaris 10 (x86) (GNOME)
      switch/Mode : -client, -d64, -server
      Falling test[s]:
               java/awt/Clipboard/ImageTransferTest/ImageTransferTest.html
               java/awt/dnd/ImageTransferTest/ImageTransferTest.html

      These 2 Regression-test tests fail with JDK1.5.0-b14, b13 on Linux, Solaris platforms.

      image/vnd.wap.wbmp and image/bmp are not transferred properly.

      The tests pass with JDK1.4.2-b28, JDK1.5.0-b12



      Test source location:
      =====================
      /java/re/jdk/1.5.0/promoted/latest/ws/j2se/test/java/awt/Clipboard/ImageTransferTest/ImageTransferTest.html
      /java/re/jdk/1.5.0/promoted/latest/ws/j2se/test/java/awt/dnd/ImageTransferTest/ImageTransferTest.html

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b14/regtest/x86/sol10_x86_gnome_linux-18/workDir/test/java/awt/Clipboard/ImageTransferTest/ImageTransferTest.jtr
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b14/regtest/x86/sol10_x86_gnome_linux-18/workDir/test/java/awt/dnd/ImageTransferTest/ImageTransferTest.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its variables)

      --- script start ---
      #!/bin/sh

      RESULT_DIR=`pwd`
      WORK_DIR=$RESULT_DIR/workDir/test
      REPORT_DIR=$RESULT_DIR/reportDir
      JT_HOME="/net/linux-15/export/home/java/jct"
      JAVA_HOME="/net/linux-15/export/home/java/jdk1.5.0/x86"
      TEST_BASE_PATH="/net/linux-15/export/home/java/regtest/test"

      TESTWITH=$JAVA_HOME
      TESTJAVA=$JAVA_HOME

      JTOPTS="-client"
      TESTVMOPTS="-client"

      CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar:$JT_HOME/jemmy/jemmy.jar"

      export JAVA_HOME
      export JT_HOME
      export TESTWITH
      export CLASSPATH

      mkdir -p $WORK_DIR/scratch 2>&1
      mkdir -p $WORK_DIR/jtData 2>&1
      mkdir -p $REPORT_DIR 2>&1

      #rm $WORK_DIR/jtData/ResultCache.jtw 2>&1

      cd $WORK_DIR/scratch

      $JAVA_HOME/bin/java -cp $CLASSPATH $JTOPTS -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-18" -Dprogram=jtreg com.sun.javatest.regtest.Main -a -v default -batch -params -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" "$TEST_BASE_PATH/java/awt/Clipboard/ImageTransferTest/ImageTransferTest.html"

      --- script end ---


      Test output (jtr part):
      =======================
      ----------System.out:(0/0)----------
      ----------System.err:(76/4263)----------
      PRODUCER: lost clipboard ownership
      received message: BA
      testing native image format image/png...
      PRODUCER: lost clipboard ownership
      received message: Y
      testing native image format image/jpeg...
      PRODUCER: lost clipboard ownership
      received message: Y
      testing native image format image/x-png...
      PRODUCER: lost clipboard ownership
      received message: Y
      testing native image format image/vnd.wap.wbmp...
      java.io.IOException: Registered service providers failed to encode BufferedImage@cb6009: type = 2 DirectColorModel: rmask=ff0000 gmask=ff00 bmask=ff amask=ff000000 IntegerInterleavedRaster: width =
      100 height = 100 #Bands = 4 xOff = 0 yOff = 0 dataOffset[0] 0 to image/vnd.wap.wbmp
      at sun.awt.datatransfer.DataTransferer.imageToStandardBytes(DataTransferer.java:1973)
      at sun.awt.motif.MDataTransferer.imageToPlatformBytes(MDataTransferer.java:156)
      at sun.awt.datatransfer.DataTransferer.translateTransferable(DataTransferer.java:1169)
      at sun.awt.datatransfer.DataTransferer$5.run(DataTransferer.java:2054)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:459)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:214)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      PRODUCER: lost clipboard ownership
      received message: N
      testing native image format image/bmp...
      java.io.IOException: Registered service providers failed to encode BufferedImage@be0e27: type = 2 DirectColorModel: rmask=ff0000 gmask=ff00 bmask=ff amask=ff000000 IntegerInterleavedRaster: width =
      100 height = 100 #Bands = 4 xOff = 0 yOff = 0 dataOffset[0] 0 to image/bmp
      at sun.awt.datatransfer.DataTransferer.imageToStandardBytes(DataTransferer.java:1973)
      at sun.awt.motif.MDataTransferer.imageToPlatformBytes(MDataTransferer.java:156)
      at sun.awt.datatransfer.DataTransferer.translateTransferable(DataTransferer.java:1169)
      at sun.awt.datatransfer.DataTransferer$5.run(DataTransferer.java:2054)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:459)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:214)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      PRODUCER: lost clipboard ownership
      received message: N
      testing native image format PNG...
      PRODUCER: lost clipboard ownership
      received message: Y
      testing native image format JFIF...
      PRODUCER: lost clipboard ownership
      received message: Y
      ========= Child VM System.err ========
      CONSUMER: lost clipboard ownership
      format passed: image/png
      CONSUMER: lost clipboard ownership
      format passed: image/jpeg
      CONSUMER: lost clipboard ownership
      format passed: image/x-png
      CONSUMER: lost clipboard ownership
      Can't getTransferData-image: java.io.IOException: Failed to get selection data
      format failed: image/vnd.wap.wbmp
      getTransferData returned null
      format failed: image/bmp
      CONSUMER: lost clipboard ownership
      Can't getTransferData-image: java.io.IOException: Failed to get selection data
      format failed: PNG
      getTransferData returned null
      format failed: JFIF
      CONSUMER: lost clipboard ownership
      format passed: JFIF
      CONSUMER: lost clipboard ownership
      format passed: JFIF
      CONSUMER: lost clipboard ownership
      received message: E
      ======================================
      java.lang.RuntimeException: test failed: images in some native formats are not transferred properly: see output of child VM
      at ImageTransferTest.start(ImageTransferTest.java:120)
      at com.sun.javatest.regtest.AppletWrapper$AppletThread.run(AppletWrapper.java:133)
      at java.lang.Thread.run(Thread.java:549)
      STATUS:Failed.Applet thread threw exception: java.lang.RuntimeException: test failed: images in some native formats are not transferred properly: see output of child VM
      result: Failed. Execution failed: Applet thread threw exception: java.lang.RuntimeException: test failed: images in some native formats are not transferred properly: see output of child VM


      test result: Failed. Execution failed: Applet thread threw exception: java.lang.RuntimeException: test failed: images in some native formats are not transferred properly: see output of child VM


      Specific machine info:
      ======================
      Hostname: linux-18
      OS: Solaris 10 (x86) (GNOME)
      Hostname: linux-24
      OS: RedHat Advanced Server 2.1 (Gnome)
      Hostname: novo48
      OS: Solaris 9 (sparc) (CDE)



      ======================================================================

            dassunw Das Das (Inactive)
            vshsunw Vsh Vsh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: