Issue 33702 - Java doesn't work /pocket filters not working
Summary: Java doesn't work /pocket filters not working
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: 680m52
Hardware: All All
: P2 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: oc
QA Contact: issues@framework
URL:
Keywords: oooqa
: 33720 36369 37441 37442 37680 38440 38441 38664 39275 39579 (view as issue list)
Depends on:
Blocks:
 
Reported: 2004-09-01 15:32 UTC by mci
Modified: 2005-01-14 08:41 UTC (History)
5 users (show)

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


Attachments
proposed patch to fix this (2.33 KB, patch)
2004-11-05 16:14 UTC, john.marmion
no flags Details | Diff
resulting new xmerge.jar from patch (131.97 KB, application/octet-stream)
2004-11-05 16:36 UTC, john.marmion
no flags Details
new patch file: check for empty inputstream. (4.40 KB, patch)
2004-11-19 17:02 UTC, john.marmion
no flags Details | Diff
new pocketword.jar from latest patch (20.72 KB, application/octet-stream)
2004-11-19 17:03 UTC, john.marmion
no flags Details
new xmerge.jar from latest patch. supercedes previous. (132.04 KB, application/octet-stream)
2004-11-19 17:04 UTC, john.marmion
no flags Details
Thanks Henrik - updating patch file (4.40 KB, patch)
2004-12-15 13:27 UTC, john.marmion
no flags Details | Diff
Corresponding latest xmerge.jar for updated patch (132.05 KB, application/octet-stream)
2004-12-15 13:29 UTC, john.marmion
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description mci 2004-09-01 15:32:21 UTC
Java doesn't work on  Linux and  Windows

Tools->Options->%PRODUCTNAME%->Java recognizes the installed java.

- Wizard -> Letter: nothing happens
- export of documents via pocketExcel, pocketWord and AportisDoc  make the
Office hang.

OC saw this on Linux and Windows, I saw this on Linux

as discussed with OC I set this to P2
Comment 1 mci 2004-09-01 15:35:40 UTC
AFAIK the export of documents via pocketExcel, pocketWord and AportisDoc  uses
Java...
Comment 2 joachim.lingner 2004-09-06 10:40:02 UTC
.
Comment 3 tom 2004-09-06 15:37:14 UTC
TV->JL: As discussed. This seems to be a general problem..
Comment 4 joachim.lingner 2004-09-07 16:34:28 UTC
Java does work!

The wizards do not work because they are not registered. TV works on it in one
of his cws.  
I examined the pocket word filter and  it seams that there is something wrong
with a pipe. The java stack is:

JNI_proxy.dispatch_call	
JNI_proxy.invoke	
$Proxy15.readBytes	
XInputStreamToInputStreamAdapter.read
FilterInputStream.read	
PushbackInputStream.read
XmlReader$Utf8Reader.read
XmlReader.read	
InputEntity.fillbuf
InputEntity.getNameChar
Parser2.nameCharString	
Parser2.maybeGetNameCacheEntry
Parser2.maybeGetName	
Parser2.maybeElement	
Parser2.content	
Parser2.maybeElement	
Parser2.content	
Parser2.maybeElement	
Parser2.content	
Parser2.maybeElement
Parser2.parseInternal	
Parser2.parse	
XMLReaderImpl.parse
DocumentBuilderImpl.parse
DocumentBuilder.parse	
OfficeDocument.read	
SxwPluginFactory.createOfficeDocument
Convert.addInputStream	
XMergeBridge$_XMergeBridge.convert
XMergeBridge$_XMergeBridge.endDocument

The last call (JNI_proxy.dispatch_call	) invokes the native 
OPipeImpl::readBytes method (io/source/opipe.cxx) where the thread is suspended
because of an osl_waitCondition. 

Martin Could you have a look at this?
Comment 5 martin_maher 2004-09-07 16:43:59 UTC
mmaher: In the middle of 1.1.4 at the moment. This will have to wait until 1.1.4
is finished (end of Sept). I will cc ama on this so he is aware of the problem.
Comment 6 mci 2004-09-13 10:53:30 UTC
*** Issue 33720 has been marked as a duplicate of this issue. ***
Comment 7 martin_maher 2004-10-12 15:54:59 UTC
mmaher->jmarmion : Welcome back to xmerge
Comment 8 john.marmion 2004-10-21 17:40:48 UTC
accepted
Comment 9 john.marmion 2004-10-22 18:33:42 UTC
looks like the problem is caused by the new oasis xml file format stream which
now contains some base64 binary encoded configuration information about the
"PrinterSetup" and thus causing the parser to hang. 
Comment 10 oc 2004-11-01 08:54:45 UTC
*** Issue 36369 has been marked as a duplicate of this issue. ***
Comment 11 oc 2004-11-01 08:55:55 UTC
Adjusting summary
Comment 12 thackert 2004-11-01 12:20:41 UTC
I have tried to save the umlautest2.sxw file from issue #36369 as an .psw file
with OOo-1.9.58 and it freezes completely ... :( No error message at all! So I
think that the version above should be set to 680m56 instead of 680m52. Or am I
wrong here?
Comment 13 john.marmion 2004-11-01 12:33:49 UTC
the submitter found the bug in build 680m52 so that is correct. This bug
originates from when we changed to the oasis file format and will be in all
subsequent builds. The inputstream content to the pocketword/excel import/export
has changed as a result of the file format change. I am working on a fix to this.
Comment 14 john.marmion 2004-11-05 16:14:18 UTC
Created attachment 18996 [details]
proposed patch to fix this
Comment 15 john.marmion 2004-11-05 16:36:03 UTC
Created attachment 18998 [details]
resulting new xmerge.jar from patch
Comment 16 john.marmion 2004-11-19 13:23:23 UTC
*** Issue 37442 has been marked as a duplicate of this issue. ***
Comment 17 john.marmion 2004-11-19 16:59:43 UTC
waiting on the framework team to fix an empty InputStream passed to xmerge on
the "ReLoad" following a successful "Save As". But fixing this in the xmerge
code to ensure that it does not crash OOo. Will attach a new patch and two new
jars xmerge.jar and pocketword.jar.

I will then go ahead and check this fix in.
Comment 18 john.marmion 2004-11-19 17:02:01 UTC
Created attachment 19502 [details]
new patch file: check for empty inputstream.
Comment 19 john.marmion 2004-11-19 17:03:22 UTC
Created attachment 19503 [details]
new pocketword.jar from latest patch
Comment 20 john.marmion 2004-11-19 17:04:36 UTC
Created attachment 19504 [details]
new xmerge.jar from latest patch. supercedes previous.
Comment 21 flibby05 2004-11-20 15:39:23 UTC
*** Issue 37441 has been marked as a duplicate of this issue. ***
Comment 22 oc 2004-11-23 14:03:06 UTC
*** Issue 37680 has been marked as a duplicate of this issue. ***
Comment 23 john.marmion 2004-11-23 14:32:39 UTC
latest patch checked into cws/monaleenfilterteam. Reload fails as framework 
passes an empty stream to these small device filters. 
Comment 24 john.marmion 2004-12-02 10:35:55 UTC
reopen to reassign
Comment 25 john.marmion 2004-12-02 10:36:26 UTC
assign to QA
Comment 26 john.marmion 2004-12-02 10:36:50 UTC
reset to fixed
Comment 27 michael.ruess 2004-12-03 07:29:40 UTC
Reopened to reassign.
Comment 28 michael.ruess 2004-12-03 07:30:03 UTC
reassigned to OC.
Comment 29 michael.ruess 2004-12-03 07:37:06 UTC
re-set to "fixed".
Comment 30 frank 2004-12-05 22:01:15 UTC
*** Issue 38440 has been marked as a duplicate of this issue. ***
Comment 31 oc 2004-12-06 08:47:21 UTC
*** Issue 38441 has been marked as a duplicate of this issue. ***
Comment 32 flibby05 2004-12-09 22:00:02 UTC
*** Issue 38664 has been marked as a duplicate of this issue. ***
Comment 33 oc 2004-12-10 08:58:46 UTC
reopened for reassigning
Comment 34 oc 2004-12-10 09:07:39 UTC
OC: Freeze is fixed but loaded files are empty
Comment 35 john.marmion 2004-12-15 09:18:24 UTC
reassigning to framework team as the framework passes an empty stream to these 
small device filters on a reload. I had hoped this fix would have been
acceptable and a new issue created to deal with the related framework problems.
Comment 36 henrikjust 2004-12-15 09:55:21 UTC
There is a small problem with the patch:

A document containing objects may contain multiple office:document elements.

Hence
        int sIndex = sStr.indexOf("</office:document>");

cuts of sStr too early in this case and should be changed to

        int sIndex = sStr.lastIndexOf("</office:document>");
Comment 37 john.marmion 2004-12-15 13:27:22 UTC
Created attachment 20540 [details]
Thanks Henrik - updating patch file
Comment 38 john.marmion 2004-12-15 13:29:09 UTC
Created attachment 20541 [details]
Corresponding latest xmerge.jar for updated patch
Comment 39 oc 2004-12-17 13:36:50 UTC
OC: Just to clarify: every loading of a Pocket file gives an empty document, not
only on reload. Therefor I assume that it is not a problem of the framework. But
maybe a resync will fix the problem (major changes between this cws (m62) and
the current master (m67)
Comment 40 oc 2005-01-03 13:16:31 UTC
*** Issue 39579 has been marked as a duplicate of this issue. ***
Comment 41 oc 2005-01-03 13:18:33 UTC
*** Issue 39275 has been marked as a duplicate of this issue. ***
Comment 42 Mathias_Bauer 2005-01-03 14:47:39 UTC
I did the following in m66 (xmerge.jar as attached):

load umlauttest.sxw (attached to #36369)
save to PocketWord
Reload
Close
Load PocketWord document
Reload
Close

No problem!

So if I understand the issue correctly, resync to m66 should solve it.

@John: I heard from Oliver that you have resynced your CWS to m66. Please try to
test it by yourself, from my POV the bug is fixed.
Comment 43 oc 2005-01-07 14:12:52 UTC
Fix looks good on Windows => reopened for reassigning
Comment 44 oc 2005-01-07 14:15:25 UTC
reassigned to qa
Comment 45 oc 2005-01-07 14:16:05 UTC
changing resolution to fixed
Comment 46 oc 2005-01-10 08:54:19 UTC
verified in internal build cws_monaleenfilterteam30
Comment 47 oc 2005-01-14 08:41:33 UTC
closed because fix available in OOo1.9m71s1