[api-issues] [Issue 114572] Writer hangs on fast prog rammatic file generation

2010-09-28 Thread jsc
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=114572


User jsc changed the following:

What|Old value |New value

  Status|RESOLVED  |CLOSED





--- Additional comments from j...@openoffice.org Tue Sep 28 13:48:08 + 
2010 ---
closed

-
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: issues-unsubscr...@api.openoffice.org
For additional commands, e-mail: issues-h...@api.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[api-issues] [Issue 114572] Writer hangs on fast prog rammatic file generation

2010-09-17 Thread localhost
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=114572


User localhost changed the following:

What|Old value |New value

  Status|UNCONFIRMED   |RESOLVED

  Resolution|  |INVALID





--- Additional comments from localh...@openoffice.org Fri Sep 17 13:48:49 
+ 2010 ---
Will try to format it more readable in new issue.

-
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: issues-unsubscr...@api.openoffice.org
For additional commands, e-mail: issues-h...@api.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[api-issues] [Issue 114572] Writer hangs on fast prog rammatic file generation

2010-09-17 Thread localhost
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=114572
 Issue #|114572
 Summary|Writer hangs on fast programmatic file generation
   Component|api
 Version|OOo 3.1.1
Platform|PC
 URL|
  OS/Version|Windows 7
  Status|UNCONFIRMED
   Status whiteboard|
Keywords|
  Resolution|
  Issue type|DEFECT
Priority|P3
Subcomponent|code
 Assigned to|jsc
 Reported by|localhost





--- Additional comments from localh...@openoffice.org Fri Sep 17 13:46:19 
+ 2010 ---
We have trouble with using the Writer from a Java Desktop application.
We are generating very much documents and the documents are a key aspect of our
project. 
Unfortunately the Writer hangs quite often.

So I stripped down our code to one method, consisting of a loop, which is
opening a basic file (can be empty) and stores it to any other file.

This very basic application hangs after the first couple of loop execution:

public static void main(String[] args) throws Exception {
com.sun.star.uno.XComponentContext xContext = 
Bootstrap.bootstrap();
com.sun.star.lang.XMultiComponentFactory xMCF = 
xContext.getServiceManager();
Object oDesktop = 
xMCF.createInstanceWithContext("com.sun.star.frame.Desktop",
xContext);
XComponentLoader tempLoader =
(com.sun.star.frame.XComponentLoader)UnoRuntime.queryInterface(com.sun.star.frame.XComponentLoader.class,
oDesktop);
String sUrl =
"file:///C:/dev/workspaces/wim/OpenOfficeConnectionTest/Writer2.odt";
for (int i = 1; i <= 50; i++) {
com.sun.star.lang.XComponent xComp = 
tempLoader.loadComponentFromURL(sUrl,
"_blank", 0, new com.sun.star.beans.PropertyValue[0]);

com.sun.star.frame.XStorable xStorable =
(com.sun.star.frame.XStorable)UnoRuntime.queryInterface(com.sun.star.frame.XStorable.class,
xComp);

File tempFile = File.createTempFile("WriterTest", 
".odt");
tempFile.deleteOnExit();
StringBuffer sSaveUrl = new StringBuffer("file:///");

sSaveUrl.append(tempFile.getCanonicalPath().replace('\\', '/'));

com.sun.star.beans.PropertyValue[] propertyValue = new
com.sun.star.beans.PropertyValue[1];
propertyValue = new com.sun.star.beans.PropertyValue[2];
propertyValue[0] = new 
com.sun.star.beans.PropertyValue();
propertyValue[0].Name = "Overwrite";
propertyValue[0].Value = new Boolean(true);
propertyValue[1] = new 
com.sun.star.beans.PropertyValue();
propertyValue[1].Name = "FilterName";
propertyValue[1].Value = "StarOffice XML (Writer)";
xStorable.storeAsURL(sSaveUrl.toString(), 
propertyValue);

XCloseable tempCloseable =
(XCloseable)UnoRuntime.queryInterface(XCloseable.class, xComp);
tempCloseable.close(true);
System.out.print(i % 10 == 0 ? ":" : ".");
}
System.exit(0);
}

-
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: issues-unsubscr...@api.openoffice.org
For additional commands, e-mail: issues-h...@api.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org