6 Replies Latest reply on Feb 4, 2008 9:40 AM by Ilya Kalujny

    rich:listShuffle & its css / images

    Ilya Kalujny Newbie

      Hello :)

      I have troubles using rich:listShuffle component in my application. When i put it into my page and use its "copy","remove","copy all","remove all" controls it crashes host JVM for me (environment is JDK 1.6.3, Tomcat 6.0.14 , application is JSF 1.2 + RF 3.1.4GA).

      i prepared a .war, but i hope i can get an advice that will solve my problem.

      Judging from the crash log it comes from failing to locate/load the image for mentioned control buttons ("copy","remove","copy all","remove all").

      So the question is: how do i reuse styles/images for those buttons from demo-app, or define my own?

        • 1. Re: rich:listShuffle & its css / images
          Ilya Shaikovsky Master

          could you provide the logs with errors of loading styles/images?

          If the caches(server, browser) clearance isn't helps?

          • 2. Re: rich:listShuffle & its css / images
            Ilya Kalujny Newbie

            I figured it out about buttons because when i add a controlsType="none" attribute to rich:listShuffle buttons do not get rendered and i dont get a crash.

            Tomcat log when crash happens is:

            Feb 4, 2008 4:55:59 PM org.apache.jk.server.JkMain start
            INFO: Jk running ID=0 time=0/20 config=null
            Feb 4, 2008 4:55:59 PM org.apache.catalina.startup.Catalina start
            INFO: Server startup in 2851 ms
            Connected to server
            #
            # An unexpected error has been detected by Java Runtime Environment:
            #
            # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d938727, pid=4180, tid=4092
            #
            # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode)
            # Problematic frame:
            # V [jvm.dll+0xc8727]
            #
            # An error report file with more information is saved as hs_err_pid4180.log
            #
            # If you would like to submit a bug report, please visit:
            # http://java.sun.com/webapps/bugreport/crash.jsp
            #
            Disconnected from the target VM, address: '127.0.0.1:53812', transport: 'socket'
            Disconnected from server
            


            and the contents of crash log is:

            #
            # An unexpected error has been detected by Java Runtime Environment:
            #
            # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d938727, pid=4180, tid=4092
            #
            # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode)
            # Problematic frame:
            # V [jvm.dll+0xc8727]
            #
            # If you would like to submit a bug report, please visit:
            # http://java.sun.com/webapps/bugreport/crash.jsp
            #
            
            --------------- T H R E A D ---------------
            
            Current thread (0x0bdb0800): JavaThread "http-8080-1" daemon [_thread_in_vm, id=4092]
            
            siginfo: ExceptionCode=0xc0000005, reading address 0xed1f1068
            
            Registers:
            EAX=0xed1f1068, EBX=0x00000000, ECX=0x00000006, EDX=0xed1f1068
            ESP=0x0cbae6d0, EBP=0x0cbae748, ESI=0x0bdb0800, EDI=0xed1f1069
            EIP=0x6d938727, EFLAGS=0x00010282
            
            Top of Stack: (sp=0x0cbae6d0)
            0x0cbae6d0: 0bdb0800 0bdb08ec 0cbae748 08cbf998
            0x0cbae6e0: 00bae748 0bdb0800 6d87a5b5 0bdb0800
            0x0cbae6f0: 00000000 6d92b0e5 0bdb0800 00000006
            0x0cbae700: 00000008 0bdb0800 08cbf998 6d0f6f20
            0x0cbae710: 0bdb08ec ed1f1068 08cbf998 018fef54
            0x0cbae720: 0bdb08ec 0cbae750 0cbae728 08cbf998
            0x0cbae730: 0cbae754 08cc1c70 00000000 08cbf998
            0x0cbae740: 00000000 0cbae758 0cbae778 018f2cb1
            
            Instructions: (pc=0x6d938727)
            0x6d938717: 7c 8f a7 6d 00 0f 84 bd 01 00 00 8b c2 8d 78 01
            0x6d938727: 8a 08 40 84 c9 75 f9 2b c7 3d ff ff 00 00 0f 8f
            
            
            Stack: [0x0cb60000,0x0cbb0000), sp=0x0cbae6d0, free space=313k
            Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
            V [jvm.dll+0xc8727]
            j sun.java2d.SurfaceData.<clinit>()V+0
            v ~StubRoutines::call_stub
            
            Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
            j sun.java2d.SurfaceData.initIDs()V+0
            j sun.java2d.SurfaceData.<clinit>()V+0
            v ~StubRoutines::call_stub
            j sun.awt.windows.WToolkit.initIDs()V+0
            j sun.awt.windows.WToolkit.<clinit>()V+19
            v ~StubRoutines::call_stub
            j sun.awt.Win32GraphicsEnvironment.<clinit>()V+17
            v ~StubRoutines::call_stub
            j java.lang.Class.forName0(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;+0
            j java.lang.Class.forName(Ljava/lang/String;)Ljava/lang/Class;+5
            j java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment()Ljava/awt/GraphicsEnvironment;+24
            j java.awt.image.BufferedImage.createGraphics()Ljava/awt/Graphics2D;+0
            j org.ajax4jsf.resource.Java2Dresource.getImage(Lorg/ajax4jsf/resource/ResourceContext;)Ljava/awt/image/RenderedImage;+52
            j org.ajax4jsf.resource.Java2Dresource.send(Lorg/ajax4jsf/resource/ResourceContext;)V+11
            j org.ajax4jsf.resource.ResourceLifecycle.sendResource(Lorg/ajax4jsf/resource/ResourceContext;Lorg/ajax4jsf/resource/InternetResource;)V+9
            j org.ajax4jsf.resource.ResourceLifecycle.send(Lorg/ajax4jsf/resource/ResourceContext;Lorg/ajax4jsf/resource/InternetResource;)V+198
            j org.ajax4jsf.resource.InternetResourceService.load(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+21
            j org.ajax4jsf.cache.LRUMapCache.load(Ljava/lang/Object;Ljava/lang/Object;)V+8
            j org.ajax4jsf.cache.LRUMapCache.get(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+111
            j org.ajax4jsf.resource.InternetResourceService.serviceResource(Ljava/lang/String;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+184
            j org.ajax4jsf.resource.InternetResourceService.serviceResource(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Z+18
            j org.ajax4jsf.webapp.BaseFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+253
            j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+117
            j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101
            j org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+804
            j org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285
            j org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64
            j org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6
            j org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42
            j org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+157
            j org.apache.coyote.http11.Http11Processor.process(Ljava/net/Socket;)V+432
            j org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Ljava/net/Socket;)Z+82
            j org.apache.tomcat.util.net.JIoEndpoint$Worker.run()V+41
            j java.lang.Thread.run()V+11
            v ~StubRoutines::call_stub
            
            --------------- P R O C E S S ---------------
            
            Java Threads: ( => current thread )
             0x0cc87c00 JavaThread "http-8080-2" daemon [_thread_new, id=4496]
            =>0x0bdb0800 JavaThread "http-8080-1" daemon [_thread_in_vm, id=4092]
             0x0c290000 JavaThread "TP-Monitor" daemon [_thread_blocked, id=5824]
             0x0c28ac00 JavaThread "TP-Processor4" daemon [_thread_in_native, id=1312]
             0x0c28a400 JavaThread "TP-Processor3" daemon [_thread_blocked, id=5840]
             0x0c2b2c00 JavaThread "TP-Processor2" daemon [_thread_blocked, id=4664]
             0x0c2b3800 JavaThread "TP-Processor1" daemon [_thread_blocked, id=4576]
             0x0c29c000 JavaThread "http-8080-Acceptor-0" daemon [_thread_in_native, id=2332]
             0x0c0d5c00 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=2608]
             0x018b1400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=5352]
             0x018b0c00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2612]
             0x018a6000 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=3876]
             0x018a5000 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=6080]
             0x018a4000 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_blocked, id=3140]
             0x01894800 JavaThread "Attach Listener" daemon [_thread_blocked, id=5732]
             0x01893800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2936]
             0x01882400 JavaThread "Finalizer" daemon [_thread_blocked, id=2068]
             0x01879800 JavaThread "Reference Handler" daemon [_thread_blocked, id=3444]
             0x00398c00 JavaThread "main" [_thread_in_native, id=5936]
            
            Other Threads:
             0x01876800 VMThread [id=4564]
             0x018bb000 WatcherThread [id=1084]
            
            VM state:not at safepoint (normal execution)
            
            VM Mutex/Monitor currently owned by a thread: None
            
            Heap
             def new generation total 1280K, used 1112K [0x038f0000, 0x03a50000, 0x03dd0000)
             eden space 1152K, 88% used [0x038f0000, 0x039ed960, 0x03a10000)
             from space 128K, 76% used [0x03a30000, 0x03a48780, 0x03a50000)
             to space 128K, 0% used [0x03a10000, 0x03a10000, 0x03a30000)
             tenured generation total 16696K, used 14930K [0x03dd0000, 0x04e1e000, 0x078f0000)
             the space 16696K, 89% used [0x03dd0000, 0x04c64890, 0x04c64a00, 0x04e1e000)
             compacting perm gen total 20480K, used 20297K [0x078f0000, 0x08cf0000, 0x0b8f0000)
             the space 20480K, 99% used [0x078f0000, 0x08cc2510, 0x08cc2600, 0x08cf0000)
            No shared spaces configured.
            
            Dynamic libraries:
            0x00400000 - 0x00423000 C:\Program Files\Java\jdk1.6.0_03\bin\java.exe
            0x77640000 - 0x7775e000 C:\Windows\system32\ntdll.dll
            0x76cf0000 - 0x76dc8000 C:\Windows\system32\kernel32.dll
            0x76f20000 - 0x76fdf000 C:\Windows\system32\ADVAPI32.dll
            0x777b0000 - 0x77873000 C:\Windows\system32\RPCRT4.dll
            0x6d870000 - 0x6daba000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\client\jvm.dll
            0x76b40000 - 0x76bde000 C:\Windows\system32\USER32.dll
            0x76dd0000 - 0x76e1b000 C:\Windows\system32\GDI32.dll
            0x74c10000 - 0x74c43000 C:\Windows\system32\WINMM.dll
            0x77390000 - 0x7743a000 C:\Windows\system32\msvcrt.dll
            0x77170000 - 0x772b4000 C:\Windows\system32\ole32.dll
            0x75f00000 - 0x75f8c000 C:\Windows\system32\OLEAUT32.dll
            0x74bd0000 - 0x74c08000 C:\Windows\system32\OLEACC.dll
            0x7c340000 - 0x7c396000 C:\Windows\system32\MSVCR71.dll
            0x76b10000 - 0x76b2e000 C:\Windows\system32\IMM32.DLL
            0x77440000 - 0x77507000 C:\Windows\system32\MSCTF.dll
            0x75d00000 - 0x75d2c000 C:\Windows\system32\apphelp.dll
            0x76b30000 - 0x76b39000 C:\Windows\system32\LPK.DLL
            0x76a90000 - 0x76b0d000 C:\Windows\system32\USP10.dll
            0x6d3c0000 - 0x6d3c8000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\hpi.dll
            0x75e60000 - 0x75e67000 C:\Windows\system32\PSAPI.DLL
            0x6d4b0000 - 0x6d4d9000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\jdwp.dll
            0x6d770000 - 0x6d776000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\npt.dll
            0x00340000 - 0x0034c000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\verify.dll
            0x6d460000 - 0x6d47f000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\java.dll
            0x6d7b0000 - 0x6d7bf000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\zip.dll
            0x6d330000 - 0x6d337000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\dt_socket.dll
            0x76a60000 - 0x76a8d000 C:\Windows\system32\WS2_32.dll
            0x76e20000 - 0x76e26000 C:\Windows\system32\NSI.dll
            0x75550000 - 0x7558b000 C:\Windows\system32\mswsock.dll
            0x75290000 - 0x75296000 C:\Windows\System32\wshtcpip.dll
            0x6d620000 - 0x6d633000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\net.dll
            0x755c0000 - 0x755c6000 C:\Windows\System32\wship6.dll
            0x6d2a0000 - 0x6d2cf000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\cmm.dll
            0x6d500000 - 0x6d524000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\jpeg.dll
            0x6d0b0000 - 0x6d273000 C:\Program Files\Java\jdk1.6.0_03\jre\bin\awt.dll
            0x71a10000 - 0x71a51000 C:\Windows\system32\WINSPOOL.DRV
            
            VM Arguments:
            jvm_args: -Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:53812,suspend=y,server=n -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=C:\Users\Ikalujny\.IntelliJIdea70\system\tomcat_Unnamed_listshuffletest5ee36db8\conf\logging.properties -Djava.endorsed.dirs=C:\Tools\apache-tomcat-6.0.14\endorsed -Dcatalina.base=C:\Users\Ikalujny\.IntelliJIdea70\system\tomcat_Unnamed_listshuffletest5ee36db8 -Dcatalina.home=C:\Tools\apache-tomcat-6.0.14 -Djava.io.tmpdir=C:\Tools\apache-tomcat-6.0.14\temp
            java_command: org.apache.catalina.startup.Bootstrap start
            Launcher Type: SUN_STANDARD
            
            Environment Variables:
            JAVA_HOME=C:\Program Files\Java\jdk1.6.0_03
            JRE_HOME=C:\Program Files\Java\jdk1.6.0_03
            CLASSPATH=C:\Program Files\Java\jdk1.6.0_03\lib\tools.jar;C:\Tools\apache-tomcat-6.0.14\bin\bootstrap.jar
            PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Perforce;C:\Tools\Ant\\bin;C:\Tools\Maven\maven-2.0.7\bin;C:\Program Files\Java\jdk1.6.0_03\bin;C:\Program Files\Nmap
            USERNAME=Ikalujny
            OS=Windows_NT
            PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 2, GenuineIntel
            
            
            
            --------------- S Y S T E M ---------------
            
            OS: Windows Vista Build 6000
            
            CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
            
            Memory: 4k page, physical 2071104k(802940k free), swap 4194303k(2703468k free)
            
            vm_info: Java HotSpot(TM) Client VM (1.6.0_03-b05) for windows-x86, built on Sep 24 2007 22:24:33 by "java_re" with unknown MS VC++:1310
            
            


            • 3. Re: rich:listShuffle & its css / images
              Ilya Kalujny Newbie

              clearing server/browser caches doesnt help

              • 4. Re: rich:listShuffle & its css / images
                Maksim Kaszynski Apprentice

                Looks like there's some problem in JRE itself. Some conflict with Vista. Try running your server in headless mode. If that doesn't help, switch to an earlier JDK.

                • 5. Re: rich:listShuffle & its css / images
                  Ilya Kalujny Newbie

                  Thanks, will try that.

                  Can anyone give me a hint about my original question, how do i reuse styles / images for rich:shuffleList control buttons in my app?

                  or rich:shuffleList should work even without any additional images / styles?

                  • 6. Re: rich:listShuffle & its css / images
                    Ilya Kalujny Newbie

                    i think its "bullet_arrow.gif" image. doh i have to sick it somewhere into my app... *puzzled*