To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=109191
                 Issue #|109191
                 Summary|RuntimeException: getInstance expected XInterface but 
                        |got com.sun.star.table.XCell
               Component|api
                 Version|OOo 3.1
                Platform|PC
                     URL|
              OS/Version|Windows XP
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|jsc
             Reported by|jhoech





------- Additional comments from [email protected] Fri Feb 12 10:00:50 
+0000 2010 -------
We developed a webservice, which transfers data from MS-Excel (xls) type files
into a custom template of openoffice calc. This webservice is written in Java
and is using the UNO-Api Interface. For its task the service creates an calc
file from our template (ots) for every incoming xls file, and simply copies the
content from the incoming xls into the newly created file cell by cell. Nothing
strange up here. Everything is working in theory and reality.

Relevant code:
XCell newCell = xSpreadsheetOut.getCellByPosition(x, y);
newCell.setFormula("...");

The problem now is that the service throws runtime excptions for which I have
not found any useful documentation files till now. The stack trace is the 
following:

com.sun.star.uno.RuntimeException: getInstance expected XInterface but got
com.sun.star.table.XCell
    at
com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:182)
    at com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:148)
    at 
com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:344)
    at 
com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:313)
    at
com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:101)
    at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:652)
    at
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:154)
    at
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:136)
    at $Proxy8.setFormula(Unknown Source)
    at de.xxx.ReportImporter.copyRangesIntoTemplateAndStoreDocument(Unknown 
Source)
   [...]
java.lang.NullPointerException
    at de.memocomp.oo.OOManager.closeDocument(Unknown Source)
    at de.xxx.ReportImporter.copyRangesIntoTemplateAndStoreDocument(Unknown 
Source)
   [...]

What I am able to say is, that the service was designed to run asynchronous. If
we do so, the exception appears more often. If the service runs queued or in a
pipline it works quite well. The exception above then appeard only once in ~30
runs, but it appeared.

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

Reply via email to