Newsgroup: it.comp.java
Titolo: Errore del Jre sotto Unix-HP

 Ho sviluppato un'applicazione facendo uso di JBuilder2 utilizzando le
classi jbcl della borland e
i driver jdbc nativi per oracle della oracle stessa, su PC nessun
problema (i db sono su una macchina Unix della HP)  ma portando il
programma sulla macchina HP ho il seguente errore (e' un po' lunghetto
lo so...)
Qualche idea ?
Ciao e grazie.
 Java stack lock: monitor: 0x400117c0 <unowned>
    Code rewrite lock: monitor: 0x40011760 <unowned>
    JIT lock: monitor: 0x40011708 <unowned>
    Heap lock: monitor: 0x400115f8 <unowned>
    Has finalization queue lock: monitor: 0x40011590 <unowned>
    Finalize me queue lock: monitor: 0x40011530 <unowned>
        Waiting to be notified:
            "Finalizer thread"
    Monitor IO lock: monitor: 0x7b005598 <unowned>
    Child death monitor: monitor: 0x40004a68 <unowned>
    Event monitor: monitor: 0x40004a10 <unowned>
    I/O monitor: monitor: 0x400049b8 <unowned>
    Alarm monitor: monitor: 0x40004960 <unowned>
        Waiting to be notified:
            "Clock"
    Sbrk lock: monitor: 0x7b005440 <unowned>
    Monitor cache expansion lock: monitor: 0x40003ee0 <unowned>
    Monitor registry: monitor: 0x40003e80 owner "main" (0x40073398, 1
entry)
Thread Alarm Q:
    sys_thread_t 0x79e97000   [Timeout in 687 ms]
Abort(coredump)
$ hp735:root > ls
EnterpriseSoft  cmd.html        core            jclass          steps
borland         com             java            netscape
$ hp735:root > jre steps.forms.AZIFrame
Class not found: steps.forms.AZIFrame
$ hp735:root > pwd
/home/demo/JSteps/steps
$ hp735:root > jre steps.forms.AZIFrame
Class not found: steps.forms.AZIFrame
$ hp735:root > echo $CLASSPATH
/home/demo/JSteps/ERW.jar:/home/demo/JSteps/ERWClient.jar:/home/demo/JSteps/
ERWCommon.jar:/home/demo/JSteps/ERWDATViewer.jar:/home/demo/JSteps/ERWDesign
er.jar:/home/demo/JSteps/ERWMain.jar:/home/demo/JSteps/jbcl2.0-res.jar:/home
/demo/JSteps/jbcl2.0.jar:/home/demo/JSteps/jcbwt.jar:/home/demo/JSteps/jccha
rt.jar:/home/demo/JSteps/jctable.jar:/home/demo/JSteps/jgl3.1.0.jar:/home/de
mo/JSteps/swingall.jar:/home/demo/JSteps/capsapi_classes.zip:/java/test/lib/
classes111.zip
$ hp735:root > CLASSPATH=.:$CLASSPATH
$ hp735:root > jre steps.forms.AZIFrame
Class not found: steps.forms.AZIFrame
$ hp735:root > jre steps.forms.AZIFrame
SIGBUS    10*  bus error
Sig = 10; code = 0.
        stackbase=7B03B4F4, stackpointer=7B03EF80
Full thread dump:
    "AWT-EventQueue-0" (TID:0x7a282c10, sys_thread_t:0x79cfa000,
state:CW, monitor_wait:0x40004160) prio=5
        java.lang.Object.wait(Object.java)
        java.awt.EventQueue.getNextEvent(EventQueue.java:119)
        java.awt.EventDispatchThread.run(EventDispatchThread.java:55)
    "JIT Compiler" (TID:0x7a27e268, sys_thread_t:0x79d75000, state:CW,
monitor_wait:0x40080320) prio=10
    "Finalizer thread" (TID:0x7a27e220, sys_thread_t:0x79e76000,
state:CW, monitor_wait:0x40011530) prio=1
    "Async Garbage Collector" (TID:0x7a27e1d8, sys_thread_t:0x79e97000,
state:CW, monitor_wait:0x40004298) prio=1
    "Idle thread" (TID:0x7a27e190, sys_thread_t:0x79eb8000, state:R,
monitor_wait:0x0) prio=0
    "Clock" (TID:0x7a27e0d0, sys_thread_t:0x79ed9000, state:CW,
monitor_wait:0x40004960) prio=12
    "main" (TID:0x7a27e0a8, sys_thread_t:0x400733b8, state:R,
monitor_wait:0x0) prio=5 *current thread*
        sun.awt.motif.MToolkit.<init>(MToolkit.java:48)
        java.awt.Toolkit.getDefaultToolkit(Toolkit.java:402)
        java.awt.SystemColor.updateSystemColors(SystemColor.java:350)
        java.awt.SystemColor.<clinit>(SystemColor.java:343)
borland.jbcl.control.DecoratedFrame.<init>(DecoratedFrame.java:43)
        steps.forms.AZIFrame.<init>(AZIFrame.java:226)
        steps.forms.AZIFrame.main(AZIFrame.java:261)
Monitor Cache Dump:
    <unknown key> (0x79e97000): monitor: 0x40004298 <unowned>
        Waiting to be notified:
            "Async Garbage Collector"
    java.lang.Class@7A281E70/7A2CD1C8: monitor: 0x4000446c owner "main"
(0x400733b8, 1 entry)
    java.awt.EventQueue@7A282BC0/7A2D0A30: monitor: 0x40004160 <unowned>
        Waiting to be notified:
            "AWT-EventQueue-0"
    <internal> java.lang.Class@7A281AC8/7A2CC080: monitor: 0x40004230
owner "main" (0x400733b8, 1 entry)
    <internal> java.lang.Class@7A281D20/7A2CCE18: monitor: 0x4000412c
owner "main" (0x400733b8, 1 entry)
    sun.awt.motif.MToolkit@7A282B90/7A2D0940: monitor: 0x400044d4 owner
"main" (0x400733b8, 1 entry)
Registered Monitor Dump:
    JIT thread lock: monitor: 0x40080320 <unowned>
        Waiting to be notified:
            "JIT Compiler"
    Thread queue lock: monitor: 0x40073358 <unowned>
    Name and type hash table lock: monitor: 0x40011aa8 <unowned>
    String intern lock: monitor: 0x40011a48 <unowned>
    JNI pinning lock: monitor: 0x400119e8 <unowned>
    JNI global reference lock: monitor: 0x40011980 <unowned>
    Debuggee lock: monitor: 0x40011928 <unowned>
    Debugger lock: monitor: 0x400118d0 <unowned>
    BinClass lock: monitor: 0x40011878 <unowned>
    Class loading lock: monitor: 0x40011818 <unowned>
    Java stack lock: monitor: 0x400117c0 <unowned>
    Code rewrite lock: monitor: 0x40011760 <unowned>
    JIT lock: monitor: 0x40011708 <unowned>
    Heap lock: monitor: 0x400115f8 <unowned>
    Has finalization queue lock: monitor: 0x40011590 <unowned>
    Finalize me queue lock: monitor: 0x40011530 <unowned>
        Waiting to be notified:
            "Finalizer thread"
    Monitor IO lock: monitor: 0x7b005598 <unowned>
    Child death monitor: monitor: 0x40004a68 <unowned>
    Event monitor: monitor: 0x40004a10 <unowned>
    I/O monitor: monitor: 0x400049b8 <unowned>
    Alarm monitor: monitor: 0x40004960 <unowned>
        Waiting to be notified:
            "Clock"
    Sbrk lock: monitor: 0x7b005440 <unowned>
    Monitor cache expansion lock: monitor: 0x40003ee0 <unowned>
    Monitor registry: monitor: 0x40003e80 owner "main" (0x400733b8, 1
entry)
Thread Alarm Q:
    sys_thread_t 0x79e97000   [Timeout in 337 ms]
Abort(coredump)
$ hp735:root >
--
 ============================================================
| Max Caliman :                                              |
| mailto:
cali...@tin.it
                                     |
| 
http://space.tin.it/computer/mcaliman
                      |
 ============================================================
| J.I.A Member (Java Italian Association) 
http://www.jia.it
  |
 ============================================================

Ciao e grazie.
Hm. Dal dump della jvm non e' che si tragga granche'; e' probabile che
sia un bug della JVM di HP (dovuto magari ad un modo un po' diverso di 
usare il toolkit nativo da parte di borland.jbcl.control.DecoratedFrame),
dato che bypassa la gestione delle eccezioni della JVM.
Prova a evitare il compilatore JIT.


Ok provero' grazie,...anche se...e questa e' una cosa strana sviluppando una
maschera di edit per una tabella db oracle, usando il
JDevelover (e quindi anche un DecoratedFrame) tutto funziona
correttamente....questa e' la cosa che mi fa impazzire...! le classi sono
le stesse !
ciao e grazie ancora per la dritta :-)