Issue 98528 - Assertion "invalid JAVA_UNO_CLASSPATH entry!" pops up as an error window
Summary: Assertion "invalid JAVA_UNO_CLASSPATH entry!" pops up as an error window
Status: ACCEPTED
Alias: None
Product: General
Classification: Code
Component: scripting (show other issues)
Version: DEV300m39
Hardware: All Windows, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-27 14:57 UTC by vg
Modified: 2013-08-07 15:31 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description vg 2009-01-27 14:57:17 UTC
non-pro version, running smoketest on some machines...
The complete message:

Assertion Failed!

Error: File
O:\DEV300\src\desktop\source\deployment\registry\component\dp_component.cxx,
Line 660
:### invalid JAVA_UNO_CLASSPATH entry!

( Yes=Abort, No=Ignore, Cancel=Debugger)

The message should be written in the debug console, otherwise automatic testing
is impossible
Comment 1 joachim.lingner 2009-01-29 12:15:43 UTC
not reproducable anymore for some reason
Comment 2 joachim.lingner 2009-01-29 12:16:26 UTC
.
Comment 3 kurt.zenker 2009-03-12 18:36:09 UTC
CCed: hjs
Comment 4 hjs 2009-03-13 12:32:10 UTC
still occurs here on m42, windows nonproduct
Comment 5 vg 2009-03-13 12:59:19 UTC
.
Comment 6 joachim.lingner 2009-03-17 15:21:25 UTC
This problem could be reproduced on a windows machine using cygwin. There was no
JRE installed locally. When building smoketestoo_native then the writer2latex is
installed as shared extensions. This requires Java. However, there is non on the
system (Windows registry) and the JAVA_HOME environment variable from the build
environment is not passed into the uno.exe process where the actual registration
of the Java component occurs. The uno.exe process is started from unopkg.bin.
See desktop/source/deployment/misc/dp_misc.cxx:raiseProcess.
It shows that no environment variables are passed on to the child process.

Comment 7 joachim.lingner 2009-03-19 12:06:31 UTC
Correction: unopkg starts uno.exe so that it inherits the environment. During
setup a custom action is performed that starts unopkg. This invocation is also
done in a way that the environment is inherited.
However, the environment of the console is not available in the msi process,
hence JAVA_HOME cannot be inherited.

This could be fixed by providing a global variable when invoking  the setup. In
the custom action one would read the variable with MsiGetProperty and put then
JAVA_HOME into the environment, so that unopkg inherits it.

The other issue is that, the unorc
(uno_packages/cache/unopackages/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/unorc)
is not cleaned up in case the registration of the Java service failed.

The current workaround is to have an Java 5 installed (including registry
entries) locally.


Comment 8 hjs 2009-03-19 13:07:39 UTC
CCed: is
Comment 9 joachim.lingner 2009-08-31 10:35:52 UTC
target 3.3
Comment 10 joachim.lingner 2009-08-31 10:36:32 UTC
.
Comment 11 joachim.lingner 2009-12-03 15:58:22 UTC
The problem with invalid UNO_JAVA_CLASSPATH entry assertion is addressed in
issue 107416.
Comment 12 joachim.lingner 2010-02-09 10:02:41 UTC
.