Page 1 of 1

Multiple Datasources

Posted: Tue Nov 04, 2014 7:13 pm
by mat.murdock
When I have multiple data sources I get the following error. If I remove all but one then my report runs fine. It runs fine in the AIR client and in .Net, but not when rendering locally using Java.

Thanks,

Mat

----------------------------
[Customer Explanation]


----------------------------
[General Info]

Application: Stimulsoft Reports.JAVA
Version: Stimulsoft Reports.Fx for Java 2014.2.2000-trial
JAVA Version: 1.8.0_25-b18
OSVersion: Windows 8.1 amd64 6.3
UserName: mat.murdock

----------------------------
[Exception Info]
Message:

Cause:

StackTrace:
java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901)
at java.util.ArrayList$Itr.next(ArrayList.java:851)
at com.stimulsoft.report.dictionary.dataSources.StiDataSourcesCollection.connect(StiDataSourcesCollection.java:66)
at com.stimulsoft.report.dictionary.StiDictionary.connect(StiDictionary.java:1216)
at com.stimulsoft.report.engine.engineV2.StiRenderProviderV2.ConnectToData(StiRenderProviderV2.java:387)
at com.stimulsoft.report.engine.engineV2.StiRenderProviderV2.Render(StiRenderProviderV2.java:124)
at com.stimulsoft.report.engine.engineV2.builders.StiReportV2Builder.RenderSingleReport(StiReportV2Builder.java:64)
at com.stimulsoft.report.StiReport.RenderReport(StiReport.java:1939)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1840)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1775)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1765)
at ExportReport.getReport(ExportReport.java:171)
at ExportReport.exportReport(ExportReport.java:38)
at ExportReport.main(ExportReport.java:235)


----------------------------

Re: Multiple Datasources

Posted: Thu Nov 06, 2014 11:27 am
by Vadim
Hello.

We can't reproduce this bug. We made several tests with several data sources but no error occurred.
It seems that other process modify datasource collections during rendering.

mat.murdock wrote:When I have multiple data sources I get the following error. If I remove all but one then my report runs fine. It runs fine in the AIR client and in .Net, but not when rendering locally using Java.

Thanks,

Mat

----------------------------
[Customer Explanation]


----------------------------
[General Info]

Application: Stimulsoft Reports.JAVA
Version: Stimulsoft Reports.Fx for Java 2014.2.2000-trial
JAVA Version: 1.8.0_25-b18
OSVersion: Windows 8.1 amd64 6.3
UserName: mat.murdock

----------------------------
[Exception Info]
Message:

Cause:

StackTrace:
java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901)
at java.util.ArrayList$Itr.next(ArrayList.java:851)
at com.stimulsoft.report.dictionary.dataSources.StiDataSourcesCollection.connect(StiDataSourcesCollection.java:66)
at com.stimulsoft.report.dictionary.StiDictionary.connect(StiDictionary.java:1216)
at com.stimulsoft.report.engine.engineV2.StiRenderProviderV2.ConnectToData(StiRenderProviderV2.java:387)
at com.stimulsoft.report.engine.engineV2.StiRenderProviderV2.Render(StiRenderProviderV2.java:124)
at com.stimulsoft.report.engine.engineV2.builders.StiReportV2Builder.RenderSingleReport(StiReportV2Builder.java:64)
at com.stimulsoft.report.StiReport.RenderReport(StiReport.java:1939)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1840)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1775)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1765)
at ExportReport.getReport(ExportReport.java:171)
at ExportReport.exportReport(ExportReport.java:38)
at ExportReport.main(ExportReport.java:235)


----------------------------

Re: Multiple Datasources

Posted: Thu Nov 06, 2014 4:14 pm
by mat.murdock
Ok, I have narrowed the problem down to having variables in the SQL string. If you create 2 datasources with a string similar to this:

"select '{varSomething}' as something from dual"

Then you get the error. If you only have one query with a variable in it then it works fine.

Thanks,

Mat

Re: Multiple Datasources

Posted: Thu Nov 06, 2014 9:33 pm
by Jan
Hello Mat,

Thank you for your information. We will try fix this problem shortly. I hope we can include in prerelease build in Monday, 10.

Thank you.

Re: Multiple Datasources

Posted: Fri Nov 07, 2014 5:24 am
by mat.murdock
So you were able to reproduce the error?

Thanks,

Mat

Re: Multiple Datasources

Posted: Fri Nov 07, 2014 10:53 am
by Andrew
Dear Mat,

I asked our developers. They replied - Yes.

Thank you.

Re: Multiple Datasources

Posted: Mon Nov 10, 2014 10:23 am
by Vadim
Hello.
Fix will available today since 2014.2.2003 version.