clive.haynes_1
-
Posts
18 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Downloads
Posts posted by clive.haynes_1
-
-
Hi there,
I have jasper server running in a cluster configuration, however if I try to run a simulation using jmeter of 50 users logging in simultanously I get a com.jaspersoft.jasperserver.jaxrs.client.core.exceptions.InternalServerErrorException: Internal Server Error but this is an intermittent error.
I have 2 servers running behind an F5 load balancer and I am unable to workout what the problem is.
Also I have implemented session replication on the tomcat server to see if this would fix the problem but I have yet to have any success.
I am using jasper server version 6.2
Can you please advise?
Regards
Clive
-
Its ok problem solved, Logging out frees resources on the server, resources being the report which is a resource.
-
Hi there,
Just a quick question please. In version 6.2 of jasper server I am testing the async methods of the reportExecutions Service using Jmeter.
I have noticed that I can successfully do the following
Test One result Success
- Login as jasperadmin
- Run report asynchronously (save returned request and export ids in variables)
- get staus using the request id
- Wait for the report status to equal "Ready"
- get the output
- save to disk
- logout
Test Two Result: fails
- Login as jasperadmin
- Run report asynchronously (save returned request and export ids in variables)
- logout
- Login as jasperadmin
- wait 10 seconds
- Get status using the same request ID (http: resource not found 404)
- get the output
- save to disk
- logout
Test Three Result: Success
- Login as jasperadmin
- Run report asynchronously (save returned request and export ids in variables)
- Login as jasperadmin
- wait 10 seconds
- Get status using the same request ID
- Wait for the report status to equal "Ready"
- get the output
- save to disk
- logout
Summary
From my observations is appears as soon as a logout command is issued the request ID is lost
and so therefore it is not possible to use the async reportExecutions services, as you always have to
remain logged in, which defeats the whole purpose of running a report asynchronouslyCan someone please let me know if I am missing something, I can supply the JMeter scripts if required
-
Hi there,
I'm looking to run a lot of reports via the web services, but I need to be able to keep track of the reports, being executed so that if a report is taking too long to run, I can kill the offending report.
Is it possible to kill a long running report if the report was launched using the REST web services and if so what would be the best approach for launching the report please?
Any help will be great
Regards
Clive
-
Hi there,
I have noticed in version 6.1 when publishing report books to the jasper server, if the report in the report book refers to a subreport in a sub folder relative to the report then the subreport in the sub folder does not get published. which means that I cannot organise my files so that my sub reports are in a subReports folder. It is very strange as when I run the report in jasperstudio then everything is fine.
Is there a way that I can persuade jasperstudio to publish all the reports to the server including reports in sub folders please?
-
Hi there,
I am struggling with an isssue whereby the file that contains all the subreports in the report book is no longer displaying the sections in design mode. Is there a way I can fix this without having to create a new report book.Regards
-
The problem is that if I follow the same steps for creating a scriptlet from one project to another, then it is a lottery whether the the exact same script is going to to work, more often than not it fails. Maybe after some hours or redefining the scriptlet in the jasper report it might work just once and then fail.
The error I keep getting is as follows
net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.JRException: Error loading scriptlet class : MyTest
at com.jaspersoft.studio.editor.preview.view.control.ReportControler.fillReport(ReportControler.java:467)
at com.jaspersoft.studio.editor.preview.view.control.ReportControler.access$18(ReportControler.java:442)
at com.jaspersoft.studio.editor.preview.view.control.ReportControler$4.run(ReportControler.java:334)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: net.sf.jasperreports.engine.JRException: Error loading scriptlet class : MyTest
at net.sf.jasperreports.engine.scriptlets.DefaultScriptletFactory.getScriptlet(DefaultScriptletFactory.java:114)
at net.sf.jasperreports.engine.scriptlets.DefaultScriptletFactory.getScriplets(DefaultScriptletFactory.java:89)
at net.sf.jasperreports.engine.fill.JRFillDataset.createScriptlets(JRFillDataset.java:507)
at net.sf.jasperreports.engine.fill.JRFillDataset.setParameterValues(JRFillDataset.java:626)
at net.sf.jasperreports.engine.fill.BaseReportFiller.setParameters(BaseReportFiller.java:433)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:508)
at net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:120)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: MyTest
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName(JRClassLoader.java:175)
at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:115)
at net.sf.jasperreports.engine.scriptlets.DefaultScriptletFactory.getScriptlet(DefaultScriptletFactory.java:109)
... 7 more
This is why I am looking for something that is stable
Regards
-
Is is possilble to have a definitive set of instructions of how to use scriptlets from within Jaspersoft studio. As from one hour to the next I can have it working and then it fails. it is difficult to develop a solution when the product behaves differentlyeach time you start it
Regards
-
Hi there
We are developing a jasper web service and are attempting to validate the data type from input controls. We are able to determine the datatype if the datatype is local to the input contol,
however we are not able to determine the datatype of and input control, if the datatype is defined as being publicThanks in advance
-
Hi there
Many many thanks for your help.
Outstanding it works
-
Master report
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.0.1.final using JasperReports Library version 6.0.0 -->
<!-- 2015-03-24T13:56:25 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Master" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="d32622b3-ebdd-4da1-959f-a925e4180e62"><property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<queryString>
<![CDATA[]]>
</queryString>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="25" splitType="Stretch"/>
</title>
<summary>
<band height="323" splitType="Stretch">
<subreport>
<reportElement x="10" y="40" width="200" height="200" uuid="55d17d32-65a4-4bc1-899d-07eefac87d89"/>
<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRXmlDataSource("rmc.xml", "/mytexts/text")]]></dataSourceExpression>
<subreportExpression><![CDATA["rmc.jasper"]]></subreportExpression>
</subreport>
</band>
</summary>
</jasperReport>SubReport
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.0.1.final using JasperReports Library version 6.0.0 -->
<!-- 2015-03-24T14:01:18 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="rmc" columnCount="2" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="272" columnSpacing="10" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="ac2e4382-ca7b-42de-8ef5-61233a029eb4">
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="rmc"/>
<parameter name="ReportName" class="java.lang.String" isForPrompting="false"/>
<queryString language="xpath2">
<![CDATA[/mytexts/text]]>
</queryString>
<field name="id_1" class="java.lang.String">
<fieldDescription><![CDATA[@id]]></fieldDescription>
</field>
<field name="title_1" class="java.lang.String">
<fieldDescription><![CDATA[title]]></fieldDescription>
</field>
<field name="section_1" class="java.lang.String">
<fieldDescription><![CDATA[section]]></fieldDescription>
</field>
<variable name="headerCount" class="java.lang.Integer" calculation="Count">
<variableExpression><![CDATA[$V{headerCount}]]></variableExpression>
<initialValueExpression><![CDATA[0]]></initialValueExpression>
</variable>
<group name="Group1">
<groupExpression><![CDATA[$F{id_1}]]></groupExpression>
<groupHeader>
<band height="50">
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" x="10" y="20" width="250" height="30" uuid="00b11210-114f-4dae-ae76-92a98eed2e0b"/>
<textElement textAlignment="Justified"/>
<textFieldExpression><![CDATA[$F{section_1}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="10" y="0" width="250" height="20" isRemoveLineWhenBlank="true" uuid="96f38193-5674-4b91-8769-0debc542ebc0"/>
<textElement>
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{title_1}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
</group>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="47">
<rectangle>
<reportElement x="10" y="30" width="544" height="11" backcolor="#E0E0E0" uuid="78ad6d91-603c-4195-9e01-231d73b4fb3c">
<property name="local_mesure_unitwidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<graphicElement>
<pen lineColor="#E0E0E0"/>
</graphicElement>
</rectangle>
</band>
</pageHeader>
<pageFooter>
<band height="20">
<textField>
<reportElement x="10" y="0" width="545" height="20" forecolor="#99CCFF" uuid="ccae5d78-1d60-4d70-81e4-a3abc342da45"/>
<textElement>
<font fontName="Arial" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{ReportName}]]></textFieldExpression>
</textField>
<textField evaluationTime="Master">
<reportElement x="480" y="0" width="75" height="20" forecolor="#99CCFF" uuid="fae8f096-2c9c-46c4-9ef0-0f2c72e3409f"/>
<textElement>
<font fontName="Arial" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA["Page "+$V{MASTER_CURRENT_PAGE}+" of "+$V{MASTER_TOTAL_PAGES}]]></textFieldExpression>
</textField>
</band>
</pageFooter>
<summary>
<band height="50"/>
</summary>
</jasperReport>
XML File
<mytexts>
<text id="0">
<title>The standard Lorem Ipsum passage</title>
<section>
<![CDATA[The standard Lorem Ipsum passageSed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam,
eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur,vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
]]>
</section>
</text>
</mytexts>
-
Hi there,
Does anyone have an example of passing an XMl datasource from a main report to a subreport. I used to use the following in the data Source Expression field of the sub report parameters
new net.sf.jasperreports.engine.data.JRXmlDataSource("rmc.xml", "/mytexts/text")
and it worked for a while but now I keep getting the following any concrete example would be appreciated
net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression :
Source text : new net.sf.jasperreports.engine.data.JRXmlDataSource("rmc.xml", "/mytexts/text")
at com.jaspersoft.studio.editor.preview.view.control.ReportControler.fillReport(ReportControler.java:467)
at com.jaspersoft.studio.editor.preview.view.control.ReportControler.access$18(ReportControler.java:442)
at com.jaspersoft.studio.editor.preview.view.control.ReportControler$4.run(ReportControler.java:334)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression :
Source text : new net.sf.jasperreports.engine.data.JRXmlDataSource("rmc.xml", "/mytexts/text")
at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:263)
at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:611)
at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:579)
at net.sf.jasperreports.engine.fill.JRFillElement.evaluateExpression(JRFillElement.java:1016)
at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluateSubreport(JRFillSubreport.java:431)
at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubreport.java:326)
at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:259)
at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:455)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummaryNoLastFooterSamePage(JRVerticalFiller.java:1070)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:1031)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFiller.java:295)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:131)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:540)
at net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:120)
at java.lang.Thread.run(Unknown Source)
Caused by: net.sf.jasperreports.engine.JRException: Input stream not found at : rmc.xml
at net.sf.jasperreports.repo.RepositoryUtil.getInputStreamFromLocation(RepositoryUtil.java:159)
at net.sf.jasperreports.engine.data.JRXmlDataSource.<init>(JRXmlDataSource.java:318)
at net.sf.jasperreports.engine.data.JRXmlDataSource.<init>(JRXmlDataSource.java:337)
at net.sf.jasperreports.engine.data.JRXmlDataSource.<init>(JRXmlDataSource.java:332)
at toto_1427126910966_497945.evaluate(toto_1427126910966_497945:177)
at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:250)
... 14 more -
The generation of the table of contents using the report book option is very unreliable.
It appears that that alhough the table is being generated, none of the printed values can be seen.
I can see the tooltips for the link and when I click on an entry it works just fine except I just can't see the contents.
I have been banging my head on this one, I am not sure how to fix this.
I followed the tutorial in chapter 15 of the user guide several times but I have only managed to get this to work once.
I am have java 1.7_55 and am using version 6.01 jasperstudio
Any ideas please?
-
public class TestAsyncExportReportOutputCSV extends Assert {private static String sTestReport = "/ARC/Reports/Test_report";private static final String sOUTPUT_FORMAT = "html";@Testpublic void TestAsyncExportReportOutputCSV() { RestClientConfiguration configuration = RestClientConfiguration.loadConfiguration("url.properties"); JasperserverRestClient client = new JasperserverRestClient(configuration); Session session = client.authenticate("jasperadmin", "jasperadmin"); ReportExecutionRequest request = new ReportExecutionRequest(); ReportParameter parameter = new ReportParameter(); parameter.setName("Trigramme"); List<String> values = new ArrayList<String>(); values.add("ARC"); parameter.setValues(values); ReportParameters parameters = new ReportParameters(); List<ReportParameter> reportParameters = new ArrayList<ReportParameter>(); reportParameters.add(parameter); parameters.setReportParameters(reportParameters); request.setReportUnitUri(sTestReport); request .setParameters(parameters) .setAsync(true) .setOutputFormat(sOUTPUT_FORMAT); OperationResult<ReportExecutionDescriptor> operationResult = session //pay attention to this, all requests are in the same session!!! .reportingService() .newReportExecutionRequest(request); ReportExecutionDescriptor reportExecutionDescriptor = operationResult.getEntity(); assertNotNull(reportExecutionDescriptor); OperationResult<ReportExecutionDescriptor> executionDetails = session // pay attention to this, all requests are in the same // session!!! .reportingService() .reportExecutionRequest( reportExecutionDescriptor.getRequestId()) .executionDetails(); ReportExecutionDescriptor descriptor = executionDetails.getEntity(); List mylist = descriptor.getExports(); Iterator itt = mylist.iterator(); System.out.println(reportExecutionDescriptor); while (itt.hasNext()) { ExportDescriptor ff = (ExportDescriptor) itt.next(); System.out.println(ff.getId()); assert (sOUTPUT_FORMAT.equals(ff.getId())); } assertNotNull(descriptor); System.out.println(descriptor.toString()); session.logout();}}[/code]
Hi there I have an issue with the following code using rest_V2 . It appears that in the ExportDescriptor that is returned the id is not the outputformat requested but an id like this
ExportDescriptor{id='725bd66c-d606-40f5-985b-62deb1477f3e',
Can someone please explain why I get this error please. I have instaled jasperserver on 3 different platforms and 4 servers and only one of the servers works correctly.
Is the jaspersofr reporting engine the same between editions
in Products
Posted
Hi there,
I would like to know if the Jasper server reporting engine is the same between the community edition and the professional editions please?
Regards
Clive