Hi Mikhail,

I used regview on types.rdb and found the following entries in it:
**********************************************************
          / TempFile
            Value: Type = RG_VALUETYPE_BINARY
                   Size = 130
                   Data = version: 1
                          documentation: ""
                          file name: ""
                          type class: service
                          type name: "com/sun/star/io/TempFile"
                          super type count: 1
                          super type name 0: "com/sun/star/io/XTempFile"
                          field count: 0
                          method count: 1
                          method 0:
                              documentation: ""
                              flags: synchronous
                              name: ""
                              return type name: "void"
                              parameter count: 0
                              exception count: 0
                          reference count: 0
**********************************************************
          / XTempFile
            Value: Type = RG_VALUETYPE_BINARY
                   Size = 258
                   Data = version: 1
                          documentation: ""
                          file name: ""
                          type class: interface
                          type name: "com/sun/star/io/XTempFile"
                          super type count: 2
                          super type name 0: "com/sun/star/io/XStream"
                          super type name 1: "com/sun/star/io/XSeekable"
                          field count: 3
                          field 0:
                              documentation: ""
                              file name: ""
                              flags: readwrite
                              name: "RemoveFile"
                              type name: "boolean"
                              value: none
                          field 1:
                              documentation: ""
                              file name: ""
                              flags: readonly
                              name: "Uri"
                              type name: "string"
                              value: none
                          field 2:
                              documentation: ""
                              file name: ""
                              flags: readonly
                              name: "ResourceName"
                              type name: "string"
                              value: none
                          method count: 0
                          reference count: 0
**********************************************************
And as I said, when I ran the StarBasic macro in my last mail, XTempFile is not listed in the dialog as a "supported" interface by TempFile, in case it's inconvenient for you to test it, the information in the dialog shows:
++++++++++++++++++++++++++++++++++++++++++++++++++++
Supported interfaces by object
"com.sun.star.io.TempFile":
   com.sun.star.io.XInputStream
   com.sun.star.io.XOutputStream
com.sun.star.io.XSeekable ---- I wonder why the two interfaces XTempFile inherits com.sun.star.io.XStream ---- from is listed, instead of itself ?
   com.sun.star.io.XTruncate
   com.sun.star.beans.XPropertySetInfo
   com.sun.star.beans.XPropertySet
   com.sun.star.lang.XServiceInfo
   com.sun.star.lang.XTypeProvider
   com.sun.star.uno.XWeak
++++++++++++++++++++++++++++++++++++++++++++++++++++
Could you please give me a little dissection on this?

As for the running-tests-in-cygwin problem, I'm using Java 1.6.0_02, so I guess it's not the version of Java.

There is another detail I forgot to include in my last mail, that I did not install "qadevOOoSetup.class". Because when I typed the command suggested on qa project's page, I got the message below:
**********************************************************
$java qadevOOoSetup.class
Exception in thread "main" java.lang.NoClassDefFoundError: qadevOOoSetup/class
**********************************************************
Is it because I missed some steps before this command, or should I put qadevOOoSetup.class in a specific path? (Strange enough, I can still run tests in 4nt shell without it.)

Best Regards,
Felix.

P.S. I know the code freeze date for OOo 2.3 release is near, and you could be very busy these days, so I'm very grateful for the time your spared to help me, thanks. :-)


Mikhail Voitenko ??:
Hi Felix,

Zhang Xiaofei wrote:

Hi Mikhail,

Thanks very much for your reply. I have fixed the problem on
SimpleFileAccess and all the other similar problems in the tests, and
restructured the test code a little. Now I have another problem: I
cannot get XTempFile by querying TempFile ( please see error.log ).

To confirm this, I ran the following StarBasic macro in my installed
OOo build, only to find out that XTempFile is not among the supported
interfaces.
------------------------------------------------------------
REM ***** BASIC *****

Sub Main

oTempFile = createUnoService( "com.sun.star.io.TempFile" )
msgbox oTempFile.dbg_supportedInterfaces()

End Sub
------------------------------------------------------------

I did remember to modify the udkapi and unotools modules before I
built all the projects. Could you please tell me what has gone wrong?

Yes, it looks like the changes are not in the office that is being
tested. Are you sure that the correct office is installed?
To check this please start command "regview <path to the
office>/program/types.rdb | grep XTempFile", there should be some
entries related to XTempFile.

BTW I checked
/cygdrive/f/OOo/SRC680_m217/solver/680/wntmsci10.pro/bin/OOoRunner.jar
and it is available. And the problem still exists. So I'm still
looking forward to further advice on this.

I have no idea why doesn't it work in case of cygwin, the path looks to
be quite the same.
The only suspicious thing is the java version that is used. It is
strongly reccomended to use at least JDK1.4 with the office.

Best Regards,
Mikhail.

Thanks in advance. :-)

Best Regards,
Felix.


Reply via email to