OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

What can cause a BootstrapException?

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
Hardie82
General User
General User


Joined: 20 Oct 2008
Posts: 13

PostPosted: Thu Mar 12, 2009 5:00 am    Post subject: What can cause a BootstrapException? Reply with quote

Hi,

I have a problem with my application. I developed a small web-spring-application for a customer to check excel-files and generate pdf-documents. Therefore I use OO. When the applications starts I initialize a connection to OO with the folllowing code:
Code:

OOConectio.connect():

27: logger.debug("ExePath: " + this.ooExePath);
28: this.xContext = BootstrapSocketConnector.bootstrap(this.ooExePath); 
29: XMultiComponentFactory xMCF = this.xContext.getServiceManager();
30: this.xDesktop = xMCF.createInstanceWithContext("com.sun.star.frame.Desktop", this.xContext);

Therefore I use the bootstrapconnector.jar. The path is set by spring. If I try this on my work-notebook and my home-pc there are no problems and the application runs fine. But if the customer try to run the application on his server following log-entry is created:
Code:

2009-03-12 09:33:33,093 DEBUG de.saxsys.hshec.domain.OOConnection: execute afterPropertiesSet
2009-03-12 09:33:33,093 DEBUG de.saxsys.hshec.domain.OOConnection: ExePath: C:\Program Files\OpenOffice.org 3\program\
2009-03-12 09:48:20,189 ERROR de.saxsys.hshec.domain.OOConnection: ERROR CAUSED EXCEPTION DURING afterPropertiesSet
com.sun.star.comp.helper.BootstrapException
   at ooo.connector.BootstrapConnector.connect(BootstrapConnector.java:129)
   at ooo.connector.BootstrapSocketConnector.connect(BootstrapSocketConnector.java:68)
   at ooo.connector.BootstrapSocketConnector.connect(BootstrapSocketConnector.java:45)
   at ooo.connector.BootstrapSocketConnector.bootstrap(BootstrapSocketConnector.java:82)
   at de.saxsys.hshec.domain.OOConnection.connect(OOConnection.java:28)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1413)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1374)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
   at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
   at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:927)
   at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:890)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
   at org.apache.catalina.core.StandardService.start(StandardService.java:448)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)


I can only recreate the problem, if the path isn't correct. But the customer means, that set the right path. So I have no idea what else can release the exception. Has somebody an advice for me?

Regards
Hardie
Back to top
View user's profile Send private message
hol.sten
Super User
Super User


Joined: 14 Nov 2004
Posts: 3533
Location: Hamburg, Germany

PostPosted: Sat Mar 14, 2009 5:24 am    Post subject: Re: What can cause a BootstrapException? Reply with quote

Hardie82 wrote:
Has somebody an advice for me?

The JAR bootstrapconnector.jar contains class and source files. So after running out of ideas you could debug into the problem to determine the cause.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group