[Open Office] initVMConfiguration() always fail--64bit java relate

Weichuan Lin weichuan.lin at gmail.com
Wed Jan 18 10:35:14 EST 2006


Hi, all
I am building the ooo-build with Sun's jdk with build version 1.5.0_05
on x86_64 platform, but I always encounter error of registering
component written in java, no matter I use m136 or m148 source code,
the the part of log is showed as follow, all the component in stoc
module is build with debug option enabled.

I have traced some function call, follow the first function called in
initVMConfiguration, that is:
javavm.cxx:getINetProsFromConfig()->
factory.cxx:css::uno::Reference<css::lang::XMultiComponentFactory>::createInstanceWithContext()
    ||
servicemanager.cxx:OServiceManager::createInstanceWithContext

in servicemanager.cxx:OServiceManager::createInstanceWithContext,
there is a  definition of
Sequence< Reference< XInterface > > factories(queryServiceFactories(
rServiceSpecifier, xContext) );
here, a queryServiceFactories return nothing. so the sequence of
factories contain no element.
so, follow the queryServiceFactories()->
servicemanager.cxx:ORegistryServiceManager::queryServiceFactories() ->
servicemanager.cxx:ORegistryServiceManager::loadWithImplementationName()

in ORegistryServiceManager::loadWithImplementationName(),there is a
sentence like:
Reference<XRegistryKey > xImpKey = m_xRootKey->openKey(implementationName);
the openKey operation fails, it return the value of NULL.
It seems that the implementationName of
"/IMPLEMENTATIONS/com.sun.star.configuration.ConfigurationRegistry" is
not in the register file. but I am
not clear about when and where the component is registered into the
register file, and for which register file the ServiceManager will
look

does anybody have suggestion?

BTW. :the log like "####name of service###
/IMPLEMENTATIONS/com.sun.star.configuration.ConfigurationRegistry" is
not in the original source file.
It is the helping message what I add.

end of log of building:
regcomp -register  -br
../../unxlngx6.pro/misc/bridgetest/bootstrap.rdb -r
../../unxlngx6.pro/lib/uno_services.rdb -c \
        file:///home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/testtools/source/bridgetest/../../unxlngx6.pro/class/testComponent.jar
\
        -env:URE_INTERNAL_JAVA_DIR=file:///home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/solver/680/unxlngx6.pro/bin
[Java framework] Using configuration file
file:///home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/solver/680/unxlngx6.pro/lib/jvmfwk3rc
[Java framework] Using bootstrap parameter UNO_JAVA_JFW_ENV_JREHOME
with JAVA_HOME = /home/weichuan/jdk1.5.0_05.
[Java framework] Using bootstrap parameter
UNO_JAVA_JFW_VENDOR_SETTINGS =
file:///home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/solver/680/unxlngx6.pro/lib/javavendors.xml.
Thread:      1 :component
path=file:///home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/solver/680/unxlngx6.pro/lib/servicemgr.uno.so

Thread:      1 :component
path=file:///home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/solver/680/unxlngx6.pro/lib/servicemgr.uno.so

> implementation com.sun.star.comp.stoc.OServiceManagerWrapper supports: com.sun.star.lang.MultiServiceFactory
Thread:      1 :component
path=file:///home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/solver/680/unxlngx6.pro/lib/shlibloader.uno.so

> implementation com.sun.star.comp.stoc.DLLComponentLoader supports: com.sun.star.loader.SharedLibrary
Thread:      1 :component
path=file:///home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/solver/680/unxlngx6.pro/lib/simplereg.uno.so

> implementation com.sun.star.comp.stoc.SimpleRegistry supports: com.sun.star.registry.SimpleRegistry
Thread:      1 :component
path=file:///home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/solver/680/unxlngx6.pro/lib/nestedreg.uno.so

> implementation com.sun.star.comp.stoc.NestedRegistry supports: com.sun.star.registry.NestedRegistry
Thread:      1 :component
path=file:///home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/solver/680/unxlngx6.pro/lib/typemgr.uno.so

> implementation com.sun.star.comp.stoc.TypeDescriptionManager supports: com.sun.star.reflection.TypeDescriptionManager
Thread:      1 :component
path=file:///home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/solver/680/unxlngx6.pro/lib/implreg.uno.so

> implementation com.sun.star.comp.stoc.ImplementationRegistration supports: com.sun.star.registry.ImplementationRegistration
Thread:      1 :component
path=file:///home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/solver/680/unxlngx6.pro/lib/security.uno.so

> implementation com.sun.star.security.comp.stoc.AccessController supports: com.sun.star.security.AccessController
Thread:      1 :component
path=file:///home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/solver/680/unxlngx6.pro/lib/security.uno.so

> implementation com.sun.star.security.comp.stoc.FilePolicy supports: com.sun.star.security.Policy
Thread:      1 :component
path=file:///home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/solver/680/unxlngx6.pro/lib/simplereg.uno.so

Thread:      1 :component
path=file:///home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/solver/680/unxlngx6.pro/lib/regtypeprov.uno.so

Thread:      1 :####name of service###
/IMPLEMENTATIONS/com.sun.star.comp.stoc.JavaComponentLoader
Thread:      1 :component path=javaloader.uno.so

Thread:      1 :####name of service###
/IMPLEMENTATIONS/com.sun.star.comp.stoc.JavaVirtualMachine
Thread:      1 :component path=javavm.uno.so

Thread:      1 :####name of service###
/IMPLEMENTATIONS/com.sun.star.configuration.ConfigurationRegistry
Thread:      1 :javavm.cxx: can not get INetProps cause of
>javavm.cxx: couldn't get ConfigurationRegistry<
Thread:      1 :####name of service###
/IMPLEMENTATIONS/com.sun.star.configuration.ConfigurationRegistry
Thread:      1 :javavm.cxx: can not get locale cause of >javavm.cxx:
couldn't get ConfigurationRegistry<
Thread:      1 :####name of service###
/IMPLEMENTATIONS/com.sun.star.configuration.ConfigurationRegistry
Thread:      1 :javavm.cxx: couldn't get safety settings because of
>javavm.cxx: couldn't get ConfigurationRegistry<
[Java framework] Using configuration file
file:///home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/solver/680/unxlngx6.pro/lib/jvmfwk3rc
[Java framework] Using bootstrap parameter UNO_JAVA_JFW_ENV_JREHOME
with JAVA_HOME = /home/weichuan/jdk1.5.0_05.
[Java framework] Using bootstrap parameter
UNO_JAVA_JFW_VENDOR_SETTINGS =
file:///home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/solver/680/unxlngx6.pro/lib/javavendors.xml.
[Java framework] Using bootstrap parameter
UNO_JAVA_JFW_VENDOR_SETTINGS =
file:///home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/solver/680/unxlngx6.pro/lib/javavendors.xml.
[Java framework] Using bootstrap parameter UNO_JAVA_JFW_ENV_CLASSPATH
and class path is:
 .:../../unxlngx6.pro/class:/home/weichuan/jdk1.5.0_05/jre/lib/rt.jar:.
:/home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/solver/680/unxlngx6.pro/bin/java_uno.jar:
/home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/solver/680/unxlngx6.pro/bin/jurt.jar:
/home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/solver/680/unxlngx6.pro/bin/ridl.jar.
Thread:      1 :####name of service###
/IMPLEMENTATIONS/com.sun.star.comp.uri.ExternalUriReferenceTranslator
Thread:      1 :component path=uriproc.uno.so

register component
'file:///home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/testtools/source/bridgetest/../../unxlngx6.pro/class/testComponent.jar'
in registry '../../unxlngx6.pro/lib/uno_services.rdb' failed!
error (RuntimeException): JNI exception occurred
using loader com.sun.star.loader.Java2
=> no CPLD_ACCESSPATH set.
dmake:  Error code 1, while making '../../unxlngx6.pro/lib/uno_services.rdb'
dmake:  '../../unxlngx6.pro/lib/uno_services.rdb' removed.
'---* tg_merge.mk *---'

ERROR: Error 65280 occurred while making
/home/weichuan/ooo/ooo-build-src680.137.0/build/src680-m136/testtools/source/bridgetest
make: *** [stamp/build] Error 1


--
Best Regards
Weichuan


More information about the Openoffice mailing list