You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2009/09/19 09:18:21 UTC

svn commit: r816863 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/openoffice/OpenOfficeServices.java

Author: jleroux
Date: Sat Sep 19 07:18:21 2009
New Revision: 816863

URL: http://svn.apache.org/viewvc?rev=816863&view=rev
Log:
A patch from Wickersheimer Jeremy "compilation error with uno libs" (https://issues.apache.org/jira/browse/OFBIZ-2940) - OFBIZ-2940
The OpenOfficeServices.java does not build due to some errors after the ByteWrapper refactoring.
Since it is an optional package and not built by default it got unnoticed.

Modified:
    ofbiz/trunk/applications/content/src/org/ofbiz/content/openoffice/OpenOfficeServices.java

Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/openoffice/OpenOfficeServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/openoffice/OpenOfficeServices.java?rev=816863&r1=816862&r2=816863&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/openoffice/OpenOfficeServices.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/openoffice/OpenOfficeServices.java Sat Sep 19 07:18:21 2009
@@ -91,7 +91,7 @@
 
         try {
             xmulticomponentfactory = OpenOfficeWorker.getRemoteServer(oooHost, oooPort);
-            byte[] inByteArray = inByteBuffer.getBytes();
+            byte[] inByteArray = inByteBuffer.array();
 
             // The following line work in linux, but not Windows or Mac environment. It is preferred because it does not use temporary files
             //OpenOfficeByteArrayInputStream oobais = new OpenOfficeByteArrayInputStream(inByteArray);
@@ -115,7 +115,7 @@
             }
             fis.close();
 
-            results.put("outByteBuffer", new ByteBuffer(baos.toByteArray()));
+            results.put("outByteBuffer", ByteBuffer.wrap(baos.toByteArray()));
             baos.close();
 
         } catch (MalformedURLException e) {