Hi Framework-ML,

I opened following thread in the API list:

>>> I created a little programm that removes a menu item from a menu and
>>> adds another instead. In case the user tries to access the menu while
>>> the menu update is performed my OO crashes and says:
>>> -----%<-----
>>> Exception in thread "main" com.sun.star.lang.DisposedException:
>>> java.io.EOFException at
>>> com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.invoke(java_remote_bridge.java)
>>> at
>>> com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.run(java_remote_bridge.java)
>>> -----%<-----

>> It is probably your Java application that says the above, not OOo.  And
>> it just means that OOo crashed and your Java application thus lost its
>> connection to OOo.  So, to find out more about the crash, you would need
>> to attach to OOo with a debugger.

Is this crash a bug or not? Do you need more info to give an answer?

How can I prevent the user from accessing the menus while adding /
removing menu items with java?

Does following strace help you to identify the reason?

Greetings, Tobias

-----%<-----
send(5, "\320\10\0\0(\0\0\0\3\224\0\r\"[]com.sun.star.bean"..., 130, 0)
= 130
send(5, "\0", 1, 0)                     = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\0", 1, 0)                     = 1
send(5, "_", 1, 0)                      = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\1", 1, 0)                     = 1
send(5, "\320\10\0\0\t\0\0\0\10\24\0\r\3\nCommandURL\0\0\0\0\f\r"...,
95, 0) = 95
send(5, "\0", 1, 0)                     = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\v", 1, 0)                     = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\1", 1, 0)                     = 1
send(5, "\360\0\26\0\t\0\0\7\26\0\7", 11, 0) = 11
futex(0x8230c7c, FUTEX_WAIT, 1365, NULL) = -1 EAGAIN (Resource
temporarily unavailable)
futex(0x805e6a0, FUTEX_WAKE, 1)         = 0
send(5, "\0", 1, 0)                     = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\22", 1, 0)                    = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\1", 1, 0)                     = 1
send(5, "\340\4\26\0\7\nPersistent\2\0", 18, 0) = 18
send(5, "\0", 1, 0)                     = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\10", 1, 0)                    = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\1", 1, 0)                     = 1
send(5, "\340\5\26\0\n\0\0\10", 8, 0)   = 8
send(5, "\0", 1, 0)                     = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\10", 1, 0)                    = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\0", 1, 0)                     = 1
send(5, "\1", 1, 0)                     = 1
send(5, "\360\10\26\0\3\0\0\3", 8, 0)   = 8
futex(0x8230c7c, FUTEX_WAIT, 1367, NULL) = 0
futex(0x805e6a0, FUTEX_WAKE, 1)         = 0
gettimeofday({1149253633, 477561}, NULL) = 0
gettimeofday({1149253633, 477601}, NULL) = 0
gettimeofday({1149253633, 477686}, NULL) = 0
gettimeofday({1149253633, 477713}, NULL) = 0
write(2, "Exception in thread \"main\" ", 27Exception in thread "main" )
= 27
write(2, "java.lang.reflect.InvocationTarg"...,
43java.lang.reflect.InvocationTargetException) = 43
write(2, "\n", 1
)                       = 1
gettimeofday({1149253633, 481961}, NULL) = 0
gettimeofday({1149253633, 481994}, NULL) = 0
gettimeofday({1149253633, 706891}, NULL) = 0
gettimeofday({1149253633, 707446}, NULL) = 0
write(2, "\tat sun.reflect.NativeMethodAcce"..., 63     at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)) = 63
write(2, "\n", 1
)                       = 1
write(2, "\tat sun.reflect.NativeMethodAcce"..., 81     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39))
= 81
write(2, "\n", 1
)                       = 1
write(2, "\tat sun.reflect.DelegatingMethod"..., 89     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25))
= 89
write(2, "\n", 1
)                       = 1
write(2, "\tat java.lang.reflect.Method.inv"..., 52     at
java.lang.reflect.Method.invoke(Method.java:585)) = 52
write(2, "\n", 1
)                       = 1
write(2, "\tat com.sun.star.lib.loader.Load"..., 52     at
com.sun.star.lib.loader.Loader.main(Loader.java)) = 52
write(2, "\n", 1
)                       = 1
write(2, "Caused by: com.sun.star.lang.Dis"..., 68Caused by:
com.sun.star.lang.DisposedException: java.io.EOFException) = 68
write(2, "\n", 1
)                       = 1
write(2, "\tat com.sun.star.lib.uno.bridges"..., 113    at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.invoke(java_remote_bridge.java))
= 113
write(2, "\n", 1
)                       = 1
write(2, "\tat com.sun.star.lib.uno.bridges"..., 110    at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.run(java_remote_bridge.java))
= 110
write(2, "\n", 1
)                       = 1
mmap2(0xafb20000, 12288, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0xafb20000
futex(0x80f4b6c, 0x4 /* FUTEX_??? */, 1) = 1
futex(0x805bd48, FUTEX_WAKE, 1)         = 1
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
gettid()                                = 19684
rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_UNBLOCK, [HUP INT ILL BUS FPE SEGV USR2 TERM], NULL,
8) = 0
rt_sigprocmask(SIG_BLOCK, [QUIT], NULL, 8) = 0
sched_setscheduler(19684, SCHED_OTHER, { 5 }) = -1 EINVAL (Invalid argument)
mmap2(0xafb20000, 12288, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xafb20000
mprotect(0xafb20000, 12288, PROT_NONE)  = 0
gettimeofday({1149253633, 927677}, NULL) = 0
gettimeofday({1149253633, 927724}, NULL) = 0
gettimeofday({1149253633, 927749}, NULL) = 0
gettimeofday({1149253633, 963498}, NULL) = 0
gettimeofday({1149253633, 963635}, NULL) = 0
gettimeofday({1149253633, 963749}, NULL) = 0
gettimeofday({1149253633, 963812}, NULL) = 0
gettimeofday({1149253633, 963838}, NULL) = 0
gettimeofday({1149253633, 963905}, NULL) = 0
gettimeofday({1149253633, 999443}, NULL) = 0
gettimeofday({1149253633, 999603}, NULL) = 0
gettimeofday({1149253633, 999630}, NULL) = 0
gettimeofday({1149253633, 999772}, NULL) = 0
gettimeofday({1149253633, 999808}, NULL) = 0
gettimeofday({1149253633, 999897}, NULL) = 0
gettimeofday({1149253633, 999995}, NULL) = 0
gettimeofday({1149253634, 61850}, NULL) = 0
gettimeofday({1149253634, 62431}, NULL) = 0
futex(0x822710c, FUTEX_WAIT, 1, NULL)   = 0
futex(0x805bfb8, FUTEX_WAKE, 1)         = 0
gettimeofday({1149253634, 130739}, NULL) = 0
futex(0xa7991be0, FUTEX_WAKE, 1)        = 1
mmap2(0xafb20000, 12288, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0xafb20000
futex(0x80b7244, FUTEX_WAKE, 1)         = 1
futex(0x80b7240, FUTEX_WAKE, 1)         = 1
futex(0x805be48, FUTEX_WAKE, 1)         = 1
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
unlink("/tmp/hsperfdata_tobias/19684")  = 0
exit_group(1)                           = ?
Process 19684 detached

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to