I'm using Ubuntu 12.04 precise (amd64) and the Libreoffice 4.0 ppa. However, the bug that I have encountered also takes place with the official deb packages from www.libreoffice.org. Every time I generate a report that is sorted alphabetically or in any way, I always get this: 24-may-2013 14:09:18 com.sun.star.wizards.db.DBMetaData$CommandObject <init> GRAVE: null com.sun.star.uno.RuntimeException: [jni_uno bridge error] Java calling UNO method getByName: [map_to_uno():string] null-ref given! java stack trace: at com.sun.star.bridges.jni_uno.JNI_proxy.dispatch_call(Native Method) at com.sun.star.bridges.jni_uno.JNI_proxy.invoke(JNI_proxy.java:183) at com.sun.proxy.$Proxy17.getByName(Unknown Source) at com.sun.star.wizards.db.DBMetaData$CommandObject.<init>(DBMetaData.java:305) at com.sun.star.wizards.db.DBMetaData.getCommandByName(DBMetaData.java:272) at com.sun.star.wizards.db.DBMetaData.getTableByName(DBMetaData.java:251) at com.sun.star.wizards.db.CommandMetaData.getColumnObjectByFieldName(CommandMetaData.java:146) at com.sun.star.wizards.db.SQLQueryComposer.appendSortingCriterion(SQLQueryComposer.java:182) at com.sun.star.wizards.db.SQLQueryComposer.prependSortingCriteria(SQLQueryComposer.java:158) at com.sun.star.wizards.db.SQLQueryComposer.prependSortingCriteria(SQLQueryComposer.java:149) at com.sun.star.wizards.report.ReportTextImplementation.reconnectToDatabase(ReportTextImplementation.java:286) at com.sun.star.wizards.report.Dataimport.importReportData(Dataimport.java:196) at com.sun.star.wizards.report.Dataimport.createReport(Dataimport.java:212) at com.sun.star.wizards.report.CallReportWizard$ReportWizardImplementation.trigger(CallReportWizard.java:104) at com.sun.star.bridges.jni_uno.JNI_proxy.dispatch_call(Native Method) at com.sun.star.bridges.jni_uno.JNI_proxy.invoke(JNI_proxy.java:183) at com.sun.proxy.$Proxy17.getByName(Unknown Source) at com.sun.star.wizards.db.DBMetaData$CommandObject.<init>(DBMetaData.java:305) at com.sun.star.wizards.db.DBMetaData.getCommandByName(DBMetaData.java:272) at com.sun.star.wizards.db.DBMetaData.getTableByName(DBMetaData.java:251) at com.sun.star.wizards.db.CommandMetaData.getColumnObjectByFieldName(CommandMetaData.java:146) at com.sun.star.wizards.db.SQLQueryComposer.appendSortingCriterion(SQLQueryComposer.java:182) at com.sun.star.wizards.db.SQLQueryComposer.prependSortingCriteria(SQLQueryComposer.java:158) at com.sun.star.wizards.db.SQLQueryComposer.prependSortingCriteria(SQLQueryComposer.java:149) at com.sun.star.wizards.report.ReportTextImplementation.reconnectToDatabase(ReportTextImplementation.java:286) at com.sun.star.wizards.report.Dataimport.importReportData(Dataimport.java:196) at com.sun.star.wizards.report.Dataimport.createReport(Dataimport.java:212) at com.sun.star.wizards.report.CallReportWizard$ReportWizardImplementation.trigger(CallReportWizard.java:104) java.lang.NullPointerException at com.sun.star.wizards.db.CommandMetaData.getColumnObjectByFieldName(CommandMetaData.java:147) at com.sun.star.wizards.db.SQLQueryComposer.appendSortingCriterion(SQLQueryComposer.java:182) at com.sun.star.wizards.db.SQLQueryComposer.prependSortingCriteria(SQLQueryComposer.java:158) at com.sun.star.wizards.db.SQLQueryComposer.prependSortingCriteria(SQLQueryComposer.java:149) at com.sun.star.wizards.report.ReportTextImplementation.reconnectToDatabase(ReportTextImplementation.java:286) at com.sun.star.wizards.report.Dataimport.importReportData(Dataimport.java:196) at com.sun.star.wizards.report.Dataimport.createReport(Dataimport.java:212) at com.sun.star.wizards.report.CallReportWizard$ReportWizardImplementation.trigger(CallReportWizard.java:104) 24-may-2013 14:09:18 com.sun.star.wizards.report.ReportTextImplementation reconnectToDatabase GRAVE: null com.sun.star.sdbc.SQLException: La columna no es válida. at com.sun.star.bridges.jni_uno.JNI_proxy.dispatch_call(Native Method) at com.sun.star.bridges.jni_uno.JNI_proxy.invoke(JNI_proxy.java:183) at com.sun.proxy.$Proxy63.appendOrderByColumn(Unknown Source) at com.sun.star.wizards.db.SQLQueryComposer.appendSortingCriterion(SQLQueryComposer.java:186) at com.sun.star.wizards.db.SQLQueryComposer.prependSortingCriteria(SQLQueryComposer.java:158) at com.sun.star.wizards.db.SQLQueryComposer.prependSortingCriteria(SQLQueryComposer.java:149) at com.sun.star.wizards.report.ReportTextImplementation.reconnectToDatabase(ReportTextImplementation.java:286) at com.sun.star.wizards.report.Dataimport.importReportData(Dataimport.java:196) at com.sun.star.wizards.report.Dataimport.createReport(Dataimport.java:212) at com.sun.star.wizards.report.CallReportWizard$ReportWizardImplementation.trigger(CallReportWizard.java:104) No problem whatsoever with Libreoffice 3.6 or lower versions. If there is no sorting option, then there is no problem either.
Do you use the Report-Builder or the elder wizard, which only appers, when the report-builder isn't installed? Here is a link how a report of the old report-engine looks like: https://bugs.freedesktop.org/attachment.cgi?id=79792
Hi Robert, I'm not using the report builder extension, if that's what you mean. I'm using the old report engine.
(In reply to comment #2) > Hi Robert, I'm not using the report builder extension, if that's what you > mean. I'm using the old report engine. Most people doesn't know, that this old engine is already there. The report-builder-extension is mostly direct installed with the packages of LO. I have first heard about the old engine by Ubuntu-users, when we discussed problems with reports in Base and recognized, that we are not writing about the same software. What java-version do you use? Could be a problem with java 7 ...
Hi again, Robert. Actually I've tried different versions of Java. Currently I'm using 1.6.0_45. I've tried with OpenJDK, Java 7 and lower Java 6 versions. I always get the same mistake no matter which Java version I use. I'm no expert, but it seems to be connected with the uno package. I don't know, it's just a guess.
Seams to be the same reason as reported in https://bugs.freedesktop.org/show_bug.cgi?id=64985 But with OpenSuSE 12.3 32bit rpm there appears no error-message. The report would be opened with the default content, not the content of the table. So I can only confirm bug 64985. I can't confirm the errormessage and won't mark this as a duplicate.
*** Bug 64917 has been marked as a duplicate of this bug. ***
Same story on version 4.1.0 beta2 downloaded from libreffice.org and testing different Java versions. I assume that this bug could be marked as new.
Hello Juan, *, when did you get this messages? When you start LO from commandline? Or is there a window, which opens with your mentioned messages? And would you be so kind to test it with 4.1.0.0.RC1 as well, please? Maybe it is fixed there ... ;) Sorry for the inconvenience Thomas.
Hi Thomas, I can see the bug info when I start LO from the command line. Otherwise, you cannot see anything, simply it doesn't generate the report. Following your advice, I've tried it with 4.1.0.0.RC1 but no luck so far. Thanks for your interest.
Hello Juan, *, (In reply to comment #9) > Hi Thomas, I can see the bug info when I start LO from the command line. > Otherwise, you cannot see anything, simply it doesn't generate the report. > Following your advice, I've tried it with 4.1.0.0.RC1 but no luck so far. > Thanks for your interest. would you be so kind to attach a test document to this bug, please? I have not one handy to test it ... :( TIA Thomas.
Created attachment 81695 [details] Sample Database Hi Thomas, this is a sample database. Starting the database with "libreoffice --base LoansDatabase.odb" will give you the error.
Isn't this a duplicate of https://bugs.freedesktop.org/show_bug.cgi?id=64985 ? What is the difference? Do you get the error-message when starting the report? With my system I get a report with the default-content. No error-message.
It's probably the same error, I agree. I had this happening a long time before I reported it because I couldn't find any bug fitting this description. If you don't open the database from the terminal, you get absolutely no error message, you get simply 'dummy data' as Tyler says. I tried to debug it a bit by starting from the terminal, trying to find the reason why this happened.
So let mark us this as a duplikate. *** This bug has been marked as a duplicate of bug 64985 ***