mszalay
-
Posts
6 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Security Advisories
Downloads
Posts posted by mszalay
-
-
Sorry, duplicate
Post Edited by mszalay at 05/12/2011 11:32 -
Hi Yuna
in the URL field, you have to type the url of your analysis server.
If your server is at 192.168.0.1, then try
http://192.168.0.1/MSAS/msmdpump.dll
Regards Michael
-
I got the solution. The property has to look like this:
JRProperties.setProperty("net.sf.jasperreports.query.executer.factory.xmla-mdx", "net.sf.jasperreports.engine.query.JRXmlaQueryExecuterFactory");
The confusing thing is: this class is not delivered with jasperreports, but with ireport (jar file: cincom-jr-xmla.jar).
I'm using jasperreports 1.3.3.
Now it works.
Regards Michael
-
I managed to solve the first problem by putting the following line before compiling the report:
JRProperties.setProperty("net.sf.jasperreports.query.executer.factory.xmla-mdx", "net.sf.jasperreports.olap.xmla.JRXmlaQueryExecuterFactory");
Additional information to the second problem: the parser gets a
"line 1:1: unexpected token:" for each field in the report.
Anyone an idea?
Thanks.
-
Hi
i try to run a report using a xmla datasource. The report was designed by iReport and works there.
If I want to execute the report programmatically, I got the following problems:
1) I had to change the <queryString language="mdx"> from xmla-mdx to mdx
2) the report does not work (jasperreport cannot map my fields):
net.sf.jasperreports.engine.JRRuntimeException: Invalid field mapping "[Date].[Date_Year].[All]".
at net.sf.jasperreports.olap.JROlapDataSource.init(JROlapDataSource.java:248)
at net.sf.jasperreports.olap.JROlapDataSource.<init>(JROlapDataSource.java:113)
at net.sf.jasperreports.olap.xmla.JRXmlaQueryExecuter.createDatasource(JRXmlaQueryExecuter.java:122)
..is the example for a field with description Date].[Date_Year].[All].
any hints how to solve this problems?
thanks a lot
Known workaround for JDK Bugs?
in Products
Posted
Hi all
we encounter several JDK bugs when using JasperReports:
Caused by: java.lang.NullPointerException
at sun.font.GlyphLayout$EngineRecord.init(GlyphLayout.java:642)
at sun.font.GlyphLayout.nextEngineRecord(GlyphLayout.java:494)
at sun.font.GlyphLayout.layout(GlyphLayout.java:417)
at sun.font.ExtendedTextSourceLabel.createGV(ExtendedTextSourceLabel.java:308)
at sun.font.ExtendedTextSourceLabel.getGV(ExtendedTextSourceLabel.java:294)
at sun.font.ExtendedTextSourceLabel.createCharinfo(ExtendedTextSourceLabel.java:563)
at sun.font.ExtendedTextSourceLabel.getCharinfo(ExtendedTextSourceLabel.java:492)
at sun.font.ExtendedTextSourceLabel.getLineBreakIndex(ExtendedTextSourceLabel.java:438)
at java.awt.font.TextMeasurer.calcLineBreak(TextMeasurer.java:308)
at java.awt.font.TextMeasurer.getLineBreakIndex(TextMeasurer.java:544)
at java.awt.font.LineBreakMeasurer.nextOffset(LineBreakMeasurer.java:340)
at java.awt.font.LineBreakMeasurer.nextLayout(LineBreakMeasurer.java:422)
at java.awt.font.LineBreakMeasurer.nextLayout(LineBreakMeasurer.java:395)
at net.sf.jasperreports.engine.fill.TextMeasurer.renderNextLine(TextMeasurer.java:505)
at net.sf.jasperreports.engine.fill.TextMeasurer.renderParagraph(TextMeasurer.java:338)
at net.sf.jasperreports.engine.fill.TextMeasurer.measure(TextMeasurer.java:291)
at net.sf.jasperreports.engine.fill.JRFillTextElement.chopTextElement(JRFillTextElement.java:991)
at net.sf.jasperreports.engine.fill.JRFillTextField.prepare(JRFillTextField.java:528)
at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:344)
at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:346)
at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:305)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummaryNewPage(JRVerticalFiller.java:1149)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:885)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:159)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:889)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:123)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:420)
JDK Bug:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6367148
and this one:
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
at sun.font.StandardGlyphVector.getGlyphVisualBounds(StandardGlyphVector.java:555)
at sun.font.StandardGlyphVector.getGlyphInfo(StandardGlyphVector.java:839)
at sun.font.ExtendedTextSourceLabel.createCharinfo(ExtendedTextSourceLabel.java:566)
at sun.font.ExtendedTextSourceLabel.getCharinfo(ExtendedTextSourceLabel.java:492)
at sun.font.ExtendedTextSourceLabel.getLineBreakIndex(ExtendedTextSourceLabel.java:438)
at java.awt.font.TextMeasurer.calcLineBreak(TextMeasurer.java:308)
at java.awt.font.TextMeasurer.getLineBreakIndex(TextMeasurer.java:544)
at java.awt.font.LineBreakMeasurer.nextOffset(LineBreakMeasurer.java:340)
at java.awt.font.LineBreakMeasurer.nextLayout(LineBreakMeasurer.java:422)
JDK Bug:
http://bugs.sun.com/view_bug.do?bug_id=6951086
Does anyone know workarounds for this?
I think the first one is a synchronization bug which I can workaround synchronizing the call to "fillReport", what it the other one?
Regards Michael