JAVA or LINUX bug?

My Java program crashes (on a Linux system) with the following log:
# An unexpected error has been detected by HotSpot Virtual Machine:
# SIGSEGV (0xb) at pc=0x4c949182, pid=2672, tid=2981530512
# Java VM: Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode, sharing)
# Problematic frame:
# C [libc.so.6+0x68182]
Is this a bug in my Java code, JVM or the Linux system?
I am not sure, but i would say that any bug in my Java Code would give me an exception ERROR not a SIGSEGV.
As it is a segmentation fault error it probably is JVM or Linux?
Does anyone know?
//Paul

Hi!
From what i have seen in the err-logs the crash is always in libc. When i look into the stack trace i can see that
there has always been a malloc or calloc (2'nd or 3'rd pos in stack trace) just before the crash.
I run Fedora 7. But i have the same problem when trying it on FC8 too.
Here is the complete error log:
# An unexpected error has been detected by HotSpot Virtual Machine:
#  SIGSEGV (0xb) at pc=0x4c949182, pid=2672, tid=2981530512
# Java VM: Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode, sharing)
# Problematic frame:
# C  [libc.so.6+0x68182]
---------------  T H R E A D  ---------------
Current thread (0x08f229f0):  JavaThread "AWT-XAWT" daemon [_thread_in_vm, id=2681]
siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x0000000a
Registers:
EAX=0x4ca32150, EBX=0x4ca30ff4, ECX=0x4ca32120, EDX=0x08f42758
ESP=0xb1b67c50, EBP=0xb1b67cf8, ESI=0x00000060, EDI=0x00000002
EIP=0x4c949182, CR2=0x0000000a, EFLAGS=0x00210202
Top of Stack: (sp=0xb1b67c50)
0xb1b67c50:   4cc8f361 08f18c30 b7b4442c 9138ccc0
0xb1b67c60:   08f229f0 b1b67c94 b7a37986 08f18c34
0xb1b67c70:   4ca324a0 b1b67ce3 08f229f0 000001d5
0xb1b67c80:   4ca32150 b1b67db4 b7b4442c 00000068
0xb1b67c90:   08f229f0 b1b67d14 00000002 9138ccc8
0xb1b67ca0:   00000000 00000001 08f229f0 08f22d88
0xb1b67cb0:   b7b4442c 00000000 b1b67d78 b7a4684e
0xb1b67cc0:   08f22da0 08f22d88 08f42758 00000010
Instructions: (pc=0x4c949182)
0x4c949172:   88 0f 84 16 01 00 00 8b 45 88 39 75 94 89 78 0c
0x4c949182:   89 47 08 0f 84 05 03 00 00 81 fe ff 01 00 00 0f
Stack: [0xb1ae8000,0xb1b69000),  sp=0xb1b67c50,  free space=511k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libc.so.6+0x68182]
C  [libc.so.6+0x69ebe]  __libc_malloc+0x7e
V  [libjvm.so+0x28a3fa]
V  [libjvm.so+0x315af7]
j  sun.misc.Unsafe.allocateMemory(J)J+0
j  sun.awt.X11.XEvent.<init>()V+28
j  sun.awt.X11.XToolkit.getCurrentServerTime()J+83
j  sun.awt.X11.XToolkit.nowMillisUTC_offset(J)J+91
j  sun.awt.X11.XWindow.handleMotionNotify(J)V+128
j  sun.awt.X11.XBaseWindow.dispatchEvent(Lsun/awt/X11/XAnyEvent;)V+220
j  sun.awt.X11.XBaseWindow.dispatchToWindow(Lsun/awt/X11/XAnyEvent;)V+29
j  sun.awt.X11.XToolkit.dispatchEvent(Lsun/awt/X11/XAnyEvent;)V+1
J  sun.awt.X11.XToolkit.run(Z)V
v  ~OSRAdapter
j  sun.awt.X11.XToolkit.run()V+5
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub
V  [libjvm.so+0x17b19c]
V  [libjvm.so+0x28fb38]
V  [libjvm.so+0x17a9f5]
V  [libjvm.so+0x17aa8e]
V  [libjvm.so+0x1f29f5]
V  [libjvm.so+0x2f93d3]
V  [libjvm.so+0x290748]
C  [libpthread.so.0+0x544b]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  sun.misc.Unsafe.allocateMemory(J)J+0
j  sun.awt.X11.XEvent.<init>()V+28
j  sun.awt.X11.XToolkit.getCurrentServerTime()J+83
j  sun.awt.X11.XToolkit.nowMillisUTC_offset(J)J+91
j  sun.awt.X11.XWindow.handleMotionNotify(J)V+128
j  sun.awt.X11.XBaseWindow.dispatchEvent(Lsun/awt/X11/XAnyEvent;)V+220
j  sun.awt.X11.XBaseWindow.dispatchToWindow(Lsun/awt/X11/XAnyEvent;)V+29
j  sun.awt.X11.XToolkit.dispatchEvent(Lsun/awt/X11/XAnyEvent;)V+1
J  sun.awt.X11.XToolkit.run(Z)V
v  ~OSRAdapter
j  sun.awt.X11.XToolkit.run()V+5
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub
---------------  P R O C E S S  ---------------
Java Threads: ( => current thread )
  0x08e77108 JavaThread "Thread-4" [_thread_in_native, id=2731]
  0x08deea10 JavaThread "DestroyJavaVM" [_thread_blocked, id=2672]
  0x090cecd0 JavaThread "Loop thread" [_thread_blocked, id=2723]
  0x090be460 JavaThread "JMF thread: SendEventQueue: com.sun.media.PlaybackEngine" [_thread_blocked, id=2719]
  0x090a3468 JavaThread "JMF thread: SendEventQueue: com.sun.media.content.unknown.Handler" [_thread_blocked, id=2718]
  0x090bd7b0 JavaThread "Loop thread" [_thread_blocked, id=2717]
  0x090a2248 JavaThread "JMF thread: SendEventQueue: com.sun.media.PlaybackEngine" [_thread_blocked, id=2713]
  0x090a1450 JavaThread "JMF thread: SendEventQueue: com.sun.media.content.unknown.Handler" [_thread_blocked, id=2712]
  0x090bcfe8 JavaThread "Loop thread" [_thread_blocked, id=2711]
  0x090a1058 JavaThread "JMF thread: SendEventQueue: com.sun.media.PlaybackEngine" [_thread_blocked, id=2707]
  0x0909ccf0 JavaThread "JMF thread: SendEventQueue: com.sun.media.content.unknown.Handler" [_thread_blocked, id=2706]
  0x090a0ce8 JavaThread "Loop thread" [_thread_blocked, id=2705]
  0x08ff0df0 JavaThread "JMF thread: SendEventQueue: com.sun.media.PlaybackEngine" [_thread_blocked, id=2701]
  0x08fed9b8 JavaThread "JMF thread: SendEventQueue: com.sun.media.content.unknown.Handler" [_thread_blocked, id=2700]
  0x08fdcd10 JavaThread "Loop thread" [_thread_blocked, id=2699]
  0x08ff2a70 JavaThread "JMF thread: SendEventQueue: com.sun.media.PlaybackEngine" [_thread_blocked, id=2695]
  0x08ead6c0 JavaThread "JMF thread: SendEventQueue: com.sun.media.content.unknown.Handler" [_thread_blocked, id=2694]
  0x08ff2090 JavaThread "Loop thread" [_thread_blocked, id=2693]
  0x08e4f1e8 JavaThread "JMF thread: SendEventQueue: com.sun.media.PlaybackEngine" [_thread_blocked, id=2689]
  0x08e878c0 JavaThread "JMF thread: SendEventQueue: com.sun.media.content.unknown.Handler" [_thread_blocked, id=2688]
  0x08f2da30 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=2684]
  0x08f2c2c8 JavaThread "AWT-Shutdown" [_thread_blocked, id=2683]
  0x08f2cc70 JavaThread "TimerQueue" daemon [_thread_blocked, id=2682]
=>0x08f229f0 JavaThread "AWT-XAWT" daemon [_thread_in_vm, id=2681]
  0x08f18028 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2680]
  0x08e37be8 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2678]
  0x08e366d8 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2677]
  0x08e35728 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2676]
  0x08e2fc30 JavaThread "Finalizer" daemon [_thread_blocked, id=2675]
  0x08e2dda8 JavaThread "Reference Handler" daemon [_thread_blocked, id=2674]
Other Threads:
  0x08e2c968 VMThread [id=2673]
  0x08e391b0 WatcherThread [id=2679]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation   total 1728K, used 930K [0x88b60000, 0x88d30000, 0x89040000)
  eden space 1600K,  50% used [0x88b60000, 0x88c28950, 0x88cf0000)
  from space 128K, 100% used [0x88d10000, 0x88d30000, 0x88d30000)
  to   space 128K,   0% used [0x88cf0000, 0x88cf0000, 0x88d10000)
tenured generation   total 21068K, used 16657K [0x89040000, 0x8a4d3000, 0x8cb60000)
   the space 21068K,  79% used [0x89040000, 0x8a0844e0, 0x8a084600, 0x8a4d3000)
compacting perm gen  total 8192K, used 2366K [0x8cb60000, 0x8d360000, 0x90b60000)
   the space 8192K,  28% used [0x8cb60000, 0x8cdafb30, 0x8cdafc00, 0x8d360000)
    ro space 8192K,  68% used [0x90b60000, 0x910e07a8, 0x910e0800, 0x91360000)
    rw space 12288K,  48% used [0x91360000, 0x9192b520, 0x9192b600, 0x91f60000)
Dynamic libraries:
08048000-08057000 r-xp 00000000 fd:00 1278110    /usr/java/jdk1.5.0_12/bin/java
08057000-08059000 rwxp 0000e000 fd:00 1278110    /usr/java/jdk1.5.0_12/bin/java
08deb000-090f1000 rwxp 08deb000 00:00 0
4c8c2000-4c8dd000 r-xp 00000000 fd:00 1277987    /lib/ld-2.6.so
4c8dd000-4c8de000 r-xp 0001a000 fd:00 1277987    /lib/ld-2.6.so
4c8de000-4c8df000 rwxp 0001b000 fd:00 1277987    /lib/ld-2.6.so
4c8e1000-4ca2f000 r-xp 00000000 fd:00 1278180    /lib/libc-2.6.so
4ca2f000-4ca31000 r-xp 0014e000 fd:00 1278180    /lib/libc-2.6.so
4ca31000-4ca32000 rwxp 00150000 fd:00 1278180    /lib/libc-2.6.so
4ca32000-4ca35000 rwxp 4ca32000 00:00 0
4ca37000-4ca5e000 r-xp 00000000 fd:00 1279203    /lib/libm-2.6.so
4ca5e000-4ca5f000 r-xp 00026000 fd:00 1279203    /lib/libm-2.6.so
4ca5f000-4ca60000 rwxp 00027000 fd:00 1279203    /lib/libm-2.6.so
4ca62000-4ca65000 r-xp 00000000 fd:00 1279201    /lib/libdl-2.6.so
4ca65000-4ca66000 r-xp 00002000 fd:00 1279201    /lib/libdl-2.6.so
4ca66000-4ca67000 rwxp 00003000 fd:00 1279201    /lib/libdl-2.6.so
4cb1f000-4cb24000 r-xp 00000000 fd:00 9576673    /usr/lib/libXdmcp.so.6.0.0
4cb24000-4cb25000 rwxp 00004000 fd:00 9576673    /usr/lib/libXdmcp.so.6.0.0
4cb27000-4cc25000 r-xp 00000000 fd:00 9572154    /usr/lib/libX11.so.6.2.0
4cc25000-4cc29000 rwxp 000fe000 fd:00 9572154    /usr/lib/libX11.so.6.2.0
4cc2b000-4cc2d000 r-xp 00000000 fd:00 9579207    /usr/lib/libXau.so.6.0.0
4cc2d000-4cc2e000 rwxp 00001000 fd:00 9579207    /usr/lib/libXau.so.6.0.0
4cc71000-4cc80000 r-xp 00000000 fd:00 9577025    /usr/lib/libXext.so.6.4.0
4cc80000-4cc81000 rwxp 0000e000 fd:00 9577025    /usr/lib/libXext.so.6.4.0
4cc88000-4cc9c000 r-xp 00000000 fd:00 1279448    /lib/libpthread-2.6.so
4cc9c000-4cc9d000 r-xp 00013000 fd:00 1279448    /lib/libpthread-2.6.so
4cc9d000-4cc9e000 rwxp 00014000 fd:00 1279448    /lib/libpthread-2.6.so
4cc9e000-4cca0000 rwxp 4cc9e000 00:00 0
4ce44000-4ce4d000 r-xp 00000000 fd:00 9572633    /usr/lib/libXcursor.so.1.0.2
4ce4d000-4ce4e000 rwxp 00008000 fd:00 9572633    /usr/lib/libXcursor.so.1.0.2
4ce5a000-4ce62000 r-xp 00000000 fd:00 9589202    /usr/lib/libXrender.so.1.3.0
4ce62000-4ce63000 rwxp 00007000 fd:00 9589202    /usr/lib/libXrender.so.1.3.0
4d306000-4d30a000 r-xp 00000000 fd:00 9572635    /usr/lib/libXfixes.so.3.1.0
4d30a000-4d30b000 rwxp 00003000 fd:00 9572635    /usr/lib/libXfixes.so.3.1.0
4d400000-4d415000 r-xp 00000000 fd:00 1279197    /lib/libnsl-2.6.so
4d415000-4d416000 r-xp 00014000 fd:00 1279197    /lib/libnsl-2.6.so
4d416000-4d417000 rwxp 00015000 fd:00 1279197    /lib/libnsl-2.6.so
4d417000-4d419000 rwxp 4d417000 00:00 0
88b60000-88d30000 rwxp 88b60000 00:00 0
88d30000-89040000 rwxp 88d30000 00:00 0
89040000-8a4d3000 rwxp 89040000 00:00 0
8a4d3000-8cb60000 rwxp 8a4d3000 00:00 0
8cb60000-8d360000 rwxp 8cb60000 00:00 0
8d360000-90b60000 rwxp 8d360000 00:00 0
90b60000-910e1000 r-xs 00001000 fd:00 2066370    /usr/java/jdk1.5.0_12/jre/lib/i386/client/classes.jsa
910e1000-91360000 rwxp 910e1000 00:00 0
91360000-9192c000 rwxp 00582000 fd:00 2066370    /usr/java/jdk1.5.0_12/jre/lib/i386/client/classes.jsa
9192c000-91f60000 rwxp 9192c000 00:00 0
91f60000-92030000 rwxp 00b4e000 fd:00 2066370    /usr/java/jdk1.5.0_12/jre/lib/i386/client/classes.jsa
92030000-92360000 rwxp 92030000 00:00 0
92360000-92364000 r-xs 00c1e000 fd:00 2066370    /usr/java/jdk1.5.0_12/jre/lib/i386/client/classes.jsa
92364000-92760000 rwxp 92364000 00:00 0
b0a63000-b0a7b000 rwxs 00000000 00:09 1245197    /SYSV00000000 (deleted)
b0a91000-b0b6e000 rwxs 00000000 00:09 491530     /SYSV00000000 (deleted)
b0b75000-b0b78000 rwxp b0b75000 00:00 0
b0b78000-b0bf6000 rwxp b0b78000 00:00 0
b0bf6000-b0bf9000 --xp b0bf6000 00:00 0
b0bf9000-b0c77000 rwxp b0bf9000 00:00 0
b0c77000-b0c7a000 rwxp b0c77000 00:00 0
b0c7a000-b0cf8000 rwxp b0c7a000 00:00 0
b0cf8000-b0cfb000 --xp b0cf8000 00:00 0
b0cfb000-b0d79000 rwxp b0cfb000 00:00 0
b0d79000-b0d7c000 --xp b0d79000 00:00 0
b0d7c000-b0dfa000 rwxp b0d7c000 00:00 0
b0dfa000-b0dfd000 --xp b0dfa000 00:00 0
b0dfd000-b0e7b000 rwxp b0dfd000 00:00 0
b0e7b000-b0e7e000 --xp b0e7b000 00:00 0
b0e7e000-b0efc000 rwxp b0e7e000 00:00 0
b0efc000-b0eff000 --xp b0efc000 00:00 0
b0eff000-b0f7d000 rwxp b0eff000 00:00 0
b0f7d000-b0f80000 --xp b0f7d000 00:00 0
b0f80000-b0ffe000 rwxp b0f80000 00:00 0
b0ffe000-b1001000 --xp b0ffe000 00:00 0
b1001000-b107f000 rwxp b1001000 00:00 0
b107f000-b1082000 --xp b107f000 00:00 0
b1082000-b11c2000 rwxp b1082000 00:00 0
b11c2000-b1200000 --xp b11c2000 00:00 0
b1200000-b1201000 r-xp 00000000 fd:00 65719      /usr/lib/gconv/ISO8859-1.so
b1201000-b1203000 rwxp 00000000 fd:00 65719      /usr/lib/gconv/ISO8859-1.so
b1203000-b120a000 r-xs 00000000 fd:00 65796      /usr/lib/gconv/gconv-modules.cache
b120a000-b1210000 r-xp 00000000 fd:00 2066553    /usr/java/jdk1.5.0_12/jre/lib/i386/libLinuxSerialParallel.so
b1210000-b1211000 rwxp 00005000 fd:00 2066553    /usr/java/jdk1.5.0_12/jre/lib/i386/libLinuxSerialParallel.so
b1211000-b1214000 --xp b1211000 00:00 0
b1214000-b1292000 rwxp b1214000 00:00 0
b1292000-b1295000 --xp b1292000 00:00 0
b1295000-b1313000 rwxp b1295000 00:00 0
b1313000-b1316000 --xp b1313000 00:00 0
b1316000-b1394000 rwxp b1316000 00:00 0
b1394000-b1397000 --xp b1394000 00:00 0
b1397000-b1415000 rwxp b1397000 00:00 0
b1415000-b141c000 r-xp 00000000 fd:00 2065970    /usr/java/jdk1.5.0_12/jre/lib/i386/libnio.so
b141c000-b141d000 rwxp 00006000 fd:00 2065970    /usr/java/jdk1.5.0_12/jre/lib/i386/libnio.so
b141d000-b142e000 r-xp 00000000 fd:00 2065969    /usr/java/jdk1.5.0_12/jre/lib/i386/libnet.so
b142e000-b142f000 rwxp 00011000 fd:00 2065969    /usr/java/jdk1.5.0_12/jre/lib/i386/libnet.so
b142f000-b14eb000 r-xp 00000000 fd:00 692736     /usr/tools/JMF-2.1.1e/lib/libjffmpeg.so
b14eb000-b14ee000 rwxp 000bb000 fd:00 692736     /usr/tools/JMF-2.1.1e/lib/libjffmpeg.so
b14ee000-b1535000 rwxp b14ee000 00:00 0
b1535000-b1538000 --xp b1535000 00:00 0
b1538000-b15b6000 rwxp b1538000 00:00 0
b15b6000-b15b9000 --xp b15b6000 00:00 0
b15b9000-b1637000 rwxp b15b9000 00:00 0
b1637000-b163a000 --xp b1637000 00:00 0
b163a000-b16b8000 rwxp b163a000 00:00 0
b16b8000-b16bb000 --xp b16b8000 00:00 0
b16bb000-b1739000 rwxp b16bb000 00:00 0
b1739000-b173c000 --xp b1739000 00:00 0
b173c000-b17ba000 rwxp b173c000 00:00 0
b17ba000-b17e1000 r-xp 00000000 fd:00 2065962    /usr/java/jdk1.5.0_12/jre/lib/i386/libjpeg.so
b17e1000-b17e2000 rwxp 00026000 fd:00 2065962    /usr/java/jdk1.5.0_12/jre/lib/i386/libjpeg.so
b17e2000-b17e5000 rwxp b17e2000 00:00 0
b17e5000-b1863000 rwxp b17e5000 00:00 0
b1863000-b1866000 rwxp b1863000 00:00 0
b1866000-b18e4000 rwxp b1866000 00:00 0
b18e4000-b18e7000 --xp b18e4000 00:00 0
b18e7000-b1965000 rwxp b18e7000 00:00 0
b1965000-b1968000 --xp b1965000 00:00 0
b1968000-b19e6000 rwxp b1968000 00:00 0
b19e6000-b19e9000 --xp b19e6000 00:00 0
b19e9000-b1a67000 rwxp b19e9000 00:00 0
b1a67000-b1a6a000 --xp b1a67000 00:00 0
b1a6a000-b1ae8000 rwxp b1a6a000 00:00 0
b1ae8000-b1aeb000 --xp b1ae8000 00:00 0
b1aeb000-b1b69000 rwxp b1aeb000 00:00 0
b1b69000-b1b6c000 --xp b1b69000 00:00 0
b1b6c000-b1bea000 rwxp b1b6c000 00:00 0
b1bea000-b1c64000 r-xp 00000000 fd:00 2065949    /usr/java/jdk1.5.0_12/jre/lib/i386/libfontmanager.so
b1c64000-b1c6e000 rwxp 00079000 fd:00 2065949    /usr/java/jdk1.5.0_12/jre/lib/i386/libfontmanager.so
b1c6e000-b1c72000 rwxp b1c6e000 00:00 0
b1c72000-b1cb8000 r-xs 00000000 fd:00 692730     /usr/tools/JMF-2.1.1e/lib/jffmpeg.jar
b1cb8000-b1e74000 r-xs 00000000 fd:00 688176     /usr/tools/JMF-2.1.1e/lib/jmf.jar
b1e74000-b1ea3000 r-xp 00000000 fd:00 2065985    /usr/java/jdk1.5.0_12/jre/lib/i386/xawt/libmawt.so
b1ea3000-b1ea6000 rwxp 0002e000 fd:00 2065985    /usr/java/jdk1.5.0_12/jre/lib/i386/xawt/libmawt.so
b1ea6000-b1ea7000 rwxp b1ea6000 00:00 0
b1ea7000-b1f6d000 r-xp 00000000 fd:00 2065967    /usr/java/jdk1.5.0_12/jre/lib/i386/libmlib_image.so
b1f6d000-b1f6e000 rwxp 000c5000 fd:00 2065967    /usr/java/jdk1.5.0_12/jre/lib/i386/libmlib_image.so
b1f6e000-b1fce000 r-xp 00000000 fd:00 2065944    /usr/java/jdk1.5.0_12/jre/lib/i386/libawt.so
b1fce000-b1fd4000 rwxp 0005f000 fd:00 2065944    /usr/java/jdk1.5.0_12/jre/lib/i386/libawt.so
b1fd4000-b1ff8000 rwxp b1fd4000 00:00 0
b1ff8000-b20bd000 r-xs 00000000 fd:00 2065883    /usr/java/jdk1.5.0_12/jre/lib/ext/localedata.jar
b20bd000-b20e8000 r-xs 00000000 fd:00 2065899    /usr/java/jdk1.5.0_12/jre/lib/ext/sunpkcs11.jar
b20e8000-b2105000 r-xs 00000000 fd:00 2066554    /usr/java/jdk1.5.0_12/jre/lib/ext/comm.jar
b2105000-b2107000 r-xs 00000000 fd:00 2065896    /usr/java/jdk1.5.0_12/jre/lib/ext/dnsns.jar
b2107000-b212e000 r-xs 00000000 fd:00 2065898    /usr/java/jdk1.5.0_12/jre/lib/ext/sunjce_provider.jar
b212e000-b212f000 --xp b212e000 00:00 0
b212f000-b21af000 rwxp b212f000 00:00 0
b21af000-b21b2000 --xp b21af000 00:00 0
b21b2000-b2230000 rwxp b21b2000 00:00 0
b2230000-b2233000 --xp b2230000 00:00 0
b2233000-b22b1000 rwxp b2233000 00:00 0
b22b1000-b22b4000 --xp b22b1000 00:00 0
b22b4000-b2332000 rwxp b22b4000 00:00 0
b2332000-b2532000 r-xp 00000000 fd:00 9571617    /usr/lib/locale/locale-archive
b2532000-b2535000 --xp b2532000 00:00 0
b2535000-b25b3000 rwxp b2535000 00:00 0
b25b3000-b25b6000 --xp b25b3000 00:00 0
b25b6000-b2634000 rwxp b25b6000 00:00 0
b2634000-b2635000 --xp b2634000 00:00 0
b2635000-b26c1000 rwxp b2635000 00:00 0
b26c1000-b26dd000 rwxp b26c1000 00:00 0
b26dd000-b26e8000 rwxp b26dd000 00:00 0
b26e8000-b26fb000 rwxp b26e8000 00:00 0
b26fb000-b26fc000 rwxp b26fb000 00:00 0
b26fc000-b26fd000 rwxp b26fc000 00:00 0
b26fd000-b2708000 rwxp b26fd000 00:00 0
b2708000-b271b000 rwxp b2708000 00:00 0
b271b000-b271f000 rwxp b271b000 00:00 0
b271f000-b273b000 rwxp b271f000 00:00 0
b273b000-b274c000 rwxp b273b000 00:00 0
b274c000-b27c6000 rwxp b274c000 00:00 0
b27c6000-b2926000 rwxp b27c6000 00:00 0
b2926000-b47c6000 rwxp b2926000 00:00 0
b47c6000-b5035000 r-xs 00000000 fd:00 2066020    /usr/java/jdk1.5.0_12/jre/lib/charsets.jar
b5035000-b504a000 r-xs 00000000 fd:00 2066019    /usr/java/jdk1.5.0_12/jre/lib/jce.jar
b504a000-b50cf000 r-xs 00000000 fd:00 2066078    /usr/java/jdk1.5.0_12/jre/lib/jsse.jar
b50cf000-b5138000 rwxp b50cf000 00:00 0
b5138000-b775d000 r-xs 00000000 fd:00 2066551    /usr/java/jdk1.5.0_12/jre/lib/rt.jar
b775d000-b776c000 r-xp 00000000 fd:00 2065975    /usr/java/jdk1.5.0_12/jre/lib/i386/libzip.so
b776c000-b776e000 rwxp 0000e000 fd:00 2065975    /usr/java/jdk1.5.0_12/jre/lib/i386/libzip.so
b776e000-b778f000 r-xp 00000000 fd:00 2065955    /usr/java/jdk1.5.0_12/jre/lib/i386/libjava.so
b778f000-b7791000 rwxp 00020000 fd:00 2065955    /usr/java/jdk1.5.0_12/jre/lib/i386/libjava.so
b7791000-b779c000 r-xp 00000000 fd:00 2065974    /usr/java/jdk1.5.0_12/jre/lib/i386/libverify.so
b779c000-b779d000 rwxp 0000b000 fd:00 2065974    /usr/java/jdk1.5.0_12/jre/lib/i386/libverify.so
b779d000-b77a7000 r-xp 00000000 fd:00 1277992    /lib/libnss_files-2.6.so
b77a7000-b77a8000 r-xp 00009000 fd:00 1277992    /lib/libnss_files-2.6.so
b77a8000-b77a9000 rwxp 0000a000 fd:00 1277992    /lib/libnss_files-2.6.so
b77af000-b77b7000 rwxs 00000000 fd:00 2097473    /tmp/hsperfdata_root/2672
b77b7000-b7b29000 r-xp 00000000 fd:00 2065938    /usr/java/jdk1.5.0_12/jre/lib/i386/client/libjvm.so
b7b29000-b7b47000 rwxp 00371000 fd:00 2065938    /usr/java/jdk1.5.0_12/jre/lib/i386/client/libjvm.so
b7b47000-b7f65000 rwxp b7b47000 00:00 0
b7f65000-b7f6b000 r-xp 00000000 fd:00 2065979    /usr/java/jdk1.5.0_12/jre/lib/i386/native_threads/libhpi.so
b7f6b000-b7f6c000 rwxp 00006000 fd:00 2065979    /usr/java/jdk1.5.0_12/jre/lib/i386/native_threads/libhpi.so
b7f6c000-b7f6d000 rwxp b7f6c000 00:00 0
b7f6d000-b7f6e000 r-xp b7f6d000 00:00 0
b7f6e000-b7f6f000 r-xp b7f6e000 00:00 0          [vdso]
bfdc2000-bfdc5000 --xp bfdc2000 00:00 0
bfdc5000-bffc2000 rwxp bfe02000 00:00 0          [stack]
VM Arguments:
java_command: navigator/NavigatorFrame
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=/usr/java/jdk1.5.0_12
CLASSPATH=.:/usr/java/jdk1.5.0_12/lib:/usr/java/jdk1.5.0_12/bin/comm.jar:/usr/java/jdk1.5.0_12/jre/lib/ext/jcl.jar:/usr/tools/JMF-2.1.1e/lib/jmf.jar:/usr/tools/JMF-2.1.1e/lib/jffmpeg.jar:/usr/applications/navigator
PATH=/usr/java/jdk1.5.0_12/bin:/usr/java/jdk1.5.0_12/bin:/usr/include:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/tools/JMF-2.1.1e/lib:.
LD_LIBRARY_PATH=/usr/java/jdk1.5.0_12/jre/lib/i386/client:/usr/java/jdk1.5.0_12/jre/lib/i386:/usr/java/jdk1.5.0_12/jre/../lib/i386:/usr/tools/JMF-2.1.1e/lib
SHELL=/bin/bash
DISPLAY=:0.0
HOSTTYPE=i386-linux
OSTYPE=linux
MACHTYPE=i386
Signal Handlers:
SIGSEGV: [libjvm.so+0x32b1b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGBUS: [libjvm.so+0x32b1b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGFPE: [libjvm.so+0x28eb70], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGPIPE: [libjvm.so+0x28eb70], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGILL: [libjvm.so+0x28eb70], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x290fc0], sa_mask[0]=0x00000000, sa_flags=0x10000004
SIGHUP: [libjvm.so+0x2909f0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGINT: [libjvm.so+0x2909f0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGQUIT: [libjvm.so+0x2909f0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGTERM: [libjvm.so+0x2909f0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
---------------  S Y S T E M  ---------------
OS:Fedora release 7 (Moonshine)
uname:Linux 2.6.23.12-52.fc7 #1 SMP Tue Dec 18 21:18:02 EST 2007 i686
libc:glibc 2.6 NPTL 2.6
rlimit: STACK 10240k, CORE 0k, NPROC 3583, NOFILE 1024, AS infinity
load average:0.35 0.76 0.38
CPU:total 1 (cores per cpu 1, threads per core 1) family 6 model 9 stepping 8, cmov, cx8, fxsr, mmx, sse
Memory: 4k page, physical 222820k(3468k free), swap 524280k(503880k free)
vm_info: Java HotSpot(TM) Client VM (1.5.0_12-b04) for linux-x86, built on May  2 2007 03:26:22 by java_re with gcc 3.2.1-7a (J2SE release)

Similar Messages

  • Generate a thumbnail from HTML by pure Java on Linux without Graphics

    hi - we in a requirement where we have to generate thumbnails from HTML code. The solution must be implemented in pure Java on Linux where there is no graphics support.
    Options tried already are :--
    1. 3rd party websites - rolled out by our client.
    2. Paid products - rolled out by our client
    3. Media Tracker and other java API - no luck as there is no support after HTML 4.0
    4. Using any os dependent native library - rolled out by our client.
    5. Lobo browser - but having troubles like it opens the browser before screenshot is taken, sometimes. Gone through by putting Thread.sleep() in between and saving remote images into a local html file etc. We got some success in there but problem doesn't end here.
    Questions -
    1. In the point # 5 above, our Linux server had graphics support but in code we set the system property java.awt.headless= true before capturing and generating thumbnail. My question is, if we set this property in the code then does it mean 100% that our code will not use any graphics support, if present in the underlying OS?
    2. Is this really possible to generate images in java on Linux where there is no X window/X server installed? Are we just wasting time in order to achieve which is unachievable?
    Any suggestions are most welcome.
    Regards,
    Sanjeev

    Thanks for ur response! Yeah - we tried but requirements are little different. We have HTML that we have to first render. Whatever output comes, we have to take a screenshot. So in order to render the html we have to have a browser first and I believe every OS which is providing browser support is having Graphics capabilities because browser would have frames, windows, toolbars, menubars etc which fall under Graphics.
    The above way is the only way that I know. If there are another way which ofcourse doesn't require graphics support, please let me know.
    So the question basically is - if I follow above mentioned image (like opening browser and capture screenshot) then is it possible on Linux with no graphics support? Actually I read on internet that lobo browser (written in java) supports this kind of feature.

  • Set Date Time Computer with Java in Linux OS

    Dear All,
    How to set date time computer with Java in linux OS?
    Rgds,
    Theo

    There is no API for this you'd have to run an external command using Process.exec.
    This is the wrong forum for general Java "how to" questions.

  • Java in Linux

    Can I use Gtk components in my java applications?
    I tried to install java in linux. But I had lots of problems. So I decided to do this with a plan. Because I have to install lots of things or I made it hard for me.
    What shall I install and in which queue shall I install them? (JDK, JRE, Java studio or netbeans...)
    Thanks for any help...

    And can I use linux's textboxes, labels, chackboxes etc. in java?Well, I guess they're GTK's widgets you are talking about, not Linux's ...;) But, yes, according to these people: http://java-gnome.sourceforge.net/ "Since 1998, the java-gnome project has been offering Java bindings for the GTK widget toolkit and for the rich family of libraries making up the GNOME desktop."
    Meanwhile the little white angel figure waggles its finger and cautions:
    -- I've never used this software
    -- If you're new to Java, consider that it has a big API: that means lots of widgets and things to learn. If you add to this the task of learning to communicate between this language and another, this is looking like a lot of work. At least learn the language first!
    -- Using JNI (ie communicating at a low level with the OS) which this approach involves, may be a case of banging like h3ll on a square peg to force it into a round hole. At a minimum you lose OS independency (the freedom for your software to run on any* OS).
    But who listens to the little white angel figure? Good luck!
    * where any==possessing a jre; but note how I've dragged freedom into it!

  • How good is java in linux?

    I am a linux newbie and was planning to put linux on computer. I wanted to know how good java performs under linux. Is it faster? Is it slower? Also, I seen many people asking for help installing the 1.4.1 implementation. Is it tough to install java on linux ? Note: I plan on installing YellowDog Linux 3.0 when it's released on cd. YellowDog is for PPC's and I'm installing it because I've never had the chance to develop with the Java2 platform on Mac OS because my computer's G3 just can't handle OS X.
    Thanks.

    I don't know if there is a Linux-PPC version of Java available. And the versions listed on the download page for "Linux" are i386-based (unless otherwise explicitly specified).
    As far as Linux, goes: learn the system first before you try to jump into programming on it. "Raw" Unix-systems are VERY different, especially if you're coming straight from a Mac-OS. Get a good book and work through it. Linux is getting better at being a good "out-of-the-box" experience, but there's a lot of stuff in there...

  • Is the Java "Zero-Day" bug dangerous for MountainLion users?

    Is the Java "Zero-Day" bug dangerous for MountainLion users?

    It is not yet dangerous, to my knowledge, as it is currently being used only to distribute Windows malware. But users of Java 7 are certainly vulnerable, should a hacker start distributing Mac malware through this vulnerability.
    For more info, see:
    http://www.reedcorner.net/new-unpatched-java-vulnerability-discovered/

  • Seek help for install java under linux

    I have successfully installed java on linux , but not able to use many features tht i possibly could , such as jdbc , prblms on Mysql. most buggin prblm how do i set the compiler path to compile files from my home directory. i have to forcefully use the bin directory and run the complier given long address for the files. plz help.
    abhi

    abhi
    I don't know about your MySQL problems based on what you have posted - can you post any more specific information? Have you got the relevant MySQL drivers in your classpath? The drivers are available here:
    http://www.mysql.com/downloads/download.php?file=Downloads/Connector-J/mysql-connector-java-2.0.14.tar.gz
    the README in that file will give you installation instructions.
    how do i set the compiler path to compile files from my home directorySet the CLASSPATH environment variable to include whichever directories you like, eg (on bash) type:
    export CLASSPATH=$CLASSPATH:.:<your java dirs>To make java easier to run, put the directory in which it is installed into your path:
    export JAVA_HOME=<where you installed java>Then do
    export PATH=$PATH:$JAVA_HOME/binverify it has worked by simply typing
    javaYou can put all of these commands into the .*rc file for your shell, so that they are executed every time you open the shell. So if you are using bash you can put them into ~/.bashrc
    Read up setting the PATH and CLASSPATH for more info.
    HTH
    Matt

  • Fall into a trouble when calling a dll from java in linux

    Hi, experts:
    I encountered a big trouble when using JNI to call a C++-compiled DLL from java in Linux: The DLL function didn't execute immediately after the invocation, and was deferred till the end of the Java execution. But all worked well after migrating to windows. This problem made me nearly crazy. Can somebody help me? Thanks in advance.
    Linux: fedora core 8, jdk1.6.0_10,
    compile options: g++ -fPIC -Wall -c
    g++ -shared

    It looks like the OP compiled the C source file and linked it into a Windows .dll, which would explain why it worked flawlessly in Windows. (Though I must say the usage of GCC would make someone think it was compiled in Linux for Linux, GCC also exists for Windows, so I'm not sure it's a Windows .dll either...)
    @OP: Hello and welcome to the Sun Java forums! This situation requires you to make both a .dll and a .so, for Windows and Linux. You can then refer to the correct library for the operating system using System.loadLibrary("myLibrary"); without any extension.
    s
    Edited by: Looce on Nov 21, 2008 11:33 AM

  • Call Windows COM/DCOM objects from Java on Linux

    Hello, is it possible to call COM/DCOM objects running on Windows from Java on Linux machine? Thank you.

    I don't know anything about it but it looks like EZ JCom in conjunction with the included Remote Access Service does what you're after. It's not free though.
    http://www.ezjcom.com/

  • Printing from SAP GUI for JAVA on linux

    Hi All,
    What are the settings to be made in SPAD for printing from sapgui for java on linux ?
    We are using SAP GUI for JAVA 700 .
    Regards,
    Vinod

    Hi,
    configure printer in SPAD  , no setting for JAVA GUI
    check note
    605467:SAPscript/Smart Forms: Print preview in SAP GUI for Java
    634158      SAPscript/Smart Forms: Print preview in SAP GUI for Java (2)
    1024624 SAPscript/Smart Forms: Print preview in SAP GUI for Java (3)       
    regards,
    kaushal
    regards,
    kaushal

  • Developing Java under Linux and Windows

    Dear all
    I want to know the percentage of developing Java under Linux platform and under Windows platform. is it 50 % for each or most of developers develop under one platform?
    Best Regards

    I want to know the percentage of developing Java
    under Linux platform and under Windows platform. is
    it 50 % for each or most of developers develop under
    one platform?I did a full survey of this just last week. I contacted 10,000 Java
    developers so to an accuracy of better than 1% I find that
    78% develop on Windows
    11% develop on Mac
    12% develop on Linux
    12% develop on AIX
    6% develop on 'other' platforms.------+
    119%
    You may quote me on this.Uhuh ;-)
    kind regards,
    Jo

  • Linux bug ?

    Hi,
    this is a bug concerning Java3D for linux (problem not seen under windows (!!) )
    from demo installed with the jdk : in directory OffScreenCanvas3D, in file PrintFromButton.java
    here is some code which works :
    GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
    u = new SimpleUniverse(d);
    // create an off Screen Buffer
    c = new OffScreenCanvas3D(config, true, drawRaster);
    and here is some code which does NOT works : (crash !!)
    GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
    // create an off Screen Buffer
    c = new OffScreenCanvas3D(config, true, drawRaster);
    u = new SimpleUniverse(d);
    compiling is ok, but when running,
    I've got this error :
    An unexepcted exception has been detected in native ocde outside the VM.
    Unexpected Signal : 11 occured at PC=0x4bd6ab6a
    Function name = java_javax_media_j3d_Canvas3D_createOffScreenBuffer
    Library=/usr/java/jdk1.3.1_01/jre/lib/i386/libJ3D.so
    Current java thread: at javax.media.j3d.Canvas3D.createOffscreenBuffer(Native Method)
    This error doesn't occur under Windows (W2000, jdk 1.3.1_03)
    In my application I don't want to use a SimpleUniverse, and don't want to have some On-screen canvas.
    Another thing : if I instanciate u = SimpleUniverse, I have a new windows which appears (under Windows too) how can I avoid it ?
    does anybody works under linux in this forum ?
    Gilles Parisot.
    [email protected]

    after searching a lot, it seems that it is about a GraphicsConfiguration thing :
    when creating a object of class "Viewer", there is a Canvas3D object created.
    But I have not the code source of Viewer.java (can someone helps ?)
    Maybe it is in the linux version only.
    When trying to instanciate a Canvas3D with "null" as param, I got an exception OR a warning, depending on where in the code I do it !!!
    With the warning I have a crash as before,
    with the exception, I don't know what to do... (see last post)
    Gilles.
    to LouisGL :
    RedHat 7.2
    j3d 1.3b
    jdk 1.3.1_01

  • Java on  Linux with .MDB file

    Hi,
    I have created a small java project (experementing actually) to connect to my database .mdb in windows. it works find in my windows environment (Vista + Java + .mdb). I created a .jar file and try to execute it in the Linux (obundu) the program opens but it does not connect to the database instead it throws an error (null),
    I am using the DNSless connection. I have attached the code for checking
       Connection getConnection() throws Exception {
        try{
            String dir=System.getProperty("user.dir")+"/db/Client.mdb";
        System.out.println("1");
             Driver d = (Driver)Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
        System.out.println("2");
             Connection c=DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver(*.mdb)};DBQ="+dir, "admin", "pass");
        System.out.println("3");
        return c;
        catch (exception e){
           System.out.println(e.getMessage());
            System.out.println("4");
        }When I run this code in linux (I have included some print statements for debugging purpose) it print 1,2,null,4
    but with windows 1,2,3 (which has opened the connection)
    could anyone help me with this connection. I have even installed jdk 6 with netbeans in my linux pc to re-compile in linux itself to check. I still get the same error. the programme not connecting to the database
    Thanks

    jwenting wrote:
    jschell wrote:
    jwenting wrote:
    there is no ODBC on Linux, hence no bridge driver.ODBC exists on unix.not as standard. Not sure what you mean. It available for most flavors of unix including linux, solaris, OSX, HPUX and AIX.
    How more 'standard' does it need to be?
    Even if it is installed on OPs machine, it's a fair bet that OP doesn't have a valid DSN set up and doesn't know how to configure one.Could be. But the fact that they are using MS Access means that that point is meaningless.
    >
    Bridge driver exists on linux.
    never seen it, but then I've never looked for it because it's rubbish.That for course doesn't mean it doesn't exist. It exists in all of the Sun VM releases.
    >>>
    You never use the bridge driver. Not only is it complete rubbish, but it is also a class from the sun.* packages and none of those should ever be used directly.The notation of the bridge driver being a sun.* package is not relevant. One must use the bridge driver or another ODBC driver when using an ODBC only source.
    One should never use the bridge driver. It's rubbish. See the documentation for the driver.The driver was donated to Sun by a company that was at the time and still does sell java ODBC drivers. The documentation was probably worded that way specifically to steer people to the commercial drivers.
    I have never seen a single problem with the driver itself. The driver up until recently I believe (rather strongly since I have seen bug reports on it for interim releases) was used for unit testing all of the JDBC functonality for the Sun VM releases.
    When it was released it was basically the only driver and certainly the only free one. I am rather certain that many projects were successful with it. It was certainly used successfully by me on a large system.
    If you insist on using ODBC through Java, get another driver.
    mdb file is a MS Access file.I know that... It's however completely irrelevant here, as all that counts is that there's a bad driver being used (and almost certainly incorrectly too).You have a completely different view of the problem domain than I do then. I provided all of the possible solutions for the problem domain that I saw.

  • Firefox will not load Java in Linux - even after following all instructions on net I can find - what am I doing wrong??

    The problem I've got is I'm currently running Puppy Linux on my laptop.
    Now I've tried everything I can to get Java working under either Firefox, Chromium or Seamonkey (I have all three browsers on my computer).
    For firefox and seamonkey I have tried the following -
    downloaded the tar.gz file for java
    unpacked it to /opt/java
    gone to /user/lib/mozilla/plugins and run the command
    ln -s /opt/java/plugin/i386/ns7/libjavaplugin_oji.so
    to create the symbolic link to the plugin
    checked that the plugin is executable (actually even tried giving everything full permission to read/write and execute it)
    For Chromium done a similar thing but put the symbolic link in /usr/lib/chrome-linux/plugins folder instead.
    Restarted the web browser, even tried restarting X Server in case the browser is running somewhere in the background.
    All three browsers can pick up all the other .so plugins in that folder except Java.
    When I click check plugins on firefox I get to the page about "Missing Java? - For your safety Firefox has disabled your outdated version of Java. Please upgrade to the latest version".
    However the version I've downloaded is Version 7 Update 9 which is exactly the same one that is available as the latest version from Java themselves (it was only downloaded from that link a couple of minutes before, I've even tried re-downloading it just in case there has been an update within those 5 minutes).
    If I go into the Java folder and run ControlPanel the Java control panel pops up and it knows where Java is installed and everything.
    So what on earth is going on? Am I installing the plugin in the right directory? I'm guessing so as that is where all the other plugins are stored and Firefox, Chrome and Seamonkey are picking all the others up fine, or could there be an older version of Java lurking around somewhere on my system that Firefox, Seamonkey and Chrome are all trying to use?
    I've also tried downloading the RPM and installing that into the /usr/java folder and replacing the symlink from /opt/java to the one in the /usr/java folder and still nothing.
    I just really can't understand it 'cos it's picking up all the other plugins like Gecko and even installed Flash in the same way and that works fine.

    Thanks cor-el looks like Oracle need to update their linux installation instructions then. If only I'd have known that before doing all sorts to get it working.
    I now have Java in Firefox, Chrome and Seamonkey :) :) :) :) :).

  • Java on Linux vs. Windows

    Dear All,
    I was able to write below AES/CFB/NoPadding encryption/decryption program (with many thanks to the Internet) and it works fine on Windows. But it's "getByte()" gives problems on Linux.
    Which is the "symmKey.length()" inside "SymmCipher" constructor is only 15 chars. But "symmKey.getBytes().length" has become 33.
    Can anybody answer?
    Thanks in advanced.
    - amilww
    // aesDemo.java
    class aesDemo
         public static void main(String[] args) throws Exception
              String keyHexStr = "CAABBCCDDEE11223344556677889900F";
              String ivStr     = "0000000000000001";
              String inputStr  = "This in a test message";
              // Intermediate variables
              String cipherTextStr, plainTextStr,
                     reqHexMsgStr,  repHexMsgStr,
                     repMsgStr;
              SymmCipher symmCipher = new SymmCipher("AES/CFB/NoPadding",
                                                     new String(Util.hex2Bytes(keyHexStr)),
                                                     ivStr);
              // Encrypt the input string
              cipherTextStr = symmCipher.encrypt(inputStr);
              // Convert to an uppercase Hex request string
              reqHexMsgStr = Util.bytes2Hex(cipherTextStr.getBytes()).toUpperCase();
              // Obtain the reply; assume to be the request
              repHexMsgStr = reqHexMsgStr;
              // Convert reply hex message to a string
              repMsgStr = new String(Util.hex2Bytes(repHexMsgStr));
              // Decrypt the reply string
              plainTextStr = symmCipher.decrypt(repMsgStr);
              // Debub output
              System.out.println("=============================================");
              System.out.println("Encrypting/decrypting using AES/CFB/NoPadding");
              System.out.println("---------------------------------------------");
              System.out.println("Input String: '" + inputStr + "'");
              System.out.println("Encr request: '" + cipherTextStr + "'");
              System.out.println("Req Hex Msg:  '" + reqHexMsgStr + "'");
              System.out.println("Rep Hex Msg:  '" + repHexMsgStr + "'");
              System.out.println("Encr reply:   '" + repMsgStr + "'");
              System.out.println("Response:     '" + plainTextStr + "'");
              System.out.println("=============================================");
    // SymmCipher.java
    import javax.crypto.Cipher;
    import javax.crypto.spec.IvParameterSpec;
    import javax.crypto.spec.SecretKeySpec;
    class SymmCipher
         private String cipherForm;
         // e.g.: "AES/CFB/NoPadding", "DES/CTR/NoPadding", "DES/ECB/PKCS5Padding"
         private String cipherMethod;
         private SecretKeySpec   keySpec;
         private IvParameterSpec ivSpec;
         private Cipher          cipher;
         public SymmCipher(String cipherForm, String symmKey, String iv) throws Exception
              this.cipherForm   = cipherForm;
              this.cipherMethod = this.cipherForm.split("/")[0];
              this.keySpec = new SecretKeySpec(symmKey.getBytes(), this.cipherMethod);
              this.ivSpec  = new IvParameterSpec(iv.getBytes());
              this.cipher = Cipher.getInstance(this.cipherForm);
         public String encrypt(String plainText) throws Exception
              // Encrypting...
              this.cipher.init(Cipher.ENCRYPT_MODE, this.keySpec, this.ivSpec);
              return new String(this.cipher.doFinal(plainText.getBytes()));
         public String decrypt(String cipherText) throws Exception
              // Decrypting...
              this.cipher.init(Cipher.DECRYPT_MODE, this.keySpec, this.ivSpec);
              return new String(this.cipher.doFinal(cipherText.getBytes()));
    // Util.java
    class Util
         public static String bytes2Hex(byte buf[])
              StringBuffer strbuf = new StringBuffer(2 * buf.length);
              for (int i = 0; i < buf.length; i++)
                   if (((int) buf[i] & 0xff) < 0x10)
                        strbuf.append("0");
                   strbuf.append(Long.toString((int) buf[i] & 0xff, 16));
              return strbuf.toString();
         public static byte[] hex2Bytes(String hex)
              int    len = hex.length();
              byte[] buf = new byte[((len + 1) / 2)];
              int i = 0, j = 0;
              if (1 == (len % 2))
                   buf[j++] = (byte) hexDigit(hex.charAt(i++));
              while (i < len)
                   buf[j++] = (byte) ((hexDigit(hex.charAt(i++)) << 4) |
                   hexDigit(hex.charAt(i++)));
              return buf;
          * Returns the number from 0 to 15 corresponding to the hex digit <i>ch</i>.
          * @param ch hex digit character (must be 0-9A-Fa-f)
          * @return   numeric equivalent of hex digit (0-15)
         public static int hexDigit(char ch)
              if (('0' <= ch) && ('9' >= ch))
                   return ch - '0';
              if (('A' <= ch) && ('F' >= ch))
                   return ch - 'A' + 10;
              if (('a' <= ch) && ('f' >= ch))
                   return ch - 'a' + 10;
              return(0);     // any other char is treated as 0
    }

    This statement
         return new String(this.cipher.doFinal(plainText.getBytes()));     has two problems.
    1) It relies on the default character encoding when converting the plainText to bytes and the default character encoding is platform, operating system and user dependent. It is far far better to specify an encoding yourself - I always use utf-8.
    2) You are converting the essentially random binary result of the encryption to a String using new String(encrypted bytes). String should never be used as a container for binary data unless something like Hex or Base64 is used because, depending on the character encoding, it is not reversible for most character encoding. If you need a Hex or Base64 encoder then Google for Jakarta Commons Codec.

Maybe you are looking for