[udk-issues] [Issue 66196] Java Bootstrap.bootstrap should fail if it cannot connect to soffice

2006-06-13 Thread tobiaskrais
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=66196





--- Additional comments from [EMAIL PROTECTED] Tue Jun 13 01:29:42 -0700 
2006 ---
I have a workaround that might be integrated:
-%-
public class OOComNG extends Thread{

protected XComponentContext xRemoteContext = null; 

public OOComNG (String threadName) {
super(threadName);
}

/**
 * This method checks for a running OpenOffice instance. If none is alive
 * OOComNG exits.
 */
public void run() {
try {
sleep(15000);
if(xRemoteContext == null) {
System.out.println(Found only a frozen OpenOffice.  +
Please kill all OOo instances and call me again.  +
Goodbye.);
System.exit(201);
}
} catch (InterruptedException e) {}
}

/**
 * This method bootstraps a OpenOffice and returns it's Desktop.
 */
private void bootstrapOpenOffice()
{
try
{
// Connect or start a OpenOffice instance
xRemoteContext = Bootstrap.bootstrap();
}
catch (BootstrapException e)
{
System.out.println(Unable to start OpenOffice. Starter says:);
System.out.println(e.getLocalizedMessage());
}
}
}

public class OOCom {

public static void main(String[] args){
OOComNG myServer = new OOComNG(myThread);
// Watch the bootstrap process: watch thread started
myServer.start();

// Start OO, if a port is given, it connects to the OO instance
myServer.bootstrapOpenOffice();
}
}
-%-
Greetings, Tobias

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
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]



[udk-issues] [Issue 66196] Java Bootstrap.bootstrap should fail if it cannot connect to soffice

2006-06-13 Thread sb
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=66196





--- Additional comments from [EMAIL PROTECTED] Tue Jun 13 05:39:48 -0700 
2006 ---
@tobiaskrais:  Thank you for your input.  However, this issue was about changing
Bootstrap.bootstrap itself so that it fails (e.g., by throwing
BootstrapException) if it cannot connect to soffice in a reasonable time (e.g.,
within 5 minutes).  And that is quite trivial to implement, just make the
potentially diverging loop in Bootstrap.bootstrap into a loop that always 
converges.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
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]



[udk-issues] [Issue 66196] Java Bootstrap.bootstrap should fail if it cannot connect to soffice

2006-06-07 Thread sb
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=66196


User sb changed the following:

  What|Old value |New value

Status|NEW   |STARTED





--- Additional comments from [EMAIL PROTECTED] Wed Jun  7 01:22:04 -0700 
2006 ---
.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
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]